Skip to content

[MOB-7936] creates IterableEmbeddedMessage class #657

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

Open
wants to merge 1 commit into
base: evan/MOB-11551-iterable-embedded-message-elements-class
Choose a base branch
from

Conversation

evantk91
Copy link
Contributor

@evantk91 evantk91 commented Jun 9, 2025

🔹 JIRA Ticket(s) if any

✏️ Description

This pull request creates the IterableEmbeddedMessage class.

Copy link

github-actions bot commented Jun 9, 2025

Lines Statements Branches Functions
Coverage: 45%
44.69% (236/528) 20.7% (41/198) 38.37% (66/172)

@evantk91 evantk91 changed the title [MOB-7936] adds message class and unit tests [MOB-7936] creates IterableEmbeddedMessage class Jun 9, 2025
Copy link

codeclimate bot commented Jun 9, 2025

❌ 2 blocking issues (2 total)

Tool Category Rule Count
eslint Lint Error loading TSDoc config file:
Error encountered for /home/runner/work/react-native-sdk/tsdoc.json:
Unable to resolve "extends" reference to "typedoc/tsdoc.json": Cannot find module 'typedoc/tsdoc.json' from '/home/runner/work/react-native-sdk'
2

This is from Qlty Cloud, the successor to Code Climate Quality. Learn more.

@@ -0,0 +1,163 @@
import { IterableEmbeddedMessage } from '../embedded/classes/IterableEmbeddedMessage';
Copy link

Choose a reason for hiding this comment

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

Error loading TSDoc config file:
Error encountered for /home/runner/work/react-native-sdk/tsdoc.json:
Unable to resolve "extends" reference to "typedoc/tsdoc.json": Cannot find module 'typedoc/tsdoc.json' from '/home/runner/work/react-native-sdk'
[eslint:tsdoc/syntax]

@@ -0,0 +1,58 @@
import { IterableEmbeddedMessageMetadata } from './IterableEmbeddedMessageMetadata';
Copy link

Choose a reason for hiding this comment

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

Error loading TSDoc config file:
Error encountered for /home/runner/work/react-native-sdk/tsdoc.json:
Unable to resolve "extends" reference to "typedoc/tsdoc.json": Cannot find module 'typedoc/tsdoc.json' from '/home/runner/work/react-native-sdk'
[eslint:tsdoc/syntax]

* An interface defining the dictionary object containing the properties for the embedded message.
*/
interface EmbeddedMessageDict {
metadata: IterableEmbeddedMessageMetadata;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add comments to the props with the information it is expecting

if (!dict.metadata) {
throw new Error('metadata is required');
}
const metadata = IterableEmbeddedMessageMetadata.fromDict(dict.metadata);
Copy link
Contributor

Choose a reason for hiding this comment

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

What if fromDict throws an error for any of these classes?

Copy link
Contributor

@lposen lposen left a comment

Choose a reason for hiding this comment

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

Some comments

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