@bwi-mentorspaces/application-utils-npm 0.0.28 → 0.0.29
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 +3 -0
- package/chat/index.js +3 -0
- package/chat/index.js.map +1 -1
- package/chat/stream/enum/index.d.ts +1 -0
- 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 +11 -0
- 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 +7 -0
- 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 +4 -0
- package/chat/stream/stream.message.js +4 -0
- 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 +1 -0
- package/core/_/cors-headers.js.map +1 -1
- package/core/_/service-request.d.ts +2 -0
- package/core/_/service-request.js +2 -0
- package/core/_/service-request.js.map +1 -1
- package/deployment/_/serverless.d.ts +2 -1
- 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 +4 -0
- package/endpoint-test-factory/_/test-factory.js.map +1 -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 +3 -0
- 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/swagger/_/swagger.d.ts +2 -0
- package/swagger/_/swagger.js +2 -0
- 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 +2 -0
- package/utils/_/encryptor.js.map +1 -1
- package/utils/_/hasher.d.ts +3 -0
- package/utils/_/hasher.js +3 -0
- 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 +4 -0
- 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
|
@@ -19,6 +19,7 @@ class StreamMember extends stream_base_1.StreamBase {
|
|
|
19
19
|
// properties
|
|
20
20
|
/**
|
|
21
21
|
* Stream member constructor
|
|
22
|
+
*
|
|
22
23
|
* @param {StreamChat} server Stream API server
|
|
23
24
|
*/
|
|
24
25
|
constructor(server) {
|
|
@@ -28,6 +29,7 @@ class StreamMember extends stream_base_1.StreamBase {
|
|
|
28
29
|
// methods
|
|
29
30
|
/**
|
|
30
31
|
* Add new members into a specific channel.
|
|
32
|
+
*
|
|
31
33
|
* @param {IChannelData} data channel data object
|
|
32
34
|
* @returns {Promise<boolean>} promise of the result to add members
|
|
33
35
|
*/
|
|
@@ -61,6 +63,7 @@ class StreamMember extends stream_base_1.StreamBase {
|
|
|
61
63
|
}
|
|
62
64
|
/**
|
|
63
65
|
* Add new members into a specific channel.
|
|
66
|
+
*
|
|
64
67
|
* @param {IChannelData} data channel data object
|
|
65
68
|
* @returns {Promise<boolean>} promise of the result to add members
|
|
66
69
|
*/
|
|
@@ -94,6 +97,7 @@ class StreamMember extends stream_base_1.StreamBase {
|
|
|
94
97
|
}
|
|
95
98
|
/**
|
|
96
99
|
* Add new moderator into a specific channel.
|
|
100
|
+
*
|
|
97
101
|
* @param {IChannelData} data channel data object
|
|
98
102
|
* @returns {Promise<boolean>} promise of the result to add members
|
|
99
103
|
*/
|
|
@@ -117,6 +121,7 @@ class StreamMember extends stream_base_1.StreamBase {
|
|
|
117
121
|
}
|
|
118
122
|
/**
|
|
119
123
|
* Add new members into a specific channel.
|
|
124
|
+
*
|
|
120
125
|
* @param {IChannelData} data channel data object
|
|
121
126
|
* @returns {Promise<boolean>} promise of the result to add members
|
|
122
127
|
*/
|
|
@@ -140,6 +145,7 @@ class StreamMember extends stream_base_1.StreamBase {
|
|
|
140
145
|
}
|
|
141
146
|
/**
|
|
142
147
|
* Remove members into a specific channel.
|
|
148
|
+
*
|
|
143
149
|
* @param {IChannelData} data channel data object
|
|
144
150
|
* @returns {Promise<boolean>} promise of the result to remove members
|
|
145
151
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.member.js","sourceRoot":"","sources":["../../../chat/stream/stream.member.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qCAA+E;AAE/E,+CAA2C;AAgC3C;;GAEG;AACH,MAAa,YAAa,SAAQ,wBAAU;IACxC,aAAa;IAEb
|
|
1
|
+
{"version":3,"file":"stream.member.js","sourceRoot":"","sources":["../../../chat/stream/stream.member.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qCAA+E;AAE/E,+CAA2C;AAgC3C;;GAEG;AACH,MAAa,YAAa,SAAQ,wBAAU;IACxC,aAAa;IAEb;;;;OAIG;IACH,YAAY,MAAkB;QAC1B,KAAK,EAAE,CAAC;QACR,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;IAC1B,CAAC;IAED,UAAU;IAEV;;;;;OAKG;IACG,aAAa,CAAC,IAAkB;;;;;YAClC,sBAAsB;YACtB,MAAM,QAAQ,GAAG,MAAM,OAAM,cAAc,YAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC5D,mCAAmC;YACnC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC5B,+BAA+B;YAC/B,MAAM,mBAAmB,GAAW,OAAO,CAAC,IAAI,CAAC,YAAsB,CAAC;YACxE,oCAAoC;YACpC,IAAI,OAAO,GAAY,SAAS,CAAC;YACjC,kCAAkC;YAClC,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,EAAE;gBAClC,OAAO,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAW,EAAE,CAAC;aAC5F;YACD,mCAAmC;YACnC,MAAM,CAAC,GAA6B,MAAM,OAAO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AAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC5D,mCAAmC;YACnC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC5B,+BAA+B;YAC/B,MAAM,mBAAmB,GAAW,OAAO,CAAC,IAAI,CAAC,YAAsB,CAAC;YACxE,0CAA0C;YAC1C,MAAM,CAAC,GAA6B,MAAM,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC9E,kBAAkB;YAClB,IAAI,mBAAmB,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE;gBACzC,gCAAgC;gBAChC,OAAO,KAAK,CAAC;aAChB;YACD,8BAA8B;YAC9B,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AA9ID,oCA8IC"}
|
|
@@ -23,11 +23,13 @@ interface IStreamMessage {
|
|
|
23
23
|
export declare class StreamMessage extends StreamBase implements IStreamMessage {
|
|
24
24
|
/**
|
|
25
25
|
* Stream message constructor
|
|
26
|
+
*
|
|
26
27
|
* @param {StreamChat} server Stream API server
|
|
27
28
|
*/
|
|
28
29
|
constructor(server: StreamChat);
|
|
29
30
|
/**
|
|
30
31
|
* Send a message through a specific channel
|
|
32
|
+
*
|
|
31
33
|
* @param {string} channelId channel id
|
|
32
34
|
* @param {string} messageText message text
|
|
33
35
|
* @param {string} userId user who send the message text
|
|
@@ -37,6 +39,7 @@ export declare class StreamMessage extends StreamBase implements IStreamMessage
|
|
|
37
39
|
send(channelId: string, messageText: string, userId?: string, custom?: object): Promise<MessageResponse>;
|
|
38
40
|
/**
|
|
39
41
|
* This will be delete a specific message from Stream
|
|
42
|
+
*
|
|
40
43
|
* @param {string} messageId channel id of the channel
|
|
41
44
|
* @param {boolean} isHard is Hard delete
|
|
42
45
|
* @returns {Promise<boolean>} promise of the result to delete channel
|
|
@@ -44,6 +47,7 @@ export declare class StreamMessage extends StreamBase implements IStreamMessage
|
|
|
44
47
|
delete(messageId: string, isHard?: boolean): Promise<boolean>;
|
|
45
48
|
/**
|
|
46
49
|
* Search messages by members
|
|
50
|
+
*
|
|
47
51
|
* @param {string} userRef user ref to filter channels
|
|
48
52
|
* @param {string} keyword Text to be searched
|
|
49
53
|
* @param {number} limit The number of messages to return
|
|
@@ -18,6 +18,7 @@ class StreamMessage extends stream_base_1.StreamBase {
|
|
|
18
18
|
// properties
|
|
19
19
|
/**
|
|
20
20
|
* Stream message constructor
|
|
21
|
+
*
|
|
21
22
|
* @param {StreamChat} server Stream API server
|
|
22
23
|
*/
|
|
23
24
|
constructor(server) {
|
|
@@ -27,6 +28,7 @@ class StreamMessage extends stream_base_1.StreamBase {
|
|
|
27
28
|
// methods
|
|
28
29
|
/**
|
|
29
30
|
* Send a message through a specific channel
|
|
31
|
+
*
|
|
30
32
|
* @param {string} channelId channel id
|
|
31
33
|
* @param {string} messageText message text
|
|
32
34
|
* @param {string} userId user who send the message text
|
|
@@ -61,6 +63,7 @@ class StreamMessage extends stream_base_1.StreamBase {
|
|
|
61
63
|
}
|
|
62
64
|
/**
|
|
63
65
|
* This will be delete a specific message from Stream
|
|
66
|
+
*
|
|
64
67
|
* @param {string} messageId channel id of the channel
|
|
65
68
|
* @param {boolean} isHard is Hard delete
|
|
66
69
|
* @returns {Promise<boolean>} promise of the result to delete channel
|
|
@@ -82,6 +85,7 @@ class StreamMessage extends stream_base_1.StreamBase {
|
|
|
82
85
|
}
|
|
83
86
|
/**
|
|
84
87
|
* Search messages by members
|
|
88
|
+
*
|
|
85
89
|
* @param {string} userRef user ref to filter channels
|
|
86
90
|
* @param {string} keyword Text to be searched
|
|
87
91
|
* @param {number} limit The number of messages to return
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.message.js","sourceRoot":"","sources":["../../../chat/stream/stream.message.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,+CAA2C;AAsB3C;;GAEG;AACH,MAAa,aAAc,SAAQ,wBAAU;IACzC,aAAa;IAEb
|
|
1
|
+
{"version":3,"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nD,mCAAmC;YACnC,MAAM,OAAO,GAAG,MAAM,OAAM,MAAM,CAAC,aAAa,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACpE,oBAAoB;YACpB,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE;gBAC/B,OAAO,KAAK,CAAC;aAChB;YACD,8BAA8B;YAC9B,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IAED;;;;;;;;OAQG;IACG,MAAM,CAAC,OAAe,EAAE,OAAe,EAAE,KAAc,EAAE,MAAe;;;;;YAC1E,0EAA0E;YAC1E,MAAM,OAAO,GAAG,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;YAChD,gBAAgB;YAChB,MAAM,cAAc,GAAmB,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC;YACjE,mBAAmB;YACnB,OAAO,OAAM,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,cAAc,EAAE;gBAChD,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;gBACvC,MAAM,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM;aAC5C,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AApFD,sCAoFC"}
|
|
@@ -21,11 +21,13 @@ interface IStreamUser {
|
|
|
21
21
|
export declare class StreamUser extends StreamBase implements IStreamUser {
|
|
22
22
|
/**
|
|
23
23
|
* Stream user constructor
|
|
24
|
+
*
|
|
24
25
|
* @param {StreamChat} server Stream API server
|
|
25
26
|
*/
|
|
26
27
|
constructor(server: StreamChat);
|
|
27
28
|
/**
|
|
28
29
|
* Send event to user
|
|
30
|
+
*
|
|
29
31
|
* @param {string} userId the user id
|
|
30
32
|
* @param {CustomEventType} eventType the event type
|
|
31
33
|
* @param {IEventTypesData} data the data to send with the event
|
|
@@ -34,18 +36,21 @@ export declare class StreamUser extends StreamBase implements IStreamUser {
|
|
|
34
36
|
sendUserEvent<T extends CustomEventType>(userId: string, eventType: T, data?: IEventTypesData[T]): Promise<APIResponse>;
|
|
35
37
|
/**
|
|
36
38
|
* Sync a user list
|
|
39
|
+
*
|
|
37
40
|
* @param {User[]} users user stream list
|
|
38
41
|
* @returns {Promise<boolean>} promise of the type boolean
|
|
39
42
|
*/
|
|
40
43
|
syncUser(users: User[]): Promise<boolean>;
|
|
41
44
|
/**
|
|
42
45
|
* Partial users update
|
|
46
|
+
*
|
|
43
47
|
* @param {PartialUserUpdate[]} usersUpdate user stream list
|
|
44
48
|
* @returns {Promise<boolean>} promise of the type boolean
|
|
45
49
|
*/
|
|
46
50
|
partialUpdateUsers(usersUpdate: PartialUserUpdate[]): Promise<boolean>;
|
|
47
51
|
/**
|
|
48
52
|
* Create GetStream user
|
|
53
|
+
*
|
|
49
54
|
* @param {info} userInfo user info object
|
|
50
55
|
* @returns {Promise<boolean>} promise of the type boolean
|
|
51
56
|
*/
|
|
@@ -53,6 +58,7 @@ export declare class StreamUser extends StreamBase implements IStreamUser {
|
|
|
53
58
|
/**
|
|
54
59
|
* Delete stream user
|
|
55
60
|
* https://getstream.io/chat/docs/node/update_users/?language=javascript#delete-a-user
|
|
61
|
+
*
|
|
56
62
|
* @param {User} user user id (uuid) to be deleted
|
|
57
63
|
* @param {boolean} isHard Boolean to make operator a hard delete or not
|
|
58
64
|
* @returns {Promise<boolean>} promise of the type boolean
|
|
@@ -60,6 +66,7 @@ export declare class StreamUser extends StreamBase implements IStreamUser {
|
|
|
60
66
|
deleteUser(user: User, isHard?: boolean): Promise<boolean>;
|
|
61
67
|
/**
|
|
62
68
|
* Query stream users.
|
|
69
|
+
*
|
|
63
70
|
* @param {IChannelData} data channel data object
|
|
64
71
|
* @returns {Promise<boolean>} promise of the result to remove members
|
|
65
72
|
*/
|
|
@@ -18,6 +18,7 @@ class StreamUser extends stream_base_1.StreamBase {
|
|
|
18
18
|
// properties
|
|
19
19
|
/**
|
|
20
20
|
* Stream user constructor
|
|
21
|
+
*
|
|
21
22
|
* @param {StreamChat} server Stream API server
|
|
22
23
|
*/
|
|
23
24
|
constructor(server) {
|
|
@@ -27,6 +28,7 @@ class StreamUser extends stream_base_1.StreamBase {
|
|
|
27
28
|
// methods
|
|
28
29
|
/**
|
|
29
30
|
* Send event to user
|
|
31
|
+
*
|
|
30
32
|
* @param {string} userId the user id
|
|
31
33
|
* @param {CustomEventType} eventType the event type
|
|
32
34
|
* @param {IEventTypesData} data the data to send with the event
|
|
@@ -42,6 +44,7 @@ class StreamUser extends stream_base_1.StreamBase {
|
|
|
42
44
|
}
|
|
43
45
|
/**
|
|
44
46
|
* Sync a user list
|
|
47
|
+
*
|
|
45
48
|
* @param {User[]} users user stream list
|
|
46
49
|
* @returns {Promise<boolean>} promise of the type boolean
|
|
47
50
|
*/
|
|
@@ -63,6 +66,7 @@ class StreamUser extends stream_base_1.StreamBase {
|
|
|
63
66
|
}
|
|
64
67
|
/**
|
|
65
68
|
* Partial users update
|
|
69
|
+
*
|
|
66
70
|
* @param {PartialUserUpdate[]} usersUpdate user stream list
|
|
67
71
|
* @returns {Promise<boolean>} promise of the type boolean
|
|
68
72
|
*/
|
|
@@ -84,6 +88,7 @@ class StreamUser extends stream_base_1.StreamBase {
|
|
|
84
88
|
}
|
|
85
89
|
/**
|
|
86
90
|
* Create GetStream user
|
|
91
|
+
*
|
|
87
92
|
* @param {info} userInfo user info object
|
|
88
93
|
* @returns {Promise<boolean>} promise of the type boolean
|
|
89
94
|
*/
|
|
@@ -105,6 +110,7 @@ class StreamUser extends stream_base_1.StreamBase {
|
|
|
105
110
|
/**
|
|
106
111
|
* Delete stream user
|
|
107
112
|
* https://getstream.io/chat/docs/node/update_users/?language=javascript#delete-a-user
|
|
113
|
+
*
|
|
108
114
|
* @param {User} user user id (uuid) to be deleted
|
|
109
115
|
* @param {boolean} isHard Boolean to make operator a hard delete or not
|
|
110
116
|
* @returns {Promise<boolean>} promise of the type boolean
|
|
@@ -130,6 +136,7 @@ class StreamUser extends stream_base_1.StreamBase {
|
|
|
130
136
|
}
|
|
131
137
|
/**
|
|
132
138
|
* Query stream users.
|
|
139
|
+
*
|
|
133
140
|
* @param {IChannelData} data channel data object
|
|
134
141
|
* @returns {Promise<boolean>} promise of the result to remove members
|
|
135
142
|
*/
|
|
@@ -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,MAAkB;QAC1B,KAAK,EAAE,CAAC;QACR,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;IAC1B,CAAC;IAED,UAAU;IAEV;;;;;;;OAOG;IACG,aAAa,CACf,MAAc,EACd,SAAY,EACZ,IAAyB;;;;;YAEzB,OAAO,MAAM,OAAM,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QACjG,CAAC;KAAA;IAED;;;;;OAKG;IACG,QAAQ,CAAC,KAAa;;;;;YACxB,kBAAkB;YAClB,MAAM,CAAC,GAAG,MAAM,OAAM,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAChD,kBAAkB;YAClB,IAAI,CAAC,EAAE;gBACH,OAAO,IAAI,CAAC;aACf;iBAAM;gBACH,OAAO,KAAK,CAAC;aAChB;QACL,CAAC;KAAA;IAED;;;;;OAKG;IACG,kBAAkB,CAAC,WAAgC;;;;;YACrD,kBAAkB;YAClB,MAAM,CAAC,GAAG,MAAM,OAAM,MAAM,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;YAC7D,kBAAkB;YAClB,IAAI,CAAC,EAAE;gBACH,OAAO,IAAI,CAAC;aACf;iBAAM;gBACH,OAAO,KAAK,CAAC;aAChB;QACL,CAAC;KAAA;IAED;;;;;OAKG;IACG,UAAU,CAAC,QAAsB;;;;;YACnC,MAAM,CAAC,GAAG,MAAM,OAAM,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YAClD,kBAAkB;YAClB,IAAI,CAAC,EAAE;gBACH,OAAO,IAAI,CAAC;aACf;iBAAM;gBACH,OAAO,KAAK,CAAC;aAChB;QACL,CAAC;KAAA;IAED;;;;;;;OAOG;IACG,UAAU,CAAC,IAAU,EAAE,MAAgB;;;;;YACzC,kBAAkB;YAClB,MAAM,CAAC,GAAG,MAAM,OAAM,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,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,6 +7,7 @@ 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
|
|
@@ -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,qEAAiC,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;QAC/E,GAAG,CAAC,MAAM,uEAAkC,GAAG,OAAO;YAClD,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;YACnB,CAAC,CAAC,oKAAkF,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnG,GAAG,CAAC,MAAM,uEAAkC,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() {
|
|
@@ -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() {
|
|
@@ -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,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AAzFD,wCAyFC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="express-serve-static-core" />
|
|
2
1
|
/**
|
|
3
2
|
* Serverless handler declarations
|
|
4
3
|
*/
|
|
@@ -12,11 +11,13 @@ export declare class Serverless implements IServerless {
|
|
|
12
11
|
private _app;
|
|
13
12
|
/**
|
|
14
13
|
* Serverless handler constructor
|
|
14
|
+
*
|
|
15
15
|
* @param {Express.Application} app express instance
|
|
16
16
|
*/
|
|
17
17
|
constructor(app: Express.Application);
|
|
18
18
|
/**
|
|
19
19
|
* handler getter
|
|
20
|
+
*
|
|
20
21
|
* @returns {Handler} serverless handler
|
|
21
22
|
*/
|
|
22
23
|
get handler(): Function;
|
|
@@ -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":";;;;;;;;;;;;;;;AAEA,sEAAsD;AAUtD;;GAEG;AACH,MAAa,UAAU;IAGnB
|
|
1
|
+
{"version":3,"file":"serverless.js","sourceRoot":"","sources":["../../../deployment/_/serverless.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,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
|
|
@@ -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,EAAE,KAAe;QACjD,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAE,KAAiB,CAAC,CAAC,CAAC,KAAK,CAAC;IACrD,CAAC;IAED;;;;OAIG;IACH,IAAY,GAAG;QACX,OAAO,IAAA,mBAAO,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,GAAG,GAAU;QACpB,IAAI,IAAI,CAAC,MAAM,EAAE;YACb,OAAO,CAAC,GAAG,CAAC,GAAG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AAU,CAAC,CAAC;oBAC7D,MAAM;gBACV;oBACI,MAAM;aACb;YAED,OAAO,GAAG,CAAC;QACf,CAAC;KAAA;CACJ;AA7ED,kCA6EC"}
|
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;AAEI,IAAM,IAAI,GAAV,MAAM,IAAI;IAMb
|
|
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;;;;;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
|