Skip to content

Commit

Permalink
feat(edit-content) remove duplicated interface
Browse files Browse the repository at this point in the history
  • Loading branch information
oidacra committed Nov 14, 2024
1 parent 1f9d81b commit 18015ae
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Injectable, inject } from '@angular/core';
import { map, pluck } from 'rxjs/operators';

import { DotCMSResponse } from '@dotcms/dotcms-js';
import { DotCMSWorkflow, DotCMSWorkflowAction, DotCMSWorkflowStep } from '@dotcms/dotcms-models';
import { DotCMSWorkflow, DotCMSWorkflowAction, WorkflowStep } from '@dotcms/dotcms-models';

export enum DotRenderMode {
LISTING = 'LISTING',
Expand All @@ -16,7 +16,7 @@ export enum DotRenderMode {
export interface DotCMSWorkflowActions {
scheme: DotCMSWorkflow;
action: DotCMSWorkflowAction;
firstStep: DotCMSWorkflowStep;
firstStep: WorkflowStep;
}

@Injectable()
Expand Down
12 changes: 0 additions & 12 deletions core-web/libs/dotcms-models/src/lib/dot-workflow-action.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,3 @@ export interface DotCMSWorkflowInput {
id: string;
body: any;
}

export interface DotCMSWorkflowStep {
creationDate: number;
enableEscalation: boolean;
escalationAction: null;
escalationTime: number;
id: string;
myOrder: number;
name: string;
resolved: boolean;
schemeId: string;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { JsonPipe } from '@angular/common';
import { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';
import { FormsModule } from '@angular/forms';

Expand Down Expand Up @@ -26,8 +25,7 @@ import { DotMessagePipe } from '@dotcms/ui';
ButtonModule,
DialogModule,
DropdownModule,
FormsModule,
JsonPipe
FormsModule
],

templateUrl: './dot-edit-content-sidebar-workflow.component.html',
Expand Down
15 changes: 4 additions & 11 deletions core-web/libs/utils-testing/src/lib/dot-workflows-actions.mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DotCMSWorkflow, DotCMSWorkflowAction, DotCMSWorkflowStep } from '@dotcms/dotcms-models';
import { DotCMSWorkflowAction } from '@dotcms/dotcms-models';
import { DotCMSWorkflowActions } from '../../../data-access/src/lib/dot-workflows-actions/dot-workflows-actions.service';

export const mockWorkflowsActions: DotCMSWorkflowAction[] = [
{
Expand Down Expand Up @@ -83,11 +84,7 @@ export const mockPublishAction = {
actionInputs: []
};

export const MOCK_SINGLE_WORKFLOW_ACTIONS: {
scheme: DotCMSWorkflow;
action: DotCMSWorkflowAction;
firstStep: DotCMSWorkflowStep;
}[] = [
export const MOCK_SINGLE_WORKFLOW_ACTIONS: DotCMSWorkflowActions[] = [
{
action: {
assignable: false,
Expand Down Expand Up @@ -204,11 +201,7 @@ export const MOCK_SINGLE_WORKFLOW_ACTIONS: {
}
];

export const MOCK_MULTIPLE_WORKFLOW_ACTIONS: {
scheme: DotCMSWorkflow;
action: DotCMSWorkflowAction;
firstStep: DotCMSWorkflowStep;
}[] = [
export const MOCK_MULTIPLE_WORKFLOW_ACTIONS: DotCMSWorkflowActions[] = [
{
action: {
assignable: false,
Expand Down

0 comments on commit 18015ae

Please sign in to comment.