@onereach/types-hitl-api 0.0.7 → 0.0.10
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/README.md +12 -1
- package/dist/types/constants/index.d.ts +22 -0
- package/dist/types/{common.d.ts → interfaces/common.d.ts} +0 -0
- package/dist/types/{index.types.d.ts → interfaces/index.types.d.ts} +0 -0
- package/dist/types/{migrations.d.ts → interfaces/migrations.d.ts} +0 -0
- package/dist/types/{settings.d.ts → interfaces/settings.d.ts} +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,12 +40,23 @@ DB_NAME=hitl-app-db
|
|
|
40
40
|
|
|
41
41
|
You can change all the values above, if you want to, just make sure that the variables in `.env` file point to some valid PostgreSQL instance.
|
|
42
42
|
|
|
43
|
+
#### Retrieving deploy config
|
|
44
|
+
|
|
45
|
+
Make sure you have `deploy-platform` project installed on your machine, and a command `or` is globally available.
|
|
46
|
+
|
|
47
|
+
Run the following commands:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
or get-config --branch local --client development --env qa --feature master --project hitl-api --service hitl_api.config --service-or-eval service > config.json
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
A file `config.json`, which is ignored by git, should appear in the project root with some content.
|
|
54
|
+
|
|
43
55
|
#### Installing packages and starting the application
|
|
44
56
|
|
|
45
57
|
After installing third party dependencies, we can finally run:
|
|
46
58
|
|
|
47
59
|
```
|
|
48
|
-
echo "{ \"vars\": { \"SDK_API_URL\": \"\" } }" > config.json
|
|
49
60
|
npm install
|
|
50
61
|
npm start
|
|
51
62
|
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum AGENT_STATUS {
|
|
2
|
+
AVAILABLE = "AVAILABLE",
|
|
3
|
+
BUSY = "BUSY",
|
|
4
|
+
OFFLINE = "OFFLINE"
|
|
5
|
+
}
|
|
6
|
+
export declare enum CALL_MEMBER_STATUS {
|
|
7
|
+
JOINED = "JOINED",
|
|
8
|
+
CONNECTED = "CONNECTED",
|
|
9
|
+
RINGING = "RINGING",
|
|
10
|
+
ON_HOLD = "ON_HOLD",
|
|
11
|
+
MUTED = "MUTED",
|
|
12
|
+
ERROR = "ERROR",
|
|
13
|
+
BUSY = "BUSY",
|
|
14
|
+
NOT_CONNECTED = "NOT_CONNECTED",
|
|
15
|
+
DISCONNECTED = "DISCONNECTED",
|
|
16
|
+
HANG_UP = "HANG_UP"
|
|
17
|
+
}
|
|
18
|
+
export declare enum CALL_MEMBER_TYPE {
|
|
19
|
+
AGENT = "agent",
|
|
20
|
+
CONTACT = "contact",
|
|
21
|
+
THIRD_PARTY = "3rd_party"
|
|
22
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|