@gibme/asterisk-gateway-interface 1.0.4 → 1.0.5
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/types.js +4 -4
- package/dist/types.js.map +1 -1
- package/package.json +18 -17
package/dist/types.js
CHANGED
|
@@ -32,7 +32,7 @@ var ContextState;
|
|
|
32
32
|
(function (ContextState) {
|
|
33
33
|
ContextState[ContextState["INIT"] = 0] = "INIT";
|
|
34
34
|
ContextState[ContextState["WAITING"] = 2] = "WAITING";
|
|
35
|
-
})(ContextState
|
|
35
|
+
})(ContextState || (exports.ContextState = ContextState = {}));
|
|
36
36
|
/**
|
|
37
37
|
* The Current Channel State
|
|
38
38
|
*/
|
|
@@ -46,7 +46,7 @@ var ChannelState;
|
|
|
46
46
|
ChannelState[ChannelState["REMOTE_RINGING"] = 5] = "REMOTE_RINGING";
|
|
47
47
|
ChannelState[ChannelState["UP"] = 6] = "UP";
|
|
48
48
|
ChannelState[ChannelState["BUSY"] = 7] = "BUSY";
|
|
49
|
-
})(ChannelState
|
|
49
|
+
})(ChannelState || (exports.ChannelState = ChannelState = {}));
|
|
50
50
|
/**
|
|
51
51
|
* Represents the result of a Dial() attempt
|
|
52
52
|
*/
|
|
@@ -61,7 +61,7 @@ var DialStatus;
|
|
|
61
61
|
DialStatus[DialStatus["DONTCALL"] = 6] = "DONTCALL";
|
|
62
62
|
DialStatus[DialStatus["TORTURE"] = 7] = "TORTURE";
|
|
63
63
|
DialStatus[DialStatus["INVALIDARGS"] = 8] = "INVALIDARGS";
|
|
64
|
-
})(DialStatus
|
|
64
|
+
})(DialStatus || (exports.DialStatus = DialStatus = {}));
|
|
65
65
|
/**
|
|
66
66
|
* Represents the playback status
|
|
67
67
|
*/
|
|
@@ -71,5 +71,5 @@ var PlaybackStatus;
|
|
|
71
71
|
PlaybackStatus[PlaybackStatus["USER_STOPPED"] = 1] = "USER_STOPPED";
|
|
72
72
|
PlaybackStatus[PlaybackStatus["REMOTE_STOPPED"] = 2] = "REMOTE_STOPPED";
|
|
73
73
|
PlaybackStatus[PlaybackStatus["ERROR"] = 3] = "ERROR";
|
|
74
|
-
})(PlaybackStatus
|
|
74
|
+
})(PlaybackStatus || (exports.PlaybackStatus = PlaybackStatus = {}));
|
|
75
75
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;;;;;;AAEZ,8EAAqD;AAC5C,4BADF,4BAAiB,CACE;AAG1B;;GAEG;AACH,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,+CAAQ,CAAA;IACR,qDAAW,CAAA;AACf,CAAC,EAHW,YAAY,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;;;;;;AAEZ,8EAAqD;AAC5C,4BADF,4BAAiB,CACE;AAG1B;;GAEG;AACH,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,+CAAQ,CAAA;IACR,qDAAW,CAAA;AACf,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAED;;GAEG;AACH,IAAY,YASX;AATD,WAAY,YAAY;IACpB,mEAAkB,CAAA;IAClB,iEAAa,CAAA;IACb,uDAAQ,CAAA;IACR,iEAAa,CAAA;IACb,qDAAO,CAAA;IACP,mEAAc,CAAA;IACd,2CAAE,CAAA;IACF,+CAAI,CAAA;AACR,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAED;;GAEG;AACH,IAAY,UAUX;AAVD,WAAY,UAAU;IAClB,+CAAM,CAAA;IACN,2CAAI,CAAA;IACJ,mDAAQ,CAAA;IACR,+CAAM,CAAA;IACN,uDAAU,CAAA;IACV,yDAAW,CAAA;IACX,mDAAQ,CAAA;IACR,iDAAO,CAAA;IACP,yDAAW,CAAA;AACf,CAAC,EAVW,UAAU,0BAAV,UAAU,QAUrB;AAED;;GAEG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACtB,yDAAO,CAAA;IACP,mEAAY,CAAA;IACZ,uEAAc,CAAA;IACd,qDAAK,CAAA;AACT,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gibme/asterisk-gateway-interface",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Asterisk Gateway Interface Server",
|
|
5
5
|
"main": "dist/asterisk-gateway-interface.js",
|
|
6
6
|
"types": "dist/asterisk-gateway-interface.d.ts",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"build": "yarn build:typescript",
|
|
13
13
|
"build:docs": "./node_modules/.bin/typedoc",
|
|
14
14
|
"build:typescript": "./node_modules/.bin/tsc",
|
|
15
|
-
"test": "yarn test:style && yarn test:mocha",
|
|
15
|
+
"test": "yarn test:style && yarn test:typecheck && yarn test:mocha",
|
|
16
|
+
"test:typecheck": "./node_modules/.bin/tsc --noEmit",
|
|
16
17
|
"test:style": "yarn style",
|
|
17
18
|
"test:mocha": "./node_modules/.bin/mocha --exit --timeout 30000 --require ts-node/register test/test.ts",
|
|
18
19
|
"style": "./node_modules/.bin/eslint src/**/*.ts test/**/*.ts",
|
|
@@ -37,26 +38,26 @@
|
|
|
37
38
|
"email": "brandonlehmann@gmail.com"
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
|
-
"@gibme/tcp-server": "^1.0.
|
|
41
|
-
"@gibme/timer": "^1.0.
|
|
42
|
-
"@types/uuid": "^
|
|
43
|
-
"dotenv": "^16.
|
|
41
|
+
"@gibme/tcp-server": "^1.0.4",
|
|
42
|
+
"@gibme/timer": "^1.0.4",
|
|
43
|
+
"@types/uuid": "^9.0.2",
|
|
44
|
+
"dotenv": "^16.3.1",
|
|
44
45
|
"uuid": "^9.0.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@types/mocha": "^10.0.
|
|
48
|
-
"@types/node": "^
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
50
|
-
"@typescript-eslint/parser": "^
|
|
51
|
-
"eslint": "^8.
|
|
52
|
-
"eslint-config-standard": "^17.
|
|
53
|
-
"eslint-plugin-import": "^2.
|
|
54
|
-
"eslint-plugin-n": "^
|
|
48
|
+
"@types/mocha": "^10.0.1",
|
|
49
|
+
"@types/node": "^20.4.8",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^6.2.1",
|
|
51
|
+
"@typescript-eslint/parser": "^6.2.1",
|
|
52
|
+
"eslint": "^8.46.0",
|
|
53
|
+
"eslint-config-standard": "^17.1.0",
|
|
54
|
+
"eslint-plugin-import": "^2.28.0",
|
|
55
|
+
"eslint-plugin-n": "^16.0.1",
|
|
55
56
|
"eslint-plugin-node": "^11.1.0",
|
|
56
57
|
"eslint-plugin-promise": "^6.1.1",
|
|
57
|
-
"mocha": "^10.
|
|
58
|
+
"mocha": "^10.2.0",
|
|
58
59
|
"ts-node": "^10.9.1",
|
|
59
|
-
"typedoc": "^0.
|
|
60
|
-
"typescript": "^
|
|
60
|
+
"typedoc": "^0.24.8",
|
|
61
|
+
"typescript": "^5.1.6"
|
|
61
62
|
}
|
|
62
63
|
}
|