@omnia/fx-models 8.0.558-dev → 8.0.559-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.
@@ -23,11 +23,20 @@ export interface ActivityWithJson extends ActivityBase {
23
23
  stateJson: string;
24
24
  rendererJson: string;
25
25
  }
26
+ export interface ActivitySettings {
27
+ category: ActorActivityCategory;
28
+ social: ActivitySocialSettings;
29
+ }
30
+ export interface ActivitySocialSettings {
31
+ comments: boolean;
32
+ reactions: boolean;
33
+ }
26
34
  export interface ActivityBase {
27
35
  channelId: ChannelId;
28
36
  activityTypeId: ActivityTypeId;
29
37
  targeting: Array<Array<SourceRelatedHubProperty>>;
30
38
  notificationTeaser: NotificationTeaser;
39
+ settings: ActivitySettings;
31
40
  expires?: Date;
32
41
  createdAt: Date;
33
42
  reactionCount: {
@@ -39,6 +48,7 @@ export interface ActivityRenderState<TActivityState = DynamicState, TIdentitySta
39
48
  activity: TActivityState & {
40
49
  showDetails: boolean;
41
50
  id: ActivityId;
51
+ taskStatus: ActorActivityCategory;
42
52
  };
43
53
  identity: TIdentityState;
44
54
  }
@@ -53,6 +63,7 @@ export interface NotificationTeaser {
53
63
  title: string;
54
64
  description: string;
55
65
  url: string;
66
+ excludePushByTargeting?: Array<Array<HubProperty>>;
56
67
  }
57
68
  export declare enum PrivacyLevel {
58
69
  Private = 0,
@@ -66,9 +77,10 @@ export interface CreateActivityRequest {
66
77
  stateJson: string;
67
78
  rendererJson: string;
68
79
  notificationTeaser: NotificationTeaser;
80
+ category: ActorActivityCategory;
69
81
  targeting: Array<Array<HubProperty>>;
82
+ settings?: ActivitySettings;
70
83
  addToActors?: Record<ActorId, PrivacyLevel>;
71
- category: ActorActivityCategory;
72
84
  mentions?: Array<ActorId>;
73
85
  activityIdPlaceHolder?: TemporaryFileId;
74
86
  expires?: Date;
@@ -12,14 +12,6 @@ export declare enum ActorActivityCategory {
12
12
  snoozed = 2,
13
13
  completed = 3
14
14
  }
15
- export interface ActivitySettings {
16
- category: ActorActivityCategory;
17
- social: ActivitySocialSettings;
18
- }
19
- export interface ActivitySocialSettings {
20
- comments: boolean;
21
- reactions: boolean;
22
- }
23
15
  export interface ActorActivityBase {
24
16
  activityId: ActivityId;
25
17
  status: ActorActivityStatus;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.558-dev",
4
+ "version": "8.0.559-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -11,6 +11,7 @@ export declare class FontAwesomeIcon implements IFontAwesomeIcon {
11
11
  iconType: IconTypes;
12
12
  constructor(faClass: string);
13
13
  toString(): string;
14
+ setStyle(style: "solid" | "regular" | "light" | "thin"): this;
14
15
  }
15
16
  export declare class MaterialIcon implements IMaterialIcon {
16
17
  maClass: string;
@@ -13,6 +13,25 @@ class FontAwesomeIcon {
13
13
  toString() {
14
14
  return this.faClass;
15
15
  }
16
+ setStyle(style) {
17
+ if (this.faClass.indexOf("fas ") === -1 && this.faClass.indexOf("far ") === -1 && this.faClass.indexOf("fal ") === -1 && this.faClass.indexOf("fad ") === -1 && this.faClass.indexOf("fab ") === -1) {
18
+ switch (style) {
19
+ case "solid":
20
+ this.faClass = "fa-solid " + this.faClass;
21
+ break;
22
+ case "regular":
23
+ this.faClass = "fa-regular " + this.faClass;
24
+ break;
25
+ case "light":
26
+ this.faClass = "fa-light " + this.faClass;
27
+ break;
28
+ case "thin":
29
+ this.faClass = "fa-thin " + this.faClass;
30
+ break;
31
+ }
32
+ }
33
+ return this;
34
+ }
16
35
  }
17
36
  exports.FontAwesomeIcon = FontAwesomeIcon;
18
37
  class MaterialIcon {