@jambonz/time-series 0.2.13 → 0.2.16
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/.github/workflows/ci.yml +3 -3
- package/.github/workflows/publish.yml +3 -3
- package/index.js +9 -5
- package/package.json +2 -2
package/.github/workflows/ci.yml
CHANGED
|
@@ -8,10 +8,10 @@ jobs:
|
|
|
8
8
|
build:
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
|
-
- uses: actions/checkout@
|
|
12
|
-
- uses: actions/setup-node@
|
|
11
|
+
- uses: actions/checkout@v3
|
|
12
|
+
- uses: actions/setup-node@v3
|
|
13
13
|
with:
|
|
14
|
-
node-version:
|
|
14
|
+
node-version: 22
|
|
15
15
|
- name: Install Docker Compose
|
|
16
16
|
run: |
|
|
17
17
|
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
|
@@ -12,10 +12,10 @@ jobs:
|
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
|
|
14
14
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
16
|
-
- uses: actions/setup-node@
|
|
15
|
+
- uses: actions/checkout@v3
|
|
16
|
+
- uses: actions/setup-node@v3
|
|
17
17
|
with:
|
|
18
|
-
node-version: '
|
|
18
|
+
node-version: '22.x'
|
|
19
19
|
registry-url: 'https://registry.npmjs.org'
|
|
20
20
|
- run: npm install
|
|
21
21
|
- run: npm publish --access public
|
package/index.js
CHANGED
|
@@ -19,7 +19,8 @@ const AlertType = {
|
|
|
19
19
|
SP_API_LIMIT: 'service-provider-api-limit',
|
|
20
20
|
ACCOUNT_INACTIVE: 'account is inactive or suspended',
|
|
21
21
|
PLAY_FILENOTFOUND: 'play-url-notfound',
|
|
22
|
-
TTS_STREAMING_CONNECTION_FAILURE: 'tts-streaming-connection-failure'
|
|
22
|
+
TTS_STREAMING_CONNECTION_FAILURE: 'tts-streaming-connection-failure',
|
|
23
|
+
APPLICATION: 'alert-from-application'
|
|
23
24
|
};
|
|
24
25
|
|
|
25
26
|
const schemas = {
|
|
@@ -610,6 +611,7 @@ const writeAlerts = async(client, alerts) => {
|
|
|
610
611
|
url,
|
|
611
612
|
status,
|
|
612
613
|
vendor,
|
|
614
|
+
label,
|
|
613
615
|
count,
|
|
614
616
|
detail,
|
|
615
617
|
timestamp
|
|
@@ -633,16 +635,18 @@ const writeAlerts = async(client, alerts) => {
|
|
|
633
635
|
message = `${url} return invalid app payload`;
|
|
634
636
|
break;
|
|
635
637
|
case AlertType.TTS_NOT_PROVISIONED:
|
|
636
|
-
message = `text to speech credentials for ${vendor} have not been provisioned`;
|
|
638
|
+
message = `text to speech credentials for ${vendor} (label: ${label || 'none'}) have not been provisioned`;
|
|
637
639
|
break;
|
|
638
640
|
case AlertType.STT_NOT_PROVISIONED:
|
|
639
|
-
message = `speech to text credentials for ${vendor} have not been provisioned`;
|
|
641
|
+
message = `speech to text credentials for ${vendor} (label: ${label || 'none'}) have not been provisioned`;
|
|
640
642
|
break;
|
|
641
643
|
case AlertType.TTS_FAILURE:
|
|
642
|
-
|
|
644
|
+
// eslint-disable-next-line max-len
|
|
645
|
+
message = `text to speech request to ${vendor} (label: ${label || 'none'}) failed; please check your speech credentials`;
|
|
643
646
|
break;
|
|
644
647
|
case AlertType.STT_FAILURE:
|
|
645
|
-
|
|
648
|
+
// eslint-disable-next-line max-len
|
|
649
|
+
message = `speech to text request to ${vendor} (label: ${label || 'none'}) failed; please check your speech credentials`;
|
|
646
650
|
break;
|
|
647
651
|
case AlertType.CARRIER_NOT_PROVISIONED:
|
|
648
652
|
message = 'outbound call failure: no carriers have been provisioned';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jambonz/time-series",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "write and query data to time series daetabase",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"eslint": "^7.23.0",
|
|
19
19
|
"eslint-plugin-promise": "^4.3.1",
|
|
20
20
|
"nyc": "^15.1.0",
|
|
21
|
-
"tape": "^5.
|
|
21
|
+
"tape": "^5.7.5"
|
|
22
22
|
}
|
|
23
23
|
}
|