Create and move plugin APIs to api/ folder Change-Id: If754f948d6a1595637a1b4a315dae17503e50a0f
diff --git a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.ts b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.ts index 903afaa..89ca4ef 100644 --- a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.ts +++ b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.ts
@@ -50,17 +50,9 @@ HttpMethod, NotifyType, } from '../../../constants/constants'; -import { - EventType as PluginEventType, - TargetElement, -} from '../../plugins/gr-plugin-types'; +import {EventType as PluginEventType, TargetElement} from '../../../api/plugin'; import {customElement, observe, property} from '@polymer/decorators'; import { - ActionPriority, - ActionType, - ErrorCallback, -} from '../../../services/gr-rest-api/gr-rest-api'; -import { AccountInfo, ActionInfo, ActionNameToActionInfoMap, @@ -102,10 +94,7 @@ import {PolymerDeepPropertyChange} from '@polymer/polymer/interfaces'; import {GrButton} from '../../shared/gr-button/gr-button'; import { - ChangeActions, GrChangeActionsElement, - PrimaryActionKey, - RevisionActions, UIActionInfo, } from '../../shared/gr-js-api-interface/gr-change-actions-js-api'; import {fireAlert} from '../../../utils/event-util'; @@ -116,6 +105,14 @@ } from '../../../utils/label-util'; import {CommentThread} from '../../../utils/comment-util'; import {ShowAlertEventDetail} from '../../../types/events'; +import { + ActionPriority, + ActionType, + ChangeActions, + PrimaryActionKey, + RevisionActions, +} from '../../../api/change-actions'; +import {ErrorCallback} from '../../../api/rest'; const ERR_BRANCH_EMPTY = 'The destination branch can’t be empty.'; const ERR_COMMIT_EMPTY = 'The commit message can’t be empty.';