arky-sdk 0.5.63 → 0.5.64
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/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +19 -2
- package/dist/types.d.ts +19 -2
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1452,6 +1452,15 @@ var createAgentApi = (apiConfig) => {
|
|
|
1452
1452
|
options
|
|
1453
1453
|
);
|
|
1454
1454
|
},
|
|
1455
|
+
async rateChat(params, options) {
|
|
1456
|
+
const body = { rating: params.rating };
|
|
1457
|
+
if (params.comment) body.comment = params.comment;
|
|
1458
|
+
return apiConfig.httpClient.post(
|
|
1459
|
+
`/v1/businesses/${apiConfig.businessId}/agents/${params.id}/chats/${params.chatId}/rate`,
|
|
1460
|
+
body,
|
|
1461
|
+
options
|
|
1462
|
+
);
|
|
1463
|
+
},
|
|
1455
1464
|
async getBusinessChats(params, options) {
|
|
1456
1465
|
const businessId = params.businessId || apiConfig.businessId;
|
|
1457
1466
|
const { businessId: _, ...queryParams } = params;
|