@jambonz/time-series 0.2.11 → 0.2.13
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/index.js +9 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -17,7 +17,9 @@ const AlertType = {
|
|
|
17
17
|
SP_CALL_LIMIT: 'service-provider-call-limit',
|
|
18
18
|
SP_DEVICE_LIMIT: 'service-provider-device-limit',
|
|
19
19
|
SP_API_LIMIT: 'service-provider-api-limit',
|
|
20
|
-
ACCOUNT_INACTIVE: 'account is inactive or suspended'
|
|
20
|
+
ACCOUNT_INACTIVE: 'account is inactive or suspended',
|
|
21
|
+
PLAY_FILENOTFOUND: 'play-url-notfound',
|
|
22
|
+
TTS_STREAMING_CONNECTION_FAILURE: 'tts-streaming-connection-failure'
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
const schemas = {
|
|
@@ -669,6 +671,12 @@ const writeAlerts = async(client, alerts) => {
|
|
|
669
671
|
// eslint-disable-next-line max-len
|
|
670
672
|
message = `you have exceeded your service provider api limit of ${count}; please consider upgrading your plan`;
|
|
671
673
|
break;
|
|
674
|
+
case AlertType.PLAY_FILENOTFOUND:
|
|
675
|
+
message = `The file at ${url} was not found`;
|
|
676
|
+
break;
|
|
677
|
+
case AlertType.TTS_STREAMING_CONNECTION_FAILURE:
|
|
678
|
+
message = `Failed to connect to tts streaming service at ${vendor}`;
|
|
679
|
+
break;
|
|
672
680
|
default:
|
|
673
681
|
break;
|
|
674
682
|
}
|