@bwi-mentorspaces/application-utils-npm 0.0.46 → 0.0.48
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 +1 -1
- package/session/ms.live/models/_/room.data.d.ts +0 -13
- package/session/ms.live/models/index.d.ts +2 -2
- package/session/ms.live/ms.live.api.d.ts +2 -2
- package/session/ms.live/ms.live.api.js +2 -2
- package/session/ms.live/ms.live.auth.d.ts +4 -4
- package/session/ms.live/ms.live.auth.js +3 -3
- package/session/ms.live/ms.live.auth.js.map +1 -1
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.48",
|
|
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",
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/** MS Live Template data*/
|
|
2
|
-
export interface IMSTemplateData {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
customerId: string;
|
|
6
|
-
roles: object;
|
|
7
|
-
settings?: object;
|
|
8
|
-
destinations?: object;
|
|
9
|
-
createdAt: Date;
|
|
10
|
-
updatedAt: Date;
|
|
11
|
-
_id: string;
|
|
12
|
-
customer: string;
|
|
13
|
-
}
|
|
14
1
|
/** MS Live Room data*/
|
|
15
2
|
export interface IMSRoomData {
|
|
16
3
|
id: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IMSRoomData, IMSRoomCode
|
|
1
|
+
import { IMSRoomData, IMSRoomCode } from "./_/room.data";
|
|
2
2
|
import { IMSLiveConfig } from "./_/ms.live.config";
|
|
3
|
-
export { IMSLiveConfig, IMSRoomData, IMSRoomCode
|
|
3
|
+
export { IMSLiveConfig, IMSRoomData, IMSRoomCode };
|
|
@@ -15,12 +15,12 @@ export declare class MSLiveAPI extends MSLiveBase {
|
|
|
15
15
|
private init;
|
|
16
16
|
/**
|
|
17
17
|
* getter for MSLive API Room
|
|
18
|
-
* @returns {MSLiveRoom}
|
|
18
|
+
* @returns {MSLiveRoom} msLive room instance
|
|
19
19
|
*/
|
|
20
20
|
get msLiveRoom(): MSLiveRoom;
|
|
21
21
|
/**
|
|
22
22
|
* getter for Auth API
|
|
23
|
-
* @returns {
|
|
23
|
+
* @returns {MSLiveToken} msLive room instance
|
|
24
24
|
*/
|
|
25
25
|
get msLiveToken(): MSLiveAuth;
|
|
26
26
|
}
|
|
@@ -59,14 +59,14 @@ let MSLiveAPI = class MSLiveAPI extends ms_live_base_1.MSLiveBase {
|
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* getter for MSLive API Room
|
|
62
|
-
* @returns {MSLiveRoom}
|
|
62
|
+
* @returns {MSLiveRoom} msLive room instance
|
|
63
63
|
*/
|
|
64
64
|
get msLiveRoom() {
|
|
65
65
|
return this._msLiveRoom;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* getter for Auth API
|
|
69
|
-
* @returns {
|
|
69
|
+
* @returns {MSLiveToken} msLive room instance
|
|
70
70
|
*/
|
|
71
71
|
get msLiveToken() {
|
|
72
72
|
return this._msLiveToken;
|
|
@@ -8,7 +8,7 @@ interface IMSLiveAuth {
|
|
|
8
8
|
* @param {string} msLiveAccessKey msLive access key
|
|
9
9
|
* @param {string} msLiveSecret msLive secret
|
|
10
10
|
*/
|
|
11
|
-
init(
|
|
11
|
+
init(msLiveAccessKey: string, msLiveSecret: string): void;
|
|
12
12
|
/**
|
|
13
13
|
* Get management key
|
|
14
14
|
* @param {boolean} forceNew boolean to force new management key
|
|
@@ -37,12 +37,12 @@ export declare class MSLiveAuth implements IMSLiveAuth {
|
|
|
37
37
|
constructor(config: IMSLiveConfig);
|
|
38
38
|
/**
|
|
39
39
|
* Get MSLive Credentials
|
|
40
|
-
* @param {string}
|
|
40
|
+
* @param {string} msLiveAccessKey msLive access key
|
|
41
41
|
* @param {string} msLiveSecretKey msLive secret key
|
|
42
42
|
* @returns {void} promise of type void
|
|
43
43
|
*/
|
|
44
|
-
init(
|
|
45
|
-
getManagementToken(forceNew:
|
|
44
|
+
init(msLiveAccessKey: string, msLiveSecretKey: string): void;
|
|
45
|
+
getManagementToken(forceNew: boolean): string;
|
|
46
46
|
getAuthToken(room_id: string, user_id: string, role: string): any;
|
|
47
47
|
}
|
|
48
48
|
export {};
|
|
@@ -35,12 +35,12 @@ let MSLiveAuth = class MSLiveAuth {
|
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Get MSLive Credentials
|
|
38
|
-
* @param {string}
|
|
38
|
+
* @param {string} msLiveAccessKey msLive access key
|
|
39
39
|
* @param {string} msLiveSecretKey msLive secret key
|
|
40
40
|
* @returns {void} promise of type void
|
|
41
41
|
*/
|
|
42
|
-
init(
|
|
43
|
-
this._msLiveAccessKey =
|
|
42
|
+
init(msLiveAccessKey, msLiveSecretKey) {
|
|
43
|
+
this._msLiveAccessKey = msLiveAccessKey;
|
|
44
44
|
this._msLiveSecretKey = msLiveSecretKey;
|
|
45
45
|
this._managementToken = this.getManagementToken(true);
|
|
46
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ms.live.auth.js","sourceRoot":"","sources":["../../../session/ms.live/ms.live.auth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAEtC,oBAAoB;AACpB,MAAM,GAAG,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AACpC,+BAAoC;AA6BpC,oBAAoB;AACpB;;GAEG;AAEI,IAAM,UAAU,GAAhB,MAAM,UAAU;IAMnB;;;OAGG;IACH,YAAY,MAAqB;;QAC7B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC;IAC9D,CAAC;I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