Skip to content

Commit a3d88c7

Browse files
authored
Standardize on .dto.ts suffix (#3421)
1 parent c5463a1 commit a3d88c7

File tree

14 files changed

+16
-11
lines changed

14 files changed

+16
-11
lines changed

src/components/authentication/extra-info.resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ResolveField, Resolver } from '@nestjs/graphql';
22
import { mapValues } from '@seedcompany/common';
33
import { type AbstractClassType, AnonSession, type Session } from '~/common';
44
import { Privileges } from '../authorization';
5-
import { BetaFeatures } from '../authorization/dto/beta-features';
5+
import { BetaFeatures } from '../authorization/dto/beta-features.dto';
66
import { LoginOutput, RegisterOutput, SessionOutput } from './dto';
77

88
function AuthExtraInfoResolver(concreteClass: AbstractClassType<any>) {

src/components/authorization/authorization.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Global, Module } from '@nestjs/common';
22
import { AssignableRolesGranter } from './assignable-roles.granter';
33
import { AuthorizationResolver } from './authorization.resolver';
4-
import { BetaFeaturesGranter } from './dto/beta-features';
4+
import { BetaFeaturesGranter } from './dto/beta-features.dto';
55
import * as Policies from './policies';
66
import { PolicyModule } from './policy/policy.module';
77

File renamed without changes.
File renamed without changes.

src/components/file/dto/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export * from './upload.dto';
22
export * from './update.dto';
33
export * from './delete.dto';
44
export * from './file-node-type.enum';
5-
export * from './node';
5+
export * from './file.dto';
66
export * from './list';

src/components/file/dto/list.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ import {
66
SortablePaginationInput,
77
} from '~/common';
88
import { FileNodeType } from './file-node-type.enum';
9-
import { type Directory, type File, type FileNode, IFileNode } from './node';
9+
import {
10+
type Directory,
11+
type File,
12+
type FileNode,
13+
IFileNode,
14+
} from './file.dto';
1015

1116
@InputType()
1217
export abstract class FileFilters {

src/components/product-progress/dto/variant-progress.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class ProgressReportVariantProgress {
2323
static readonly SecuredProps =
2424
keysOf<SecuredProps<ProgressReportVariantProgress>>();
2525
static readonly Parent = () =>
26-
import('../../progress-report/dto/progress-report.entity').then(
26+
import('../../progress-report/dto/progress-report.dto').then(
2727
(m) => m.ProgressReport,
2828
);
2929

src/components/progress-report/dto/community-stories.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class ProgressReportCommunityStory extends PromptVariantResponse<Communit
1010
static Props = keysOf<ProgressReportCommunityStory>();
1111
static SecuredProps = keysOf<SecuredProps<ProgressReportCommunityStory>>();
1212
static readonly Parent = () =>
13-
import('./progress-report.entity').then((m) => m.ProgressReport);
13+
import('./progress-report.dto').then((m) => m.ProgressReport);
1414
static Variants = ProgressReportHighlight.Variants;
1515
static readonly ConfirmThisClassPassesSensitivityToPolicies = true;
1616
}

src/components/progress-report/dto/highlights.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ProgressReportHighlight extends PromptVariantResponse<HighlightVari
2828
static Props = keysOf<ProgressReportHighlight>();
2929
static SecuredProps = keysOf<SecuredProps<ProgressReportHighlight>>();
3030
static readonly Parent = () =>
31-
import('./progress-report.entity').then((m) => m.ProgressReport);
31+
import('./progress-report.dto').then((m) => m.ProgressReport);
3232
static Variants = variants;
3333
static readonly ConfirmThisClassPassesSensitivityToPolicies = true;
3434
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from './progress-report.entity';
1+
export * from './progress-report.dto';
22
export * from './progress-report-list.dto';
33
export * from './progress-report-status.enum';

0 commit comments

Comments
 (0)