Evan/embedded message class#668
Conversation
…le-embedded-message-button-class
…d-message-button-class [MOB-11550] creates iterableEmbeddedMessageButton class
…le-embedded-message-button-class
…d-message-button-class [MOB-XXXX] adds labels for dict
❌ 13 blocking issues (16 total)
This is from Qlty Cloud, the successor to Code Climate Quality. Learn more. |
| @@ -0,0 +1,91 @@ | |||
| import { IterableEmbeddedMessageElementsButton } from '../embedded/classes/IterableEmbeddedMessageElementsButton'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,40 @@ | |||
| import { IterableEmbeddedMessageElementsButtonAction } from '../embedded/classes/IterableEmbeddedMessageElementsButtonAction'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,64 @@ | |||
| import { IterableEmbeddedMessageElementsButtonAction } from './IterableEmbeddedMessageElementsButtonAction'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,56 @@ | |||
| /** | |||
There was a problem hiding this comment.
…le-embedded-message-elements-class
…d-message-elements-class [MOB-11551] creates IterableEmbeddedMessageElements class
| @@ -0,0 +1,40 @@ | |||
| import { IterableEmbeddedMessageDefaultAction } from '../embedded/classes/IterableEmbeddedMessageDefaultAction'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,214 @@ | |||
| import { IterableEmbeddedMessageElements } from '../embedded/classes/IterableEmbeddedMessageElements'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,91 @@ | |||
| import { IterableEmbeddedMessageElementsButton } from '../embedded/classes/IterableEmbeddedMessageElementsButton'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,40 @@ | |||
| import { IterableEmbeddedMessageElementsButtonAction } from '../embedded/classes/IterableEmbeddedMessageElementsButtonAction'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,38 @@ | |||
| import { IterableEmbeddedMessageText } from '../embedded/classes/IterableEmbeddedMessageText'; | |||
There was a problem hiding this comment.
| constructor( | ||
| title?: string, | ||
| body?: string, | ||
| mediaUrl?: string, | ||
| mediaUrlCaption?: string, | ||
| defaultAction?: IterableEmbeddedMessageDefaultAction, | ||
| buttons?: IterableEmbeddedMessageElementsButton[], | ||
| text?: IterableEmbeddedMessageText[] |
| IterableEmbeddedMessageElementsButton.fromDict(button) | ||
| ); | ||
|
|
||
| const text = dict.text?.map((text) => |
| @@ -0,0 +1,64 @@ | |||
| import { IterableEmbeddedMessageElementsButtonAction } from './IterableEmbeddedMessageElementsButtonAction'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,56 @@ | |||
| /** | |||
There was a problem hiding this comment.
Found 2 issues:
1. 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]
2. Found 57 lines of similar code in 2 locations (mass = 93) [qlty:similar-code]
| @@ -0,0 +1,51 @@ | |||
| /** | |||
There was a problem hiding this comment.
…e-embedded-message-class
…-message-class [MOB-7936] creates IterableEmbeddedMessage class
| @@ -0,0 +1,163 @@ | |||
| import { IterableEmbeddedMessage } from '../embedded/classes/IterableEmbeddedMessage'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,40 @@ | |||
| import { IterableEmbeddedMessageDefaultAction } from '../embedded/classes/IterableEmbeddedMessageDefaultAction'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,214 @@ | |||
| import { IterableEmbeddedMessageElements } from '../embedded/classes/IterableEmbeddedMessageElements'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,91 @@ | |||
| import { IterableEmbeddedMessageElementsButton } from '../embedded/classes/IterableEmbeddedMessageElementsButton'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,40 @@ | |||
| import { IterableEmbeddedMessageElementsButtonAction } from '../embedded/classes/IterableEmbeddedMessageElementsButtonAction'; | |||
There was a problem hiding this comment.
| constructor( | ||
| title?: string, | ||
| body?: string, | ||
| mediaUrl?: string, | ||
| mediaUrlCaption?: string, | ||
| defaultAction?: IterableEmbeddedMessageDefaultAction, | ||
| buttons?: IterableEmbeddedMessageElementsButton[], | ||
| text?: IterableEmbeddedMessageText[] |
| IterableEmbeddedMessageElementsButton.fromDict(button) | ||
| ); | ||
|
|
||
| const text = dict.text?.map((text) => |
| @@ -0,0 +1,64 @@ | |||
| import { IterableEmbeddedMessageElementsButtonAction } from './IterableEmbeddedMessageElementsButtonAction'; | |||
There was a problem hiding this comment.
| @@ -0,0 +1,56 @@ | |||
| /** | |||
There was a problem hiding this comment.
Found 2 issues:
1. 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]
2. Found 57 lines of similar code in 2 locations (mass = 93) [qlty:similar-code]
| @@ -0,0 +1,51 @@ | |||
| /** | |||
There was a problem hiding this comment.
🔹 JIRA Ticket(s) if any
✏️ Description