@fonoster/autopilot 0.4.15 → 0.4.17

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/envs.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare const APISERVER_AUTOPILOT_PORT: number;
2
+ export declare const APISERVER_AUTOPILOT_DEFAULT_LANGUAGE_CODE: string;
package/dist/envs.js ADDED
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.APISERVER_AUTOPILOT_DEFAULT_LANGUAGE_CODE = exports.APISERVER_AUTOPILOT_PORT = void 0;
4
+ /*
5
+ * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
6
+ * http://github.com/fonoster/fonoster
7
+ *
8
+ * This file is part of Fonoster
9
+ *
10
+ * Licensed under the MIT License (the "License");
11
+ * you may not use this file except in compliance with
12
+ * the License. You may obtain a copy of the License at
13
+ *
14
+ * https://opensource.org/licenses/MIT
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
22
+ exports.APISERVER_AUTOPILOT_PORT = process.env.APISERVER_AUTOPILOT_PORT
23
+ ? parseInt(process.env.APISERVER_AUTOPILOT_PORT)
24
+ : 6445;
25
+ exports.APISERVER_AUTOPILOT_DEFAULT_LANGUAGE_CODE = process.env.APISERVER_AUTOPILOT_DEFAULT_LANGUAGE_CODE || "en-US";
package/dist/index.js CHANGED
@@ -21,9 +21,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
21
21
  * See the License for the specific language governing permissions and
22
22
  * limitations under the License.
23
23
  */
24
+ const envs_1 = require("./envs");
24
25
  const pilot_1 = __importDefault(require("./pilot"));
25
26
  (0, pilot_1.default)({
26
- defaultLanguageCode: "en-US",
27
- eventsServerEnabled: false,
28
- port: 6445
27
+ defaultLanguageCode: envs_1.APISERVER_AUTOPILOT_DEFAULT_LANGUAGE_CODE,
28
+ port: envs_1.APISERVER_AUTOPILOT_PORT,
29
+ eventsServerEnabled: false
29
30
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/autopilot",
3
- "version": "0.4.15",
3
+ "version": "0.4.17",
4
4
  "license": "MIT",
5
5
  "main": "dist/index",
6
6
  "types": "dist/index",
@@ -12,12 +12,12 @@
12
12
  "build": "tsc --build ./tsconfig.json"
13
13
  },
14
14
  "dependencies": {
15
- "@fonoster/apps": "^0.4.15",
16
- "@fonoster/googleasr": "^0.4.15",
17
- "@fonoster/googletts": "^0.4.15",
18
- "@fonoster/logger": "^0.4.15",
19
- "@fonoster/secrets": "^0.4.15",
20
- "@fonoster/voice": "^0.4.15",
15
+ "@fonoster/apps": "^0.4.17",
16
+ "@fonoster/googleasr": "^0.4.17",
17
+ "@fonoster/googletts": "^0.4.17",
18
+ "@fonoster/logger": "^0.4.17",
19
+ "@fonoster/secrets": "^0.4.17",
20
+ "@fonoster/voice": "^0.4.17",
21
21
  "@google-cloud/dialogflow": "^4.3.1",
22
22
  "@google-cloud/dialogflow-cx": "^2.13.0",
23
23
  "date-fns": "^2.29.3",
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "f9f898c4f174662564976e5c392bb8549cd53529"
40
+ "gitHead": "c068bf3c1bf348e8637dc316e23c73ef898b1451"
41
41
  }