crisp-api 10.9.0 → 10.9.2

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/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v10.9.2
5
+
6
+ ### Changes
7
+
8
+ * Fixed return type for `CrispClient.website.getConversationParticipants` method.
9
+
10
+ ## v10.9.1
11
+
12
+ ### Changes
13
+
14
+ * Added `price` property on the `PluginConnectWebsite` type.
15
+
4
16
  ## v10.9.0
5
17
 
6
18
  ### Changes
package/EXAMPLES.md CHANGED
@@ -2033,6 +2033,8 @@ var inbox = {
2033
2033
  "e5cd7aa6-998f-4b8e-b7c5-3b546af87d15"
2034
2034
  ],
2035
2035
 
2036
+ "operator": "and",
2037
+
2036
2038
  "conditions": [
2037
2039
  {
2038
2040
  "model": "session",
@@ -2083,6 +2085,8 @@ var inbox = {
2083
2085
  "e5cd7aa6-998f-4b8e-b7c5-3b546af87d15"
2084
2086
  ],
2085
2087
 
2088
+ "operator": "and",
2089
+
2086
2090
  "conditions": [
2087
2091
  {
2088
2092
  "model": "session",
package/README.md CHANGED
@@ -2910,6 +2910,8 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
2910
2910
  "e5cd7aa6-998f-4b8e-b7c5-3b546af87d15"
2911
2911
  ],
2912
2912
 
2913
+ "operator": "and",
2914
+
2913
2915
  "conditions": [
2914
2916
  {
2915
2917
  "model": "session",
@@ -2972,6 +2974,8 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
2972
2974
  "e5cd7aa6-998f-4b8e-b7c5-3b546af87d15"
2973
2975
  ],
2974
2976
 
2977
+ "operator": "and",
2978
+
2975
2979
  "conditions": [
2976
2980
  {
2977
2981
  "model": "session",
package/dist/crisp.js CHANGED
@@ -46,7 +46,7 @@ const AVAILABLE_RTM_MODES = [
46
46
  "websockets",
47
47
  "webhooks"
48
48
  ];
49
- const VERSION = "10.9.0";
49
+ const VERSION = "10.9.2";
50
50
  // Base configuration
51
51
  const DEFAULT_REQUEST_TIMEOUT = 10000;
52
52
  const DEFAULT_SOCKET_TIMEOUT = 10000;
@@ -10,6 +10,7 @@ export type PluginConnectAccount = {
10
10
  };
11
11
  export type PluginConnectWebsite = {
12
12
  website_id?: string;
13
+ price?: number;
13
14
  token?: string;
14
15
  settings?: object;
15
16
  plan?: PluginConnectWebsitePlan;
@@ -595,7 +595,7 @@ declare class WebsiteConversation extends BaseResource {
595
595
  /**
596
596
  * Get Conversation Participants
597
597
  */
598
- getConversationParticipants(websiteID: string, sessionID: string): Promise<ConversationParticipant[]>;
598
+ getConversationParticipants(websiteID: string, sessionID: string): Promise<ConversationParticipants>;
599
599
  /**
600
600
  * Save Conversation Participants
601
601
  */
@@ -12,6 +12,7 @@ export type WebsiteInbox = {
12
12
  order?: number;
13
13
  operators?: string[];
14
14
  conditions?: WebsiteInboxCondition[];
15
+ operator?: string;
15
16
  created_at?: number;
16
17
  updated_at?: number;
17
18
  };
@@ -22,6 +22,7 @@ export type PluginConnectAccount = {
22
22
 
23
23
  export type PluginConnectWebsite = {
24
24
  website_id?: string;
25
+ price?: number;
25
26
  token?: string;
26
27
  settings?: object;
27
28
  plan?: PluginConnectWebsitePlan;
@@ -1100,7 +1100,7 @@ class WebsiteConversation extends BaseResource {
1100
1100
  */
1101
1101
  getConversationParticipants(
1102
1102
  websiteID: string, sessionID: string
1103
- ): Promise<ConversationParticipant[]> {
1103
+ ): Promise<ConversationParticipants> {
1104
1104
  return this.crisp.get(
1105
1105
  this.crisp.prepareRestUrl([
1106
1106
  "website", websiteID, "conversation", sessionID, "participants"
@@ -23,6 +23,7 @@ export type WebsiteInbox = {
23
23
  order?: number;
24
24
  operators?: string[];
25
25
  conditions?: WebsiteInboxCondition[];
26
+ operator?: string;
26
27
  created_at?: number;
27
28
  updated_at?: number;
28
29
  }
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.9.0",
4
+ "version": "10.9.2",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {