@cstar.help/js
Advanced tools
@@ -74,2 +74,14 @@ /** Attachment metadata for community posts and comments (images only, max 5MB each). */ | ||
| } | ||
| /** Resolved custom field definition for a topic. */ | ||
| interface TopicCustomField { | ||
| id: string; | ||
| label: string; | ||
| type: 'text' | 'number' | 'date' | 'select' | 'checkbox' | 'url'; | ||
| required: boolean; | ||
| options?: Array<{ | ||
| value: string; | ||
| label: string; | ||
| }>; | ||
| defaultValue?: string; | ||
| } | ||
| /** A discussion topic/category in the community. */ | ||
@@ -84,2 +96,3 @@ interface CommunityTopic { | ||
| sort_order: number; | ||
| customFields: TopicCustomField[]; | ||
| } | ||
@@ -100,2 +113,3 @@ /** A public community post. */ | ||
| commentsEnabled: boolean; | ||
| customFields: Record<string, string>; | ||
| topicName: string; | ||
@@ -102,0 +116,0 @@ topicSlug: string; |
@@ -74,2 +74,14 @@ /** Attachment metadata for community posts and comments (images only, max 5MB each). */ | ||
| } | ||
| /** Resolved custom field definition for a topic. */ | ||
| interface TopicCustomField { | ||
| id: string; | ||
| label: string; | ||
| type: 'text' | 'number' | 'date' | 'select' | 'checkbox' | 'url'; | ||
| required: boolean; | ||
| options?: Array<{ | ||
| value: string; | ||
| label: string; | ||
| }>; | ||
| defaultValue?: string; | ||
| } | ||
| /** A discussion topic/category in the community. */ | ||
@@ -84,2 +96,3 @@ interface CommunityTopic { | ||
| sort_order: number; | ||
| customFields: TopicCustomField[]; | ||
| } | ||
@@ -100,2 +113,3 @@ /** A public community post. */ | ||
| commentsEnabled: boolean; | ||
| customFields: Record<string, string>; | ||
| topicName: string; | ||
@@ -102,0 +116,0 @@ topicSlug: string; |
+1
-1
| { | ||
| "name": "@cstar.help/js", | ||
| "version": "0.6.5", | ||
| "version": "0.7.0", | ||
| "description": "Official TypeScript SDK for the cStar customer support platform", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
477505
0.25%10388
0.2%