@tiledesk/tiledesk-whatsapp-connector 0.1.62 → 0.1.63

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-whatsapp-connector",
3
- "version": "0.1.62",
3
+ "version": "0.1.63",
4
4
  "description": "Tiledesk Whatsapp connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -65,8 +65,8 @@
65
65
  {{else}}
66
66
  <p style="font-size: 15px; color: #676767; font-style: italic; margin-bottom: 0px; margin-top: 20px;">Free for</p>
67
67
  <div class="plans-div">
68
- <div class="plan scale-plan">Scale Plan</div>
69
- <div class="plan plus-plan">Plus Plan</div>
68
+ <div class="plan scale-plan">Premium Plan</div>
69
+ <div class="plan plus-plan">Custom Plan</div>
70
70
  </div>
71
71
  {{/if}}
72
72
  </div>
@@ -214,6 +214,13 @@
214
214
 
215
215
  <p style="font-size: 18px;"><b>What's new?</b></p>
216
216
 
217
+ <div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between; margin-bottom: 15px;">
218
+ <div>
219
+ <p>Plans upgrade</p>
220
+ </div>
221
+ <p style="font-size: 12px; color: #676767; margin-bottom: 0px;">Version <b>0.1.63</b></p>
222
+ </div>
223
+
217
224
  <div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between; margin-bottom: 15px;">
218
225
  <div>
219
226
  <p>Fixed bug: custom authentication error</p>
@@ -251,17 +251,17 @@ class TiledeskChannel {
251
251
 
252
252
  return new Promise((resolve, reject) => {
253
253
  if (
254
- (profile_name === 'Growth') ||
255
- (profile_name === 'Scale' && isActiveSubscription === false) ||
256
- (profile_name === 'Plus' && isActiveSubscription === false) ||
254
+ ((profile_name === 'Growth' || profile_name === 'Basic')) ||
255
+ ((profile_name === 'Scale' || profile_name === 'Premium') && isActiveSubscription === false) ||
256
+ ((profile_name === 'Plus' || profile_name === 'Custom') && isActiveSubscription === false) ||
257
257
  (profile_type === 'free' && trialExpired === true)
258
258
  ) {
259
259
  winston.verbose('Feature not available')
260
260
  resolve(false);
261
261
 
262
262
  } else if (
263
- (profile_name === 'Scale' && isActiveSubscription === true) ||
264
- (profile_name === 'Plus' && isActiveSubscription === true) ||
263
+ ((profile_name === 'Scale' || profile_name === 'Premium') && isActiveSubscription === true) ||
264
+ ((profile_name === 'Plus' || profile_name === 'Custom') && isActiveSubscription === true) ||
265
265
  (profile_type === 'free' && trialExpired === false)
266
266
  ) {
267
267
  winston.verbose('Feature available')
@@ -261,6 +261,7 @@ const path = require('path');
261
261
  }
262
262
  else if (tiledeskChannelMessage.attributes.attachment.template) {
263
263
  winston.debug("(wab) [Translator] template: ", tiledeskChannelMessage.attributes.attachment.template)
264
+ console.log("(wab) [Translator] template: ", tiledeskChannelMessage.attributes.attachment.template)
264
265
 
265
266
  let template = tiledeskChannelMessage.attributes.attachment.template;
266
267