@cstar.help/js 0.6.1 → 0.6.5
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/dist/chat/index.d.cts +1 -0
- package/dist/chat/index.d.ts +1 -0
- package/dist/community/index.d.cts +1 -0
- package/dist/community/index.d.ts +1 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/package.json +1 -1
package/dist/chat/index.d.cts
CHANGED
package/dist/chat/index.d.ts
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -846,6 +846,11 @@ interface CommunityAttachment {
|
|
|
846
846
|
size_bytes: number;
|
|
847
847
|
storage_path: string;
|
|
848
848
|
}
|
|
849
|
+
/** Custom field configuration entry for a topic. */
|
|
850
|
+
interface TopicFieldConfigEntry {
|
|
851
|
+
fieldId: string;
|
|
852
|
+
required: boolean;
|
|
853
|
+
}
|
|
849
854
|
/** A community discussion topic (category/board). */
|
|
850
855
|
interface CommunityTopic {
|
|
851
856
|
id: string;
|
|
@@ -855,6 +860,7 @@ interface CommunityTopic {
|
|
|
855
860
|
icon: string;
|
|
856
861
|
visibility: 'public' | 'members_only';
|
|
857
862
|
sortOrder: number;
|
|
863
|
+
customFieldConfig: TopicFieldConfigEntry[];
|
|
858
864
|
postCount: number;
|
|
859
865
|
createdAt: string;
|
|
860
866
|
}
|
|
@@ -874,6 +880,7 @@ interface CommunityPost {
|
|
|
874
880
|
isFeatured: boolean;
|
|
875
881
|
isLocked: boolean;
|
|
876
882
|
commentsEnabled: boolean;
|
|
883
|
+
customFields: Record<string, string>;
|
|
877
884
|
attachments: CommunityAttachment[];
|
|
878
885
|
authorName: string;
|
|
879
886
|
lastActivityAt: string;
|
|
@@ -906,6 +913,7 @@ interface CommunityPostCreateParams {
|
|
|
906
913
|
body?: string;
|
|
907
914
|
topicId: string;
|
|
908
915
|
visibility?: 'public' | 'members_only';
|
|
916
|
+
customFields?: Record<string, string>;
|
|
909
917
|
attachments?: CommunityAttachment[];
|
|
910
918
|
}
|
|
911
919
|
/** Parameters for updating a community post. */
|
|
@@ -919,6 +927,7 @@ interface CommunityPostUpdateParams {
|
|
|
919
927
|
isLocked?: boolean;
|
|
920
928
|
isHidden?: boolean;
|
|
921
929
|
commentsEnabled?: boolean;
|
|
930
|
+
customFields?: Record<string, string>;
|
|
922
931
|
attachments?: CommunityAttachment[];
|
|
923
932
|
}
|
|
924
933
|
/** Parameters for creating a comment on a community post. */
|
package/dist/index.d.ts
CHANGED
|
@@ -846,6 +846,11 @@ interface CommunityAttachment {
|
|
|
846
846
|
size_bytes: number;
|
|
847
847
|
storage_path: string;
|
|
848
848
|
}
|
|
849
|
+
/** Custom field configuration entry for a topic. */
|
|
850
|
+
interface TopicFieldConfigEntry {
|
|
851
|
+
fieldId: string;
|
|
852
|
+
required: boolean;
|
|
853
|
+
}
|
|
849
854
|
/** A community discussion topic (category/board). */
|
|
850
855
|
interface CommunityTopic {
|
|
851
856
|
id: string;
|
|
@@ -855,6 +860,7 @@ interface CommunityTopic {
|
|
|
855
860
|
icon: string;
|
|
856
861
|
visibility: 'public' | 'members_only';
|
|
857
862
|
sortOrder: number;
|
|
863
|
+
customFieldConfig: TopicFieldConfigEntry[];
|
|
858
864
|
postCount: number;
|
|
859
865
|
createdAt: string;
|
|
860
866
|
}
|
|
@@ -874,6 +880,7 @@ interface CommunityPost {
|
|
|
874
880
|
isFeatured: boolean;
|
|
875
881
|
isLocked: boolean;
|
|
876
882
|
commentsEnabled: boolean;
|
|
883
|
+
customFields: Record<string, string>;
|
|
877
884
|
attachments: CommunityAttachment[];
|
|
878
885
|
authorName: string;
|
|
879
886
|
lastActivityAt: string;
|
|
@@ -906,6 +913,7 @@ interface CommunityPostCreateParams {
|
|
|
906
913
|
body?: string;
|
|
907
914
|
topicId: string;
|
|
908
915
|
visibility?: 'public' | 'members_only';
|
|
916
|
+
customFields?: Record<string, string>;
|
|
909
917
|
attachments?: CommunityAttachment[];
|
|
910
918
|
}
|
|
911
919
|
/** Parameters for updating a community post. */
|
|
@@ -919,6 +927,7 @@ interface CommunityPostUpdateParams {
|
|
|
919
927
|
isLocked?: boolean;
|
|
920
928
|
isHidden?: boolean;
|
|
921
929
|
commentsEnabled?: boolean;
|
|
930
|
+
customFields?: Record<string, string>;
|
|
922
931
|
attachments?: CommunityAttachment[];
|
|
923
932
|
}
|
|
924
933
|
/** Parameters for creating a comment on a community post. */
|