@@ -66,3 +66,47 @@ async def edit_heading(
66
66
return await self .chat_service .headings .edit_heading (
67
67
community_id , heading_name , new_heading_name , heading_type
68
68
)
69
+
70
+ async def rearrange_headings (
71
+ self : "swibots.ApiClient" ,
72
+ community_id : str ,
73
+ heading_names : List [str ],
74
+ subheading : str = ''
75
+ ):
76
+ """
77
+ Rearrange headings in a community
78
+
79
+ :param community_id: The ID of the community
80
+ :param heading_names: List of heading names in the desired order
81
+ :param subheading: Optional subheading name
82
+ """
83
+ return await self .chat_service .headings .rearrange_headings (
84
+ community_id , heading_names , subheading
85
+ )
86
+
87
+ async def move_heading_content (
88
+ self ,
89
+ community_id : str ,
90
+ heading_for : Literal ["GROUP" , "CHANNEL" , "STORE" , "WIDGET" ],
91
+ heading_type : Literal ["BLANK" , "VALUE" ],
92
+ type_id : str ,
93
+ updated_heading : str
94
+ ):
95
+ """
96
+ Move content from one heading to another
97
+
98
+ :param community_id: The ID of the community
99
+ :param heading_for: The type of content being moved
100
+ :param heading_type: The type of heading
101
+ :param type_id: The ID of the content being moved
102
+ :param updated_heading: The name of the heading to move content to
103
+ """
104
+ move_dto = {
105
+ "communityId" : community_id ,
106
+ "headingFor" : heading_for ,
107
+ "headingType" : heading_type ,
108
+ "typeId" : type_id ,
109
+ "updatedHeading" : updated_heading
110
+ }
111
+ request_dto = {"moveHeadingContentDto" : [move_dto ]}
112
+ return await self .chat_service .headings .move_heading_content (request_dto )
0 commit comments