@cstar.help/js 0.7.0 → 0.8.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.
@@ -548,7 +548,8 @@ var ChatCommunityApi = class {
548
548
  action: "createPost",
549
549
  title: params.title,
550
550
  body: params.body,
551
- topicId: params.topicId
551
+ topicId: params.topicId,
552
+ customFields: params.customFields
552
553
  }
553
554
  });
554
555
  return response.data.post;
@@ -112,6 +112,8 @@ interface CommunityCreatePostParams {
112
112
  body?: string;
113
113
  /** Topic UUID to post in. */
114
114
  topicId: string;
115
+ /** Custom field values keyed by field definition ID. */
116
+ customFields?: Record<string, string>;
115
117
  /** Image attachments (max 10, images only, 5MB each). */
116
118
  attachments?: CommunityAttachment[];
117
119
  }
@@ -112,6 +112,8 @@ interface CommunityCreatePostParams {
112
112
  body?: string;
113
113
  /** Topic UUID to post in. */
114
114
  topicId: string;
115
+ /** Custom field values keyed by field definition ID. */
116
+ customFields?: Record<string, string>;
115
117
  /** Image attachments (max 10, images only, 5MB each). */
116
118
  attachments?: CommunityAttachment[];
117
119
  }
@@ -512,7 +512,8 @@ var ChatCommunityApi = class {
512
512
  action: "createPost",
513
513
  title: params.title,
514
514
  body: params.body,
515
- topicId: params.topicId
515
+ topicId: params.topicId,
516
+ customFields: params.customFields
516
517
  }
517
518
  });
518
519
  return response.data.post;
@@ -102,7 +102,8 @@ var CommunityClient = class {
102
102
  action: "createPost",
103
103
  title: params.title,
104
104
  body: params.body,
105
- topicId: params.topicId
105
+ topicId: params.topicId,
106
+ customFields: params.customFields
106
107
  }
107
108
  });
108
109
  return response.data.post;
@@ -20,6 +20,8 @@ interface CommunityCreatePostParams {
20
20
  body?: string;
21
21
  /** Topic UUID to post in. */
22
22
  topicId: string;
23
+ /** Custom field values keyed by field definition ID. */
24
+ customFields?: Record<string, string>;
23
25
  /** Image attachments (max 10, images only, 5MB each). */
24
26
  attachments?: CommunityAttachment[];
25
27
  }
@@ -92,6 +94,7 @@ interface CommunityTopic {
92
94
  icon: string;
93
95
  visibility: 'public' | 'members_only';
94
96
  sort_order: number;
97
+ postCount: number;
95
98
  customFields: TopicCustomField[];
96
99
  }
97
100
  /** A public community post. */
@@ -20,6 +20,8 @@ interface CommunityCreatePostParams {
20
20
  body?: string;
21
21
  /** Topic UUID to post in. */
22
22
  topicId: string;
23
+ /** Custom field values keyed by field definition ID. */
24
+ customFields?: Record<string, string>;
23
25
  /** Image attachments (max 10, images only, 5MB each). */
24
26
  attachments?: CommunityAttachment[];
25
27
  }
@@ -92,6 +94,7 @@ interface CommunityTopic {
92
94
  icon: string;
93
95
  visibility: 'public' | 'members_only';
94
96
  sort_order: number;
97
+ postCount: number;
95
98
  customFields: TopicCustomField[];
96
99
  }
97
100
  /** A public community post. */
@@ -78,7 +78,8 @@ var CommunityClient = class {
78
78
  action: "createPost",
79
79
  title: params.title,
80
80
  body: params.body,
81
- topicId: params.topicId
81
+ topicId: params.topicId,
82
+ customFields: params.customFields
82
83
  }
83
84
  });
84
85
  return response.data.post;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cstar.help/js",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Official TypeScript SDK for the cStar customer support platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",