@app-connect/core 1.7.0 → 1.7.1

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/handlers/admin.js CHANGED
@@ -312,16 +312,21 @@ async function getUserMapping({ user, hashedRcAccountId, rcExtensionList }) {
312
312
  ...u,
313
313
  rcExtensionId: [u.rcExtensionId]
314
314
  }));
315
+ await upsertAdminSettings({
316
+ hashedRcAccountId,
317
+ adminSettings: {
318
+ userMappings: [...adminConfig.userMappings, ...newUserMappings]
319
+ }
320
+ });
315
321
  }
316
322
  else {
317
- adminConfig.userMappings = [];
323
+ await upsertAdminSettings({
324
+ hashedRcAccountId,
325
+ adminSettings: {
326
+ userMappings: [...newUserMappings]
327
+ }
328
+ });
318
329
  }
319
- await upsertAdminSettings({
320
- hashedRcAccountId,
321
- adminSettings: {
322
- userMappings: [...adminConfig.userMappings, ...newUserMappings]
323
- }
324
- });
325
330
  }
326
331
  return userMappingResult;
327
332
  }
package/handlers/log.js CHANGED
@@ -84,7 +84,7 @@ async function createCallLog({ platform, userId, incomingData, hashedAccountId,
84
84
  };
85
85
 
86
86
  // Compose call log details centrally
87
- const logFormat = platformModule.platformModule ? platformModule.getLogFormatType(platform) : LOG_DETAILS_FORMAT_TYPE.PLAIN_TEXT;
87
+ const logFormat = platformModule.getLogFormatType ? platformModule.getLogFormatType(platform) : LOG_DETAILS_FORMAT_TYPE.PLAIN_TEXT;
88
88
  let composedLogDetails = '';
89
89
  if (logFormat === LOG_DETAILS_FORMAT_TYPE.PLAIN_TEXT || logFormat === LOG_DETAILS_FORMAT_TYPE.HTML || logFormat === LOG_DETAILS_FORMAT_TYPE.MARKDOWN) {
90
90
  composedLogDetails = await composeCallLog({
@@ -324,7 +324,7 @@ async function updateCallLog({ platform, userId, incomingData, hashedAccountId,
324
324
 
325
325
  // Fetch existing call log details once to avoid duplicate API calls
326
326
  let existingCallLogDetails = null; // Compose updated call log details centrally
327
- const logFormat = platformModule.platformModule ? platformModule.getLogFormatType(platform) : LOG_DETAILS_FORMAT_TYPE.PLAIN_TEXT;
327
+ const logFormat = platformModule.getLogFormatType ? platformModule.getLogFormatType(platform) : LOG_DETAILS_FORMAT_TYPE.PLAIN_TEXT;
328
328
  let composedLogDetails = '';
329
329
  if (logFormat === LOG_DETAILS_FORMAT_TYPE.PLAIN_TEXT || logFormat === LOG_DETAILS_FORMAT_TYPE.HTML || logFormat === LOG_DETAILS_FORMAT_TYPE.MARKDOWN) {
330
330
  let existingBody = '';
package/lib/analytics.js CHANGED
@@ -33,7 +33,7 @@ exports.track = function track({ eventName, interfaceName, connectorName, accoun
33
33
  mixpanel.track(eventName, {
34
34
  distinct_id: extensionId,
35
35
  interfaceName,
36
- connectorName,
36
+ adapterName: connectorName,
37
37
  rcAccountId: accountId,
38
38
  extensionId,
39
39
  success,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-connect/core",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "RingCentral App Connect Core",
5
5
  "main": "index.js",
6
6
  "repository": {
package/releaseNotes.json CHANGED
@@ -1,4 +1,28 @@
1
1
  {
2
+ "1.7.1": {
3
+ "global": [
4
+ {
5
+ "type": "Better",
6
+ "description": "Click-to-SMS now adds recipients so you can easily add multiple recipients"
7
+ },
8
+ {
9
+ "type": "New",
10
+ "description": "Auto log setting for voicemail"
11
+ }
12
+ ]
13
+ },
14
+ "1.6.10": {
15
+ "global": [
16
+ {
17
+ "type": "Better",
18
+ "description": "Click-to-SMS now adds recipients so you can easily add multiple recipients"
19
+ },
20
+ {
21
+ "type": "New",
22
+ "description": "Auto log setting for voicemail"
23
+ }
24
+ ]
25
+ },
2
26
  "1.6.9": {
3
27
  "global": [
4
28
  {