@bwi-mentorspaces/application-utils-npm 0.0.29 → 0.0.30
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/models/_/event.data.d.ts +4 -0
- package/chat/stream/stream.api.d.ts +0 -6
- package/chat/stream/stream.api.js +0 -6
- 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 +0 -7
- package/chat/stream/stream.base.js.map +1 -1
- package/chat/stream/stream.channel.d.ts +0 -11
- package/chat/stream/stream.channel.js +0 -11
- 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 +0 -7
- 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 +0 -1
- package/core/_/cors-headers.js.map +1 -1
- package/core/_/service-request.d.ts +0 -2
- package/core/_/service-request.js +0 -2
- package/core/_/service-request.js.map +1 -1
- package/deployment/_/serverless.d.ts +1 -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 +0 -4
- 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 +0 -3
- 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 +1 -1
- package/swagger/_/swagger.d.ts +0 -2
- package/swagger/_/swagger.js +0 -2
- 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 +0 -2
- package/utils/_/encryptor.js.map +1 -1
- package/utils/_/hasher.d.ts +0 -3
- package/utils/_/hasher.js +0 -3
- 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 +0 -4
- package/utils/_/utc-date.js.map +1 -1
- package/validators/_/checker.d.ts +0 -7
- package/validators/_/checker.js +0 -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
|
@@ -41,7 +41,6 @@ const AccessToken_1 = __importStar(require("twilio/lib/jwt/AccessToken"));
|
|
|
41
41
|
let TwilioAuth = class TwilioAuth {
|
|
42
42
|
/**
|
|
43
43
|
* Twilio auth constructor
|
|
44
|
-
*
|
|
45
44
|
* @param {IMeetConfig} config meet config
|
|
46
45
|
*/
|
|
47
46
|
constructor(config) {
|
|
@@ -49,7 +48,6 @@ let TwilioAuth = class TwilioAuth {
|
|
|
49
48
|
}
|
|
50
49
|
/**
|
|
51
50
|
* Instance the twilio client
|
|
52
|
-
*
|
|
53
51
|
* @param {string} mainAccountSID main account SID
|
|
54
52
|
* @param {string} mainApiKeySID main api SID
|
|
55
53
|
* @param {string} mainApiKeySecret main apy secret
|
|
@@ -62,7 +60,6 @@ let TwilioAuth = class TwilioAuth {
|
|
|
62
60
|
}
|
|
63
61
|
/**
|
|
64
62
|
* Get token
|
|
65
|
-
*
|
|
66
63
|
* @param {string} userId user id
|
|
67
64
|
* @param {string} roomName room name
|
|
68
65
|
* @returns {string} returns token value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twilio.auth.js","sourceRoot":"","sources":["../../../meet/twilio/twilio.auth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAsC;AACtC,0EAAqE;
|
|
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;AAEI,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;IAGtC
|
|
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.30",
|
|
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",
|
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
|
@@ -35,7 +35,6 @@ const swagger_jsdoc_1 = __importDefault(require("swagger-jsdoc"));
|
|
|
35
35
|
class Swagger {
|
|
36
36
|
/**
|
|
37
37
|
* Swagger constructor
|
|
38
|
-
*
|
|
39
38
|
* @param {Express.Application} app express instance
|
|
40
39
|
* @param {ISwaggerConfig} config swagger configuration
|
|
41
40
|
*/
|
|
@@ -46,7 +45,6 @@ class Swagger {
|
|
|
46
45
|
// getters / setters
|
|
47
46
|
/**
|
|
48
47
|
* getter for swagger config
|
|
49
|
-
*
|
|
50
48
|
* @returns {ISwaggerConfig} swagger config
|
|
51
49
|
*/
|
|
52
50
|
get config() {
|
package/swagger/_/swagger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swagger.js","sourceRoot":"","sources":["../../../swagger/_/swagger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,8DAAgD;AAChD,kEAAyC;AAgBzC;;GAEG;AACH,MAAa,OAAO;IAIhB
|
|
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
|
@@ -33,7 +33,6 @@ const Crypto = __importStar(require("crypto-js"));
|
|
|
33
33
|
class Encryptor {
|
|
34
34
|
/**
|
|
35
35
|
* Method that encrypts a value
|
|
36
|
-
*
|
|
37
36
|
* @param {EncryptionType} type encryption type
|
|
38
37
|
* @param {string} value a value to encrypt
|
|
39
38
|
* @param {string} key encryption key
|
|
@@ -49,7 +48,6 @@ class Encryptor {
|
|
|
49
48
|
}
|
|
50
49
|
/**
|
|
51
50
|
* Method that decrypts a value
|
|
52
|
-
*
|
|
53
51
|
* @param {EncryptionType} type encryption type
|
|
54
52
|
* @param {string} cipher encrypted value / cipher
|
|
55
53
|
* @param {string} key decryption key
|
package/utils/_/encryptor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryptor.js","sourceRoot":"","sources":["../../../utils/_/encryptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAoC;AAGpC;;;;GAIG;AACH,MAAsB,SAAS;IAC3B
|
|
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
|
@@ -33,7 +33,6 @@ const encoder_1 = require("./encoder");
|
|
|
33
33
|
class Hasher {
|
|
34
34
|
/**
|
|
35
35
|
* Generate hash with/without base64 encoding
|
|
36
|
-
*
|
|
37
36
|
* @param {boolean?} encoded optional flag for encoded hash
|
|
38
37
|
* @returns {string} randomly generated hash value
|
|
39
38
|
*/
|
|
@@ -48,7 +47,6 @@ class Hasher {
|
|
|
48
47
|
}
|
|
49
48
|
/**
|
|
50
49
|
* Generate guid type
|
|
51
|
-
*
|
|
52
50
|
* @returns {string} Guid as string
|
|
53
51
|
*/
|
|
54
52
|
static guid() {
|
|
@@ -56,7 +54,6 @@ class Hasher {
|
|
|
56
54
|
}
|
|
57
55
|
/**
|
|
58
56
|
* Validate if string is a guid type
|
|
59
|
-
*
|
|
60
57
|
* @param {string} value optional flag for encoded hash
|
|
61
58
|
* @returns {boolean} is Guid
|
|
62
59
|
*/
|
package/utils/_/hasher.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
|
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
|
|
@@ -7,7 +7,6 @@ exports.StringFormatter = void 0;
|
|
|
7
7
|
class StringFormatter {
|
|
8
8
|
/**
|
|
9
9
|
* Convert first char to lower case
|
|
10
|
-
*
|
|
11
10
|
* @param {string} value value to be converted
|
|
12
11
|
* @returns {string} converted value
|
|
13
12
|
*/
|
|
@@ -16,7 +15,6 @@ class StringFormatter {
|
|
|
16
15
|
}
|
|
17
16
|
/**
|
|
18
17
|
* Convert first char to upper case
|
|
19
|
-
*
|
|
20
18
|
* @param {string} value value to be converted
|
|
21
19
|
* @returns {string} converted value
|
|
22
20
|
*/
|
|
@@ -25,7 +23,6 @@ class StringFormatter {
|
|
|
25
23
|
}
|
|
26
24
|
/**
|
|
27
25
|
* Capitalize all words on sentence
|
|
28
|
-
*
|
|
29
26
|
* @param {string} value value to be converted
|
|
30
27
|
* @returns {string} converted value
|
|
31
28
|
*/
|
|
@@ -34,7 +31,6 @@ class StringFormatter {
|
|
|
34
31
|
}
|
|
35
32
|
/**
|
|
36
33
|
* Function that put quotes to params for stored procedure
|
|
37
|
-
*
|
|
38
34
|
* @param {string} text text to add quote
|
|
39
35
|
* @param {boolean} removeComma remove final comma if is a concat of values
|
|
40
36
|
* @returns {string} return formatted string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-formatter.js","sourceRoot":"","sources":["../../../utils/_/string-formatter.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAsB,eAAe;IACjC
|
|
1
|
+
{"version":3,"file":"string-formatter.js","sourceRoot":"","sources":["../../../utils/_/string-formatter.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAsB,eAAe;IACjC;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,CAAC,KAAa;QACjC,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,CAAC,KAAa;QACjC,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,KAAa;QACnC,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAY,EAAE,cAAuB,KAAK;QACtD,IAAI,WAAW;YAAE,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;;YACtD,OAAO,IAAI,IAAI,GAAG,CAAC;IAC5B,CAAC;CACJ;AAtCD,0CAsCC"}
|
package/utils/_/utc-date.d.ts
CHANGED
|
@@ -5,27 +5,23 @@ import { Interval } from "../../enums";
|
|
|
5
5
|
export declare abstract class UtcDate {
|
|
6
6
|
/**
|
|
7
7
|
* Get Utc Date Time from date value
|
|
8
|
-
*
|
|
9
8
|
* @param {string | number} dtm Date to be parsed to Utc
|
|
10
9
|
* @returns {Date} Utc Date Time
|
|
11
10
|
*/
|
|
12
11
|
static convert(dtm: string | number): Date;
|
|
13
12
|
/**
|
|
14
13
|
* Get current Utc Date Time
|
|
15
|
-
*
|
|
16
14
|
* @returns {Date} Current Utc Date Time
|
|
17
15
|
*/
|
|
18
16
|
static now(): Date;
|
|
19
17
|
/**
|
|
20
18
|
* Get current Utc Date Time as a Timestamp
|
|
21
|
-
*
|
|
22
19
|
* @param {number?} min optional number of min to add to the current datetime
|
|
23
20
|
* @returns {number} Utc Timestamp
|
|
24
21
|
*/
|
|
25
22
|
static timestamp(min?: number): number;
|
|
26
23
|
/**
|
|
27
24
|
* Add or subtract days to specific date
|
|
28
|
-
*
|
|
29
25
|
* @param {Date} date date to start with
|
|
30
26
|
* @param {Interval} interval one of: year, quarter, month, week, day, hour, minute, second
|
|
31
27
|
* @param {number} units number of units of given interval to add
|
package/utils/_/utc-date.js
CHANGED
|
@@ -7,7 +7,6 @@ exports.UtcDate = void 0;
|
|
|
7
7
|
class UtcDate {
|
|
8
8
|
/**
|
|
9
9
|
* Get Utc Date Time from date value
|
|
10
|
-
*
|
|
11
10
|
* @param {string | number} dtm Date to be parsed to Utc
|
|
12
11
|
* @returns {Date} Utc Date Time
|
|
13
12
|
*/
|
|
@@ -16,7 +15,6 @@ class UtcDate {
|
|
|
16
15
|
}
|
|
17
16
|
/**
|
|
18
17
|
* Get current Utc Date Time
|
|
19
|
-
*
|
|
20
18
|
* @returns {Date} Current Utc Date Time
|
|
21
19
|
*/
|
|
22
20
|
static now() {
|
|
@@ -24,7 +22,6 @@ class UtcDate {
|
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
24
|
* Get current Utc Date Time as a Timestamp
|
|
27
|
-
*
|
|
28
25
|
* @param {number?} min optional number of min to add to the current datetime
|
|
29
26
|
* @returns {number} Utc Timestamp
|
|
30
27
|
*/
|
|
@@ -39,7 +36,6 @@ class UtcDate {
|
|
|
39
36
|
}
|
|
40
37
|
/**
|
|
41
38
|
* Add or subtract days to specific date
|
|
42
|
-
*
|
|
43
39
|
* @param {Date} date date to start with
|
|
44
40
|
* @param {Interval} interval one of: year, quarter, month, week, day, hour, minute, second
|
|
45
41
|
* @param {number} units number of units of given interval to add
|
package/utils/_/utc-date.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utc-date.js","sourceRoot":"","sources":["../../../utils/_/utc-date.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAsB,OAAO;IACzB
|
|
1
|
+
{"version":3,"file":"utc-date.js","sourceRoot":"","sources":["../../../utils/_/utc-date.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAsB,OAAO;IACzB;;;;OAIG;IACH,MAAM,CAAC,OAAO,CAAC,GAAoB;QAC/B,OAAO,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,GAAG;QACN,OAAO,IAAI,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,GAAY;QACzB,MAAM,GAAG,GAAS,IAAI,IAAI,EAAE,CAAC;QAC7B,IAAI,GAAG,IAAI,GAAG,GAAG,CAAC,EAAE;YAChB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;SAC1E;aAAM;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;SACxC;IACL,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,CAAC,IAAU,EAAE,QAAkB,EAAE,KAAa;QACxD,IAAI,CAAC,IAAI;YAAE,OAAO,SAAS,CAAC;QAC5B,IAAI,OAAa,CAAC;QAClB,QAAQ,QAAQ,EAAE;YACd;gBACI,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC;gBACjE,MAAM;YACV;gBACI,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;gBAC/D,MAAM;YACV;gBACI,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC;gBAC3D,MAAM;YACV;gBACI,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;gBAC7D,MAAM;YACV;gBACI,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC;gBACzD,MAAM;YACV;gBACI,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC;gBACnE,MAAM;YACV;gBACI,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC;gBACjE,MAAM;YACV;gBACI,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC;gBAChE,MAAM;YACV;gBACI,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;gBACjD,MAAM;SACb;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ;AAzED,0BAyEC"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
export declare abstract class Checker {
|
|
5
5
|
/**
|
|
6
6
|
* Method to match value against the Regular Expression
|
|
7
|
-
*
|
|
8
7
|
* @param {RegExp} regex regular expression to match the value format
|
|
9
8
|
* @param {string} value value to match
|
|
10
9
|
* @returns {boolean} is matched
|
|
@@ -12,14 +11,12 @@ export declare abstract class Checker {
|
|
|
12
11
|
static isMatch(regex: RegExp, value: string): boolean;
|
|
13
12
|
/**
|
|
14
13
|
* Method to check if value is null or empty
|
|
15
|
-
*
|
|
16
14
|
* @param {string | undefined | null} value a value to validate
|
|
17
15
|
* @returns {boolean} is null or empty
|
|
18
16
|
*/
|
|
19
17
|
static isNullOrEmpty(value: string | undefined | null): boolean;
|
|
20
18
|
/**
|
|
21
19
|
* Method to check if the number is modular (returns 0)
|
|
22
|
-
*
|
|
23
20
|
* @param {number} mod mod factor
|
|
24
21
|
* @param {number} value number to run mod function on
|
|
25
22
|
* @returns {boolean} is modular number
|
|
@@ -27,7 +24,6 @@ export declare abstract class Checker {
|
|
|
27
24
|
static isModularBy(mod: number, value: number): boolean;
|
|
28
25
|
/**
|
|
29
26
|
* Method to check min length of a value
|
|
30
|
-
*
|
|
31
27
|
* @param {number} length min length
|
|
32
28
|
* @param {string} value value to check
|
|
33
29
|
* @returns {boolean} if value's length is greater or equal to the length param
|
|
@@ -35,7 +31,6 @@ export declare abstract class Checker {
|
|
|
35
31
|
static hasMinLength(length: number, value: string): boolean;
|
|
36
32
|
/**
|
|
37
33
|
* Method to check max length of a value
|
|
38
|
-
*
|
|
39
34
|
* @param {number} length max length
|
|
40
35
|
* @param {string} value value to check
|
|
41
36
|
* @returns {boolean} if value's length is less or equal to the length param
|
|
@@ -43,7 +38,6 @@ export declare abstract class Checker {
|
|
|
43
38
|
static hasMaxLength(length: number, value: string): boolean;
|
|
44
39
|
/**
|
|
45
40
|
* Method to check exact length of a value
|
|
46
|
-
*
|
|
47
41
|
* @param {number} length exact length
|
|
48
42
|
* @param {string} value value to check
|
|
49
43
|
* @returns {boolean} if value's length is exact length as the length param
|
|
@@ -51,7 +45,6 @@ export declare abstract class Checker {
|
|
|
51
45
|
static hasExactLength(length: number, value: string): boolean;
|
|
52
46
|
/**
|
|
53
47
|
* Check a specific name or string
|
|
54
|
-
*
|
|
55
48
|
* @param {number} min minimum length
|
|
56
49
|
* @param {number} max maximum length
|
|
57
50
|
* @param {string} value string value to check
|
package/validators/_/checker.js
CHANGED
|
@@ -7,7 +7,6 @@ exports.Checker = void 0;
|
|
|
7
7
|
class Checker {
|
|
8
8
|
/**
|
|
9
9
|
* Method to match value against the Regular Expression
|
|
10
|
-
*
|
|
11
10
|
* @param {RegExp} regex regular expression to match the value format
|
|
12
11
|
* @param {string} value value to match
|
|
13
12
|
* @returns {boolean} is matched
|
|
@@ -17,7 +16,6 @@ class Checker {
|
|
|
17
16
|
}
|
|
18
17
|
/**
|
|
19
18
|
* Method to check if value is null or empty
|
|
20
|
-
*
|
|
21
19
|
* @param {string | undefined | null} value a value to validate
|
|
22
20
|
* @returns {boolean} is null or empty
|
|
23
21
|
*/
|
|
@@ -32,7 +30,6 @@ class Checker {
|
|
|
32
30
|
}
|
|
33
31
|
/**
|
|
34
32
|
* Method to check if the number is modular (returns 0)
|
|
35
|
-
*
|
|
36
33
|
* @param {number} mod mod factor
|
|
37
34
|
* @param {number} value number to run mod function on
|
|
38
35
|
* @returns {boolean} is modular number
|
|
@@ -42,7 +39,6 @@ class Checker {
|
|
|
42
39
|
}
|
|
43
40
|
/**
|
|
44
41
|
* Method to check min length of a value
|
|
45
|
-
*
|
|
46
42
|
* @param {number} length min length
|
|
47
43
|
* @param {string} value value to check
|
|
48
44
|
* @returns {boolean} if value's length is greater or equal to the length param
|
|
@@ -52,7 +48,6 @@ class Checker {
|
|
|
52
48
|
}
|
|
53
49
|
/**
|
|
54
50
|
* Method to check max length of a value
|
|
55
|
-
*
|
|
56
51
|
* @param {number} length max length
|
|
57
52
|
* @param {string} value value to check
|
|
58
53
|
* @returns {boolean} if value's length is less or equal to the length param
|
|
@@ -62,7 +57,6 @@ class Checker {
|
|
|
62
57
|
}
|
|
63
58
|
/**
|
|
64
59
|
* Method to check exact length of a value
|
|
65
|
-
*
|
|
66
60
|
* @param {number} length exact length
|
|
67
61
|
* @param {string} value value to check
|
|
68
62
|
* @returns {boolean} if value's length is exact length as the length param
|
|
@@ -72,7 +66,6 @@ class Checker {
|
|
|
72
66
|
}
|
|
73
67
|
/**
|
|
74
68
|
* Check a specific name or string
|
|
75
|
-
*
|
|
76
69
|
* @param {number} min minimum length
|
|
77
70
|
* @param {number} max maximum length
|
|
78
71
|
* @param {string} value string value to check
|