-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Chore: Migrate ee/omnichannel folder to Typescript #3749
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
167e3be
Chore: Migrate ee/omnichannel folder to Typescript
reinaldonetof 34bc0f1
omnichannelstatus and queue list
reinaldonetof d5487b4
Merge branch 'develop' into chore.ts-ee-omnichannel
reinaldonetof 3fbed10
boolean searching and react.ref
reinaldonetof dd92cc9
test initi
reinaldonetof 98fee69
test and refactor interfaces
reinaldonetof e201a46
minor tweak
reinaldonetof 8367c9a
Merge branch 'develop' into chore.ts-ee-omnichannel
reinaldonetof 9927338
Merge branch 'develop' into chore.ts-ee-omnichannel
reinaldonetof 57452cd
Merge branch 'develop' into chore.ts-ee-omnichannel
reinaldonetof 360a145
minor tweaks
reinaldonetof 5b42998
Merge branch 'chore.ts-ee-omnichannel' of https://github.com/RocketCh…
reinaldonetof 72c1d84
Merge branch 'develop' into chore.ts-ee-omnichannel
reinaldonetof ab5506e
Merge branch 'develop' into chore.ts-ee-omnichannel
reinaldonetof File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| import { Action } from 'redux'; | ||
|
|
||
| import { IRoom } from '../../../definitions'; | ||
| import { INQUIRY } from '../../../actions/actionsTypes'; | ||
|
|
||
| interface IInquirySetEnabled extends Action { | ||
| enabled: boolean; | ||
| } | ||
|
|
||
| interface IInquiryQueueAddAndUpdate extends Action { | ||
| inquiry: IRoom; | ||
| } | ||
|
|
||
| interface IInquirySuccess extends Action { | ||
| inquiries: IRoom[]; | ||
| } | ||
|
|
||
| interface IInquiryQueueRemove extends Action { | ||
| inquiryId: string; | ||
| } | ||
|
|
||
| interface IInquiryFailure extends Action { | ||
| error: unknown; | ||
| } | ||
|
|
||
| export type TActionInquiry = IInquirySetEnabled & | ||
| IInquiryQueueAddAndUpdate & | ||
| IInquirySuccess & | ||
| IInquiryQueueRemove & | ||
| IInquiryFailure; | ||
|
|
||
| export function inquirySetEnabled(enabled: boolean): IInquirySetEnabled { | ||
| return { | ||
| type: INQUIRY.SET_ENABLED, | ||
| enabled | ||
| }; | ||
| } | ||
|
|
||
| export function inquiryReset(): Action { | ||
| return { | ||
| type: INQUIRY.RESET | ||
| }; | ||
| } | ||
|
|
||
| export function inquiryQueueAdd(inquiry: IRoom): IInquiryQueueAddAndUpdate { | ||
| return { | ||
| type: INQUIRY.QUEUE_ADD, | ||
| inquiry | ||
| }; | ||
| } | ||
|
|
||
| export function inquiryQueueUpdate(inquiry: IRoom): IInquiryQueueAddAndUpdate { | ||
| return { | ||
| type: INQUIRY.QUEUE_UPDATE, | ||
| inquiry | ||
| }; | ||
| } | ||
|
|
||
| export function inquiryQueueRemove(inquiryId: string): IInquiryQueueRemove { | ||
| return { | ||
| type: INQUIRY.QUEUE_REMOVE, | ||
| inquiryId | ||
| }; | ||
| } | ||
|
|
||
| export function inquiryRequest(): Action { | ||
| return { | ||
| type: INQUIRY.REQUEST | ||
| }; | ||
| } | ||
|
|
||
| export function inquirySuccess(inquiries: IRoom[]): IInquirySuccess { | ||
| return { | ||
| type: INQUIRY.SUCCESS, | ||
| inquiries | ||
| }; | ||
| } | ||
|
|
||
| export function inquiryFailure(error: unknown): IInquiryFailure { | ||
| return { | ||
| type: INQUIRY.FAILURE, | ||
| error | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
app/ee/omnichannel/reducers/inquiry.js → app/ee/omnichannel/reducers/inquiry.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
app/ee/omnichannel/selectors/inquiry.js → app/ee/omnichannel/selectors/inquiry.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| import { createSelector } from 'reselect'; | ||
|
|
||
| const getInquiryQueue = state => state.inquiry.queued; | ||
| import { IApplicationState } from '../../../definitions'; | ||
|
|
||
| const getInquiryQueue = (state: IApplicationState) => state.inquiry.queued; | ||
|
|
||
| export const getInquiryQueueSelector = createSelector([getInquiryQueue], queue => queue); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.