crisp-api 10.10.3 → 10.10.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.
@@ -759,7 +759,8 @@ class WebsiteConversation extends BaseResource {
759
759
  * Get Messages In Conversation
760
760
  */
761
761
  getMessagesInConversation(
762
- websiteID: string, sessionID: string, timestampBefore?: string|number
762
+ websiteID: string, sessionID: string, timestampBefore?: string|number,
763
+ timestampAfter?: string|number, timestampAround?: string|number
763
764
  ): Promise<ConversationMessage[]> {
764
765
  // Generate query
765
766
  let query = {};
@@ -769,6 +770,16 @@ class WebsiteConversation extends BaseResource {
769
770
  query.timestamp_before = String(timestampBefore);
770
771
  }
771
772
 
773
+ if (timestampAfter) {
774
+ // @ts-ignore
775
+ query.timestamp_after = String(timestampAfter);
776
+ }
777
+
778
+ if (timestampAround) {
779
+ // @ts-ignore
780
+ query.timestamp_around = String(timestampAround);
781
+ }
782
+
772
783
  return this.crisp.get(
773
784
  this.crisp.prepareRestUrl([
774
785
  "website", websiteID, "conversation", sessionID, "messages"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "crisp-api",
3
3
  "description": "Crisp API wrapper for Node - official, maintained by Crisp",
4
- "version": "10.10.3",
4
+ "version": "10.10.5",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {