-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(meetings): fix types #3602
fix(meetings): fix types #3602
Conversation
Code refactor of util.ts and utilv2.ts was required because with the existing code we were getting an empty declaration files. |
Please mark this comment next to the place where the refactor was done |
if (type === _LOCUS_ID_) { | ||
if (!(destination && destination.url)) { | ||
throw new ParameterError('You cannot create a meeting by locus without a locus.url defined'); | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The refactor of util.ts is required as without this refactor an empty declaration file was being created.
For the refactor
- Created a class MeetingInfoUtil
- All the methods inside the class are static. No src code changes are made.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this comment. I like it :-)
const MeetingInfoUtil: any = {}; | ||
const meetingInfoError = | ||
'MeetingInfo is fetched with the meeting link, SIP URI, phone number, Hydra people ID, or a conversation URL.'; | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The refactor of utilv2.ts is required as without this refactor an empty declaration file was being created.
For the refactor
- Create a class MeetingInfoUtil
- All the methods inside the class are static. No src code changes are made.
@@ -41,8 +42,9 @@ | |||
"sinon": "^9.2.4" | |||
}, | |||
"scripts": { | |||
"build": "yarn build:src", | |||
"build:src": "webex-legacy-tools build -dest \"./dist\" -src \"./src\" -js -ts -maps", | |||
"ls": "pwd", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Shreyas281299 why do we want to add the ls
command here ?
Also ls
is doing pwd
? pwd
is to get full path name of your current directory but ls
is for listing files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Neeraj-swarnkar thanks. No this was added by mistake. I was testing something thats why I added this. Removing it now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just had one question. Changes look fine. Let's get this reviewed by the web client team as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment. Rest looks good to me :-)
if (type === _LOCUS_ID_) { | ||
if (!(destination && destination.url)) { | ||
throw new ParameterError('You cannot create a meeting by locus without a locus.url defined'); | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this comment. I like it :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good.
COMPLETES #https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-502998
This pull request addresses
Export important classes, objects, and constants in plugin-meetings. This will make sure we dont have to import them from from '/dist' folder in WWC.
In internal-plugin-voicea, we were not creating declaration files.
by making the following changes
Change Type
I certified that
I have read and followed contributing guidelines
I discussed changes with code owners prior to submitting this pull request
I have not skipped any automated checks
All existing and new tests passed
I have updated the documentation accordingly
Make sure to have followed the contributing guidelines before submitting.