fansunited-management-components 1.35.0 → 1.36.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-management-components",
3
- "version": "1.35.0",
3
+ "version": "1.36.0",
4
4
  "main": "index.es.js",
5
5
  "author": "Fans United",
6
6
  "description": "",
@@ -4,6 +4,7 @@ type ItemsPerPageFilterProps = {
4
4
  labels: any;
5
5
  value: number;
6
6
  options: number[];
7
+ size?: 'sm' | 'md' | 'lg';
7
8
  onChange: (_: any, value: number | null) => void;
8
9
  };
9
10
  declare const ItemsPerPageFilter: React.FC<ItemsPerPageFilterProps>;
@@ -0,0 +1,12 @@
1
+ import { default as ContextModel } from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
2
+
3
+ export default class DiscussionRequestBody {
4
+ id: string;
5
+ label: string;
6
+ discussion_type: string;
7
+ moderation_type: string;
8
+ discussion_url: string;
9
+ status: string;
10
+ custom_fields: Object;
11
+ context: ContextModel | null;
12
+ }
@@ -11,6 +11,7 @@ import { default as EitherOrRequestBody } from '../../models/minigames/eitherors
11
11
  import { default as BracketGameRequestBody } from '../../models/games/bracket/BracketGameRequestBody';
12
12
  import { default as StandingGameRequestBody } from '../../models/games/standing/StandingGameRequestBody';
13
13
  import { FeatureType } from '../../types/types';
14
+ import { default as DiscussionRequestBody } from '../../models/discussions/DiscussionRequestBody';
14
15
 
15
16
  export default class HttpsService extends Https {
16
17
  private loyaltyBaseUrl;
@@ -73,4 +74,12 @@ export default class HttpsService extends Https {
73
74
  unbanUser: (userId: string, reason: string) => Promise<Response>;
74
75
  updateUser: (userId: string, action: "verify" | "staff_member_status", value: boolean) => Promise<Response>;
75
76
  deleteUserProfile: (userId: string) => Promise<Response>;
77
+ createDiscussion: (requestBody: DiscussionRequestBody) => Promise<Response>;
78
+ deleteDiscussion: (discussionId: string) => Promise<Response>;
79
+ moderatePosts: (discussionId: string | undefined, postIds: string[] | undefined, reason: string) => Promise<Response>;
80
+ pinDiscussionPosts: (discussionId: string, postIds: string[]) => Promise<Response>;
81
+ unpinDiscussionPosts: (discussionId: string, postIds: string[]) => Promise<Response>;
82
+ getPostsByStaffMember: (queryParams: Record<string, any>) => Promise<Response>;
83
+ getReportedPosts: (queryParams: Record<string, any>) => Promise<Response>;
84
+ updateDiscussionsFeature: (requestBody: any) => Promise<Response>;
76
85
  }