epicenter-libs 3.12.0-alpha.2 → 3.12.0-alpha.3
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/dist/browser/{AckExtension-27837f84.js → AckExtension-214620c9.js} +3 -3
- package/dist/{module/AckExtension-c8eb637f.js.map → browser/AckExtension-214620c9.js.map} +1 -1
- package/dist/{module/ReloadExtension-153dd608.js → browser/ReloadExtension-44b6943a.js} +3 -3
- package/dist/{module/ReloadExtension-153dd608.js.map → browser/ReloadExtension-44b6943a.js.map} +1 -1
- package/dist/browser/{cometd-99ccd31a.js → cometd-d0c0b299.js} +2 -2
- package/dist/browser/{cometd-99ccd31a.js.map → cometd-d0c0b299.js.map} +1 -1
- package/dist/browser/{epicenter-dd8e5ae6.js → epicenter-096c3a66.js} +15 -15
- package/dist/browser/{epicenter-dd8e5ae6.js.map → epicenter-096c3a66.js.map} +1 -1
- package/dist/browser/epicenter.js +1 -1
- package/dist/cjs/{AckExtension-e1ce45a6.js → AckExtension-379cc7df.js} +3 -3
- package/dist/cjs/{AckExtension-e1ce45a6.js.map → AckExtension-379cc7df.js.map} +1 -1
- package/dist/cjs/{ReloadExtension-2979639f.js → ReloadExtension-6a2e4c9f.js} +3 -3
- package/dist/cjs/{ReloadExtension-2979639f.js.map → ReloadExtension-6a2e4c9f.js.map} +1 -1
- package/dist/cjs/{cometd-360407c8.js → cometd-cfb3e483.js} +2 -2
- package/dist/cjs/{cometd-360407c8.js.map → cometd-cfb3e483.js.map} +1 -1
- package/dist/cjs/{epicenter-708918e5.js → epicenter-708c87bb.js} +15 -15
- package/dist/cjs/{epicenter-708918e5.js.map → epicenter-708c87bb.js.map} +1 -1
- package/dist/cjs/epicenter.js +1 -1
- package/dist/epicenter.js +11 -11
- package/dist/epicenter.js.map +1 -1
- package/dist/epicenter.min.js +1 -1
- package/dist/epicenter.min.js.map +1 -1
- package/dist/module/{AckExtension-c8eb637f.js → AckExtension-6850a921.js} +3 -3
- package/dist/{browser/AckExtension-27837f84.js.map → module/AckExtension-6850a921.js.map} +1 -1
- package/dist/{browser/ReloadExtension-7a5a2a89.js → module/ReloadExtension-6609fd2a.js} +3 -3
- package/dist/{browser/ReloadExtension-7a5a2a89.js.map → module/ReloadExtension-6609fd2a.js.map} +1 -1
- package/dist/module/{cometd-de9e9e29.js → cometd-acb0cb7b.js} +2 -2
- package/dist/module/{cometd-de9e9e29.js.map → cometd-acb0cb7b.js.map} +1 -1
- package/dist/module/{epicenter-51a8ffa9.js → epicenter-2b514c42.js} +15 -15
- package/dist/module/{epicenter-51a8ffa9.js.map → epicenter-2b514c42.js.map} +1 -1
- package/dist/module/epicenter.js +1 -1
- package/dist/types/adapters/vonage.d.ts +7 -7
- package/dist/types/apis/vonage.d.ts +18 -6
- package/package.json +1 -1
- package/src/adapters/vonage.ts +9 -9
- package/src/apis/vonage.ts +14 -8
|
@@ -3923,9 +3923,9 @@ class CometdAdapter {
|
|
|
3923
3923
|
if (!enabled) throw new EpicenterError('Push Channels are not enabled on this project');
|
|
3924
3924
|
const {
|
|
3925
3925
|
CometD
|
|
3926
|
-
} = await Promise.resolve().then(function () { return require('./cometd-
|
|
3927
|
-
const AckExtension = (await Promise.resolve().then(function () { return require('./AckExtension-
|
|
3928
|
-
const ReloadExtension = (await Promise.resolve().then(function () { return require('./ReloadExtension-
|
|
3926
|
+
} = await Promise.resolve().then(function () { return require('./cometd-cfb3e483.js'); }).then(function (n) { return n.cometd; });
|
|
3927
|
+
const AckExtension = (await Promise.resolve().then(function () { return require('./AckExtension-379cc7df.js'); }).then(function (n) { return n.AckExtension; })).default;
|
|
3928
|
+
const ReloadExtension = (await Promise.resolve().then(function () { return require('./ReloadExtension-6a2e4c9f.js'); }).then(function (n) { return n.ReloadExtension; })).default;
|
|
3929
3929
|
this.cometd = new CometD();
|
|
3930
3930
|
const {
|
|
3931
3931
|
apiProtocol,
|
|
@@ -6343,8 +6343,8 @@ async function postArchive(body, optionals = {}) {
|
|
|
6343
6343
|
body
|
|
6344
6344
|
}) => body);
|
|
6345
6345
|
}
|
|
6346
|
-
async function
|
|
6347
|
-
return await new Router().get('/vonage/
|
|
6346
|
+
async function getInfo(optionals = {}) {
|
|
6347
|
+
return await new Router().get('/vonage/info', optionals).then(({
|
|
6348
6348
|
body
|
|
6349
6349
|
}) => body);
|
|
6350
6350
|
}
|
|
@@ -6359,7 +6359,7 @@ var vonage$1 = /*#__PURE__*/Object.freeze({
|
|
|
6359
6359
|
getSession: getSession,
|
|
6360
6360
|
postToken: postToken,
|
|
6361
6361
|
postArchive: postArchive,
|
|
6362
|
-
|
|
6362
|
+
getInfo: getInfo,
|
|
6363
6363
|
deleteArchiveByID: deleteArchiveByID
|
|
6364
6364
|
});
|
|
6365
6365
|
|
|
@@ -6380,7 +6380,7 @@ var vonage$1 = /*#__PURE__*/Object.freeze({
|
|
|
6380
6380
|
*/
|
|
6381
6381
|
|
|
6382
6382
|
async function getProjectID(optionals = {}) {
|
|
6383
|
-
return
|
|
6383
|
+
return (await getInfo(optionals)).apiKey;
|
|
6384
6384
|
}
|
|
6385
6385
|
/**
|
|
6386
6386
|
* Calls the server SDK call for creating a session. Used to create a session object on the client side.
|
|
@@ -6395,7 +6395,7 @@ async function getProjectID(optionals = {}) {
|
|
|
6395
6395
|
*
|
|
6396
6396
|
* const vonageSession = OT.initSession(projectID, sessionID);
|
|
6397
6397
|
* @param [optionals] Optional arguments; pass network call options overrides here.
|
|
6398
|
-
* @returns promise that resolves to
|
|
6398
|
+
* @returns promise that resolves to an object containing the Vonage session ID
|
|
6399
6399
|
*/
|
|
6400
6400
|
|
|
6401
6401
|
async function createSession(optionals = {}) {
|
|
@@ -6413,9 +6413,9 @@ async function createSession(optionals = {}) {
|
|
|
6413
6413
|
*/
|
|
6414
6414
|
|
|
6415
6415
|
async function generateToken(sessionID, optionals = {}) {
|
|
6416
|
-
return postToken({
|
|
6416
|
+
return (await postToken({
|
|
6417
6417
|
sessionId: sessionID
|
|
6418
|
-
}, optionals);
|
|
6418
|
+
}, optionals)).token;
|
|
6419
6419
|
}
|
|
6420
6420
|
/**
|
|
6421
6421
|
* Starts a Vonage archive -- a user recording of a Vonage session
|
|
@@ -6436,7 +6436,7 @@ async function generateToken(sessionID, optionals = {}) {
|
|
|
6436
6436
|
* @param [optionals.readLock] Read permission role; one of the strings defined in epicenter.ROLE
|
|
6437
6437
|
* @param [optionals.writeLock] Write permission role; one of the strings defined in epicenter.ROLE
|
|
6438
6438
|
* @param [optionals.ttlSeconds] Life span of the archive (how long before it is deleted); defaults to 604,800 (1 week), max of 31,536,000 (1 year)
|
|
6439
|
-
* @returns promise that resolves to
|
|
6439
|
+
* @returns promise that resolves to an object containing the archive ID and status
|
|
6440
6440
|
*/
|
|
6441
6441
|
|
|
6442
6442
|
async function startArchive(name, sessionID, scope, optionals = {}) {
|
|
@@ -6469,7 +6469,7 @@ async function startArchive(name, sessionID, scope, optionals = {}) {
|
|
|
6469
6469
|
* vonageAdapter.stopArchive('004355...ede770e39');
|
|
6470
6470
|
* @param archiveID ID of the archive to stop
|
|
6471
6471
|
* @param optionals Optional arguments; pass network call options overrides here.
|
|
6472
|
-
* @returns promise that resolves to
|
|
6472
|
+
* @returns promise that resolves to an object containing the archive ID and status (which should be "stopped")
|
|
6473
6473
|
*/
|
|
6474
6474
|
|
|
6475
6475
|
async function stopArchive(archiveID, optionals = {}) {
|
|
@@ -7354,9 +7354,9 @@ var utilities = /*#__PURE__*/Object.freeze({
|
|
|
7354
7354
|
});
|
|
7355
7355
|
|
|
7356
7356
|
/* yes, this string template literal is weird;
|
|
7357
|
-
* it's cause rollup does not recogize 3.12.0-alpha.
|
|
7357
|
+
* it's cause rollup does not recogize 3.12.0-alpha.3 as an individual token otherwise */
|
|
7358
7358
|
|
|
7359
|
-
const version = "Epicenter (v".concat('3.12.0-alpha.
|
|
7359
|
+
const version = "Epicenter (v".concat('3.12.0-alpha.3', ") for Module | Build Date: 2022-01-13T18:55:28.539Z");
|
|
7360
7360
|
const UNAUTHORIZED = 401;
|
|
7361
7361
|
errorManager.registerHandler(error => error.status === UNAUTHORIZED && error.code === 'AUTHENTICATION_EXPIRED', async error => {
|
|
7362
7362
|
await logout();
|
|
@@ -7427,4 +7427,4 @@ exports.version = version;
|
|
|
7427
7427
|
exports.vonage = vonage;
|
|
7428
7428
|
exports.vonage$1 = vonage$1;
|
|
7429
7429
|
exports.world = world;
|
|
7430
|
-
//# sourceMappingURL=epicenter-
|
|
7430
|
+
//# sourceMappingURL=epicenter-708c87bb.js.map
|