@webex/calling 3.13.0-next.8 → 3.13.0-next.9
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/CallHistory/CallHistory.js +1 -1
- package/dist/CallHistory/CallHistory.js.map +1 -1
- package/dist/CallHistory/CallHistory.test.js +2 -1
- package/dist/CallHistory/CallHistory.test.js.map +1 -1
- package/dist/Voicemail/Voicemail.js +10 -10
- package/dist/Voicemail/Voicemail.js.map +1 -1
- package/dist/Voicemail/Voicemail.test.js +40 -20
- package/dist/Voicemail/Voicemail.test.js.map +1 -1
- package/dist/common/Utils.js +2 -2
- package/dist/common/Utils.js.map +1 -1
- package/dist/common/Utils.test.js +26 -0
- package/dist/common/Utils.test.js.map +1 -1
- package/dist/module/CallHistory/CallHistory.js +1 -1
- package/dist/module/Voicemail/Voicemail.js +10 -10
- package/package.json +1 -1
|
@@ -127,7 +127,7 @@ export class CallHistory extends Eventing {
|
|
|
127
127
|
const requestBody = {
|
|
128
128
|
endTimeSessionIds: santizedSessionIds,
|
|
129
129
|
};
|
|
130
|
-
log.info(`${METHOD_START_MESSAGE} with sessions: ${
|
|
130
|
+
log.info(`${METHOD_START_MESSAGE} with sessions count: ${santizedSessionIds.length}`, loggerContext);
|
|
131
131
|
try {
|
|
132
132
|
const updateMissedCallContentUrl = `${this.janusUrl}/${HISTORY}/${USER_SESSIONS}/${UPDATE_MISSED_CALLS_ENDPOINT}`;
|
|
133
133
|
const response = await fetch(updateMissedCallContentUrl, {
|
|
@@ -102,10 +102,10 @@ export class Voicemail extends Eventing {
|
|
|
102
102
|
file: VOICEMAIL_FILE,
|
|
103
103
|
method: METHODS.GET_VOICEMAIL_CONTENT,
|
|
104
104
|
};
|
|
105
|
-
log.info(`${METHOD_START_MESSAGE} with: messageId
|
|
105
|
+
log.info(`${METHOD_START_MESSAGE} with: messageId=[REDACTED]`, loggerContext);
|
|
106
106
|
const response = await this.backendConnector.getVoicemailContent(messageId);
|
|
107
107
|
this.submitMetric(response, VOICEMAIL_ACTION.GET_VOICEMAIL_CONTENT, messageId);
|
|
108
|
-
log.log(`Successfully retrieved voicemail content for messageId
|
|
108
|
+
log.log(`Successfully retrieved voicemail content for messageId=[REDACTED], statusCode=${response.statusCode}`, loggerContext);
|
|
109
109
|
return response;
|
|
110
110
|
}
|
|
111
111
|
async getVoicemailSummary() {
|
|
@@ -126,10 +126,10 @@ export class Voicemail extends Eventing {
|
|
|
126
126
|
file: VOICEMAIL_FILE,
|
|
127
127
|
method: METHODS.VOICEMAIL_MARK_AS_READ,
|
|
128
128
|
};
|
|
129
|
-
log.info(`${METHOD_START_MESSAGE} with: messageId
|
|
129
|
+
log.info(`${METHOD_START_MESSAGE} with: messageId=[REDACTED]`, loggerContext);
|
|
130
130
|
const response = await this.backendConnector.voicemailMarkAsRead(messageId);
|
|
131
131
|
this.submitMetric(response, VOICEMAIL_ACTION.MARK_READ, messageId);
|
|
132
|
-
log.log(`Successfully marked voicemail as read: messageId
|
|
132
|
+
log.log(`Successfully marked voicemail as read: messageId=[REDACTED], statusCode=${response.statusCode}`, loggerContext);
|
|
133
133
|
return response;
|
|
134
134
|
}
|
|
135
135
|
async voicemailMarkAsUnread(messageId) {
|
|
@@ -137,10 +137,10 @@ export class Voicemail extends Eventing {
|
|
|
137
137
|
file: VOICEMAIL_FILE,
|
|
138
138
|
method: METHODS.VOICEMAIL_MARK_AS_UNREAD,
|
|
139
139
|
};
|
|
140
|
-
log.info(`${METHOD_START_MESSAGE} with: messageId
|
|
140
|
+
log.info(`${METHOD_START_MESSAGE} with: messageId=[REDACTED]`, loggerContext);
|
|
141
141
|
const response = await this.backendConnector.voicemailMarkAsUnread(messageId);
|
|
142
142
|
this.submitMetric(response, VOICEMAIL_ACTION.MARK_UNREAD, messageId);
|
|
143
|
-
log.log(`Successfully marked voicemail as unread: messageId
|
|
143
|
+
log.log(`Successfully marked voicemail as unread: messageId=[REDACTED], statusCode=${response.statusCode}`, loggerContext);
|
|
144
144
|
return response;
|
|
145
145
|
}
|
|
146
146
|
async deleteVoicemail(messageId) {
|
|
@@ -148,10 +148,10 @@ export class Voicemail extends Eventing {
|
|
|
148
148
|
file: VOICEMAIL_FILE,
|
|
149
149
|
method: METHODS.DELETE_VOICEMAIL,
|
|
150
150
|
};
|
|
151
|
-
log.info(`${METHOD_START_MESSAGE} with: messageId
|
|
151
|
+
log.info(`${METHOD_START_MESSAGE} with: messageId=[REDACTED]`, loggerContext);
|
|
152
152
|
const response = await this.backendConnector.deleteVoicemail(messageId);
|
|
153
153
|
this.submitMetric(response, VOICEMAIL_ACTION.DELETE, messageId);
|
|
154
|
-
log.log(`Successfully deleted voicemail: messageId
|
|
154
|
+
log.log(`Successfully deleted voicemail: messageId=[REDACTED], statusCode=${response.statusCode}`, loggerContext);
|
|
155
155
|
return response;
|
|
156
156
|
}
|
|
157
157
|
async getVMTranscript(messageId) {
|
|
@@ -159,11 +159,11 @@ export class Voicemail extends Eventing {
|
|
|
159
159
|
file: VOICEMAIL_FILE,
|
|
160
160
|
method: METHODS.GET_VM_TRANSCRIPT,
|
|
161
161
|
};
|
|
162
|
-
log.info(`${METHOD_START_MESSAGE} with: messageId
|
|
162
|
+
log.info(`${METHOD_START_MESSAGE} with: messageId=[REDACTED]`, loggerContext);
|
|
163
163
|
const response = await this.backendConnector.getVMTranscript(messageId);
|
|
164
164
|
if (response !== null) {
|
|
165
165
|
this.submitMetric(response, VOICEMAIL_ACTION.TRANSCRIPT, messageId);
|
|
166
|
-
log.log(`Successfully retrieved voicemail transcript: messageId
|
|
166
|
+
log.log(`Successfully retrieved voicemail transcript: messageId=[REDACTED], statusCode=${response.statusCode}`, loggerContext);
|
|
167
167
|
}
|
|
168
168
|
return response;
|
|
169
169
|
}
|
package/package.json
CHANGED