1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 05:38:55 +09:00
This commit is contained in:
NoriDev 2023-08-18 17:21:21 +09:00
parent a3b628f197
commit da9df033c5
25 changed files with 26 additions and 50 deletions

View File

@ -53,9 +53,8 @@ export const paramDef = {
// TODO: ロジックをサービスに切り出す // TODO: ロジックをサービスに切り出す
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.driveFilesRepository) @Inject(DI.driveFilesRepository)
private driveFilesRepository: DriveFilesRepository, private driveFilesRepository: DriveFilesRepository,

View File

@ -42,8 +42,8 @@ export const paramDef = {
required: ['permissions'], required: ['permissions'],
} as const; } as const;
@Injectable() // eslint-disable-next-line import/no-default-export @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor ( constructor (
private cacheService: CacheService, private cacheService: CacheService,
) { ) {

View File

@ -23,9 +23,8 @@ export const paramDef = {
required: [], required: [],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.messagingMessagesRepository) @Inject(DI.messagingMessagesRepository)
private messagingMessagesRepository: MessagingMessagesRepository, private messagingMessagesRepository: MessagingMessagesRepository,

View File

@ -49,9 +49,8 @@ export const paramDef = {
required: [], required: [],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupInvitationsRepository) @Inject(DI.userGroupInvitationsRepository)
private userGroupInvitationsRepository: UserGroupInvitationsRepository, private userGroupInvitationsRepository: UserGroupInvitationsRepository,

View File

@ -38,9 +38,8 @@ export const paramDef = {
required: [], required: [],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.messagingMessagesRepository) @Inject(DI.messagingMessagesRepository)
private messagingMessagesRepository: MessagingMessagesRepository, private messagingMessagesRepository: MessagingMessagesRepository,

View File

@ -69,9 +69,8 @@ export const paramDef = {
], ],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.messagingMessagesRepository) @Inject(DI.messagingMessagesRepository)
private messagingMessagesRepository: MessagingMessagesRepository, private messagingMessagesRepository: MessagingMessagesRepository,

View File

@ -91,9 +91,8 @@ export const paramDef = {
], ],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupsRepository) @Inject(DI.userGroupsRepository)
private userGroupsRepository: UserGroupsRepository, private userGroupsRepository: UserGroupsRepository,

View File

@ -41,9 +41,8 @@ export const paramDef = {
required: ['messageId'], required: ['messageId'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.messagingMessagesRepository) @Inject(DI.messagingMessagesRepository)
private messagingMessagesRepository: MessagingMessagesRepository, private messagingMessagesRepository: MessagingMessagesRepository,

View File

@ -34,9 +34,8 @@ export const paramDef = {
required: ['messageId'], required: ['messageId'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.messagingMessagesRepository) @Inject(DI.messagingMessagesRepository)
private messagingMessagesRepository: MessagingMessagesRepository, private messagingMessagesRepository: MessagingMessagesRepository,

View File

@ -56,9 +56,8 @@ export const paramDef = {
required: [], required: [],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.notesRepository) @Inject(DI.notesRepository)
private notesRepository: NotesRepository, private notesRepository: NotesRepository,

View File

@ -77,9 +77,8 @@ function notAlphaNumeric(s: string): boolean {
return null !== s.match(/[^\w]/); return null !== s.match(/[^\w]/);
} }
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.config) @Inject(DI.config)
private config: Config, private config: Config,

View File

@ -59,9 +59,8 @@ export const paramDef = {
required: [], required: [],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.notesRepository) @Inject(DI.notesRepository)
private notesRepository: NotesRepository, private notesRepository: NotesRepository,

View File

@ -42,9 +42,8 @@ export const paramDef = {
required: ['name'], required: ['name'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupsRepository) @Inject(DI.userGroupsRepository)
private userGroupsRepository: UserGroupsRepository, private userGroupsRepository: UserGroupsRepository,

View File

@ -35,9 +35,8 @@ export const paramDef = {
required: ['groupId'], required: ['groupId'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupsRepository) @Inject(DI.userGroupsRepository)
private userGroupsRepository: UserGroupsRepository, private userGroupsRepository: UserGroupsRepository,

View File

@ -35,9 +35,8 @@ export const paramDef = {
required: ['invitationId'], required: ['invitationId'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupInvitationsRepository) @Inject(DI.userGroupInvitationsRepository)
private userGroupInvitationsRepository: UserGroupInvitationsRepository, private userGroupInvitationsRepository: UserGroupInvitationsRepository,

View File

@ -33,9 +33,8 @@ export const paramDef = {
required: ['invitationId'], required: ['invitationId'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupInvitationsRepository) @Inject(DI.userGroupInvitationsRepository)
private userGroupInvitationsRepository: UserGroupInvitationsRepository, private userGroupInvitationsRepository: UserGroupInvitationsRepository,

View File

@ -58,9 +58,8 @@ export const paramDef = {
required: ['groupId', 'userId'], required: ['groupId', 'userId'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupsRepository) @Inject(DI.userGroupsRepository)
private userGroupsRepository: UserGroupsRepository, private userGroupsRepository: UserGroupsRepository,

View File

@ -36,9 +36,8 @@ export const paramDef = {
required: [], required: [],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupsRepository) @Inject(DI.userGroupsRepository)
private userGroupsRepository: UserGroupsRepository, private userGroupsRepository: UserGroupsRepository,

View File

@ -41,9 +41,8 @@ export const paramDef = {
required: ['groupId'], required: ['groupId'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupsRepository) @Inject(DI.userGroupsRepository)
private userGroupsRepository: UserGroupsRepository, private userGroupsRepository: UserGroupsRepository,

View File

@ -35,9 +35,8 @@ export const paramDef = {
required: [], required: [],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupsRepository) @Inject(DI.userGroupsRepository)
private userGroupsRepository: UserGroupsRepository, private userGroupsRepository: UserGroupsRepository,

View File

@ -49,9 +49,8 @@ export const paramDef = {
required: ['groupId', 'userId'], required: ['groupId', 'userId'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupsRepository) @Inject(DI.userGroupsRepository)
private userGroupsRepository: UserGroupsRepository, private userGroupsRepository: UserGroupsRepository,

View File

@ -42,9 +42,8 @@ export const paramDef = {
required: ['groupId'], required: ['groupId'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupsRepository) @Inject(DI.userGroupsRepository)
private userGroupsRepository: UserGroupsRepository, private userGroupsRepository: UserGroupsRepository,

View File

@ -56,9 +56,8 @@ export const paramDef = {
required: ['groupId', 'userId'], required: ['groupId', 'userId'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupsRepository) @Inject(DI.userGroupsRepository)
private userGroupsRepository: UserGroupsRepository, private userGroupsRepository: UserGroupsRepository,

View File

@ -43,9 +43,8 @@ export const paramDef = {
required: ['groupId', 'name'], required: ['groupId', 'name'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
@Inject(DI.userGroupsRepository) @Inject(DI.userGroupsRepository)
private userGroupsRepository: UserGroupsRepository, private userGroupsRepository: UserGroupsRepository,

View File

@ -48,9 +48,8 @@ export const paramDef = {
required: ['userId', 'targetLang'], required: ['userId', 'targetLang'],
} as const; } as const;
// eslint-disable-next-line import/no-default-export
@Injectable() @Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor( constructor(
private getterService: GetterService, private getterService: GetterService,
private metaService: MetaService, private metaService: MetaService,