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 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;