@omnia/velcron 8.0.124-dev → 8.0.127-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 +14 -0
- package/internal-do-not-import-from-here/shared/models/HttpCommon.js +7 -0
- package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +2 -1
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +14 -6
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +7 -1
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +10 -9
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts +16 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.d.ts +40 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.js +17 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.d.ts +21 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.js +10 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/index.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +3 -1
- package/internal-do-not-import-from-here/shared/models/hub/index.js +3 -1
- package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +3 -3
- package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts +10 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js +19 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +7 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +122 -0
- package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.d.ts → Chrome.d.ts} +6 -6
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +6 -6
- package/internal-do-not-import-from-here/shared/models/theming/Spacing.d.ts +22 -0
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +4 -4
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.d.ts → Typography.d.ts} +19 -19
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +4 -4
- package/internal-do-not-import-from-here/shared/models/theming/index.js +4 -4
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.d.ts +20 -0
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.js +5 -0
- package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/velcron/index.js +1 -0
- package/models/VelcronDefinitions.d.ts +27 -7
- package/package.json +1 -1
- package/parser/VelcronActions.d.ts +4 -2
- package/parser/VelcronActions.js +11 -5
- package/parser/VelcronConstants.d.ts +2 -0
- package/parser/VelcronConstants.js +3 -1
- package/parser/VelcronRenderers.d.ts +5 -1
- package/parser/VelcronRenderers.js +18 -1
- package/rules/IsEditMode.js +1 -1
- package/stores/VelcronColorSchema.d.ts +7 -7
- package/stores/VelcronTheming.d.ts +2 -2
- package/stores/VelcronTheming.js +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.d.ts +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +0 -15
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.js +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +0 -40
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.js +0 -39
- package/internal-do-not-import-from-here/shared/models/theming/ComponentDefinitions.d.ts +0 -93
- package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +0 -30
- /package/internal-do-not-import-from-here/shared/models/hub/{ExternalIdentityId.js → actors/ExternalActorId.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/theming/{ComponentDefinitions.js → Blueprints.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.js → Chrome.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/theming/{SpacingSetting.js → Spacing.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.js → Typography.js} +0 -0
|
@@ -25,3 +25,17 @@ export interface HttpResponse<TData> {
|
|
|
25
25
|
statusText: String;
|
|
26
26
|
ok: Boolean;
|
|
27
27
|
}
|
|
28
|
+
export interface ApiResponse<T> {
|
|
29
|
+
data: T;
|
|
30
|
+
errorMessage: string;
|
|
31
|
+
success: boolean;
|
|
32
|
+
responseCode: ApiResponseCodes | number;
|
|
33
|
+
}
|
|
34
|
+
export interface HttpHeaders {
|
|
35
|
+
[key: string]: string;
|
|
36
|
+
}
|
|
37
|
+
export declare enum ApiResponseCodes {
|
|
38
|
+
Success = 0,
|
|
39
|
+
UnAuthorized = 1,
|
|
40
|
+
Exception = 2
|
|
41
|
+
}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiResponseCodes = void 0;
|
|
4
|
+
var ApiResponseCodes;
|
|
5
|
+
(function (ApiResponseCodes) {
|
|
6
|
+
ApiResponseCodes[ApiResponseCodes["Success"] = 0] = "Success";
|
|
7
|
+
ApiResponseCodes[ApiResponseCodes["UnAuthorized"] = 1] = "UnAuthorized";
|
|
8
|
+
ApiResponseCodes[ApiResponseCodes["Exception"] = 2] = "Exception";
|
|
9
|
+
})(ApiResponseCodes || (exports.ApiResponseCodes = ApiResponseCodes = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OmniaToken } from "./Tokens";
|
|
2
2
|
import { Guid, GuidValue } from "./Guid";
|
|
3
3
|
import { TenantIdentifier } from "./Tenant";
|
|
4
|
+
import { ActorId } from "./hub";
|
|
4
5
|
export interface OmniaSharedBootstrapData {
|
|
5
6
|
uiThreadId: GuidValue;
|
|
6
7
|
workerThreadId: GuidValue;
|
|
@@ -14,7 +15,7 @@ export interface OmniaSharedBootstrapData {
|
|
|
14
15
|
tokenKey?: OmniaToken;
|
|
15
16
|
tokenRef: GuidValue;
|
|
16
17
|
identity: string;
|
|
17
|
-
|
|
18
|
+
hubActorId?: ActorId;
|
|
18
19
|
licenses: Array<Guid>;
|
|
19
20
|
hubDev?: boolean;
|
|
20
21
|
realtimeDevPort?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChannelId } from "./ActivityChannel";
|
|
2
|
-
import { ActivitySenderId } from "./ActivitySender";
|
|
3
2
|
import { ActivityRenderer, ActivityRendererReference } from "./ActivityRenderer";
|
|
4
3
|
import { StronglyTypedId } from "../../StronglyTypedId";
|
|
5
4
|
import { GuidValue } from "../../Guid";
|
|
6
5
|
import { DynamicState } from "../../DynamicState";
|
|
7
|
-
import {
|
|
6
|
+
import { ActorActivityCategory } from "./ActorActivity";
|
|
8
7
|
import { TemporaryFileId } from "../fileupload";
|
|
8
|
+
import { ActorId } from "../actors";
|
|
9
9
|
export type ActivityId = StronglyTypedId<number, "ActivityId">;
|
|
10
10
|
export declare function ActivityId(id: number): ActivityId;
|
|
11
11
|
export type ActivityTypeId = StronglyTypedId<GuidValue, "ActivityTypeId">;
|
|
@@ -14,11 +14,11 @@ export interface Activity<TRenderState = DynamicState> extends ActivityBase {
|
|
|
14
14
|
id: ActivityId;
|
|
15
15
|
state: TRenderState;
|
|
16
16
|
renderer: ActivityRenderer | ActivityRendererReference;
|
|
17
|
-
|
|
17
|
+
createdBy: ActorId;
|
|
18
18
|
}
|
|
19
19
|
export interface ActivityWithJson extends ActivityBase {
|
|
20
20
|
id: ActivityId;
|
|
21
|
-
|
|
21
|
+
createdBy: ActorId;
|
|
22
22
|
stateJson: string;
|
|
23
23
|
rendererJson: string;
|
|
24
24
|
}
|
|
@@ -48,15 +48,23 @@ export interface NotificationTeaser {
|
|
|
48
48
|
description: string;
|
|
49
49
|
url: string;
|
|
50
50
|
}
|
|
51
|
+
export declare enum PrivacyLevel {
|
|
52
|
+
Private = 0,
|
|
53
|
+
Public = 1,
|
|
54
|
+
Followers = 2
|
|
55
|
+
}
|
|
51
56
|
export interface CreateActivityRequest {
|
|
52
57
|
channelId: ChannelId;
|
|
53
58
|
activityTypeId: ActivityTypeId;
|
|
54
|
-
|
|
59
|
+
createdBy: ActorId;
|
|
55
60
|
stateJson: string;
|
|
56
61
|
rendererJson: string;
|
|
57
62
|
notificationTeaser: NotificationTeaser;
|
|
58
63
|
targeting: Array<Array<SourceRelatedHubProperty>>;
|
|
59
|
-
|
|
64
|
+
addToActors?: {
|
|
65
|
+
[actorId: ActorId]: PrivacyLevel;
|
|
66
|
+
};
|
|
67
|
+
category: ActorActivityCategory;
|
|
60
68
|
activityIdPlaceHolder?: TemporaryFileId;
|
|
61
69
|
expires?: Date;
|
|
62
70
|
createdAt?: Date;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActivityTypeId = exports.ActivityId = void 0;
|
|
3
|
+
exports.PrivacyLevel = exports.ActivityTypeId = exports.ActivityId = void 0;
|
|
4
4
|
function ActivityId(id) { return id; }
|
|
5
5
|
exports.ActivityId = ActivityId;
|
|
6
6
|
function ActivityTypeId(id) { return id; }
|
|
7
7
|
exports.ActivityTypeId = ActivityTypeId;
|
|
8
|
+
var PrivacyLevel;
|
|
9
|
+
(function (PrivacyLevel) {
|
|
10
|
+
PrivacyLevel[PrivacyLevel["Private"] = 0] = "Private";
|
|
11
|
+
PrivacyLevel[PrivacyLevel["Public"] = 1] = "Public";
|
|
12
|
+
PrivacyLevel[PrivacyLevel["Followers"] = 2] = "Followers";
|
|
13
|
+
})(PrivacyLevel || (exports.PrivacyLevel = PrivacyLevel = {}));
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
+
import { ActorId } from "../actors";
|
|
1
2
|
import { Activity, ActivityId, ActivityWithJson } from "./Activity";
|
|
2
3
|
import { ActivityRenderer, ActivityRendererId } from "./ActivityRenderer";
|
|
3
|
-
import {
|
|
4
|
-
import { ActivityCategoryCount, IdentityActivity, IdentityActivityCategory, IdentityActivityWithJson, NewActivitiesBySenderBase } from "./IdentityActivity";
|
|
4
|
+
import { ActivityCategoryCount, ActorActivity, ActorActivityCategory, ActorActivityWithJson, NewActivitiesByCreatorBase } from "./ActorActivity";
|
|
5
5
|
export interface ActivityFeed extends ActivityFeedBase {
|
|
6
6
|
renderers: {
|
|
7
7
|
[key: ActivityRendererId]: Array<ActivityRenderer>;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
actorActivities: Array<ActorActivity<object, object>>;
|
|
10
10
|
activities: Array<Activity>;
|
|
11
11
|
}
|
|
12
12
|
export interface ActivityFeedResult extends ActivityFeedBase {
|
|
13
|
-
|
|
13
|
+
actorActivities: Array<ActorActivityWithJson>;
|
|
14
14
|
activities: Array<ActivityWithJson>;
|
|
15
15
|
loadStateHash: string;
|
|
16
16
|
}
|
|
17
17
|
export interface ActivityFeedBase {
|
|
18
|
-
newActivities: Array<
|
|
18
|
+
newActivities: Array<NewActivitiesByCreatorBase>;
|
|
19
19
|
nextStartingFromId: ActivityId;
|
|
20
|
-
|
|
20
|
+
recentCreators: Array<ActorId>;
|
|
21
21
|
categories: Array<ActivityCategoryCount>;
|
|
22
22
|
}
|
|
23
23
|
export interface FeedQuery {
|
|
24
|
+
forActorId?: ActorId;
|
|
24
25
|
newerThenId?: ActivityId;
|
|
25
26
|
olderThenId?: ActivityId;
|
|
26
|
-
|
|
27
|
-
filterByCategory?:
|
|
28
|
-
|
|
27
|
+
filterByCreator?: ActorId;
|
|
28
|
+
filterByCategory?: ActorActivityCategory;
|
|
29
|
+
includeRecentCreators?: number;
|
|
29
30
|
includeCategories?: boolean;
|
|
30
31
|
}
|
package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StronglyTypedId } from "../../StronglyTypedId";
|
|
2
|
+
import { ActorId } from "../actors";
|
|
3
|
+
export type SubscriptionId = StronglyTypedId<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
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DynamicState } from "../../DynamicState";
|
|
2
|
+
import { Actor, ActorId } from "../actors";
|
|
3
|
+
import { Activity, ActivityId } from "./Activity";
|
|
4
|
+
import { ChannelId } from "./ActivityChannel";
|
|
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 ActorActivityBase {
|
|
18
|
+
activityId: ActivityId;
|
|
19
|
+
status: ActorActivityStatus;
|
|
20
|
+
category: ActorActivityCategory;
|
|
21
|
+
}
|
|
22
|
+
export interface ActorActivity<TRenderState extends DynamicState, TState extends DynamicState> extends ActorActivityBase {
|
|
23
|
+
activity: Activity<TRenderState>;
|
|
24
|
+
state?: TState;
|
|
25
|
+
}
|
|
26
|
+
export interface ActorActivityWithJson extends ActorActivityBase {
|
|
27
|
+
stateJson: string;
|
|
28
|
+
}
|
|
29
|
+
export interface NewActivitiesByCreatorBase {
|
|
30
|
+
count: number;
|
|
31
|
+
creator: ActorId;
|
|
32
|
+
}
|
|
33
|
+
export interface NewActivitiesByActor extends NewActivitiesByCreatorBase {
|
|
34
|
+
actor: Actor;
|
|
35
|
+
channelId: ChannelId;
|
|
36
|
+
}
|
|
37
|
+
export interface ActivityCategoryCount {
|
|
38
|
+
category: ActorActivityCategory;
|
|
39
|
+
count: number;
|
|
40
|
+
}
|
|
@@ -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 = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./Activity";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./ActorActivity";
|
|
3
3
|
export * from "./ActivityRenderer";
|
|
4
|
-
export * from "./ActivitySender";
|
|
5
4
|
export * from "./ActivityChannel";
|
|
6
5
|
export * from "./ActivityFeed";
|
|
7
6
|
export * from "./ActivityDefinition";
|
|
8
7
|
export * from "./ActivityRendererLoadingReferences";
|
|
8
|
+
export * from "./ActivitySubscription";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./Activity"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./
|
|
5
|
+
tslib_1.__exportStar(require("./ActorActivity"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ActivityRenderer"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./ActivitySender"), exports);
|
|
8
7
|
tslib_1.__exportStar(require("./ActivityChannel"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("./ActivityFeed"), exports);
|
|
10
9
|
tslib_1.__exportStar(require("./ActivityDefinition"), exports);
|
|
11
10
|
tslib_1.__exportStar(require("./ActivityRendererLoadingReferences"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./ActivitySubscription"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StronglyTypedId } from "../../StronglyTypedId";
|
|
2
|
+
import { ExternalActorId } from "./ExternalActorId";
|
|
3
|
+
export type ActorId = StronglyTypedId<number, "ActorId">;
|
|
4
|
+
export declare function ActorId(id: number): ActorId;
|
|
5
|
+
export interface ActorWithBag<TBag> extends Actor {
|
|
6
|
+
bag: TBag;
|
|
7
|
+
}
|
|
8
|
+
export interface Actor extends ActorBase {
|
|
9
|
+
imageUrl: string;
|
|
10
|
+
name: Record<string, string>;
|
|
11
|
+
description: Record<string, string>;
|
|
12
|
+
type: ActorTypes;
|
|
13
|
+
}
|
|
14
|
+
export interface ActorBase {
|
|
15
|
+
id: ActorId;
|
|
16
|
+
externalId: ExternalActorId;
|
|
17
|
+
}
|
|
18
|
+
export declare enum ActorTypes {
|
|
19
|
+
user = 0,
|
|
20
|
+
app = 1
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActorTypes = exports.ActorId = void 0;
|
|
4
|
+
function ActorId(id) { return id; }
|
|
5
|
+
exports.ActorId = ActorId;
|
|
6
|
+
var ActorTypes;
|
|
7
|
+
(function (ActorTypes) {
|
|
8
|
+
ActorTypes[ActorTypes["user"] = 0] = "user";
|
|
9
|
+
ActorTypes[ActorTypes["app"] = 1] = "app";
|
|
10
|
+
})(ActorTypes || (exports.ActorTypes = ActorTypes = {}));
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./activities";
|
|
2
2
|
export * from "./social";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./actors/ExternalActorId";
|
|
4
4
|
export * from "./fileupload";
|
|
5
5
|
export * from "./TempSocialReactions";
|
|
6
|
+
export * from "./targeting";
|
|
7
|
+
export * from "./actors";
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./activities"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./social"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
6
|
+
tslib_1.__exportStar(require("./actors/ExternalActorId"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./fileupload"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./TempSocialReactions"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./targeting"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./actors"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExternalActorId } from "../actors/ExternalActorId";
|
|
2
2
|
import { HubReaction } from "./HubReaction";
|
|
3
3
|
export interface HubComment {
|
|
4
|
-
createdBy:
|
|
4
|
+
createdBy: ExternalActorId;
|
|
5
5
|
id: number;
|
|
6
6
|
inReplyToId: number | null;
|
|
7
7
|
rendererJson: string;
|
|
8
|
-
mentions:
|
|
8
|
+
mentions: ExternalActorId[];
|
|
9
9
|
reactions: HubReaction[];
|
|
10
10
|
}
|
package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GuidValue } from "../../Guid";
|
|
2
|
+
import { ExternalActorId } from "../actors/ExternalActorId";
|
|
3
|
+
import { SourceRelatedHubProperty } from "../activities";
|
|
4
|
+
export declare class HubExternalIdentityProperty implements SourceRelatedHubProperty {
|
|
5
|
+
private externalIdentityId;
|
|
6
|
+
constructor(externalIdentityId: ExternalActorId);
|
|
7
|
+
get propertySourceId(): GuidValue;
|
|
8
|
+
get name(): string;
|
|
9
|
+
get values(): string[];
|
|
10
|
+
}
|
package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js
ADDED
|
@@ -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 @@
|
|
|
1
|
+
export * from "./ExternalIdentityProperty";
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { BackgroundDefinition, ColorValue, FillDefinition } from "./ThemeDefinitionV2";
|
|
2
|
+
import { ChromeBlueprint } from "./Chrome";
|
|
3
|
+
import { SpacingDefinition, Spacing } from "./Spacing";
|
|
4
|
+
import { TypographyValue } from "./Typography";
|
|
5
|
+
export interface BoxDimensions extends Spacing {
|
|
6
|
+
}
|
|
7
|
+
import { TypographyBlueprint } from "./Typography";
|
|
8
|
+
export type BlueprintType = "chrome" | "typography" | "spacing" | "component";
|
|
9
|
+
export interface Blueprints {
|
|
10
|
+
type: BlueprintType;
|
|
11
|
+
name?: string;
|
|
12
|
+
}
|
|
13
|
+
export type BlueprintVariant = "primary" | "secondary" | "variant1" | "variant2" | "variant3";
|
|
14
|
+
export type ButtonBlueprintType = "text" | "icon";
|
|
15
|
+
export interface ChromeBlueprints extends Blueprints {
|
|
16
|
+
type: "chrome";
|
|
17
|
+
primary: ChromeBlueprint;
|
|
18
|
+
variant1?: ChromeBlueprint;
|
|
19
|
+
variant2?: ChromeBlueprint;
|
|
20
|
+
variant3?: ChromeBlueprint;
|
|
21
|
+
}
|
|
22
|
+
export interface TypographyBlueprints extends Blueprints {
|
|
23
|
+
type: "typography";
|
|
24
|
+
primary: TypographyBlueprint;
|
|
25
|
+
}
|
|
26
|
+
export interface SpacingBlueprints extends Blueprints {
|
|
27
|
+
type: "spacing";
|
|
28
|
+
primary: SpacingBlueprint;
|
|
29
|
+
}
|
|
30
|
+
export type ButtonTypes = "primary" | "basic" | "accent1" | "warn" | "disabled" | "link";
|
|
31
|
+
export interface ComponentBlueprints extends Blueprints {
|
|
32
|
+
type: "component";
|
|
33
|
+
buttons?: {
|
|
34
|
+
text?: {
|
|
35
|
+
primary?: ButtonBlueprint;
|
|
36
|
+
basic?: ButtonBlueprint;
|
|
37
|
+
accent1?: ButtonBlueprint;
|
|
38
|
+
warn?: ButtonBlueprint;
|
|
39
|
+
disabled?: ButtonBlueprint;
|
|
40
|
+
link?: ButtonBlueprint;
|
|
41
|
+
};
|
|
42
|
+
icon?: {
|
|
43
|
+
primary?: ButtonBlueprint;
|
|
44
|
+
basic?: ButtonBlueprint;
|
|
45
|
+
accent1?: ButtonBlueprint;
|
|
46
|
+
warn?: ButtonBlueprint;
|
|
47
|
+
disabled?: ButtonBlueprint;
|
|
48
|
+
link?: ButtonBlueprint;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
tabs?: {
|
|
52
|
+
primary?: TabsBlueprint;
|
|
53
|
+
variant1?: TabsBlueprint;
|
|
54
|
+
variant2?: TabsBlueprint;
|
|
55
|
+
variant3?: TabsBlueprint;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export interface SpacingBlueprint {
|
|
59
|
+
layout: SpacingDefinition;
|
|
60
|
+
inner: SpacingDefinition;
|
|
61
|
+
}
|
|
62
|
+
export type SpacingBlueprintTypes = "inner" | "layout";
|
|
63
|
+
export type WebBlueprintItemDefintionType = "button" | "searchbox" | "text" | "icon" | "tab";
|
|
64
|
+
export declare enum WebBlueprintItemDefintionTypes {
|
|
65
|
+
button = "button",
|
|
66
|
+
searchbox = "searchbox"
|
|
67
|
+
}
|
|
68
|
+
export type VelcronBlueprintDefintionType = "button";
|
|
69
|
+
export declare enum VelcronBlueprintDefintionTypes {
|
|
70
|
+
button = "button"
|
|
71
|
+
}
|
|
72
|
+
export interface Blueprint {
|
|
73
|
+
type: VelcronBlueprintDefintionType | WebBlueprintItemDefintionType;
|
|
74
|
+
}
|
|
75
|
+
export interface SearchBoxBlueprint extends Blueprint {
|
|
76
|
+
type: "searchbox";
|
|
77
|
+
borderRadius?: BoxDimensions;
|
|
78
|
+
variant?: "outlined" | "solo" | "regular" | "plain" | "underlined";
|
|
79
|
+
}
|
|
80
|
+
export interface ButtonBlueprint extends Blueprint {
|
|
81
|
+
type: "button";
|
|
82
|
+
padding?: Spacing;
|
|
83
|
+
background?: BackgroundDefinition;
|
|
84
|
+
alterCase?: boolean;
|
|
85
|
+
text?: TextBlueprint;
|
|
86
|
+
icon?: IconBlueprint;
|
|
87
|
+
}
|
|
88
|
+
export interface TabsBlueprint extends Blueprint {
|
|
89
|
+
type: "tab";
|
|
90
|
+
background?: BackgroundDefinition;
|
|
91
|
+
padding?: Spacing;
|
|
92
|
+
margin?: Spacing;
|
|
93
|
+
vertical?: boolean;
|
|
94
|
+
hideSlider?: boolean;
|
|
95
|
+
iconPosition?: "left" | "right" | "top";
|
|
96
|
+
grow?: boolean;
|
|
97
|
+
minHeight?: number;
|
|
98
|
+
minWidth?: number;
|
|
99
|
+
alignment?: "start" | "center" | "end";
|
|
100
|
+
sliderColor?: ColorValue;
|
|
101
|
+
text?: TextBlueprint;
|
|
102
|
+
icon?: IconBlueprint;
|
|
103
|
+
active?: {
|
|
104
|
+
padding?: Spacing;
|
|
105
|
+
background?: BackgroundDefinition;
|
|
106
|
+
text?: TextBlueprint;
|
|
107
|
+
icon?: IconBlueprint;
|
|
108
|
+
};
|
|
109
|
+
inactive?: {
|
|
110
|
+
background?: BackgroundDefinition;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export interface TextBlueprint extends Blueprint {
|
|
114
|
+
type: "text";
|
|
115
|
+
color?: FillDefinition;
|
|
116
|
+
typography?: TypographyValue;
|
|
117
|
+
}
|
|
118
|
+
export interface IconBlueprint extends Blueprint {
|
|
119
|
+
type: "icon";
|
|
120
|
+
color?: FillDefinition;
|
|
121
|
+
size?: number;
|
|
122
|
+
}
|
package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.d.ts → Chrome.d.ts}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { GuidValue } from "../Guid";
|
|
2
2
|
import { VelcronAppDefinition } from "../velcron";
|
|
3
|
-
import {
|
|
4
|
-
import { BackgroundDefinition } from "./ThemeDefinitionV2";
|
|
5
|
-
export interface
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { Spacing } from "./Spacing";
|
|
4
|
+
import { BackgroundDefinition, ColorSchemaType } from "./ThemeDefinitionV2";
|
|
5
|
+
export interface ChromeBlueprint {
|
|
6
|
+
name?: string;
|
|
7
|
+
colorSchemaType?: ColorSchemaType;
|
|
8
8
|
header: {
|
|
9
9
|
definitionId: GuidValue;
|
|
10
10
|
definition?: VelcronAppDefinition;
|
|
11
11
|
};
|
|
12
12
|
styles: {
|
|
13
13
|
background?: BackgroundDefinition;
|
|
14
|
-
spacing?:
|
|
14
|
+
spacing?: Spacing;
|
|
15
15
|
};
|
|
16
16
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SpacingDefinition } from "./
|
|
1
|
+
import { SpacingDefinition } from "./Spacing";
|
|
2
2
|
export declare function getSpacingValueFromBlueprint(spacingValue: any, definition: SpacingDefinition): number;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// import { SpacingDefinition, SpacingTypes } from "@omnia/fx-models";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.getSpacingValueFromBlueprint = void 0;
|
|
5
|
-
const
|
|
5
|
+
const Spacing_1 = require("./Spacing");
|
|
6
6
|
function getSpacingValueFromBlueprint(spacingValue, definition) {
|
|
7
7
|
if (!spacingValue) {
|
|
8
8
|
return 0;
|
|
@@ -14,19 +14,19 @@ function getSpacingValueFromBlueprint(spacingValue, definition) {
|
|
|
14
14
|
negative = true;
|
|
15
15
|
}
|
|
16
16
|
spacingValue = spacingValue.replace("-", "");
|
|
17
|
-
if (spacingValue ===
|
|
17
|
+
if (spacingValue === Spacing_1.SpacingTypes.xs) {
|
|
18
18
|
result = definition.xs;
|
|
19
19
|
}
|
|
20
|
-
else if (spacingValue ===
|
|
20
|
+
else if (spacingValue === Spacing_1.SpacingTypes.s) {
|
|
21
21
|
result = definition.s;
|
|
22
22
|
}
|
|
23
|
-
else if (spacingValue ===
|
|
23
|
+
else if (spacingValue === Spacing_1.SpacingTypes.m) {
|
|
24
24
|
result = definition.m;
|
|
25
25
|
}
|
|
26
|
-
else if (spacingValue ===
|
|
26
|
+
else if (spacingValue === Spacing_1.SpacingTypes.l) {
|
|
27
27
|
result = definition.l;
|
|
28
28
|
}
|
|
29
|
-
else if (spacingValue ===
|
|
29
|
+
else if (spacingValue === Spacing_1.SpacingTypes.xl) {
|
|
30
30
|
result = definition.xl;
|
|
31
31
|
}
|
|
32
32
|
else {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface Spacing {
|
|
2
|
+
top?: SpacingValue;
|
|
3
|
+
right?: SpacingValue;
|
|
4
|
+
bottom?: SpacingValue;
|
|
5
|
+
left?: SpacingValue;
|
|
6
|
+
}
|
|
7
|
+
export interface SpacingDefinition {
|
|
8
|
+
name: string;
|
|
9
|
+
xs: number;
|
|
10
|
+
s: number;
|
|
11
|
+
m: number;
|
|
12
|
+
l: number;
|
|
13
|
+
xl: number;
|
|
14
|
+
}
|
|
15
|
+
export type SpacingValue = "xs" | "s" | "m" | "l" | "xl" | number;
|
|
16
|
+
export declare enum SpacingTypes {
|
|
17
|
+
xs = "xs",
|
|
18
|
+
s = "s",
|
|
19
|
+
m = "m",
|
|
20
|
+
l = "l",
|
|
21
|
+
xl = "xl"
|
|
22
|
+
}
|