Skip to content
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

Migrate to latest Conviva types #105

Merged
merged 6 commits into from
May 15, 2024
Merged

Conversation

karpov-kir
Copy link
Contributor

@karpov-kir karpov-kir commented May 14, 2024

Related to: https://bitmovin.atlassian.net/browse/TA-2596

  • Use the latest Conviva types
  • Explicitly add ./@types/conviva/ConvivaExtension.d.ts with types that are missing in the core package types
  • Update ts-loader and TypeScript so that the project compiles fine (I've added some comments in the PR with explanations)

This PR is required to finalize #104.

};
const customContentInfo: CustomContentMetadata = {
[Conviva.Constants.FRAMEWORK_NAME]: this.contentMetadata.framework,
[Conviva.Constants.FRAMEWORK_VERSION]: this.contentMetadata.frameworkVersion,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two are not present in ReservedContentMetadata props, so they should be custom data.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would make sense to deprecate/remove those two options in that case. Customers can set any custom data anyway. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 04a0c70, 529eb4d.

@karpov-kir karpov-kir requested a review from dweinber May 14, 2024 14:37
Copy link
Member

@dweinber dweinber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me. Just one open question about the now-custom framework fields

@karpov-kir karpov-kir requested a review from dweinber May 15, 2024 06:31
@karpov-kir karpov-kir changed the title Improve Conviva types Migrate to latest Conviva types May 15, 2024
@karpov-kir karpov-kir merged commit 87682ab into develop May 15, 2024
3 checks passed
@karpov-kir karpov-kir deleted the feature/TA-2596-improve-types branch May 15, 2024 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants