Skip to content

Commit

Permalink
EW-1060 modified deep imports of some dtos
Browse files Browse the repository at this point in the history
  • Loading branch information
Fshmit committed Dec 13, 2024
1 parent 9b5e8f7 commit 7ae761d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export { RichTextElementResponseDto } from './rich-text-element-response.dto';
export { RichTextElementContentDto } from './rich-text-element-content.dto';
export { LinkElementContentDto } from './link-element-content.dto';
export { LinkElementResponseDto } from './link-element-response.dto';
export { CardResponseDto } from './card-response.dto';
export { CardListResponseDto } from './card-list-response.dto';
export { TimestampResponseDto } from './timestamp-response.dto';
export { VisibilitySettingsResponseDto } from './visibility-settings-response.dto';
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ import {
BoardLessonDto,
BoardColumnBoardDto,
} from '../common-cartridge-client/room-client/dto';
import { RichTextElementContentDto } from '../common-cartridge-client/card-client/dto/rich-text-element-content.dto';
import { LinkElementContentDto } from '../common-cartridge-client/card-client/dto/link-element-content.dto';
import {
RichTextElementContentDto,
LinkElementContentDto,
CardListResponseDto,
} from '../common-cartridge-client/card-client/dto';
import {
boardCloumnBoardFactory,
boardLessonFactory,
Expand All @@ -28,7 +31,6 @@ import {
listOfCardResponseFactory,
roomFactory,
} from '../testing/common-cartridge-dtos.factory';
import { CardListResponseDto } from '../common-cartridge-client/card-client/dto/card-list-response.dto';

describe('CommonCartridgeExportService', () => {
let module: TestingModule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
BoardTaskDto,
} from '../common-cartridge-client/room-client/dto';
import { CardClientAdapter } from '../common-cartridge-client/card-client/card-client.adapter';
import { CardListResponseDto } from '../common-cartridge-client/card-client/dto/card-list-response.dto';
import { LessonClientAdapter } from '../common-cartridge-client/lesson-client/lesson-client.adapter';
import { LessonContentDto, LessonDto } from '../common-cartridge-client/lesson-client/dto';
import { CommonCartridgeFileBuilder } from '../export/builders/common-cartridge-file-builder';
Expand All @@ -19,10 +18,13 @@ import { CommonCartridgeExportMapper } from './common-cartridge.mapper';
import { CommonCartridgeOrganizationNode } from '../export/builders/common-cartridge-organization-node';
import { createIdentifier } from '../export/utils';
import { BoardElementDtoType } from '../common-cartridge-client/room-client/enums/board-element.enum';
import { CardResponseDto } from '../common-cartridge-client/card-client/dto/card-response.dto';
import { CardResponseElementsInnerDto } from '../common-cartridge-client/card-client/types/card-response-elements-inner.type';
import { RichTextElementResponseDto } from '../common-cartridge-client/card-client/dto/rich-text-element-response.dto';
import { LinkElementResponseDto } from '../common-cartridge-client/card-client/dto/link-element-response.dto';
import {
RichTextElementResponseDto,
LinkElementResponseDto,
CardListResponseDto,
CardResponseDto,
} from '../common-cartridge-client/card-client/dto';

const isRichTextElement = (reference: unknown): reference is RichTextElementResponseDto =>
reference instanceof RichTextElementResponseDto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
ComponentType,
} from '@shared/domain/entity/lesson.entity';

// eslint problem will be solved in EW-1090
class ComponentTextPropsImpl implements ComponentTextProperties {
@ApiProperty({ nullable: false })
text!: string;
Expand Down

0 comments on commit 7ae761d

Please sign in to comment.