@apolitical/component-library 8.9.1-re.1 → 8.9.1-re.3

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.
@@ -9,6 +9,7 @@ interface IPrepareActivityArgs {
9
9
  content?: string;
10
10
  categories?: string;
11
11
  locale?: string;
12
+ is_anonymous?: boolean;
12
13
  }
13
14
  interface IPreparePollActivityArgs {
14
15
  title?: string;
@@ -51,7 +52,7 @@ interface IDecrementActivityLikesArgs {
51
52
  activity: IActivity;
52
53
  user?: IUserContext;
53
54
  }
54
- export declare function prepareActivity({ title, content, categories, locale, }: IPrepareActivityArgs): {
55
+ export declare function prepareActivity({ title, content, categories, locale, is_anonymous, }: IPrepareActivityArgs): {
55
56
  title: string | undefined;
56
57
  content: string | undefined;
57
58
  payload: {
@@ -68,6 +69,7 @@ export declare function prepareActivity({ title, content, categories, locale, }:
68
69
  id: string;
69
70
  time: string;
70
71
  verb: ActivityType;
72
+ is_anonymous: boolean | undefined;
71
73
  };
72
74
  export declare function preparePollActivity({ title, options, settings, user, correctActivityId, }: IPreparePollActivityArgs): {
73
75
  title: string | undefined;
@@ -42,9 +42,9 @@ export interface IFullDiscussionContent extends IDiscussionContent {
42
42
  body?: string;
43
43
  /** The author of the post */
44
44
  author: MemberProps;
45
- /** The ID of the unanonymized post author, for identifying the original author when the post is anonymous
45
+ /** The ID of the deanonymised post author, for identifying the original author when the post is anonymous
46
46
  and the user is the author of the post */
47
- unanonymizedAuthorId?: string;
47
+ deanonymisedAuthorId?: string;
48
48
  /** The post categories */
49
49
  categories?: ICategory[];
50
50
  createdAt: Date | string;