@bwi-mentorspaces/application-utils-npm 0.0.21 → 0.0.23
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/chat/index.d.ts +0 -3
- package/chat/index.js +0 -3
- package/chat/index.js.map +1 -1
- package/chat/stream/enum/index.d.ts +2 -1
- package/chat/stream/enum/index.js +1 -0
- package/chat/stream/enum/index.js.map +1 -1
- package/chat/stream/models/_/event.data.d.ts +6 -0
- package/chat/stream/stream.api.d.ts +1 -7
- package/chat/stream/stream.api.js +1 -7
- package/chat/stream/stream.api.js.map +1 -1
- package/chat/stream/stream.auth.d.ts +0 -7
- package/chat/stream/stream.auth.js +0 -4
- package/chat/stream/stream.auth.js.map +1 -1
- package/chat/stream/stream.base.d.ts +0 -7
- package/chat/stream/stream.base.js +2 -8
- package/chat/stream/stream.base.js.map +1 -1
- package/chat/stream/stream.channel.d.ts +6 -15
- package/chat/stream/stream.channel.js +12 -13
- package/chat/stream/stream.channel.js.map +1 -1
- package/chat/stream/stream.error.d.ts +0 -1
- package/chat/stream/stream.error.js +0 -1
- package/chat/stream/stream.error.js.map +1 -1
- package/chat/stream/stream.member.d.ts +0 -6
- package/chat/stream/stream.member.js +0 -6
- package/chat/stream/stream.member.js.map +1 -1
- package/chat/stream/stream.message.d.ts +0 -4
- package/chat/stream/stream.message.js +0 -4
- package/chat/stream/stream.message.js.map +1 -1
- package/chat/stream/stream.user.d.ts +2 -9
- package/chat/stream/stream.user.js +0 -7
- package/chat/stream/stream.user.js.map +1 -1
- package/core/_/api-error.d.ts +0 -1
- package/core/_/api-error.js +0 -1
- package/core/_/api-error.js.map +1 -1
- package/core/_/api-response.d.ts +0 -1
- package/core/_/api-response.js +0 -1
- package/core/_/api-response.js.map +1 -1
- package/core/_/cors-headers.d.ts +0 -1
- package/core/_/cors-headers.js +9 -10
- package/core/_/cors-headers.js.map +1 -1
- package/core/_/service-request.d.ts +0 -2
- package/core/_/service-request.js +5 -7
- package/core/_/service-request.js.map +1 -1
- package/deployment/_/serverless.d.ts +0 -2
- package/deployment/_/serverless.js +0 -2
- package/deployment/_/serverless.js.map +1 -1
- package/endpoint-test-factory/_/test-factory.d.ts +0 -4
- package/endpoint-test-factory/_/test-factory.js +5 -9
- package/endpoint-test-factory/_/test-factory.js.map +1 -1
- package/meet/index.d.ts +0 -3
- package/meet/index.js +0 -3
- package/meet/index.js.map +1 -1
- package/meet/twilio/twilio.api.d.ts +0 -3
- package/meet/twilio/twilio.api.js +0 -3
- package/meet/twilio/twilio.api.js.map +1 -1
- package/meet/twilio/twilio.auth.d.ts +0 -5
- package/meet/twilio/twilio.auth.js +5 -4
- package/meet/twilio/twilio.auth.js.map +1 -1
- package/meet/twilio/twilio.base.d.ts +0 -5
- package/meet/twilio/twilio.base.js +0 -5
- package/meet/twilio/twilio.base.js.map +1 -1
- package/meet/twilio/twilio.room.d.ts +0 -4
- package/meet/twilio/twilio.room.js +0 -4
- package/meet/twilio/twilio.room.js.map +1 -1
- package/package.json +4 -2
- package/swagger/_/swagger.d.ts +0 -2
- package/swagger/_/swagger.js +5 -3
- package/swagger/_/swagger.js.map +1 -1
- package/utils/_/encoder.d.ts +0 -2
- package/utils/_/encoder.js +0 -2
- package/utils/_/encoder.js.map +1 -1
- package/utils/_/encryptor.d.ts +0 -2
- package/utils/_/encryptor.js +7 -9
- package/utils/_/encryptor.js.map +1 -1
- package/utils/_/hasher.d.ts +0 -3
- package/utils/_/hasher.js +5 -4
- package/utils/_/hasher.js.map +1 -1
- package/utils/_/object-mapper.d.ts +0 -1
- package/utils/_/object-mapper.js +0 -1
- package/utils/_/object-mapper.js.map +1 -1
- package/utils/_/string-formatter.d.ts +0 -4
- package/utils/_/string-formatter.js +0 -4
- package/utils/_/string-formatter.js.map +1 -1
- package/utils/_/utc-date.d.ts +0 -4
- package/utils/_/utc-date.js +8 -12
- package/utils/_/utc-date.js.map +1 -1
- package/validators/_/checker.d.ts +0 -7
- package/validators/_/checker.js +1 -7
- package/validators/_/checker.js.map +1 -1
- package/validators/_/regex.d.ts +0 -15
- package/validators/_/regex.js +0 -15
- package/validators/_/regex.js.map +1 -1
package/meet/index.js
CHANGED
|
@@ -19,7 +19,6 @@ const twilio_api_1 = require("./twilio/twilio.api");
|
|
|
19
19
|
let Meet = class Meet {
|
|
20
20
|
/**
|
|
21
21
|
* Meet constructor
|
|
22
|
-
*
|
|
23
22
|
* @param {ClientType} clientType client type
|
|
24
23
|
* @param {IMeetConfig} config meet configuration
|
|
25
24
|
*/
|
|
@@ -31,7 +30,6 @@ let Meet = class Meet {
|
|
|
31
30
|
// getter / setter
|
|
32
31
|
/**
|
|
33
32
|
* getter for client
|
|
34
|
-
*
|
|
35
33
|
* @returns {T} client of type T
|
|
36
34
|
*/
|
|
37
35
|
get client() {
|
|
@@ -40,7 +38,6 @@ let Meet = class Meet {
|
|
|
40
38
|
// methods
|
|
41
39
|
/**
|
|
42
40
|
* initialize method
|
|
43
|
-
*
|
|
44
41
|
* @returns {void} promise of type void
|
|
45
42
|
*/
|
|
46
43
|
init() {
|
package/meet/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../meet/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAsC;AACtC,wCAA2C;AAE3C,oDAAgD;AAUhD;;GAEG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../meet/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAsC;AACtC,wCAA2C;AAE3C,oDAAgD;AAUhD;;GAEG;AAEI,IAAM,IAAI,GAAV,MAAM,IAAI;IAMb;;;;OAIG;IACH,YAAY,UAAsB,EAAE,MAAmB;QACnD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAED,kBAAkB;IAClB;;;OAGG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,UAAU;IACV;;;OAGG;IACK,IAAI;QACR,gDAAgD;QAChD,4BAA4B;QAC5B,IAAI,IAAI,CAAC,WAAW,IAAI,iBAAU,CAAC,MAAM,EAAE;YACvC,IAAI,CAAC,OAAO,GAAG,IAAI,sBAAS,CAAC,IAAI,CAAC,OAAO,CAAiB,CAAC;SAC9D;IACL,CAAC;CACJ,CAAA;AAtCY,IAAI;IADhB,IAAA,qBAAU,GAAE;;GACA,IAAI,CAsChB;AAtCY,oBAAI"}
|
|
@@ -9,19 +9,16 @@ export declare class TwilioApi extends TwilioBase {
|
|
|
9
9
|
private _twilioRoom;
|
|
10
10
|
/**
|
|
11
11
|
* Twilio api constructor
|
|
12
|
-
*
|
|
13
12
|
* @param {IApiConfig} config api configuration
|
|
14
13
|
*/
|
|
15
14
|
constructor(config: IMeetConfig);
|
|
16
15
|
/**
|
|
17
16
|
* getter for Twilio API Room
|
|
18
|
-
*
|
|
19
17
|
* @returns {TwilioRoom} twilio room instance
|
|
20
18
|
*/
|
|
21
19
|
get twilioRoom(): TwilioRoom;
|
|
22
20
|
/**
|
|
23
21
|
* initialize method
|
|
24
|
-
*
|
|
25
22
|
* @returns {void} promise of type void
|
|
26
23
|
*/
|
|
27
24
|
private init;
|
|
@@ -11,7 +11,6 @@ const twilio_room_1 = require("./twilio.room");
|
|
|
11
11
|
class TwilioApi extends twilio_base_1.TwilioBase {
|
|
12
12
|
/**
|
|
13
13
|
* Twilio api constructor
|
|
14
|
-
*
|
|
15
14
|
* @param {IApiConfig} config api configuration
|
|
16
15
|
*/
|
|
17
16
|
constructor(config) {
|
|
@@ -21,7 +20,6 @@ class TwilioApi extends twilio_base_1.TwilioBase {
|
|
|
21
20
|
}
|
|
22
21
|
/**
|
|
23
22
|
* getter for Twilio API Room
|
|
24
|
-
*
|
|
25
23
|
* @returns {TwilioRoom} twilio room instance
|
|
26
24
|
*/
|
|
27
25
|
get twilioRoom() {
|
|
@@ -30,7 +28,6 @@ class TwilioApi extends twilio_base_1.TwilioBase {
|
|
|
30
28
|
//methods
|
|
31
29
|
/**
|
|
32
30
|
* initialize method
|
|
33
|
-
*
|
|
34
31
|
* @returns {void} promise of type void
|
|
35
32
|
*/
|
|
36
33
|
init() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twilio.api.js","sourceRoot":"","sources":["../../../meet/twilio/twilio.api.ts"],"names":[],"mappings":";;;AACA,+CAA2C;AAC3C,+CAA2C;AAE3C,mCAAgC;AAChC,+CAA2C;AAE3C;;GAEG;AACH,MAAa,SAAU,SAAQ,wBAAU;IAKrC
|
|
1
|
+
{"version":3,"file":"twilio.api.js","sourceRoot":"","sources":["../../../meet/twilio/twilio.api.ts"],"names":[],"mappings":";;;AACA,+CAA2C;AAC3C,+CAA2C;AAE3C,mCAAgC;AAChC,+CAA2C;AAE3C;;GAEG;AACH,MAAa,SAAU,SAAQ,wBAAU;IAKrC;;;OAGG;IACH,YAAY,MAAmB;QAC3B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAED;;;OAGG;IACH,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,SAAS;IAET;;;OAGG;IACK,IAAI;QACR,sBAAsB;QACtB,KAAK,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC7F,KAAK,CAAC,IAAI,GAAG,IAAI,wBAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAE1C,0CAA0C;QAC1C,IAAI,CAAC,WAAW,GAAG,IAAI,wBAAU,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACtG,CAAC;CACJ;AArCD,8BAqCC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -5,7 +5,6 @@ import { IMeetConfig } from "./models";
|
|
|
5
5
|
interface ITwilioAuth {
|
|
6
6
|
/**
|
|
7
7
|
* Authentication initialization
|
|
8
|
-
*
|
|
9
8
|
* @param {string} apiSID api sid
|
|
10
9
|
* @param {string} apiKey api key
|
|
11
10
|
* @param {string} apiSecret apy secret
|
|
@@ -13,7 +12,6 @@ interface ITwilioAuth {
|
|
|
13
12
|
init(apiSID: string, apiKey: string, apiSecret: string): void;
|
|
14
13
|
/**
|
|
15
14
|
* Get token to connect with Twilio
|
|
16
|
-
*
|
|
17
15
|
* @param {string} userId user id
|
|
18
16
|
* @param {string} roomSID room sid
|
|
19
17
|
* @param {boolean} refresh refresh token
|
|
@@ -30,13 +28,11 @@ export declare class TwilioAuth implements ITwilioAuth {
|
|
|
30
28
|
private _mainApiKeySecret;
|
|
31
29
|
/**
|
|
32
30
|
* Twilio auth constructor
|
|
33
|
-
*
|
|
34
31
|
* @param {IMeetConfig} config meet config
|
|
35
32
|
*/
|
|
36
33
|
constructor(config: IMeetConfig);
|
|
37
34
|
/**
|
|
38
35
|
* Instance the twilio client
|
|
39
|
-
*
|
|
40
36
|
* @param {string} mainAccountSID main account SID
|
|
41
37
|
* @param {string} mainApiKeySID main api SID
|
|
42
38
|
* @param {string} mainApiKeySecret main apy secret
|
|
@@ -45,7 +41,6 @@ export declare class TwilioAuth implements ITwilioAuth {
|
|
|
45
41
|
init(mainAccountSID: string, mainApiKeySID: string, mainApiKeySecret: string): void;
|
|
46
42
|
/**
|
|
47
43
|
* Get token
|
|
48
|
-
*
|
|
49
44
|
* @param {string} userId user id
|
|
50
45
|
* @param {string} roomName room name
|
|
51
46
|
* @returns {string} returns token value
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -37,7 +41,6 @@ const AccessToken_1 = __importStar(require("twilio/lib/jwt/AccessToken"));
|
|
|
37
41
|
let TwilioAuth = class TwilioAuth {
|
|
38
42
|
/**
|
|
39
43
|
* Twilio auth constructor
|
|
40
|
-
*
|
|
41
44
|
* @param {IMeetConfig} config meet config
|
|
42
45
|
*/
|
|
43
46
|
constructor(config) {
|
|
@@ -45,7 +48,6 @@ let TwilioAuth = class TwilioAuth {
|
|
|
45
48
|
}
|
|
46
49
|
/**
|
|
47
50
|
* Instance the twilio client
|
|
48
|
-
*
|
|
49
51
|
* @param {string} mainAccountSID main account SID
|
|
50
52
|
* @param {string} mainApiKeySID main api SID
|
|
51
53
|
* @param {string} mainApiKeySecret main apy secret
|
|
@@ -58,7 +60,6 @@ let TwilioAuth = class TwilioAuth {
|
|
|
58
60
|
}
|
|
59
61
|
/**
|
|
60
62
|
* Get token
|
|
61
|
-
*
|
|
62
63
|
* @param {string} userId user id
|
|
63
64
|
* @param {string} roomName room name
|
|
64
65
|
* @returns {string} returns token value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twilio.auth.js","sourceRoot":"","sources":["../../../meet/twilio/twilio.auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"twilio.auth.js","sourceRoot":"","sources":["../../../meet/twilio/twilio.auth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAsC;AACtC,0EAAqE;AAyBrE;;GAEG;AAEI,IAAM,UAAU,GAAhB,MAAM,UAAU;IAMnB;;;OAGG;IACH,YAAY,MAAmB;QAC3B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACpG,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,cAAsB,EAAE,aAAqB,EAAE,gBAAwB;QACxE,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;QACtC,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC9C,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAc,EAAE,QAAgB;QAClC,gCAAgC;QAChC,MAAM,KAAK,GAAG,IAAI,qBAAW,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAEjG,+BAA+B;QAC/B,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC;QAExB,mDAAmD;QACnD,MAAM,KAAK,GAAG,IAAI,wBAAU,EAAE,CAAC;QAC/B,KAAK,CAAC,IAAI,GAAG,QAAQ,CAAC;QACtB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAEtB,sCAAsC;QACtC,OAAO,KAAK,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;CACJ,CAAA;AAhDY,UAAU;IADtB,IAAA,qBAAU,GAAE;;GACA,UAAU,CAgDtB;AAhDY,gCAAU"}
|
|
@@ -8,31 +8,26 @@ export declare abstract class TwilioBase {
|
|
|
8
8
|
private _auth;
|
|
9
9
|
/**
|
|
10
10
|
* getter for twilio instance
|
|
11
|
-
*
|
|
12
11
|
* @returns {Twilio} twilio instance
|
|
13
12
|
*/
|
|
14
13
|
get server(): Twilio;
|
|
15
14
|
/**
|
|
16
15
|
* setter for twilio instance
|
|
17
|
-
*
|
|
18
16
|
* @param {TwilioAuth} value twilio instance
|
|
19
17
|
*/
|
|
20
18
|
set server(value: Twilio);
|
|
21
19
|
/**
|
|
22
20
|
* getter for twilio auth
|
|
23
|
-
*
|
|
24
21
|
* @returns {TwilioAuth} twilio auth instance
|
|
25
22
|
*/
|
|
26
23
|
get auth(): TwilioAuth;
|
|
27
24
|
/**
|
|
28
25
|
* setter for twilio auth instance
|
|
29
|
-
*
|
|
30
26
|
* @param {TwilioAuth} value twilio auth instance
|
|
31
27
|
*/
|
|
32
28
|
set auth(value: TwilioAuth);
|
|
33
29
|
/**
|
|
34
30
|
* Get token for extended classes
|
|
35
|
-
*
|
|
36
31
|
* @param {string} userId user id
|
|
37
32
|
* @param {string} roomName room name
|
|
38
33
|
* @returns {string} returns the token value
|
|
@@ -8,7 +8,6 @@ class TwilioBase {
|
|
|
8
8
|
// getter / setter
|
|
9
9
|
/**
|
|
10
10
|
* getter for twilio instance
|
|
11
|
-
*
|
|
12
11
|
* @returns {Twilio} twilio instance
|
|
13
12
|
*/
|
|
14
13
|
get server() {
|
|
@@ -16,7 +15,6 @@ class TwilioBase {
|
|
|
16
15
|
}
|
|
17
16
|
/**
|
|
18
17
|
* setter for twilio instance
|
|
19
|
-
*
|
|
20
18
|
* @param {TwilioAuth} value twilio instance
|
|
21
19
|
*/
|
|
22
20
|
set server(value) {
|
|
@@ -24,7 +22,6 @@ class TwilioBase {
|
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
24
|
* getter for twilio auth
|
|
27
|
-
*
|
|
28
25
|
* @returns {TwilioAuth} twilio auth instance
|
|
29
26
|
*/
|
|
30
27
|
get auth() {
|
|
@@ -32,7 +29,6 @@ class TwilioBase {
|
|
|
32
29
|
}
|
|
33
30
|
/**
|
|
34
31
|
* setter for twilio auth instance
|
|
35
|
-
*
|
|
36
32
|
* @param {TwilioAuth} value twilio auth instance
|
|
37
33
|
*/
|
|
38
34
|
set auth(value) {
|
|
@@ -41,7 +37,6 @@ class TwilioBase {
|
|
|
41
37
|
// methods
|
|
42
38
|
/**
|
|
43
39
|
* Get token for extended classes
|
|
44
|
-
*
|
|
45
40
|
* @param {string} userId user id
|
|
46
41
|
* @param {string} roomName room name
|
|
47
42
|
* @returns {string} returns the token value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twilio.base.js","sourceRoot":"","sources":["../../../meet/twilio/twilio.base.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,MAAsB,UAAU;IAK5B,kBAAkB;IAClB
|
|
1
|
+
{"version":3,"file":"twilio.base.js","sourceRoot":"","sources":["../../../meet/twilio/twilio.base.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,MAAsB,UAAU;IAK5B,kBAAkB;IAClB;;;OAGG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IACD;;;OAGG;IACH,IAAW,MAAM,CAAC,KAAa;QAC3B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACzB,CAAC;IAED;;;OAGG;IACH,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED;;;OAGG;IACH,IAAW,IAAI,CAAC,KAAiB;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,UAAU;IAEV;;;;;OAKG;IACI,QAAQ,CAAC,MAAc,EAAE,QAAgB;QAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;CACJ;AAhDD,gCAgDC"}
|
|
@@ -26,7 +26,6 @@ export declare class TwilioRoom extends TwilioBase implements ITwilioRoom {
|
|
|
26
26
|
private _expMinutes;
|
|
27
27
|
/**
|
|
28
28
|
* Twilio room constructor
|
|
29
|
-
*
|
|
30
29
|
* @param {TwilioAuth} auth Twilio auth
|
|
31
30
|
* @param {Twilio} server Twilio API Server
|
|
32
31
|
* @param {number} expMins expiration time for the timeout room, in minutes.
|
|
@@ -34,7 +33,6 @@ export declare class TwilioRoom extends TwilioBase implements ITwilioRoom {
|
|
|
34
33
|
constructor(auth: TwilioAuth, server: Twilio, expMins: number);
|
|
35
34
|
/**
|
|
36
35
|
* This will find or Create a new room in Twilio
|
|
37
|
-
*
|
|
38
36
|
* @param {string} roomName room name
|
|
39
37
|
* @param {string} roomTypeStr room type to create in Twilio ("group" | "peer-to-peer" | "go")
|
|
40
38
|
* @returns {Promise<IRoomData>} promise of the result to create or get a room
|
|
@@ -42,14 +40,12 @@ export declare class TwilioRoom extends TwilioBase implements ITwilioRoom {
|
|
|
42
40
|
findOrCreateRoom(roomName: string, roomTypeStr?: string): Promise<IRoomData>;
|
|
43
41
|
/**
|
|
44
42
|
* Convenience method to determine if a roomType is valid
|
|
45
|
-
*
|
|
46
43
|
* @param {string} roomType The room type to validate.
|
|
47
44
|
* @returns {Promise<boolean>} true if a valid roomType, false otherwise
|
|
48
45
|
*/
|
|
49
46
|
validateRoomType(roomType: string): Promise<boolean>;
|
|
50
47
|
/**
|
|
51
48
|
* Find an existing room un Twilio
|
|
52
|
-
*
|
|
53
49
|
* @param {string} roomName room name
|
|
54
50
|
* @returns {Promise<IRoomData>} promise of the result to get a room
|
|
55
51
|
*/
|
|
@@ -29,7 +29,6 @@ const twilio_base_1 = require("./twilio.base");
|
|
|
29
29
|
let TwilioRoom = class TwilioRoom extends twilio_base_1.TwilioBase {
|
|
30
30
|
/**
|
|
31
31
|
* Twilio room constructor
|
|
32
|
-
*
|
|
33
32
|
* @param {TwilioAuth} auth Twilio auth
|
|
34
33
|
* @param {Twilio} server Twilio API Server
|
|
35
34
|
* @param {number} expMins expiration time for the timeout room, in minutes.
|
|
@@ -42,7 +41,6 @@ let TwilioRoom = class TwilioRoom extends twilio_base_1.TwilioBase {
|
|
|
42
41
|
}
|
|
43
42
|
/**
|
|
44
43
|
* This will find or Create a new room in Twilio
|
|
45
|
-
*
|
|
46
44
|
* @param {string} roomName room name
|
|
47
45
|
* @param {string} roomTypeStr room type to create in Twilio ("group" | "peer-to-peer" | "go")
|
|
48
46
|
* @returns {Promise<IRoomData>} promise of the result to create or get a room
|
|
@@ -91,7 +89,6 @@ let TwilioRoom = class TwilioRoom extends twilio_base_1.TwilioBase {
|
|
|
91
89
|
}
|
|
92
90
|
/**
|
|
93
91
|
* Convenience method to determine if a roomType is valid
|
|
94
|
-
*
|
|
95
92
|
* @param {string} roomType The room type to validate.
|
|
96
93
|
* @returns {Promise<boolean>} true if a valid roomType, false otherwise
|
|
97
94
|
*/
|
|
@@ -105,7 +102,6 @@ let TwilioRoom = class TwilioRoom extends twilio_base_1.TwilioBase {
|
|
|
105
102
|
}
|
|
106
103
|
/**
|
|
107
104
|
* Find an existing room un Twilio
|
|
108
|
-
*
|
|
109
105
|
* @param {string} roomName room name
|
|
110
106
|
* @returns {Promise<IRoomData>} promise of the result to get a room
|
|
111
107
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twilio.room.js","sourceRoot":"","sources":["../../../meet/twilio/twilio.room.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2C;AAC3C,uCAAsC;AACtC,mCAAgC;AAChC,+CAA2C;AAwB3C;;GAEG;
|
|
1
|
+
{"version":3,"file":"twilio.room.js","sourceRoot":"","sources":["../../../meet/twilio/twilio.room.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2C;AAC3C,uCAAsC;AACtC,mCAAgC;AAChC,+CAA2C;AAwB3C;;GAEG;AAEI,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;IAGtC;;;;;OAKG;IACH,YAAY,IAAgB,EAAE,MAAc,EAAE,OAAe;QACzD,KAAK,EAAE,CAAC;QACR,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;QAClB,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;IAC/B,CAAC;IAED;;;;;OAKG;IACG,gBAAgB,CAAC,QAAgB,EAAE,cAAsB,OAAO;;;;;YAClE,IAAI;gBACA,iEAAiE;gBACjE,eAAe;gBACf,MAAM,CAAC,GAAiB,MAAM,OAAM,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,CAAC;gBACzE,OAAO;oBACH,GAAG,EAAE,CAAC,CAAC,GAAG;oBACV,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,CAAC,CAAC,MAAM;iBACN,CAAC;aAClB;YAAC,OAAO,KAAK,EAAE;gBACZ,uCAAuC;gBACvC,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,EAAE;oBACrB,2BAA2B;oBAC3B,MAAM,QAAQ,GAAG,WAA2B,CAAC;oBAC7C,MAAM,CAAC,GAAiB,MAAM,OAAM,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;wBAC1D,UAAU,EAAE,QAAQ;wBACpB,iBAAiB,EAAE,IAAI,CAAC,WAAW;wBACnC,IAAI,EAAE,QAAQ;qBACjB,CAAC,CAAC;oBACH,iCAAiC;oBACjC,IAAI,CAAC,EAAE;wBACH,iCAAiC;wBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAe,CAAC;qBACpD;yBAAM;wBACH,aAAa;wBACb,OAAO,IAAI,CAAC;qBACf;iBACJ;qBAAM;oBACH,6BAA6B;oBAC7B,MAAM,KAAK,CAAC;iBACf;aACJ;QACL,CAAC;KAAA;IAED;;;;OAIG;IACG,gBAAgB,CAAC,QAAgB;;YACnC,IAAI,QAAQ,KAAK,cAAc,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,OAAO,EAAE;gBAC1E,OAAO,IAAI,CAAC;aACf;YACD,OAAO,KAAK,CAAC;QACjB,CAAC;KAAA;IAED;;;;OAIG;IACG,QAAQ,CAAC,QAAgB;;;;;YAC3B,4EAA4E;YAC5E,IAAI;gBACA,MAAM,CAAC,GAAiB,MAAM,OAAM,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,CAAC;gBACzE,OAAO;oBACH,GAAG,EAAE,CAAC,CAAC,GAAG;oBACV,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,CAAC,CAAC,MAAM;iBACN,CAAC;aAClB;YAAC,OAAO,KAAK,EAAE;gBACZ,uCAAuC;gBACvC,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK;oBAAE,OAAO,SAAS,CAAC;gBAC1C,6BAA6B;;oBACxB,MAAM,KAAK,CAAC;aACpB;QACL,CAAC;KAAA;CACJ,CAAA;AA1FY,UAAU;IADtB,IAAA,qBAAU,GAAE;qCAUS,wBAAU,EAAU,eAAM;GATnC,UAAU,CA0FtB;AA1FY,gCAAU"}
|
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.23",
|
|
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",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"compile": "tsc --build",
|
|
14
14
|
"test": "jest",
|
|
15
15
|
"build:local": "npm-run-all clean lint compile",
|
|
16
|
-
"build": "npm-run-all clean patch compile",
|
|
16
|
+
"build": "npm-run-all clean lint patch compile",
|
|
17
17
|
"deploy": "npm publish .dist --access public"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
@@ -24,11 +24,13 @@
|
|
|
24
24
|
"@types/node": "^17.0.8",
|
|
25
25
|
"@types/supertest": "^2.0.11",
|
|
26
26
|
"@types/uuid": "^8.3.4",
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
|
27
28
|
"@typescript-eslint/parser": "^5.9.0",
|
|
28
29
|
"esbuild": "^0.15.12",
|
|
29
30
|
"esbuild-jest": "^0.5.0",
|
|
30
31
|
"eslint": "^7.32.0",
|
|
31
32
|
"eslint-config-standard": "^16.0.3",
|
|
33
|
+
"eslint-plugin-jsdoc": "^45.0.0",
|
|
32
34
|
"jest": "^29.2.2",
|
|
33
35
|
"npm-run-all": "^4.1.5",
|
|
34
36
|
"rimraf": "^3.0.2",
|
package/swagger/_/swagger.d.ts
CHANGED
|
@@ -18,14 +18,12 @@ export declare class Swagger implements ISwagger {
|
|
|
18
18
|
private _config;
|
|
19
19
|
/**
|
|
20
20
|
* Swagger constructor
|
|
21
|
-
*
|
|
22
21
|
* @param {Express.Application} app express instance
|
|
23
22
|
* @param {ISwaggerConfig} config swagger configuration
|
|
24
23
|
*/
|
|
25
24
|
constructor(app: Express.Application, config: ISwaggerConfig);
|
|
26
25
|
/**
|
|
27
26
|
* getter for swagger config
|
|
28
|
-
*
|
|
29
27
|
* @returns {ISwaggerConfig} swagger config
|
|
30
28
|
*/
|
|
31
29
|
get config(): ISwaggerConfig;
|
package/swagger/_/swagger.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -31,7 +35,6 @@ const swagger_jsdoc_1 = __importDefault(require("swagger-jsdoc"));
|
|
|
31
35
|
class Swagger {
|
|
32
36
|
/**
|
|
33
37
|
* Swagger constructor
|
|
34
|
-
*
|
|
35
38
|
* @param {Express.Application} app express instance
|
|
36
39
|
* @param {ISwaggerConfig} config swagger configuration
|
|
37
40
|
*/
|
|
@@ -42,7 +45,6 @@ class Swagger {
|
|
|
42
45
|
// getters / setters
|
|
43
46
|
/**
|
|
44
47
|
* getter for swagger config
|
|
45
|
-
*
|
|
46
48
|
* @returns {ISwaggerConfig} swagger config
|
|
47
49
|
*/
|
|
48
50
|
get config() {
|
package/swagger/_/swagger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swagger.js","sourceRoot":"","sources":["../../../swagger/_/swagger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"swagger.js","sourceRoot":"","sources":["../../../swagger/_/swagger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,8DAAgD;AAChD,kEAAyC;AAgBzC;;GAEG;AACH,MAAa,OAAO;IAIhB;;;;OAIG;IACH,YAAY,GAAwB,EAAE,MAAsB;QACxD,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAC1B,CAAC;IAED,oBAAoB;IACpB;;;OAGG;IACH,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED;;OAEG;IACI,KAAK;QACR,MAAM,OAAO,GAAW;YACpB,UAAU,EAAE;gBACR,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,cAAc;gBACpC,IAAI,EAAE;oBACF,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO;oBACrC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK;oBACjC,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW;oBAC7C,OAAO,EAAE;wBACL,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;wBAC/B,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG;qBAChC;iBACJ;gBACD,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;gBACvB,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ;gBAC/B,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK;gBACzB,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW;aACxC;YACD,IAAI,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;SACtC,CAAC;QAEF,MAAM,KAAK,GAAW,IAAA,uBAAY,EAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACrG,CAAC;CACJ;AAlDD,0BAkDC"}
|
package/utils/_/encoder.d.ts
CHANGED
|
@@ -4,14 +4,12 @@
|
|
|
4
4
|
export declare abstract class Encoder {
|
|
5
5
|
/**
|
|
6
6
|
* Method to encode value to Base64
|
|
7
|
-
*
|
|
8
7
|
* @param {string} value value to be encoded
|
|
9
8
|
* @returns {string} base64 encoded value
|
|
10
9
|
*/
|
|
11
10
|
static toBase64(value: string): string;
|
|
12
11
|
/**
|
|
13
12
|
* Method to decode base64 value
|
|
14
|
-
*
|
|
15
13
|
* @param {string} encodedValue encoded base64 value
|
|
16
14
|
* @returns {string} decoded value
|
|
17
15
|
*/
|
package/utils/_/encoder.js
CHANGED
|
@@ -7,7 +7,6 @@ exports.Encoder = void 0;
|
|
|
7
7
|
class Encoder {
|
|
8
8
|
/**
|
|
9
9
|
* Method to encode value to Base64
|
|
10
|
-
*
|
|
11
10
|
* @param {string} value value to be encoded
|
|
12
11
|
* @returns {string} base64 encoded value
|
|
13
12
|
*/
|
|
@@ -16,7 +15,6 @@ class Encoder {
|
|
|
16
15
|
}
|
|
17
16
|
/**
|
|
18
17
|
* Method to decode base64 value
|
|
19
|
-
*
|
|
20
18
|
* @param {string} encodedValue encoded base64 value
|
|
21
19
|
* @returns {string} decoded value
|
|
22
20
|
*/
|
package/utils/_/encoder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoder.js","sourceRoot":"","sources":["../../../utils/_/encoder.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAsB,OAAO;IACzB
|
|
1
|
+
{"version":3,"file":"encoder.js","sourceRoot":"","sources":["../../../utils/_/encoder.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAsB,OAAO;IACzB;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAa;QACzB,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,YAAoB;QAClC,OAAO,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC1D,CAAC;CACJ;AAlBD,0BAkBC"}
|
package/utils/_/encryptor.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { EncryptionType } from "../../enums";
|
|
|
7
7
|
export declare abstract class Encryptor {
|
|
8
8
|
/**
|
|
9
9
|
* Method that encrypts a value
|
|
10
|
-
*
|
|
11
10
|
* @param {EncryptionType} type encryption type
|
|
12
11
|
* @param {string} value a value to encrypt
|
|
13
12
|
* @param {string} key encryption key
|
|
@@ -16,7 +15,6 @@ export declare abstract class Encryptor {
|
|
|
16
15
|
static encrypt(type: EncryptionType, value: string, key: string): string;
|
|
17
16
|
/**
|
|
18
17
|
* Method that decrypts a value
|
|
19
|
-
*
|
|
20
18
|
* @param {EncryptionType} type encryption type
|
|
21
19
|
* @param {string} cipher encrypted value / cipher
|
|
22
20
|
* @param {string} key decryption key
|
package/utils/_/encryptor.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -29,7 +33,6 @@ const Crypto = __importStar(require("crypto-js"));
|
|
|
29
33
|
class Encryptor {
|
|
30
34
|
/**
|
|
31
35
|
* Method that encrypts a value
|
|
32
|
-
*
|
|
33
36
|
* @param {EncryptionType} type encryption type
|
|
34
37
|
* @param {string} value a value to encrypt
|
|
35
38
|
* @param {string} key encryption key
|
|
@@ -37,17 +40,14 @@ class Encryptor {
|
|
|
37
40
|
*/
|
|
38
41
|
static encrypt(type, value, key) {
|
|
39
42
|
switch (type) {
|
|
40
|
-
case 0 /* AES */:
|
|
43
|
+
case 0 /* EncryptionType.AES */:
|
|
41
44
|
return Crypto.AES.encrypt(value, key).toString();
|
|
42
|
-
break;
|
|
43
45
|
default:
|
|
44
46
|
return Crypto.AES.encrypt(value, key).toString();
|
|
45
|
-
break;
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
49
50
|
* Method that decrypts a value
|
|
50
|
-
*
|
|
51
51
|
* @param {EncryptionType} type encryption type
|
|
52
52
|
* @param {string} cipher encrypted value / cipher
|
|
53
53
|
* @param {string} key decryption key
|
|
@@ -55,12 +55,10 @@ class Encryptor {
|
|
|
55
55
|
*/
|
|
56
56
|
static decrypt(type, cipher, key) {
|
|
57
57
|
switch (type) {
|
|
58
|
-
case 0 /* AES */:
|
|
58
|
+
case 0 /* EncryptionType.AES */:
|
|
59
59
|
return Crypto.AES.decrypt(cipher, key).toString(Crypto.enc.Utf8);
|
|
60
|
-
break;
|
|
61
60
|
default:
|
|
62
61
|
return Crypto.AES.decrypt(cipher, key).toString(Crypto.enc.Utf8);
|
|
63
|
-
break;
|
|
64
62
|
}
|
|
65
63
|
}
|
|
66
64
|
}
|
package/utils/_/encryptor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryptor.js","sourceRoot":"","sources":["../../../utils/_/encryptor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"encryptor.js","sourceRoot":"","sources":["../../../utils/_/encryptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAoC;AAGpC;;;;GAIG;AACH,MAAsB,SAAS;IAC3B;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,CAAC,IAAoB,EAAE,KAAa,EAAE,GAAW;QAC3D,QAAQ,IAAI,EAAE;YACV;gBACI,OAAO,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;YACrD;gBACI,OAAO,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;SACxD;IACL,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,CAAC,IAAoB,EAAE,MAAc,EAAE,GAAW;QAC5D,QAAQ,IAAI,EAAE;YACV;gBACI,OAAO,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACrE;gBACI,OAAO,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SACxE;IACL,CAAC;CACJ;AAhCD,8BAgCC"}
|
package/utils/_/hasher.d.ts
CHANGED
|
@@ -4,20 +4,17 @@
|
|
|
4
4
|
export declare abstract class Hasher {
|
|
5
5
|
/**
|
|
6
6
|
* Generate hash with/without base64 encoding
|
|
7
|
-
*
|
|
8
7
|
* @param {boolean?} encoded optional flag for encoded hash
|
|
9
8
|
* @returns {string} randomly generated hash value
|
|
10
9
|
*/
|
|
11
10
|
static generate(encoded?: boolean): string;
|
|
12
11
|
/**
|
|
13
12
|
* Generate guid type
|
|
14
|
-
*
|
|
15
13
|
* @returns {string} Guid as string
|
|
16
14
|
*/
|
|
17
15
|
static guid(): string;
|
|
18
16
|
/**
|
|
19
17
|
* Validate if string is a guid type
|
|
20
|
-
*
|
|
21
18
|
* @param {string} value optional flag for encoded hash
|
|
22
19
|
* @returns {boolean} is Guid
|
|
23
20
|
*/
|
package/utils/_/hasher.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -29,7 +33,6 @@ const encoder_1 = require("./encoder");
|
|
|
29
33
|
class Hasher {
|
|
30
34
|
/**
|
|
31
35
|
* Generate hash with/without base64 encoding
|
|
32
|
-
*
|
|
33
36
|
* @param {boolean?} encoded optional flag for encoded hash
|
|
34
37
|
* @returns {string} randomly generated hash value
|
|
35
38
|
*/
|
|
@@ -44,7 +47,6 @@ class Hasher {
|
|
|
44
47
|
}
|
|
45
48
|
/**
|
|
46
49
|
* Generate guid type
|
|
47
|
-
*
|
|
48
50
|
* @returns {string} Guid as string
|
|
49
51
|
*/
|
|
50
52
|
static guid() {
|
|
@@ -52,7 +54,6 @@ class Hasher {
|
|
|
52
54
|
}
|
|
53
55
|
/**
|
|
54
56
|
* Validate if string is a guid type
|
|
55
|
-
*
|
|
56
57
|
* @param {string} value optional flag for encoded hash
|
|
57
58
|
* @returns {boolean} is Guid
|
|
58
59
|
*/
|
package/utils/_/hasher.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hasher.js","sourceRoot":"","sources":["../../../utils/_/hasher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hasher.js","sourceRoot":"","sources":["../../../utils/_/hasher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,qDAAuC;AACvC,uCAAoC;AAEpC;;GAEG;AACH,MAAsB,MAAM;IACxB;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAiB;QAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACzC,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,EAAE;YAClC,OAAO,iBAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACjC;aAAM;YACH,OAAO,IAAI,CAAC;SACf;IACL,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI;QACP,OAAO,sBAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;IACpC,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,KAAa;QACvB,OAAO,sBAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AA/BD,wBA+BC"}
|
package/utils/_/object-mapper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-mapper.js","sourceRoot":"","sources":["../../../utils/_/object-mapper.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAsB,YAAY;IAC9B
|
|
1
|
+
{"version":3,"file":"object-mapper.js","sourceRoot":"","sources":["../../../utils/_/object-mapper.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAsB,YAAY;IAC9B;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAI,MAAc;QACnC,IAAI,GAAG,GAAG,EAAE,CAAC;QAEb,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAW,EAAE,EAAE;YACxC,GAAG,mCAAQ,GAAG,KAAE,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,GAAE,CAAC;QACzC,CAAC,CAAC,CAAC;QAEH,OAAO,GAAmB,CAAC;IAC/B,CAAC;CACJ;AAfD,oCAeC"}
|
|
@@ -4,28 +4,24 @@
|
|
|
4
4
|
export declare abstract class StringFormatter {
|
|
5
5
|
/**
|
|
6
6
|
* Convert first char to lower case
|
|
7
|
-
*
|
|
8
7
|
* @param {string} value value to be converted
|
|
9
8
|
* @returns {string} converted value
|
|
10
9
|
*/
|
|
11
10
|
static firstCharToLower(value: string): string;
|
|
12
11
|
/**
|
|
13
12
|
* Convert first char to upper case
|
|
14
|
-
*
|
|
15
13
|
* @param {string} value value to be converted
|
|
16
14
|
* @returns {string} converted value
|
|
17
15
|
*/
|
|
18
16
|
static firstCharToUpper(value: string): string;
|
|
19
17
|
/**
|
|
20
18
|
* Capitalize all words on sentence
|
|
21
|
-
*
|
|
22
19
|
* @param {string} value value to be converted
|
|
23
20
|
* @returns {string} converted value
|
|
24
21
|
*/
|
|
25
22
|
static capitalizeSentence(value: string): string;
|
|
26
23
|
/**
|
|
27
24
|
* Function that put quotes to params for stored procedure
|
|
28
|
-
*
|
|
29
25
|
* @param {string} text text to add quote
|
|
30
26
|
* @param {boolean} removeComma remove final comma if is a concat of values
|
|
31
27
|
* @returns {string} return formatted string
|