@bwi-mentorspaces/application-utils-npm 0.0.126 → 0.0.128
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/stream/enum/index.d.ts +0 -1
- package/chat/stream/enum/index.js +0 -1
- package/chat/stream/enum/index.js.map +1 -1
- package/chat/stream/models/_/event.data.d.ts +0 -35
- package/chat/stream/stream.channel.js +1 -1
- package/chat/stream/stream.user.js +1 -1
- package/enums/index.d.ts +0 -1
- package/enums/index.js.map +1 -1
- package/meet/index.js +63 -52
- package/meet/tests/unit/twilio/twilio.room.test.js +1 -1
- package/meet/twilio/enum/index.js +2 -2
- package/meet/twilio/index.js +25 -5
- package/meet/twilio/models/_/room.data.js +1 -1
- package/meet/twilio/models/_/twilio.config.js +1 -1
- package/meet/twilio/models/index.js +1 -1
- package/meet/twilio/twilio.api.js +1 -1
- package/meet/twilio/twilio.auth.js +106 -78
- package/meet/twilio/twilio.base.js +1 -1
- package/meet/twilio/twilio.room.js +158 -131
- package/package.json +1 -2
- package/session/ms.live/ms.live.room.js +26 -23
- package/session/ms.live/ms.live.room.js.map +1 -1
- package/chat/stream/models/_/job.response.d.ts +0 -22
- package/chat/stream/models/_/job.response.js +0 -28
- package/chat/stream/models/_/job.response.js.map +0 -1
|
@@ -41,7 +41,6 @@ export declare enum CustomEventType {
|
|
|
41
41
|
SessionDeclined = "session_declined",
|
|
42
42
|
SessionCanceled = "session_canceled",
|
|
43
43
|
InviteRejected = "invite_rejected",
|
|
44
|
-
SharedJob = "shared_job",
|
|
45
44
|
MatchCreated = "match_created",
|
|
46
45
|
ProgramAnnouncement = "program_announcement",
|
|
47
46
|
ProgramAnnouncementComment = "program_announcement_comment"
|
|
@@ -49,7 +49,6 @@ var CustomEventType;
|
|
|
49
49
|
CustomEventType["SessionDeclined"] = "session_declined";
|
|
50
50
|
CustomEventType["SessionCanceled"] = "session_canceled";
|
|
51
51
|
CustomEventType["InviteRejected"] = "invite_rejected";
|
|
52
|
-
CustomEventType["SharedJob"] = "shared_job";
|
|
53
52
|
CustomEventType["MatchCreated"] = "match_created";
|
|
54
53
|
CustomEventType["ProgramAnnouncement"] = "program_announcement";
|
|
55
54
|
CustomEventType["ProgramAnnouncementComment"] = "program_announcement_comment";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../chat/stream/enum/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;AACrB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED;;GAEG;AACH,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,gEAAiB,CAAA;AACrB,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB;AAED;;GAEG;AACH,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,4BAAa,CAAA;IACb,sCAAuB,CAAA;AAC3B,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAED;;GAEG;AACH,IAAY,QAKX;AALD,WAAY,QAAQ;IAChB,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,2BAAe,CAAA;AACnB,CAAC,EALW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAKnB;AAED;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../chat/stream/enum/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;AACrB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED;;GAEG;AACH,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,gEAAiB,CAAA;AACrB,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB;AAED;;GAEG;AACH,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,4BAAa,CAAA;IACb,sCAAuB,CAAA;AAC3B,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAED;;GAEG;AACH,IAAY,QAKX;AALD,WAAY,QAAQ;IAChB,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,2BAAe,CAAA;AACnB,CAAC,EALW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAKnB;AAED;;GAEG;AACH,IAAY,eAcX;AAdD,WAAY,eAAe;IACvB,qDAAkC,CAAA;IAClC,qDAAkC,CAAA;IAClC,sEAAmD,CAAA;IACnD,qDAAkC,CAAA;IAClC,qEAAkD,CAAA;IAClD,uEAAoD,CAAA;IACpD,+CAA4B,CAAA;IAC5B,uDAAoC,CAAA;IACpC,uDAAoC,CAAA;IACpC,qDAAkC,CAAA;IAClC,iDAA8B,CAAA;IAC9B,+DAA4C,CAAA;IAC5C,8EAA2D,CAAA;AAC/D,CAAC,EAdW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAc1B"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CustomEventType } from "../../enum";
|
|
2
2
|
import { EventTypes, Event, DefaultGenerics } from "stream-chat";
|
|
3
|
-
import { JobType, SalaryType } from "./job.response";
|
|
4
3
|
/**
|
|
5
4
|
* Event types
|
|
6
5
|
*/
|
|
@@ -125,7 +124,6 @@ export interface IEventTypesData {
|
|
|
125
124
|
sessionId: number;
|
|
126
125
|
sessionType: string | null;
|
|
127
126
|
attendeeType: string;
|
|
128
|
-
twilioRef: string;
|
|
129
127
|
senderEmail: string;
|
|
130
128
|
senderFirstName: string;
|
|
131
129
|
senderLastName: string;
|
|
@@ -143,45 +141,12 @@ export interface IEventTypesData {
|
|
|
143
141
|
sessionId: number;
|
|
144
142
|
sessionType: string | null;
|
|
145
143
|
attendeeType: string;
|
|
146
|
-
twilioRef: string;
|
|
147
144
|
senderEmail: string;
|
|
148
145
|
senderFirstName: string;
|
|
149
146
|
senderLastName: string;
|
|
150
147
|
senderName: string;
|
|
151
148
|
senderRef: string;
|
|
152
149
|
};
|
|
153
|
-
[CustomEventType.SharedJob]: {
|
|
154
|
-
id: number;
|
|
155
|
-
ref: string;
|
|
156
|
-
title: string;
|
|
157
|
-
jobType: JobType | string;
|
|
158
|
-
description: string;
|
|
159
|
-
experienceLevel: string;
|
|
160
|
-
salaryType?: SalaryType | string;
|
|
161
|
-
salaryRangeMin?: number;
|
|
162
|
-
salaryRangeMax?: number;
|
|
163
|
-
applicationLink?: string;
|
|
164
|
-
associatedCareerFamily?: {
|
|
165
|
-
id: number;
|
|
166
|
-
interest: string;
|
|
167
|
-
careerFamily: string;
|
|
168
|
-
}[];
|
|
169
|
-
companyName: string;
|
|
170
|
-
linkRef: string;
|
|
171
|
-
country: string;
|
|
172
|
-
createdOn: Date;
|
|
173
|
-
companyImageURL?: string;
|
|
174
|
-
state?: string;
|
|
175
|
-
city?: string;
|
|
176
|
-
workplace?: string;
|
|
177
|
-
applicationDeadline?: Date;
|
|
178
|
-
isPublished: boolean;
|
|
179
|
-
isFilled: boolean;
|
|
180
|
-
filledByRef?: string;
|
|
181
|
-
isPromoted: boolean;
|
|
182
|
-
isMSCompany: boolean;
|
|
183
|
-
companyRef?: string;
|
|
184
|
-
};
|
|
185
150
|
[CustomEventType.ProgramAnnouncement]: {
|
|
186
151
|
id: number;
|
|
187
152
|
title: string;
|
|
@@ -52,7 +52,7 @@ class StreamChannel extends stream_base_1.StreamBase {
|
|
|
52
52
|
isMatchChannel: data.isMatchChannel,
|
|
53
53
|
isPairGlobalMatchChannel: data.isPairGlobalMatchChannel,
|
|
54
54
|
matchRef: data.matchRef,
|
|
55
|
-
programRef: data.programRef
|
|
55
|
+
programRef: data.programRef
|
|
56
56
|
})
|
|
57
57
|
.create();
|
|
58
58
|
});
|
|
@@ -59,7 +59,7 @@ class StreamUser extends stream_base_1.StreamBase {
|
|
|
59
59
|
// Create a custom event with sender information
|
|
60
60
|
const eventData = {
|
|
61
61
|
type: eventType,
|
|
62
|
-
customData: Object.assign(Object.assign({}, data), { _senderId: senderId, _sentFrom:
|
|
62
|
+
customData: Object.assign(Object.assign({}, data), { _senderId: senderId, _sentFrom: "system" // Mark as system message
|
|
63
63
|
})
|
|
64
64
|
};
|
|
65
65
|
return yield _super.server.sendUserCustomEvent(userId, eventData);
|
package/enums/index.d.ts
CHANGED
|
@@ -70,7 +70,6 @@ export declare const enum Message {
|
|
|
70
70
|
ExpiredToken = "Token Expired.",
|
|
71
71
|
InvalidToken = "Invalid Token.",
|
|
72
72
|
ExistingUser = "User already exists.",
|
|
73
|
-
TopicSharingRequired = "Sorry, you must belong to the same topic(s) as this user to connect with them.",
|
|
74
73
|
InactiveAccount = "You cannot create new connections because your account is currently inactive. Please contact support for assistance."
|
|
75
74
|
}
|
|
76
75
|
/**
|
package/enums/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../enums/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../enums/index.ts"],"names":[],"mappings":";;AA+EA,CAAC,CAAC"}
|
package/meet/index.js
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
var __decorate =
|
|
3
|
+
(this && this.__decorate) ||
|
|
4
|
+
function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length,
|
|
6
|
+
r = c < 3 ? target : desc === null ? (desc = Object.getOwnPropertyDescriptor(target, key)) : desc,
|
|
7
|
+
d;
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else
|
|
11
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
12
|
+
if ((d = decorators[i])) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
|
+
};
|
|
15
|
+
var __metadata =
|
|
16
|
+
(this && this.__metadata) ||
|
|
17
|
+
function (k, v) {
|
|
18
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
19
|
+
};
|
|
11
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
21
|
exports.Meet = void 0;
|
|
13
22
|
const tsyringe_1 = require("tsyringe");
|
|
@@ -16,48 +25,50 @@ const twilio_api_1 = require("./twilio/twilio.api");
|
|
|
16
25
|
/**
|
|
17
26
|
* Meet implementation
|
|
18
27
|
*/
|
|
19
|
-
let Meet =
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
21
|
-
class Meet {
|
|
22
|
-
/**
|
|
23
|
-
* Meet constructor
|
|
24
|
-
*
|
|
25
|
-
* @param {ClientType} clientType client type
|
|
26
|
-
* @param {IMeetConfig} config meet configuration
|
|
27
|
-
*/
|
|
28
|
-
constructor(clientType, config) {
|
|
29
|
-
this._clientType = clientType;
|
|
30
|
-
this._config = config;
|
|
31
|
-
this.init();
|
|
32
|
-
}
|
|
33
|
-
// getter / setter
|
|
34
|
-
/**
|
|
35
|
-
* getter for client
|
|
36
|
-
*
|
|
37
|
-
* @returns {T} client of type T
|
|
38
|
-
*/
|
|
39
|
-
get client() {
|
|
40
|
-
return this._client;
|
|
41
|
-
}
|
|
42
|
-
// methods
|
|
43
|
-
/**
|
|
44
|
-
* initialize method
|
|
45
|
-
*
|
|
46
|
-
* @returns {void} promise of type void
|
|
47
|
-
*/
|
|
48
|
-
init() {
|
|
49
|
-
// change to switch when adding new client types
|
|
50
|
-
//Create a new Stream Client
|
|
51
|
-
if (this._clientType == enum_1.ClientType.Twilio) {
|
|
52
|
-
this._client = new twilio_api_1.TwilioApi(this._config);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
Meet = __decorate([
|
|
57
|
-
(0, tsyringe_1.injectable)()
|
|
28
|
+
let Meet =
|
|
58
29
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
30
|
+
class Meet {
|
|
31
|
+
/**
|
|
32
|
+
* Meet constructor
|
|
33
|
+
*
|
|
34
|
+
* @param {ClientType} clientType client type
|
|
35
|
+
* @param {IMeetConfig} config meet configuration
|
|
36
|
+
*/
|
|
37
|
+
constructor(clientType, config) {
|
|
38
|
+
this._clientType = clientType;
|
|
39
|
+
this._config = config;
|
|
40
|
+
this.init();
|
|
41
|
+
}
|
|
42
|
+
// getter / setter
|
|
43
|
+
/**
|
|
44
|
+
* getter for client
|
|
45
|
+
*
|
|
46
|
+
* @returns {T} client of type T
|
|
47
|
+
*/
|
|
48
|
+
get client() {
|
|
49
|
+
return this._client;
|
|
50
|
+
}
|
|
51
|
+
// methods
|
|
52
|
+
/**
|
|
53
|
+
* initialize method
|
|
54
|
+
*
|
|
55
|
+
* @returns {void} promise of type void
|
|
56
|
+
*/
|
|
57
|
+
init() {
|
|
58
|
+
// change to switch when adding new client types
|
|
59
|
+
//Create a new Stream Client
|
|
60
|
+
if (this._clientType == enum_1.ClientType.Twilio) {
|
|
61
|
+
this._client = new twilio_api_1.TwilioApi(this._config);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
Meet = __decorate(
|
|
66
|
+
[
|
|
67
|
+
(0, tsyringe_1.injectable)(),
|
|
68
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
69
|
+
__metadata("design:paramtypes", [String, Object])
|
|
70
|
+
],
|
|
71
|
+
Meet
|
|
72
|
+
);
|
|
62
73
|
exports.Meet = Meet;
|
|
63
|
-
//# sourceMappingURL=index.js.map
|
|
74
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -7,5 +7,5 @@ exports.ClientType = void 0;
|
|
|
7
7
|
var ClientType;
|
|
8
8
|
(function (ClientType) {
|
|
9
9
|
ClientType["Twilio"] = "twilio";
|
|
10
|
-
})(ClientType = exports.ClientType || (exports.ClientType = {}));
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
10
|
+
})((ClientType = exports.ClientType || (exports.ClientType = {})));
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
package/meet/twilio/index.js
CHANGED
|
@@ -2,11 +2,31 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TwilioRoom = exports.TwilioBase = exports.TwilioAuth = exports.TwilioApi = void 0;
|
|
4
4
|
const twilio_auth_1 = require("./twilio.auth");
|
|
5
|
-
Object.defineProperty(exports, "TwilioAuth", {
|
|
5
|
+
Object.defineProperty(exports, "TwilioAuth", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () {
|
|
8
|
+
return twilio_auth_1.TwilioAuth;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
6
11
|
const twilio_api_1 = require("./twilio.api");
|
|
7
|
-
Object.defineProperty(exports, "TwilioApi", {
|
|
12
|
+
Object.defineProperty(exports, "TwilioApi", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return twilio_api_1.TwilioApi;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
8
18
|
const twilio_base_1 = require("./twilio.base");
|
|
9
|
-
Object.defineProperty(exports, "TwilioBase", {
|
|
19
|
+
Object.defineProperty(exports, "TwilioBase", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return twilio_base_1.TwilioBase;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
10
25
|
const twilio_room_1 = require("./twilio.room");
|
|
11
|
-
Object.defineProperty(exports, "TwilioRoom", {
|
|
12
|
-
|
|
26
|
+
Object.defineProperty(exports, "TwilioRoom", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () {
|
|
29
|
+
return twilio_room_1.TwilioRoom;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,32 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding =
|
|
3
|
-
|
|
4
|
-
Object.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
2
|
+
var __createBinding =
|
|
3
|
+
(this && this.__createBinding) ||
|
|
4
|
+
(Object.create
|
|
5
|
+
? function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
Object.defineProperty(o, k2, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return m[k];
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
: function (o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
});
|
|
18
|
+
var __setModuleDefault =
|
|
19
|
+
(this && this.__setModuleDefault) ||
|
|
20
|
+
(Object.create
|
|
21
|
+
? function (o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}
|
|
24
|
+
: function (o, v) {
|
|
25
|
+
o["default"] = v;
|
|
26
|
+
});
|
|
27
|
+
var __decorate =
|
|
28
|
+
(this && this.__decorate) ||
|
|
29
|
+
function (decorators, target, key, desc) {
|
|
30
|
+
var c = arguments.length,
|
|
31
|
+
r = c < 3 ? target : desc === null ? (desc = Object.getOwnPropertyDescriptor(target, key)) : desc,
|
|
32
|
+
d;
|
|
33
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
34
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
35
|
+
else
|
|
36
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
37
|
+
if ((d = decorators[i])) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
38
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
39
|
+
};
|
|
40
|
+
var __importStar =
|
|
41
|
+
(this && this.__importStar) ||
|
|
42
|
+
function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null)
|
|
46
|
+
for (var k in mod)
|
|
47
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
48
|
+
__setModuleDefault(result, mod);
|
|
49
|
+
return result;
|
|
50
|
+
};
|
|
51
|
+
var __metadata =
|
|
52
|
+
(this && this.__metadata) ||
|
|
53
|
+
function (k, v) {
|
|
54
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
55
|
+
};
|
|
30
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
57
|
exports.TwilioAuth = void 0;
|
|
32
58
|
const tsyringe_1 = require("tsyringe");
|
|
@@ -34,55 +60,57 @@ const AccessToken_1 = __importStar(require("twilio/lib/jwt/AccessToken"));
|
|
|
34
60
|
/**
|
|
35
61
|
* Meet Auth implementation
|
|
36
62
|
*/
|
|
37
|
-
let TwilioAuth =
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
39
|
-
class TwilioAuth {
|
|
40
|
-
/**
|
|
41
|
-
* Twilio auth constructor
|
|
42
|
-
*
|
|
43
|
-
* @param {IMeetConfig} config meet config
|
|
44
|
-
*/
|
|
45
|
-
constructor(config) {
|
|
46
|
-
this.init(config.account.main.sid, config.account.main.api.key, config.account.main.api.secret);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Instance the twilio client
|
|
50
|
-
*
|
|
51
|
-
* @param {string} mainAccountSID main account SID
|
|
52
|
-
* @param {string} mainApiKeySID main api SID
|
|
53
|
-
* @param {string} mainApiKeySecret main apy secret
|
|
54
|
-
* @returns {void} promise of type void
|
|
55
|
-
*/
|
|
56
|
-
init(mainAccountSID, mainApiKeySID, mainApiKeySecret) {
|
|
57
|
-
this._mainAccountSID = mainAccountSID;
|
|
58
|
-
this._mainApiKeySID = mainApiKeySID;
|
|
59
|
-
this._mainApiKeySecret = mainApiKeySecret;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Get token
|
|
63
|
-
*
|
|
64
|
-
* @param {string} userId user id
|
|
65
|
-
* @param {string} roomName room name
|
|
66
|
-
* @returns {string} returns token value
|
|
67
|
-
*/
|
|
68
|
-
token(userId, roomName) {
|
|
69
|
-
//Instance the AccessToken token
|
|
70
|
-
const token = new AccessToken_1.default(this._mainAccountSID, this._mainApiKeySID, this._mainApiKeySecret);
|
|
71
|
-
// Assign identity to the token
|
|
72
|
-
token.identity = userId;
|
|
73
|
-
// Grant the access token Twilio Video capabilities
|
|
74
|
-
const grant = new AccessToken_1.VideoGrant();
|
|
75
|
-
grant.room = roomName;
|
|
76
|
-
token.addGrant(grant);
|
|
77
|
-
// Serialize the token to a JWT string
|
|
78
|
-
return token.toJwt();
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
TwilioAuth = __decorate([
|
|
82
|
-
(0, tsyringe_1.injectable)()
|
|
63
|
+
let TwilioAuth =
|
|
83
64
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
65
|
+
class TwilioAuth {
|
|
66
|
+
/**
|
|
67
|
+
* Twilio auth constructor
|
|
68
|
+
*
|
|
69
|
+
* @param {IMeetConfig} config meet config
|
|
70
|
+
*/
|
|
71
|
+
constructor(config) {
|
|
72
|
+
this.init(config.account.main.sid, config.account.main.api.key, config.account.main.api.secret);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Instance the twilio client
|
|
76
|
+
*
|
|
77
|
+
* @param {string} mainAccountSID main account SID
|
|
78
|
+
* @param {string} mainApiKeySID main api SID
|
|
79
|
+
* @param {string} mainApiKeySecret main apy secret
|
|
80
|
+
* @returns {void} promise of type void
|
|
81
|
+
*/
|
|
82
|
+
init(mainAccountSID, mainApiKeySID, mainApiKeySecret) {
|
|
83
|
+
this._mainAccountSID = mainAccountSID;
|
|
84
|
+
this._mainApiKeySID = mainApiKeySID;
|
|
85
|
+
this._mainApiKeySecret = mainApiKeySecret;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Get token
|
|
89
|
+
*
|
|
90
|
+
* @param {string} userId user id
|
|
91
|
+
* @param {string} roomName room name
|
|
92
|
+
* @returns {string} returns token value
|
|
93
|
+
*/
|
|
94
|
+
token(userId, roomName) {
|
|
95
|
+
//Instance the AccessToken token
|
|
96
|
+
const token = new AccessToken_1.default(this._mainAccountSID, this._mainApiKeySID, this._mainApiKeySecret);
|
|
97
|
+
// Assign identity to the token
|
|
98
|
+
token.identity = userId;
|
|
99
|
+
// Grant the access token Twilio Video capabilities
|
|
100
|
+
const grant = new AccessToken_1.VideoGrant();
|
|
101
|
+
grant.room = roomName;
|
|
102
|
+
token.addGrant(grant);
|
|
103
|
+
// Serialize the token to a JWT string
|
|
104
|
+
return token.toJwt();
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
TwilioAuth = __decorate(
|
|
108
|
+
[
|
|
109
|
+
(0, tsyringe_1.injectable)(),
|
|
110
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
111
|
+
__metadata("design:paramtypes", [Object])
|
|
112
|
+
],
|
|
113
|
+
TwilioAuth
|
|
114
|
+
);
|
|
87
115
|
exports.TwilioAuth = TwilioAuth;
|
|
88
|
-
//# sourceMappingURL=twilio.auth.js.map
|
|
116
|
+
//# sourceMappingURL=twilio.auth.js.map
|
|
@@ -1,22 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
2
|
+
var __decorate =
|
|
3
|
+
(this && this.__decorate) ||
|
|
4
|
+
function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length,
|
|
6
|
+
r = c < 3 ? target : desc === null ? (desc = Object.getOwnPropertyDescriptor(target, key)) : desc,
|
|
7
|
+
d;
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else
|
|
11
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
12
|
+
if ((d = decorators[i])) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
|
+
};
|
|
15
|
+
var __metadata =
|
|
16
|
+
(this && this.__metadata) ||
|
|
17
|
+
function (k, v) {
|
|
18
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
19
|
+
};
|
|
20
|
+
var __awaiter =
|
|
21
|
+
(this && this.__awaiter) ||
|
|
22
|
+
function (thisArg, _arguments, P, generator) {
|
|
23
|
+
function adopt(value) {
|
|
24
|
+
return value instanceof P
|
|
25
|
+
? value
|
|
26
|
+
: new P(function (resolve) {
|
|
27
|
+
resolve(value);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) {
|
|
32
|
+
try {
|
|
33
|
+
step(generator.next(value));
|
|
34
|
+
} catch (e) {
|
|
35
|
+
reject(e);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function rejected(value) {
|
|
39
|
+
try {
|
|
40
|
+
step(generator["throw"](value));
|
|
41
|
+
} catch (e) {
|
|
42
|
+
reject(e);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function step(result) {
|
|
46
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
47
|
+
}
|
|
48
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
49
|
+
});
|
|
50
|
+
};
|
|
20
51
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
52
|
exports.TwilioRoom = void 0;
|
|
22
53
|
const twilio_auth_1 = require("./twilio.auth");
|
|
@@ -26,121 +57,117 @@ const twilio_base_1 = require("./twilio.base");
|
|
|
26
57
|
/**
|
|
27
58
|
* Twilio Room API implementation
|
|
28
59
|
*/
|
|
29
|
-
let TwilioRoom =
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
31
|
-
class TwilioRoom extends twilio_base_1.TwilioBase {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
60
|
+
let TwilioRoom =
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
62
|
+
class TwilioRoom extends twilio_base_1.TwilioBase {
|
|
63
|
+
/**
|
|
64
|
+
* Twilio room constructor
|
|
65
|
+
*
|
|
66
|
+
* @param {TwilioAuth} auth Twilio auth
|
|
67
|
+
* @param {Twilio} server Twilio API Server
|
|
68
|
+
* @param {number} expMins expiration time for the timeout room, in minutes.
|
|
69
|
+
*/
|
|
70
|
+
constructor(auth, server, expMins) {
|
|
71
|
+
super();
|
|
72
|
+
super.auth = auth;
|
|
73
|
+
super.server = server;
|
|
74
|
+
this._expMinutes = expMins;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* This will find or Create a new room in Twilio
|
|
78
|
+
*
|
|
79
|
+
* @param {string} roomName room name
|
|
80
|
+
* @param {string} roomTypeStr room type to create in Twilio ("group" | "peer-to-peer" | "go")
|
|
81
|
+
* @returns {Promise<IRoomData>} promise of the result to create or get a room
|
|
82
|
+
*/
|
|
83
|
+
findOrCreateRoom(roomName, roomTypeStr = "group") {
|
|
84
|
+
const _super = Object.create(null, {
|
|
85
|
+
server: { get: () => super.server }
|
|
86
|
+
});
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
try {
|
|
89
|
+
// see if the room exists already. If it doesn't, this will throw
|
|
90
|
+
// error 20404.
|
|
91
|
+
const r = yield _super.server.video.rooms(roomName).fetch();
|
|
92
|
+
return {
|
|
93
|
+
sid: r.sid,
|
|
94
|
+
exist: true,
|
|
95
|
+
status: r.status
|
|
96
|
+
};
|
|
97
|
+
} catch (error) {
|
|
98
|
+
// the room was not found, so create it
|
|
99
|
+
if (error.code == 20404) {
|
|
100
|
+
//Create the room in Twilio
|
|
101
|
+
const roomType = roomTypeStr;
|
|
102
|
+
const r = yield _super.server.video.rooms.create({
|
|
103
|
+
uniqueName: roomName,
|
|
104
|
+
unusedRoomTimeout: this._expMinutes,
|
|
105
|
+
type: roomType
|
|
106
|
+
});
|
|
107
|
+
//Check the result of the request
|
|
108
|
+
if (r) {
|
|
109
|
+
//Return the sid for the new room
|
|
110
|
+
return { sid: r.sid, exist: false };
|
|
111
|
+
} else {
|
|
112
|
+
//Return null
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
} else {
|
|
116
|
+
// let other errors bubble up
|
|
117
|
+
throw error;
|
|
85
118
|
}
|
|
86
119
|
}
|
|
87
|
-
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Convenience method to determine if a roomType is valid
|
|
124
|
+
*
|
|
125
|
+
* @param {string} roomType The room type to validate.
|
|
126
|
+
* @returns {Promise<boolean>} true if a valid roomType, false otherwise
|
|
127
|
+
*/
|
|
128
|
+
validateRoomType(roomType) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
if (roomType === "peer-to-peer" || roomType === "go" || roomType === "group") {
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
return false;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Find an existing room un Twilio
|
|
138
|
+
*
|
|
139
|
+
* @param {string} roomName room name
|
|
140
|
+
* @returns {Promise<IRoomData>} promise of the result to get a room
|
|
141
|
+
*/
|
|
142
|
+
findRoom(roomName) {
|
|
143
|
+
const _super = Object.create(null, {
|
|
144
|
+
server: { get: () => super.server }
|
|
145
|
+
});
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
// see if the room exists already. If it doesn't, this will return undefined
|
|
148
|
+
try {
|
|
149
|
+
const r = yield _super.server.video.rooms(roomName).fetch();
|
|
150
|
+
return {
|
|
151
|
+
sid: r.sid,
|
|
152
|
+
exist: true,
|
|
153
|
+
status: r.status
|
|
154
|
+
};
|
|
155
|
+
} catch (error) {
|
|
156
|
+
// the room was not found, so create it
|
|
157
|
+
if (error.code == 20404) return undefined;
|
|
88
158
|
// let other errors bubble up
|
|
89
|
-
throw error;
|
|
159
|
+
else throw error;
|
|
90
160
|
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
if (roomType === "peer-to-peer" || roomType === "go" || roomType === "group") {
|
|
103
|
-
return true;
|
|
104
|
-
}
|
|
105
|
-
return false;
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Find an existing room un Twilio
|
|
110
|
-
*
|
|
111
|
-
* @param {string} roomName room name
|
|
112
|
-
* @returns {Promise<IRoomData>} promise of the result to get a room
|
|
113
|
-
*/
|
|
114
|
-
findRoom(roomName) {
|
|
115
|
-
const _super = Object.create(null, {
|
|
116
|
-
server: { get: () => super.server }
|
|
117
|
-
});
|
|
118
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
// see if the room exists already. If it doesn't, this will return undefined
|
|
120
|
-
try {
|
|
121
|
-
const r = yield _super.server.video.rooms(roomName).fetch();
|
|
122
|
-
return {
|
|
123
|
-
sid: r.sid,
|
|
124
|
-
exist: true,
|
|
125
|
-
status: r.status
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
catch (error) {
|
|
129
|
-
// the room was not found, so create it
|
|
130
|
-
if (error.code == 20404)
|
|
131
|
-
return undefined;
|
|
132
|
-
// let other errors bubble up
|
|
133
|
-
else
|
|
134
|
-
throw error;
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
TwilioRoom = __decorate([
|
|
140
|
-
(0, tsyringe_1.injectable)()
|
|
141
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
142
|
-
,
|
|
143
|
-
__metadata("design:paramtypes", [twilio_auth_1.TwilioAuth, twilio_1.Twilio, Number])
|
|
144
|
-
], TwilioRoom);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
TwilioRoom = __decorate(
|
|
165
|
+
[
|
|
166
|
+
(0, tsyringe_1.injectable)(),
|
|
167
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
168
|
+
__metadata("design:paramtypes", [twilio_auth_1.TwilioAuth, twilio_1.Twilio, Number])
|
|
169
|
+
],
|
|
170
|
+
TwilioRoom
|
|
171
|
+
);
|
|
145
172
|
exports.TwilioRoom = TwilioRoom;
|
|
146
|
-
//# sourceMappingURL=twilio.room.js.map
|
|
173
|
+
//# sourceMappingURL=twilio.room.js.map
|
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.128",
|
|
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",
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"swagger-jsdoc": "^6.1.0",
|
|
53
53
|
"swagger-ui-express": "^4.3.0",
|
|
54
54
|
"tsyringe": "^4.6.0",
|
|
55
|
-
"twilio": "^3.76.0",
|
|
56
55
|
"uuid": "^8.3.2"
|
|
57
56
|
}
|
|
58
57
|
}
|
|
@@ -79,23 +79,23 @@ class MSLiveRoom extends ms_live_base_1.MSLiveBase {
|
|
|
79
79
|
const roomData = yield this.server.get(`/rooms`);
|
|
80
80
|
// Handle different possible response structures
|
|
81
81
|
if (!roomData) {
|
|
82
|
-
console.error(
|
|
82
|
+
console.error("getAllRooms: No response from 100ms API");
|
|
83
83
|
return [];
|
|
84
84
|
}
|
|
85
85
|
if (!roomData.data) {
|
|
86
|
-
console.error(
|
|
86
|
+
console.error("getAllRooms: No data in response from 100ms API", { response: roomData });
|
|
87
87
|
return [];
|
|
88
88
|
}
|
|
89
89
|
// Handle nested data structure (roomData.data.data) or direct data (roomData.data)
|
|
90
90
|
const rooms = roomData.data.data || roomData.data;
|
|
91
91
|
if (!Array.isArray(rooms)) {
|
|
92
|
-
console.error(
|
|
92
|
+
console.error("getAllRooms: Invalid rooms format", { rooms });
|
|
93
93
|
return [];
|
|
94
94
|
}
|
|
95
95
|
return rooms;
|
|
96
96
|
}
|
|
97
97
|
catch (error) {
|
|
98
|
-
console.error(
|
|
98
|
+
console.error("getAllRooms: Error fetching rooms", { error: error.message });
|
|
99
99
|
return [];
|
|
100
100
|
}
|
|
101
101
|
});
|
|
@@ -110,29 +110,29 @@ class MSLiveRoom extends ms_live_base_1.MSLiveBase {
|
|
|
110
110
|
return __awaiter(this, void 0, void 0, function* () {
|
|
111
111
|
try {
|
|
112
112
|
if (!roomId) {
|
|
113
|
-
console.warn(
|
|
113
|
+
console.warn("createRoomCodes: roomId is null or undefined");
|
|
114
114
|
return [];
|
|
115
115
|
}
|
|
116
116
|
const roomCode = yield this.server.post(`/room-codes/room/${roomId}`);
|
|
117
117
|
// Handle different possible response structures
|
|
118
118
|
if (!roomCode) {
|
|
119
|
-
console.error(
|
|
119
|
+
console.error("createRoomCodes: No response from 100ms API");
|
|
120
120
|
return [];
|
|
121
121
|
}
|
|
122
122
|
if (!roomCode.data) {
|
|
123
|
-
console.error(
|
|
123
|
+
console.error("createRoomCodes: No data in response from 100ms API", { roomId, response: roomCode });
|
|
124
124
|
return [];
|
|
125
125
|
}
|
|
126
126
|
// Handle nested data structure (roomCode.data.data) or direct data (roomCode.data)
|
|
127
127
|
const roomCodes = roomCode.data.data || roomCode.data;
|
|
128
128
|
if (!Array.isArray(roomCodes)) {
|
|
129
|
-
console.error(
|
|
129
|
+
console.error("createRoomCodes: Invalid room codes format", { roomId, roomCodes });
|
|
130
130
|
return [];
|
|
131
131
|
}
|
|
132
132
|
return roomCodes;
|
|
133
133
|
}
|
|
134
134
|
catch (error) {
|
|
135
|
-
console.error(
|
|
135
|
+
console.error("createRoomCodes: Error creating room codes", { roomId, error: error.message });
|
|
136
136
|
return [];
|
|
137
137
|
}
|
|
138
138
|
});
|
|
@@ -147,29 +147,29 @@ class MSLiveRoom extends ms_live_base_1.MSLiveBase {
|
|
|
147
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
148
|
try {
|
|
149
149
|
if (!roomId) {
|
|
150
|
-
console.warn(
|
|
150
|
+
console.warn("getRoomCodes: roomId is null or undefined");
|
|
151
151
|
return [];
|
|
152
152
|
}
|
|
153
153
|
const roomCode = yield this.server.get(`/room-codes/room/${roomId}`);
|
|
154
154
|
// Handle different possible response structures
|
|
155
155
|
if (!roomCode) {
|
|
156
|
-
console.error(
|
|
156
|
+
console.error("getRoomCodes: No response from 100ms API");
|
|
157
157
|
return [];
|
|
158
158
|
}
|
|
159
159
|
if (!roomCode.data) {
|
|
160
|
-
console.error(
|
|
160
|
+
console.error("getRoomCodes: No data in response from 100ms API", { roomId, response: roomCode });
|
|
161
161
|
return [];
|
|
162
162
|
}
|
|
163
163
|
// Handle nested data structure (roomCode.data.data) or direct data (roomCode.data)
|
|
164
164
|
const roomCodes = roomCode.data.data || roomCode.data;
|
|
165
165
|
if (!Array.isArray(roomCodes)) {
|
|
166
|
-
console.error(
|
|
166
|
+
console.error("getRoomCodes: Invalid room codes format", { roomId, roomCodes });
|
|
167
167
|
return [];
|
|
168
168
|
}
|
|
169
169
|
return roomCodes;
|
|
170
170
|
}
|
|
171
171
|
catch (error) {
|
|
172
|
-
console.error(
|
|
172
|
+
console.error("getRoomCodes: Error fetching room codes", { roomId, error: error.message });
|
|
173
173
|
return [];
|
|
174
174
|
}
|
|
175
175
|
});
|
|
@@ -248,29 +248,32 @@ class MSLiveRoom extends ms_live_base_1.MSLiveBase {
|
|
|
248
248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
249
249
|
try {
|
|
250
250
|
if (!roomId) {
|
|
251
|
-
console.warn(
|
|
252
|
-
throw new Error(
|
|
251
|
+
console.warn("stopRecording: roomId is null or undefined");
|
|
252
|
+
throw new Error("Room ID is required");
|
|
253
253
|
}
|
|
254
254
|
const stopRecordingData = yield this.server.post(`/recordings/room/${roomId}/stop`);
|
|
255
255
|
// Handle different possible response structures
|
|
256
256
|
if (!stopRecordingData) {
|
|
257
|
-
console.error(
|
|
258
|
-
throw new Error(
|
|
257
|
+
console.error("stopRecording: No response from 100ms API");
|
|
258
|
+
throw new Error("No response from recording service");
|
|
259
259
|
}
|
|
260
260
|
if (!stopRecordingData.data) {
|
|
261
|
-
console.error(
|
|
262
|
-
|
|
261
|
+
console.error("stopRecording: No data in response from 100ms API", {
|
|
262
|
+
roomId,
|
|
263
|
+
response: stopRecordingData
|
|
264
|
+
});
|
|
265
|
+
throw new Error("No data in response from recording service");
|
|
263
266
|
}
|
|
264
267
|
// Handle nested data structure (stopRecordingData.data.data) or direct data (stopRecordingData.data)
|
|
265
268
|
const recordingData = stopRecordingData.data.data || stopRecordingData.data;
|
|
266
269
|
if (!recordingData) {
|
|
267
|
-
console.error(
|
|
268
|
-
throw new Error(
|
|
270
|
+
console.error("stopRecording: Invalid recording data format", { roomId, recordingData });
|
|
271
|
+
throw new Error("Invalid recording data format");
|
|
269
272
|
}
|
|
270
273
|
return recordingData;
|
|
271
274
|
}
|
|
272
275
|
catch (error) {
|
|
273
|
-
console.error(
|
|
276
|
+
console.error("stopRecording: Error stopping recording", { roomId, error: error.message });
|
|
274
277
|
throw error;
|
|
275
278
|
}
|
|
276
279
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":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K,CAAC,2CAA2C,CAAC,CAAC;oBAC3D,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;iBACzD;gBAED,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE;oBACzB,OAAO,CAAC,KAAK,CAAC,mDAAmD,EAAE;wBAC/D,MAAM;wBACN,QAAQ,EAAE,iBAAiB;qBAC9B,CAAC,CAAC;oBACH,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;iBACjE;gBAED,qGAAqG;gBACrG,MAAM,aAAa,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAI,IAAI,iBAAiB,CAAC,IAAI,CAAC;gBAE5E,IAAI,CAAC,aAAa,EAAE;oBAChB,OAAO,CAAC,KAAK,CAAC,8CAA8C,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;oBACzF,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;iBACpD;gBAED,OAAO,aAAa,CAAC;aACxB;YAAC,OAAO,KAAK,EAAE;gBACZ,OAAO,CAAC,KAAK,CAAC,yCAAyC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;gBAC3F,MAAM,KAAK,CAAC;aACf;QACL,CAAC;KAAA;CACJ,CAAA;AArQY,UAAU;IAFtB,IAAA,qBAAU,GAAE;IACb,6DAA6D;;;GAChD,UAAU,CAqQtB;AArQY,gCAAU"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Job Type enumeration
|
|
3
|
-
* Defines the different types of job positions available
|
|
4
|
-
*/
|
|
5
|
-
export declare enum JobType {
|
|
6
|
-
FULLTIME = 0,
|
|
7
|
-
INTERNSHIP = 1,
|
|
8
|
-
PARTTIME = 2,
|
|
9
|
-
CONTRACT = 3,
|
|
10
|
-
VOLUNTEER = 4,
|
|
11
|
-
APPRENTICESHIP = 5
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Salary Type enumeration
|
|
15
|
-
* Defines the different payment frequency types for job salaries
|
|
16
|
-
*/
|
|
17
|
-
export declare enum SalaryType {
|
|
18
|
-
ANNUAL = 0,
|
|
19
|
-
MONTHLY = 1,
|
|
20
|
-
WEEKLY = 2,
|
|
21
|
-
HOURLY = 3
|
|
22
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SalaryType = exports.JobType = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Job Type enumeration
|
|
6
|
-
* Defines the different types of job positions available
|
|
7
|
-
*/
|
|
8
|
-
var JobType;
|
|
9
|
-
(function (JobType) {
|
|
10
|
-
JobType[JobType["FULLTIME"] = 0] = "FULLTIME";
|
|
11
|
-
JobType[JobType["INTERNSHIP"] = 1] = "INTERNSHIP";
|
|
12
|
-
JobType[JobType["PARTTIME"] = 2] = "PARTTIME";
|
|
13
|
-
JobType[JobType["CONTRACT"] = 3] = "CONTRACT";
|
|
14
|
-
JobType[JobType["VOLUNTEER"] = 4] = "VOLUNTEER";
|
|
15
|
-
JobType[JobType["APPRENTICESHIP"] = 5] = "APPRENTICESHIP";
|
|
16
|
-
})(JobType = exports.JobType || (exports.JobType = {}));
|
|
17
|
-
/**
|
|
18
|
-
* Salary Type enumeration
|
|
19
|
-
* Defines the different payment frequency types for job salaries
|
|
20
|
-
*/
|
|
21
|
-
var SalaryType;
|
|
22
|
-
(function (SalaryType) {
|
|
23
|
-
SalaryType[SalaryType["ANNUAL"] = 0] = "ANNUAL";
|
|
24
|
-
SalaryType[SalaryType["MONTHLY"] = 1] = "MONTHLY";
|
|
25
|
-
SalaryType[SalaryType["WEEKLY"] = 2] = "WEEKLY";
|
|
26
|
-
SalaryType[SalaryType["HOURLY"] = 3] = "HOURLY";
|
|
27
|
-
})(SalaryType = exports.SalaryType || (exports.SalaryType = {}));
|
|
28
|
-
//# sourceMappingURL=job.response.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"job.response.js","sourceRoot":"","sources":["../../../../../chat/stream/models/_/job.response.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,OAOX;AAPD,WAAY,OAAO;IACf,6CAAQ,CAAA;IACR,iDAAU,CAAA;IACV,6CAAQ,CAAA;IACR,6CAAQ,CAAA;IACR,+CAAS,CAAA;IACT,yDAAc,CAAA;AAClB,CAAC,EAPW,OAAO,GAAP,eAAO,KAAP,eAAO,QAOlB;AAED;;;GAGG;AACH,IAAY,UAKX;AALD,WAAY,UAAU;IAClB,+CAAM,CAAA;IACN,iDAAO,CAAA;IACP,+CAAM,CAAA;IACN,+CAAM,CAAA;AACV,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB"}
|