@bwi-mentorspaces/application-utils-npm 0.0.39 → 0.0.41
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bwi-mentorspaces/application-utils-npm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"description": "Mentor Spaces npm packages for reusable models, utils, and abstracted, commonly used processes for DB Repo, Logging, etc.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Mentor Spaces",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MSLiveTemplate = exports.MSLiveRoom = exports.MSLiveAuth = exports.MSLiveAPI = void 0;
|
|
4
|
+
const ms_live_auth_1 = require("./ms.live.auth");
|
|
5
|
+
Object.defineProperty(exports, "MSLiveAuth", { enumerable: true, get: function () { return ms_live_auth_1.MSLiveAuth; } });
|
|
6
|
+
const ms_live_api_1 = require("./ms.live.api");
|
|
7
|
+
Object.defineProperty(exports, "MSLiveAPI", { enumerable: true, get: function () { return ms_live_api_1.MSLiveAPI; } });
|
|
8
|
+
const ms_live_room_1 = require("./ms.live.room");
|
|
9
|
+
Object.defineProperty(exports, "MSLiveRoom", { enumerable: true, get: function () { return ms_live_room_1.MSLiveRoom; } });
|
|
10
|
+
const ms_live_template_1 = require("./ms.live.template");
|
|
11
|
+
Object.defineProperty(exports, "MSLiveTemplate", { enumerable: true, get: function () { return ms_live_template_1.MSLiveTemplate; } });
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../session/ms.live/index.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAKxB,2FALX,yBAAU,OAKW;AAJ9B,+CAA0C;AAIjC,0FAJA,uBAAS,OAIA;AAHlB,iDAA4C;AAGZ,2FAHvB,yBAAU,OAGuB;AAF1C,yDAAoD;AAER,+FAFnC,iCAAc,OAEmC"}
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import { IMSLiveConfig } from "./models";
|
|
2
|
+
import { MSLiveRoom } from "./ms.live.room";
|
|
3
|
+
import { MSLiveTemplate } from "./ms.live.template";
|
|
2
4
|
export declare class MSLiveAPI {
|
|
3
5
|
#private;
|
|
6
|
+
private _msLiveRoom;
|
|
7
|
+
private _msLiveTemplate;
|
|
4
8
|
constructor(config: IMSLiveConfig);
|
|
9
|
+
/**
|
|
10
|
+
* getter for MSLive API Room
|
|
11
|
+
* @returns {MSLiveRoom} twilio room instance
|
|
12
|
+
*/
|
|
13
|
+
get msLiveRoom(): MSLiveRoom;
|
|
14
|
+
/**
|
|
15
|
+
* getter for MSLive API Room
|
|
16
|
+
* @returns {MSLiveRoom} twilio room instance
|
|
17
|
+
*/
|
|
18
|
+
get msLiveTemplate(): MSLiveTemplate;
|
|
5
19
|
get(path: string, queryParams: any): Promise<any>;
|
|
6
20
|
post(path: string, payload: any): Promise<any>;
|
|
7
21
|
}
|
|
@@ -27,7 +27,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.MSLiveAPI = void 0;
|
|
28
28
|
const axios_1 = __importDefault(require("axios"));
|
|
29
29
|
const ms_live_auth_1 = require("./ms.live.auth");
|
|
30
|
-
// const axios = require('axios').default;
|
|
31
30
|
// A service class for all REST API operations
|
|
32
31
|
class MSLiveAPI {
|
|
33
32
|
constructor(config) {
|
|
@@ -43,6 +42,20 @@ class MSLiveAPI {
|
|
|
43
42
|
__classPrivateFieldSet(this, _MSLiveAPI_msLiveAuthInstance, new ms_live_auth_1.MSLiveAuth(config), "f");
|
|
44
43
|
__classPrivateFieldGet(this, _MSLiveAPI_instances, "m", _MSLiveAPI_configureAxios).call(this);
|
|
45
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* getter for MSLive API Room
|
|
47
|
+
* @returns {MSLiveRoom} twilio room instance
|
|
48
|
+
*/
|
|
49
|
+
get msLiveRoom() {
|
|
50
|
+
return this._msLiveRoom;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* getter for MSLive API Room
|
|
54
|
+
* @returns {MSLiveRoom} twilio room instance
|
|
55
|
+
*/
|
|
56
|
+
get msLiveTemplate() {
|
|
57
|
+
return this._msLiveTemplate;
|
|
58
|
+
}
|
|
46
59
|
// A method for GET requests using the configured Axios instance
|
|
47
60
|
get(path, queryParams) {
|
|
48
61
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ms.live.api.js","sourceRoot":"","sources":["../../../session/ms.live/ms.live.api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA6C;AAE7C,iDAA4C;
|
|
1
|
+
{"version":3,"file":"ms.live.api.js","sourceRoot":"","sources":["../../../session/ms.live/ms.live.api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA6C;AAE7C,iDAA4C;AAI5C,8CAA8C;AAC9C,MAAa,SAAS;IAMlB,YAAY,MAAqB;;QAHjC,2CAA8B;QAC9B,oBAAoB;QACpB,gDAAmB;QAEf,yCAAyC;QACzC,uBAAA,IAAI,4BAAkB,eAAK,CAAC,MAAM,CAC9B;YACI,OAAO,EAAE,2BAA2B;YACpC,OAAO,EAAE,CAAC,GAAG,KAAK;SACrB,CAAC,MAAA,CAAC;QACP,uBAAA,IAAI,iCAAuB,IAAI,yBAAU,CAAC,MAAM,CAAC,MAAA,CAAC;QAClD,uBAAA,IAAI,uDAAgB,MAApB,IAAI,CAAkB,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACH,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACH,IAAW,cAAc;QAC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