@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.
@@ -134,6 +134,7 @@ interface CommunityCreatedPost {
134
134
  visibility: string;
135
135
  voteCount: number;
136
136
  commentCount: number;
137
+ customFields: Record<string, string>;
137
138
  topicName: string;
138
139
  topicSlug: string;
139
140
  authorName: string;
@@ -134,6 +134,7 @@ interface CommunityCreatedPost {
134
134
  visibility: string;
135
135
  voteCount: number;
136
136
  commentCount: number;
137
+ customFields: Record<string, string>;
137
138
  topicName: string;
138
139
  topicSlug: string;
139
140
  authorName: string;
@@ -42,6 +42,7 @@ interface CommunityCreatedPost {
42
42
  visibility: string;
43
43
  voteCount: number;
44
44
  commentCount: number;
45
+ customFields: Record<string, string>;
45
46
  topicName: string;
46
47
  topicSlug: string;
47
48
  authorName: string;
@@ -42,6 +42,7 @@ interface CommunityCreatedPost {
42
42
  visibility: string;
43
43
  voteCount: number;
44
44
  commentCount: number;
45
+ customFields: Record<string, string>;
45
46
  topicName: string;
46
47
  topicSlug: string;
47
48
  authorName: string;
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. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cstar.help/js",
3
- "version": "0.6.1",
3
+ "version": "0.6.5",
4
4
  "description": "Official TypeScript SDK for the cStar customer support platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",