Skip to content

Commit

Permalink
fix: align meetings snippets with expected snippets (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tr00d authored Nov 15, 2023
1 parent 5d75383 commit cd46fcf
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 89 deletions.
23 changes: 0 additions & 23 deletions meetings/allow-participant-recording.js

This file was deleted.

23 changes: 0 additions & 23 deletions meetings/apply-language-all-participants.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require('dotenv').config({ path: __dirname + '/../../.env' });
const VONAGE_APPLICATION_ID = process.env.VONAGE_APPLICATION_ID;
const VONAGE_APPLICATION_PRIVATE_KEY_PATH = __dirname + "/../../" + process.env.VONAGE_APPLICATION_PRIVATE_KEY_PATH;
const ROOM_DISPLAY_NAME = process.env.ROOM_DISPLAY_NAME;
const THEME_ID = process.env.THEME_ID;

const { Auth } = require('@vonage/auth');
const { Meetings, MeetingType } = require('@vonage/meetings');
Expand All @@ -17,7 +18,4 @@ const meetingsClient = new Meetings(credentials, options);
await meetingsClient.createRoom({
type: MeetingType.INSTANT,
displayName: ROOM_DISPLAY_NAME,
recordingOptions: {
autoRecord: true,
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require('dotenv').config({ path: __dirname + '/../../.env' });
const VONAGE_APPLICATION_ID = process.env.VONAGE_APPLICATION_ID;
const VONAGE_APPLICATION_PRIVATE_KEY_PATH = __dirname + "/../../" + process.env.VONAGE_APPLICATION_PRIVATE_KEY_PATH;
const ROOM_DISPLAY_NAME = process.env.ROOM_DISPLAY_NAME;
const THEME_ID = process.env.THEME_ID;
const ROOM_EXPIRATION_DATE = process.env.ROOM_EXPIRATION_DATE;

const { Auth } = require('@vonage/auth');
const { Meetings, MeetingType } = require('@vonage/meetings');
Expand All @@ -18,8 +18,5 @@ const meetingsClient = new Meetings(credentials, options);
await meetingsClient.createRoom({
type: MeetingType.LONG_TERM,
displayName: ROOM_DISPLAY_NAME,
availableFeatures: {
isRecordingAvailable: true,
},
themeId: THEME_ID,
expiresAt: ROOM_EXPIRATION_DATE,
});
23 changes: 0 additions & 23 deletions meetings/individual-language-selection.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require('dotenv').config({ path: __dirname + '/../../.env' });

const VONAGE_APPLICATION_ID = process.env.VONAGE_APPLICATION_ID;
const VONAGE_APPLICATION_PRIVATE_KEY_PATH = __dirname + "/../../" + process.env.VONAGE_APPLICATION_PRIVATE_KEY_PATH;
const ROOM_ID = process.env.ROOM_ID;
const SESSION_ID = process.env.SESSION_ID;

const { Auth } = require('@vonage/auth');
const { Meetings } = require('@vonage/meetings');
Expand All @@ -14,6 +14,4 @@ const credentials = new Auth({
const options = {};

const meetingsClient = new Meetings(credentials, options);
const room = await meetingsClient.getRoom(ROOM_ID);
room.expiresAt = '1997-08-29T20:14:00Z';
await meetingsClient.updateRoom(ROOM_ID, room);
const numbers = await meetingsClient.getDialInNumbers(SESSION_ID);
1 change: 0 additions & 1 deletion meetings/list-recordings.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const credentials = new Auth({
const options = {};

const meetingsClient = new Meetings(credentials, options);

const recordings = await meetingsClient.getSessionRecordings(SESSION_ID);
const recording = await recordings.next();
console.log(recording);
1 change: 0 additions & 1 deletion meetings/list-rooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ const options = {};
const meetingsClient = new Meetings(credentials, options);
for await (const room of meetingsClient.getRooms()) {
console.log(room);

};
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ require('dotenv').config({ path: __dirname + '/../../.env' });

const VONAGE_APPLICATION_ID = process.env.VONAGE_APPLICATION_ID;
const VONAGE_APPLICATION_PRIVATE_KEY_PATH = __dirname + "/../../" + process.env.VONAGE_APPLICATION_PRIVATE_KEY_PATH;
const ROOM_ID = process.env.ROOM_ID;
const THEME_ID = process.env.THEME_ID;

const { Auth } = require('@vonage/auth');
const { Meetings } = require('@vonage/meetings');
Expand All @@ -15,6 +13,7 @@ const credentials = new Auth({
const options = {};

const meetingsClient = new Meetings(credentials, options);
const room = await meetingsClient.getRoom(ROOM_ID);
room.themeId = THEME_ID;
await meetingsClient.updateRoom(ROOM_ID, room);
for await (const theme of meetingsClient.getThemes()) {
console.log(theme);

};
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require('dotenv').config({ path: __dirname + '/../../.env' });
const VONAGE_APPLICATION_ID = process.env.VONAGE_APPLICATION_ID;
const VONAGE_APPLICATION_PRIVATE_KEY_PATH = __dirname + "/../../" + process.env.VONAGE_APPLICATION_PRIVATE_KEY_PATH;
const ROOM_ID = process.env.ROOM_ID;
const ROOM_EXPIRATION_DATE = process.env.ROOM_EXPIRATION_DATE;

const { Auth } = require('@vonage/auth');
const { Meetings } = require('@vonage/meetings');
Expand All @@ -15,5 +16,5 @@ const options = {};

const meetingsClient = new Meetings(credentials, options);
const room = await meetingsClient.getRoom(ROOM_ID);
room.themeId = null;
room.expiresAt = ROOM_EXPIRATION_DATE;
await meetingsClient.updateRoom(ROOM_ID, room);

0 comments on commit cd46fcf

Please sign in to comment.