@bwi-mentorspaces/application-utils-npm 0.0.77 → 0.0.79
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/calendar/cronofy/cronofy.api.d.ts +26 -14
- package/calendar/cronofy/cronofy.api.js +28 -16
- package/calendar/cronofy/cronofy.api.js.map +1 -1
- package/calendar/cronofy/models/_/cronofy.data.d.ts +6 -2
- package/calendar/index.d.ts +3 -0
- package/calendar/index.js +3 -0
- package/calendar/index.js.map +1 -1
- package/chat/index.d.ts +3 -0
- package/chat/index.js +3 -0
- 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/_/job.response.d.ts +8 -0
- package/chat/stream/models/_/job.response.js +8 -0
- package/chat/stream/models/_/job.response.js.map +1 -1
- package/chat/stream/stream.api.d.ts +6 -0
- package/chat/stream/stream.api.js +6 -0
- package/chat/stream/stream.api.js.map +1 -1
- package/chat/stream/stream.auth.d.ts +7 -0
- package/chat/stream/stream.auth.js +4 -0
- package/chat/stream/stream.auth.js.map +1 -1
- package/chat/stream/stream.base.d.ts +7 -0
- package/chat/stream/stream.base.js +9 -2
- package/chat/stream/stream.base.js.map +1 -1
- package/chat/stream/stream.channel.d.ts +11 -0
- package/chat/stream/stream.channel.js +11 -0
- package/chat/stream/stream.channel.js.map +1 -1
- package/chat/stream/stream.error.d.ts +1 -0
- package/chat/stream/stream.error.js +1 -0
- package/chat/stream/stream.error.js.map +1 -1
- package/chat/stream/stream.member.d.ts +6 -0
- package/chat/stream/stream.member.js +6 -0
- package/chat/stream/stream.member.js.map +1 -1
- package/chat/stream/stream.message.d.ts +7 -2
- package/chat/stream/stream.message.js +7 -2
- package/chat/stream/stream.message.js.map +1 -1
- package/chat/stream/stream.user.d.ts +7 -0
- package/chat/stream/stream.user.js +7 -0
- package/chat/stream/stream.user.js.map +1 -1
- package/core/_/api-error.d.ts +1 -0
- package/core/_/api-error.js +1 -0
- package/core/_/api-error.js.map +1 -1
- package/core/_/api-response.d.ts +1 -0
- package/core/_/api-response.js +1 -0
- package/core/_/api-response.js.map +1 -1
- package/core/_/cors-headers.d.ts +1 -0
- package/core/_/cors-headers.js +10 -9
- package/core/_/cors-headers.js.map +1 -1
- package/core/_/service-request.d.ts +2 -0
- package/core/_/service-request.js +7 -5
- package/core/_/service-request.js.map +1 -1
- package/deployment/_/serverless.d.ts +2 -0
- package/deployment/_/serverless.js +2 -0
- package/deployment/_/serverless.js.map +1 -1
- package/endpoint-test-factory/_/test-factory.d.ts +4 -0
- package/endpoint-test-factory/_/test-factory.js +9 -5
- package/endpoint-test-factory/_/test-factory.js.map +1 -1
- package/enums/index.d.ts +2 -1
- package/meet/index.d.ts +3 -0
- package/meet/index.js +3 -0
- package/meet/index.js.map +1 -1
- package/meet/twilio/twilio.api.d.ts +3 -0
- package/meet/twilio/twilio.api.js +3 -0
- package/meet/twilio/twilio.api.js.map +1 -1
- package/meet/twilio/twilio.auth.d.ts +5 -0
- package/meet/twilio/twilio.auth.js +4 -5
- package/meet/twilio/twilio.auth.js.map +1 -1
- package/meet/twilio/twilio.base.d.ts +5 -0
- package/meet/twilio/twilio.base.js +5 -0
- package/meet/twilio/twilio.base.js.map +1 -1
- package/meet/twilio/twilio.room.d.ts +4 -0
- package/meet/twilio/twilio.room.js +4 -0
- package/meet/twilio/twilio.room.js.map +1 -1
- package/package.json +1 -1
- package/session/index.d.ts +3 -0
- package/session/index.js +3 -0
- package/session/index.js.map +1 -1
- package/session/ms.live/models/_/room.data.d.ts +16 -2
- package/session/ms.live/ms.live.api.d.ts +12 -0
- package/session/ms.live/ms.live.api.js +16 -4
- package/session/ms.live/ms.live.api.js.map +1 -1
- package/session/ms.live/ms.live.auth.d.ts +21 -0
- package/session/ms.live/ms.live.auth.js +20 -4
- package/session/ms.live/ms.live.auth.js.map +1 -1
- package/session/ms.live/ms.live.base.d.ts +4 -0
- package/session/ms.live/ms.live.base.js +4 -0
- package/session/ms.live/ms.live.base.js.map +1 -1
- package/session/ms.live/ms.live.room.d.ts +16 -4
- package/session/ms.live/ms.live.room.js +15 -3
- package/session/ms.live/ms.live.room.js.map +1 -1
- package/swagger/_/swagger.d.ts +2 -0
- package/swagger/_/swagger.js +3 -5
- package/swagger/_/swagger.js.map +1 -1
- package/utils/_/encoder.d.ts +2 -0
- package/utils/_/encoder.js +2 -0
- package/utils/_/encoder.js.map +1 -1
- package/utils/_/encryptor.d.ts +2 -0
- package/utils/_/encryptor.js +5 -7
- package/utils/_/encryptor.js.map +1 -1
- package/utils/_/hasher.d.ts +3 -0
- package/utils/_/hasher.js +4 -5
- package/utils/_/hasher.js.map +1 -1
- package/utils/_/object-mapper.d.ts +1 -0
- package/utils/_/object-mapper.js +1 -0
- package/utils/_/object-mapper.js.map +1 -1
- package/utils/_/string-formatter.d.ts +4 -0
- package/utils/_/string-formatter.js +4 -0
- package/utils/_/string-formatter.js.map +1 -1
- package/utils/_/utc-date.d.ts +4 -0
- package/utils/_/utc-date.js +12 -8
- package/utils/_/utc-date.js.map +1 -1
- package/validators/_/checker.d.ts +7 -0
- package/validators/_/checker.js +7 -0
- package/validators/_/checker.js.map +1 -1
- package/validators/_/regex.d.ts +15 -0
- package/validators/_/regex.js +15 -0
- package/validators/_/regex.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.user.js","sourceRoot":"","sources":["../../../chat/stream/stream.user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,+CAA2C;AAkB3C;;GAEG;AACH,MAAa,UAAW,SAAQ,wBAAU;IACtC,aAAa;IAEb
|
|
1
|
+
{"version":3,"file":"stream.user.js","sourceRoot":"","sources":["../../../chat/stream/stream.user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,+CAA2C;AAkB3C;;GAEG;AACH,MAAa,UAAW,SAAQ,wBAAU;IACtC,aAAa;IAEb;;;;OAIG;IACH,YAAY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AAE,EAAE;gBAC7C,WAAW,EAAE,MAAM;gBACnB,4BAA4B,EAAE,IAAI;aACrC,CAAC,CAAC;YACH,kBAAkB;YAClB,IAAI,CAAC,EAAE;gBACH,OAAO,IAAI,CAAC;aACf;iBAAM;gBACH,OAAO,KAAK,CAAC;aAChB;QACL,CAAC;KAAA;IAED;;;;;OAKG;IACG,UAAU,CAAC,IAAiB;;;;;YAC9B,wBAAwB;YACxB,MAAM,CAAC,GAAG,MAAM,OAAM,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;YAE9C,OAAO,CAAC,CAAC,KAAK,CAAC;QACnB,CAAC;KAAA;CACJ;AAnHD,gCAmHC"}
|
package/core/_/api-error.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare class ApiError implements IApiError {
|
|
|
15
15
|
details: string | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* Error constructor
|
|
18
|
+
*
|
|
18
19
|
* @param {number} status error status number
|
|
19
20
|
* @param {string | undefined} message user friendly error message
|
|
20
21
|
* @param {string | undefined} details technical details (for logging)
|
package/core/_/api-error.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.ApiError = void 0;
|
|
|
7
7
|
class ApiError {
|
|
8
8
|
/**
|
|
9
9
|
* Error constructor
|
|
10
|
+
*
|
|
10
11
|
* @param {number} status error status number
|
|
11
12
|
* @param {string | undefined} message user friendly error message
|
|
12
13
|
* @param {string | undefined} details technical details (for logging)
|
package/core/_/api-error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-error.js","sourceRoot":"","sources":["../../../core/_/api-error.ts"],"names":[],"mappings":";;;AAUA;;GAEG;AACH,MAAa,QAAQ;IAMjB
|
|
1
|
+
{"version":3,"file":"api-error.js","sourceRoot":"","sources":["../../../core/_/api-error.ts"],"names":[],"mappings":";;;AAUA;;GAEG;AACH,MAAa,QAAQ;IAMjB;;;;;;OAMG;IACH,YAAY,MAA2B,EAAE,OAA4B,EAAE,OAA4B;QAC/F,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC,CAAE,OAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;QACzD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC,CAAE,OAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7D,CAAC;CACJ;AAlBD,4BAkBC"}
|
package/core/_/api-response.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare class ApiResponse<T> implements IApiResponse<T> {
|
|
|
16
16
|
error: IApiError | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* ApiResponse constructor
|
|
19
|
+
*
|
|
19
20
|
* @param {number} status response status
|
|
20
21
|
* @param {T | undefined} result response result as type T
|
|
21
22
|
* @param {IApiError | undefined} error response error
|
package/core/_/api-response.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-response.js","sourceRoot":"","sources":["../../../core/_/api-response.ts"],"names":[],"mappings":";;;AAYA;;GAEG;AACH,MAAa,WAAW;IAMpB
|
|
1
|
+
{"version":3,"file":"api-response.js","sourceRoot":"","sources":["../../../core/_/api-response.ts"],"names":[],"mappings":";;;AAYA;;GAEG;AACH,MAAa,WAAW;IAMpB;;;;;;OAMG;IACH,YAAY,MAAc,EAAE,MAAsB,EAAE,KAA6B;QAC7E,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAE,MAAY,CAAC,CAAC,CAAC,SAAS,CAAC;QACjD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAE,KAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1D,CAAC;CACJ;AAlBD,kCAkBC"}
|
package/core/_/cors-headers.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { Method, Header } from "../../enums";
|
|
|
6
6
|
export declare abstract class CorsHeaders {
|
|
7
7
|
/**
|
|
8
8
|
* CorsHeaders constructor
|
|
9
|
+
*
|
|
9
10
|
* @param {Express.Response} res express response
|
|
10
11
|
* @param {Method[]} methods array of allowed Methods | defaults to all
|
|
11
12
|
* @param {string?} origin allowed origin url | * default
|
package/core/_/cors-headers.js
CHANGED
|
@@ -7,24 +7,25 @@ exports.CorsHeaders = void 0;
|
|
|
7
7
|
class CorsHeaders {
|
|
8
8
|
/**
|
|
9
9
|
* CorsHeaders constructor
|
|
10
|
+
*
|
|
10
11
|
* @param {Express.Response} res express response
|
|
11
12
|
* @param {Method[]} methods array of allowed Methods | defaults to all
|
|
12
13
|
* @param {string?} origin allowed origin url | * default
|
|
13
14
|
* @param {Header[]} headers array of allowed headers | defaults to AWS CORS headers
|
|
14
15
|
*/
|
|
15
16
|
static set(res, methods, origin, headers) {
|
|
16
|
-
res.header["Access-Control-Allow-Origin" /*
|
|
17
|
-
res.header["Access-Control-Allow-Methods" /*
|
|
17
|
+
res.header["Access-Control-Allow-Origin" /* AccessControlAllowOrigin */] = origin ? origin.toString() : "*";
|
|
18
|
+
res.header["Access-Control-Allow-Methods" /* AccessControlAllowMethods */] = methods
|
|
18
19
|
? methods.join(",")
|
|
19
|
-
: ["GET" /*
|
|
20
|
-
res.header["Access-Control-Allow-Headers" /*
|
|
20
|
+
: ["GET" /* GET */, "POST" /* POST */, "PUT" /* PUT */, "PATCH" /* PATCH */, "DELETE" /* DELETE */, "OPTIONS" /* OPTIONS */].join(",");
|
|
21
|
+
res.header["Access-Control-Allow-Headers" /* AccessControlAllowHeaders */] = headers
|
|
21
22
|
? headers.join(",")
|
|
22
23
|
: [
|
|
23
|
-
"Content-Type" /*
|
|
24
|
-
"Authorization" /*
|
|
25
|
-
"X-Api-Key" /*
|
|
26
|
-
"X-Amz-Date" /*
|
|
27
|
-
"X-Amz-Security-Token" /*
|
|
24
|
+
"Content-Type" /* ContentType */,
|
|
25
|
+
"Authorization" /* Authorization */,
|
|
26
|
+
"X-Api-Key" /* XApiKey */,
|
|
27
|
+
"X-Amz-Date" /* XAmzDate */,
|
|
28
|
+
"X-Amz-Security-Token" /* XAmzSecurityToken */
|
|
28
29
|
].join(",");
|
|
29
30
|
}
|
|
30
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cors-headers.js","sourceRoot":"","sources":["../../../core/_/cors-headers.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,MAAsB,WAAW;IAC7B
|
|
1
|
+
{"version":3,"file":"cors-headers.js","sourceRoot":"","sources":["../../../core/_/cors-headers.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,MAAsB,WAAW;IAC7B;;;;;;;OAOG;IACH,MAAM,CAAC,GAAG,CAAC,GAAqB,EAAE,OAAkB,EAAE,MAAe,EAAE,OAAkB;QACrF,GAAG,CAAC,MAAM,8DAAiC,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;QAC/E,GAAG,CAAC,MAAM,gEAAkC,GAAG,OAAO;YAClD,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;YACnB,CAAC,CAAC,0HAAkF,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnG,GAAG,CAAC,MAAM,gEAAkC,GAAG,OAAO;YAClD,CAAC,CAAE,OAAoB,CAAC,IAAI,CAAC,GAAG,CAAC;YACjC,CAAC,CAAC;;;;;;aAMC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;CACJ;AAxBD,kCAwBC"}
|
|
@@ -52,11 +52,13 @@ export declare class ServiceRequest<TRequest, TResponse> implements IServiceRequ
|
|
|
52
52
|
/**
|
|
53
53
|
* Send method
|
|
54
54
|
* Call after setting up url, method, headers and body if applicable
|
|
55
|
+
*
|
|
55
56
|
* @returns {Promise<TResponse>} promise of API Response object of type TResponse
|
|
56
57
|
*/
|
|
57
58
|
send(): Promise<TResponse>;
|
|
58
59
|
/**
|
|
59
60
|
* Setup request headers map
|
|
61
|
+
*
|
|
60
62
|
* @returns {Record<string, string>} map of request headers
|
|
61
63
|
*/
|
|
62
64
|
private setHeaders;
|
|
@@ -52,6 +52,7 @@ class ServiceRequest {
|
|
|
52
52
|
/**
|
|
53
53
|
* Send method
|
|
54
54
|
* Call after setting up url, method, headers and body if applicable
|
|
55
|
+
*
|
|
55
56
|
* @returns {Promise<TResponse>} promise of API Response object of type TResponse
|
|
56
57
|
*/
|
|
57
58
|
send() {
|
|
@@ -66,7 +67,7 @@ class ServiceRequest {
|
|
|
66
67
|
options.headers = this.setHeaders();
|
|
67
68
|
// set body (if exists)
|
|
68
69
|
if (this._body) {
|
|
69
|
-
options.headers["Content-Type" /*
|
|
70
|
+
options.headers["Content-Type" /* ContentType */] = this._body.contentType;
|
|
70
71
|
options.data = this._body.value;
|
|
71
72
|
}
|
|
72
73
|
// exec
|
|
@@ -82,6 +83,7 @@ class ServiceRequest {
|
|
|
82
83
|
}
|
|
83
84
|
/**
|
|
84
85
|
* Setup request headers map
|
|
86
|
+
*
|
|
85
87
|
* @returns {Record<string, string>} map of request headers
|
|
86
88
|
*/
|
|
87
89
|
setHeaders() {
|
|
@@ -92,10 +94,10 @@ class ServiceRequest {
|
|
|
92
94
|
});
|
|
93
95
|
}
|
|
94
96
|
// set default headers
|
|
95
|
-
map["Content-Type" /*
|
|
96
|
-
map["Accept" /*
|
|
97
|
-
map["Accept-Charset" /*
|
|
98
|
-
map["Accept-Encoding" /*
|
|
97
|
+
map["Content-Type" /* ContentType */] = "application/json" /* ApplicationJson */;
|
|
98
|
+
map["Accept" /* Accept */] = "*";
|
|
99
|
+
map["Accept-Charset" /* AcceptCharset */] = "*";
|
|
100
|
+
map["Accept-Encoding" /* AcceptEncoding */] = "*";
|
|
99
101
|
return map;
|
|
100
102
|
}
|
|
101
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-request.js","sourceRoot":"","sources":["../../../core/_/service-request.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAAqF;AAwCrF;;GAEG;AACH,MAAa,cAAc;IAA3B;QACI,aAAa;QACL,SAAI,GAAW,EAAE,CAAC;QAClB,YAAO,GAAW,EAAE,CAAC;QACrB,aAAQ,GAAwC,SAAS,CAAC;QAC1D,UAAK,GAA8C,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"service-request.js","sourceRoot":"","sources":["../../../core/_/service-request.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAAqF;AAwCrF;;GAEG;AACH,MAAa,cAAc;IAA3B;QACI,aAAa;QACL,SAAI,GAAW,EAAE,CAAC;QAClB,YAAO,GAAW,EAAE,CAAC;QACrB,aAAQ,GAAwC,SAAS,CAAC;QAC1D,UAAK,GAA8C,SAAS,CAAC;IAoFzE,CAAC;IAlFG;;OAEG;IACH,IAAI,GAAG,CAAC,KAAa;QACjB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IACtB,CAAC;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAa;QACpB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,IAAI,OAAO,CAAC,KAA8B;QACtC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,IAAI,IAAI,CAAC,KAAoC;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACG,IAAI;;YACN,OAAO,IAAI,OAAO,CAAC,CAAO,OAA4B,EAAE,MAA2B,EAAE,EAAE;gBACnF,uBAAuB;gBACvB,MAAM,OAAO,GAAuB;oBAChC,GAAG,EAAE,IAAI,CAAC,IAAI;oBACd,MAAM,EAAE,IAAI,CAAC,OAAiB;iBACjC,CAAC;gBAEF,cAAc;gBACd,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;gBAEpC,uBAAuB;gBACvB,IAAI,IAAI,CAAC,KAAK,EAAE;oBACZ,OAAO,CAAC,OAAO,kCAAoB,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC;oBAC7D,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;iBACnC;gBAED,OAAO;gBACP,MAAM,IAAA,eAAK,EAAC,OAAO,CAAC;qBACf,IAAI,CAAC,CAAC,EAAiB,EAAE,EAAE;oBACxB,OAAO,CAAC,EAAE,CAAC,IAAiB,CAAC,CAAC;gBAClC,CAAC,CAAC;qBACD,KAAK,CAAC,CAAC,EAAc,EAAE,EAAE;oBACtB,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAiB,CAAC,CAAC;gBAC1C,CAAC,CAAC,CAAC;YACX,CAAC,CAAA,CAAC,CAAC;QACP,CAAC;KAAA;IAED;;;;OAIG;IACK,UAAU;QACd,MAAM,GAAG,GAA2B,EAAE,CAAC;QACvC,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,MAA6B,EAAE,EAAE;gBACpD,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC;YACpC,CAAC,CAAC,CAAC;SACN;QAED,sBAAsB;QACtB,GAAG,kCAAoB,2CAA2B,CAAC;QACnD,GAAG,uBAAe,GAAG,GAAG,CAAC;QACzB,GAAG,sCAAsB,GAAG,GAAG,CAAC;QAChC,GAAG,wCAAuB,GAAG,GAAG,CAAC;QACjC,OAAO,GAAG,CAAC;IACf,CAAC;CACJ;AAzFD,wCAyFC"}
|
|
@@ -13,11 +13,13 @@ export declare class Serverless implements IServerless {
|
|
|
13
13
|
private _app;
|
|
14
14
|
/**
|
|
15
15
|
* Serverless handler constructor
|
|
16
|
+
*
|
|
16
17
|
* @param {Express.Application} app express instance
|
|
17
18
|
*/
|
|
18
19
|
constructor(app: Express.Application);
|
|
19
20
|
/**
|
|
20
21
|
* handler getter
|
|
22
|
+
*
|
|
21
23
|
* @returns {Handler} serverless handler
|
|
22
24
|
*/
|
|
23
25
|
get handler(): (event: APIGatewayProxyEventV2, context: Context) => Promise<import("aws-lambda").APIGatewayProxyStructuredResultV2>;
|
|
@@ -20,6 +20,7 @@ const serverless_http_1 = __importDefault(require("serverless-http"));
|
|
|
20
20
|
class Serverless {
|
|
21
21
|
/**
|
|
22
22
|
* Serverless handler constructor
|
|
23
|
+
*
|
|
23
24
|
* @param {Express.Application} app express instance
|
|
24
25
|
*/
|
|
25
26
|
constructor(app) {
|
|
@@ -28,6 +29,7 @@ class Serverless {
|
|
|
28
29
|
// getter / setter
|
|
29
30
|
/**
|
|
30
31
|
* handler getter
|
|
32
|
+
*
|
|
31
33
|
* @returns {Handler} serverless handler
|
|
32
34
|
*/
|
|
33
35
|
get handler() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverless.js","sourceRoot":"","sources":["../../../deployment/_/serverless.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,sEAAsD;AAUtD;;GAEG;AACH,MAAa,UAAU;IAGnB
|
|
1
|
+
{"version":3,"file":"serverless.js","sourceRoot":"","sources":["../../../deployment/_/serverless.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,sEAAsD;AAUtD;;GAEG;AACH,MAAa,UAAU;IAGnB;;;;OAIG;IACH,YAAY,GAAwB;QAChC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IACpB,CAAC;IAED,kBAAkB;IAClB;;;;OAIG;IACH,IAAI,OAAO;QACP,MAAM,OAAO,GAAY,IAAA,yBAAU,EAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,CAAO,KAA6B,EAAE,OAAgB,EAAE,EAAE;YAC7D,MAAM,MAAM,GAA4B,MAAM,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YACtE,OAAO,MAAM,CAAC;QAClB,CAAC,CAAA,CAAC;IACN,CAAC;CACJ;AAzBD,gCAyBC"}
|
|
@@ -15,22 +15,26 @@ export declare class TestFactory {
|
|
|
15
15
|
private _debug;
|
|
16
16
|
/**
|
|
17
17
|
* Test Factor Constructor
|
|
18
|
+
*
|
|
18
19
|
* @param {Express.Application} app service express instance
|
|
19
20
|
* @param {boolean?} debug flag for debugging
|
|
20
21
|
*/
|
|
21
22
|
constructor(app: Express.Application, debug?: boolean);
|
|
22
23
|
/**
|
|
23
24
|
* getter for app
|
|
25
|
+
*
|
|
24
26
|
* @returns {Request.SuperTest<Request.Test>} supertest request
|
|
25
27
|
*/
|
|
26
28
|
private get app();
|
|
27
29
|
/**
|
|
28
30
|
* Log message (this.log) if debug = true
|
|
31
|
+
*
|
|
29
32
|
* @param {any[]} msg message to log as arguments
|
|
30
33
|
*/
|
|
31
34
|
log(...msg: Any[]): void;
|
|
32
35
|
/**
|
|
33
36
|
* Run test
|
|
37
|
+
*
|
|
34
38
|
* @param {Method} method enum value for GET, POST, PUT, DELETE
|
|
35
39
|
* @param {string} path api call path
|
|
36
40
|
* @param {object?} data post data
|
|
@@ -20,6 +20,7 @@ const supertest_1 = __importDefault(require("supertest"));
|
|
|
20
20
|
class TestFactory {
|
|
21
21
|
/**
|
|
22
22
|
* Test Factor Constructor
|
|
23
|
+
*
|
|
23
24
|
* @param {Express.Application} app service express instance
|
|
24
25
|
* @param {boolean?} debug flag for debugging
|
|
25
26
|
*/
|
|
@@ -29,6 +30,7 @@ class TestFactory {
|
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* getter for app
|
|
33
|
+
*
|
|
32
34
|
* @returns {Request.SuperTest<Request.Test>} supertest request
|
|
33
35
|
*/
|
|
34
36
|
get app() {
|
|
@@ -36,6 +38,7 @@ class TestFactory {
|
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
40
|
* Log message (this.log) if debug = true
|
|
41
|
+
*
|
|
39
42
|
* @param {any[]} msg message to log as arguments
|
|
40
43
|
*/
|
|
41
44
|
log(...msg) {
|
|
@@ -45,6 +48,7 @@ class TestFactory {
|
|
|
45
48
|
}
|
|
46
49
|
/**
|
|
47
50
|
* Run test
|
|
51
|
+
*
|
|
48
52
|
* @param {Method} method enum value for GET, POST, PUT, DELETE
|
|
49
53
|
* @param {string} path api call path
|
|
50
54
|
* @param {object?} data post data
|
|
@@ -62,19 +66,19 @@ class TestFactory {
|
|
|
62
66
|
this.log("Request Headers: ", reqHeaders);
|
|
63
67
|
}
|
|
64
68
|
switch (method) {
|
|
65
|
-
case "GET" /*
|
|
69
|
+
case "GET" /* GET */:
|
|
66
70
|
res = yield this.app.get(path).set(reqHeaders);
|
|
67
71
|
break;
|
|
68
|
-
case "POST" /*
|
|
72
|
+
case "POST" /* POST */:
|
|
69
73
|
res = yield this.app.post(path).send(data).set(reqHeaders);
|
|
70
74
|
break;
|
|
71
|
-
case "PATCH" /*
|
|
75
|
+
case "PATCH" /* PATCH */:
|
|
72
76
|
res = yield this.app.patch(path).send(data).set(reqHeaders);
|
|
73
77
|
break;
|
|
74
|
-
case "PUT" /*
|
|
78
|
+
case "PUT" /* PUT */:
|
|
75
79
|
res = yield this.app.put(path).send(data).set(reqHeaders);
|
|
76
80
|
break;
|
|
77
|
-
case "DELETE" /*
|
|
81
|
+
case "DELETE" /* DELETE */:
|
|
78
82
|
res = yield this.app.delete(path).send(data).set(reqHeaders);
|
|
79
83
|
break;
|
|
80
84
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-factory.js","sourceRoot":"","sources":["../../../endpoint-test-factory/_/test-factory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAQA,0DAAgC;AAKhC;;GAEG;AACH,MAAa,WAAW;IAIpB
|
|
1
|
+
{"version":3,"file":"test-factory.js","sourceRoot":"","sources":["../../../endpoint-test-factory/_/test-factory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAQA,0DAAgC;AAKhC;;GAEG;AACH,MAAa,WAAW;IAIpB;;;;;OAKG;IACH,YAAY,GAAwB,EA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CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;oBAC5D,MAAM;gBACV;oBACI,GAAG,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;oBAC1D,MAAM;gBACV;oBACI,GAAG,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;oBAC7D,MAAM;gBACV;oBACI,MAAM;aACb;YAED,OAAO,GAAG,CAAC;QACf,CAAC;KAAA;CACJ;AA7ED,kCA6EC"}
|
package/enums/index.d.ts
CHANGED
|
@@ -69,7 +69,8 @@ export declare const enum Message {
|
|
|
69
69
|
Unauthorized = "You're not authorized!",
|
|
70
70
|
ExpiredToken = "Token Expired.",
|
|
71
71
|
InvalidToken = "Invalid Token.",
|
|
72
|
-
ExistingUser = "User already exists."
|
|
72
|
+
ExistingUser = "User already exists.",
|
|
73
|
+
TopicSharingRequired = "Sorry, you must belong to the same topic(s) as this user to connect with them."
|
|
73
74
|
}
|
|
74
75
|
/**
|
|
75
76
|
* Routing options
|
package/meet/index.d.ts
CHANGED
|
@@ -15,17 +15,20 @@ export declare class Meet<T> implements IMeet<T> {
|
|
|
15
15
|
private _clientType;
|
|
16
16
|
/**
|
|
17
17
|
* Meet constructor
|
|
18
|
+
*
|
|
18
19
|
* @param {ClientType} clientType client type
|
|
19
20
|
* @param {IMeetConfig} config meet configuration
|
|
20
21
|
*/
|
|
21
22
|
constructor(clientType: ClientType, config: IMeetConfig);
|
|
22
23
|
/**
|
|
23
24
|
* getter for client
|
|
25
|
+
*
|
|
24
26
|
* @returns {T} client of type T
|
|
25
27
|
*/
|
|
26
28
|
get client(): T;
|
|
27
29
|
/**
|
|
28
30
|
* initialize method
|
|
31
|
+
*
|
|
29
32
|
* @returns {void} promise of type void
|
|
30
33
|
*/
|
|
31
34
|
private init;
|
package/meet/index.js
CHANGED
|
@@ -19,6 +19,7 @@ const twilio_api_1 = require("./twilio/twilio.api");
|
|
|
19
19
|
let Meet = class Meet {
|
|
20
20
|
/**
|
|
21
21
|
* Meet constructor
|
|
22
|
+
*
|
|
22
23
|
* @param {ClientType} clientType client type
|
|
23
24
|
* @param {IMeetConfig} config meet configuration
|
|
24
25
|
*/
|
|
@@ -30,6 +31,7 @@ let Meet = class Meet {
|
|
|
30
31
|
// getter / setter
|
|
31
32
|
/**
|
|
32
33
|
* getter for client
|
|
34
|
+
*
|
|
33
35
|
* @returns {T} client of type T
|
|
34
36
|
*/
|
|
35
37
|
get client() {
|
|
@@ -38,6 +40,7 @@ let Meet = class Meet {
|
|
|
38
40
|
// methods
|
|
39
41
|
/**
|
|
40
42
|
* initialize method
|
|
43
|
+
*
|
|
41
44
|
* @returns {void} promise of type void
|
|
42
45
|
*/
|
|
43
46
|
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;AAEH,IAAa,IAAI,GAAjB,MAAa,IAAI;IAMb;;;;;OAKG;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;;;;OAIG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,UAAU;IACV;;;;OAIG;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;AAzCY,IAAI;IADhB,IAAA,qBAAU,GAAE;;GACA,IAAI,CAyChB;AAzCY,oBAAI"}
|
|
@@ -9,16 +9,19 @@ export declare class TwilioApi extends TwilioBase {
|
|
|
9
9
|
private _twilioRoom;
|
|
10
10
|
/**
|
|
11
11
|
* Twilio api constructor
|
|
12
|
+
*
|
|
12
13
|
* @param {IApiConfig} config api configuration
|
|
13
14
|
*/
|
|
14
15
|
constructor(config: IMeetConfig);
|
|
15
16
|
/**
|
|
16
17
|
* getter for Twilio API Room
|
|
18
|
+
*
|
|
17
19
|
* @returns {TwilioRoom} twilio room instance
|
|
18
20
|
*/
|
|
19
21
|
get twilioRoom(): TwilioRoom;
|
|
20
22
|
/**
|
|
21
23
|
* initialize method
|
|
24
|
+
*
|
|
22
25
|
* @returns {void} promise of type void
|
|
23
26
|
*/
|
|
24
27
|
private init;
|
|
@@ -11,6 +11,7 @@ const twilio_room_1 = require("./twilio.room");
|
|
|
11
11
|
class TwilioApi extends twilio_base_1.TwilioBase {
|
|
12
12
|
/**
|
|
13
13
|
* Twilio api constructor
|
|
14
|
+
*
|
|
14
15
|
* @param {IApiConfig} config api configuration
|
|
15
16
|
*/
|
|
16
17
|
constructor(config) {
|
|
@@ -20,6 +21,7 @@ class TwilioApi extends twilio_base_1.TwilioBase {
|
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* getter for Twilio API Room
|
|
24
|
+
*
|
|
23
25
|
* @returns {TwilioRoom} twilio room instance
|
|
24
26
|
*/
|
|
25
27
|
get twilioRoom() {
|
|
@@ -28,6 +30,7 @@ class TwilioApi extends twilio_base_1.TwilioBase {
|
|
|
28
30
|
//methods
|
|
29
31
|
/**
|
|
30
32
|
* initialize method
|
|
33
|
+
*
|
|
31
34
|
* @returns {void} promise of type void
|
|
32
35
|
*/
|
|
33
36
|
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;;;;OAIG;IACH,YAAY,MAAmB;QAC3B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAED;;;;OAIG;IACH,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,SAAS;IAET;;;;OAIG;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;AAxCD,8BAwCC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { IMeetConfig } from "./models";
|
|
|
5
5
|
interface ITwilioAuth {
|
|
6
6
|
/**
|
|
7
7
|
* Authentication initialization
|
|
8
|
+
*
|
|
8
9
|
* @param {string} apiSID api sid
|
|
9
10
|
* @param {string} apiKey api key
|
|
10
11
|
* @param {string} apiSecret apy secret
|
|
@@ -12,6 +13,7 @@ interface ITwilioAuth {
|
|
|
12
13
|
init(apiSID: string, apiKey: string, apiSecret: string): void;
|
|
13
14
|
/**
|
|
14
15
|
* Get token to connect with Twilio
|
|
16
|
+
*
|
|
15
17
|
* @param {string} userId user id
|
|
16
18
|
* @param {string} roomSID room sid
|
|
17
19
|
* @param {boolean} refresh refresh token
|
|
@@ -28,11 +30,13 @@ export declare class TwilioAuth implements ITwilioAuth {
|
|
|
28
30
|
private _mainApiKeySecret;
|
|
29
31
|
/**
|
|
30
32
|
* Twilio auth constructor
|
|
33
|
+
*
|
|
31
34
|
* @param {IMeetConfig} config meet config
|
|
32
35
|
*/
|
|
33
36
|
constructor(config: IMeetConfig);
|
|
34
37
|
/**
|
|
35
38
|
* Instance the twilio client
|
|
39
|
+
*
|
|
36
40
|
* @param {string} mainAccountSID main account SID
|
|
37
41
|
* @param {string} mainApiKeySID main api SID
|
|
38
42
|
* @param {string} mainApiKeySecret main apy secret
|
|
@@ -41,6 +45,7 @@ export declare class TwilioAuth implements ITwilioAuth {
|
|
|
41
45
|
init(mainAccountSID: string, mainApiKeySID: string, mainApiKeySecret: string): void;
|
|
42
46
|
/**
|
|
43
47
|
* Get token
|
|
48
|
+
*
|
|
44
49
|
* @param {string} userId user id
|
|
45
50
|
* @param {string} roomName room name
|
|
46
51
|
* @returns {string} returns token value
|
|
@@ -1,11 +1,7 @@
|
|
|
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
|
-
|
|
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);
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
5
|
}) : (function(o, m, k, k2) {
|
|
10
6
|
if (k2 === undefined) k2 = k;
|
|
11
7
|
o[k2] = m[k];
|
|
@@ -41,6 +37,7 @@ const AccessToken_1 = __importStar(require("twilio/lib/jwt/AccessToken"));
|
|
|
41
37
|
let TwilioAuth = class TwilioAuth {
|
|
42
38
|
/**
|
|
43
39
|
* Twilio auth constructor
|
|
40
|
+
*
|
|
44
41
|
* @param {IMeetConfig} config meet config
|
|
45
42
|
*/
|
|
46
43
|
constructor(config) {
|
|
@@ -48,6 +45,7 @@ let TwilioAuth = class TwilioAuth {
|
|
|
48
45
|
}
|
|
49
46
|
/**
|
|
50
47
|
* Instance the twilio client
|
|
48
|
+
*
|
|
51
49
|
* @param {string} mainAccountSID main account SID
|
|
52
50
|
* @param {string} mainApiKeySID main api SID
|
|
53
51
|
* @param {string} mainApiKeySecret main apy secret
|
|
@@ -60,6 +58,7 @@ let TwilioAuth = class TwilioAuth {
|
|
|
60
58
|
}
|
|
61
59
|
/**
|
|
62
60
|
* Get token
|
|
61
|
+
*
|
|
63
62
|
* @param {string} userId user id
|
|
64
63
|
* @param {string} roomName room name
|
|
65
64
|
* @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,"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26 +8,31 @@ export declare abstract class TwilioBase {
|
|
|
8
8
|
private _auth;
|
|
9
9
|
/**
|
|
10
10
|
* getter for twilio instance
|
|
11
|
+
*
|
|
11
12
|
* @returns {Twilio} twilio instance
|
|
12
13
|
*/
|
|
13
14
|
get server(): Twilio;
|
|
14
15
|
/**
|
|
15
16
|
* setter for twilio instance
|
|
17
|
+
*
|
|
16
18
|
* @param {TwilioAuth} value twilio instance
|
|
17
19
|
*/
|
|
18
20
|
set server(value: Twilio);
|
|
19
21
|
/**
|
|
20
22
|
* getter for twilio auth
|
|
23
|
+
*
|
|
21
24
|
* @returns {TwilioAuth} twilio auth instance
|
|
22
25
|
*/
|
|
23
26
|
get auth(): TwilioAuth;
|
|
24
27
|
/**
|
|
25
28
|
* setter for twilio auth instance
|
|
29
|
+
*
|
|
26
30
|
* @param {TwilioAuth} value twilio auth instance
|
|
27
31
|
*/
|
|
28
32
|
set auth(value: TwilioAuth);
|
|
29
33
|
/**
|
|
30
34
|
* Get token for extended classes
|
|
35
|
+
*
|
|
31
36
|
* @param {string} userId user id
|
|
32
37
|
* @param {string} roomName room name
|
|
33
38
|
* @returns {string} returns the token value
|
|
@@ -8,6 +8,7 @@ class TwilioBase {
|
|
|
8
8
|
// getter / setter
|
|
9
9
|
/**
|
|
10
10
|
* getter for twilio instance
|
|
11
|
+
*
|
|
11
12
|
* @returns {Twilio} twilio instance
|
|
12
13
|
*/
|
|
13
14
|
get server() {
|
|
@@ -15,6 +16,7 @@ class TwilioBase {
|
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
* setter for twilio instance
|
|
19
|
+
*
|
|
18
20
|
* @param {TwilioAuth} value twilio instance
|
|
19
21
|
*/
|
|
20
22
|
set server(value) {
|
|
@@ -22,6 +24,7 @@ class TwilioBase {
|
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* getter for twilio auth
|
|
27
|
+
*
|
|
25
28
|
* @returns {TwilioAuth} twilio auth instance
|
|
26
29
|
*/
|
|
27
30
|
get auth() {
|
|
@@ -29,6 +32,7 @@ class TwilioBase {
|
|
|
29
32
|
}
|
|
30
33
|
/**
|
|
31
34
|
* setter for twilio auth instance
|
|
35
|
+
*
|
|
32
36
|
* @param {TwilioAuth} value twilio auth instance
|
|
33
37
|
*/
|
|
34
38
|
set auth(value) {
|
|
@@ -37,6 +41,7 @@ class TwilioBase {
|
|
|
37
41
|
// methods
|
|
38
42
|
/**
|
|
39
43
|
* Get token for extended classes
|
|
44
|
+
*
|
|
40
45
|
* @param {string} userId user id
|
|
41
46
|
* @param {string} roomName room name
|
|
42
47
|
* @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;;;;OAIG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IACD;;;;OAIG;IACH,IAAW,MAAM,CAAC,KAAa;QAC3B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACH,IAAW,IAAI,CAAC,KAAiB;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,UAAU;IAEV;;;;;;OAMG;IACI,QAAQ,CAAC,MAAc,EAAE,QAAgB;QAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;CACJ;AArDD,gCAqDC"}
|
|
@@ -26,6 +26,7 @@ export declare class TwilioRoom extends TwilioBase implements ITwilioRoom {
|
|
|
26
26
|
private _expMinutes;
|
|
27
27
|
/**
|
|
28
28
|
* Twilio room constructor
|
|
29
|
+
*
|
|
29
30
|
* @param {TwilioAuth} auth Twilio auth
|
|
30
31
|
* @param {Twilio} server Twilio API Server
|
|
31
32
|
* @param {number} expMins expiration time for the timeout room, in minutes.
|
|
@@ -33,6 +34,7 @@ export declare class TwilioRoom extends TwilioBase implements ITwilioRoom {
|
|
|
33
34
|
constructor(auth: TwilioAuth, server: Twilio, expMins: number);
|
|
34
35
|
/**
|
|
35
36
|
* This will find or Create a new room in Twilio
|
|
37
|
+
*
|
|
36
38
|
* @param {string} roomName room name
|
|
37
39
|
* @param {string} roomTypeStr room type to create in Twilio ("group" | "peer-to-peer" | "go")
|
|
38
40
|
* @returns {Promise<IRoomData>} promise of the result to create or get a room
|
|
@@ -40,12 +42,14 @@ export declare class TwilioRoom extends TwilioBase implements ITwilioRoom {
|
|
|
40
42
|
findOrCreateRoom(roomName: string, roomTypeStr?: string): Promise<IRoomData>;
|
|
41
43
|
/**
|
|
42
44
|
* Convenience method to determine if a roomType is valid
|
|
45
|
+
*
|
|
43
46
|
* @param {string} roomType The room type to validate.
|
|
44
47
|
* @returns {Promise<boolean>} true if a valid roomType, false otherwise
|
|
45
48
|
*/
|
|
46
49
|
validateRoomType(roomType: string): Promise<boolean>;
|
|
47
50
|
/**
|
|
48
51
|
* Find an existing room un Twilio
|
|
52
|
+
*
|
|
49
53
|
* @param {string} roomName room name
|
|
50
54
|
* @returns {Promise<IRoomData>} promise of the result to get a room
|
|
51
55
|
*/
|