mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* feat: added default audit logs for logout, archive, unarchive, profile_update * feat: added resource data in audit table * feat: added archive workspace, invite redeem * feat: updated profile update audit * feat: updated user invite audit * feat: completed user actions audit * feat: added default audit logs for logout, archive, unarchive, profile_update * feat: added resource data in audit table * feat: added archive workspace, invite redeem * feat: updated profile update audit * feat: updated user invite audit * feat: completed user actions audit * fix: merge conflict * fix: ee commit * fix: removed logs * feat: added migration for resource_data * fix: updated action names * frontend ee commit * feat: added /user/instance route * fix: user instance update * fix: updated feature name * user ee commit * feat: added instance level archive * fix: user details update instance * feat: added self signup audit * ee audit commit * ee commit * metadata workspace field * fix: instace user unarchive data * feat: added grou permission default properties * fix: review fixes * feat: granular app * fix: moved user name logic to service * remove log * ee commit * feat: separate routes for app, data-source * feat: added some actions * ee commit * ee commit * feat: added audits * ee commit * fix pasword * Update the new granular permission api end points in cypress test cases * feat: batch-3 actions * removed log * remove import * feat: added app audit logs * feat: public app update route * feat: added resource route * fix: json clone * feat: added feature audit * revert INSTANCE_UPDATE * feature key update * fix: filter resource guard * ee commit * fe ee commit * script for resolving submodule conflicts * changing docs url to .ai --------- Co-authored-by: ajith-k-v <ajith.jaban@gmail.com> Co-authored-by: Midhun G S <gsmithun4@gmail.com> Co-authored-by: Rudra deep Biswas <rudra21ultra@gmail.com>
42 lines
1.5 KiB
TypeScript
42 lines
1.5 KiB
TypeScript
import { Controller, Get, Post, UseGuards, Body, Delete, Param, Patch, NotFoundException } from '@nestjs/common';
|
|
import { CreateInstanceSettingsDto, UpdateUserSettingsDto } from './dto';
|
|
import { IInstanceSettingsController } from './Interfaces/IController';
|
|
import { JwtAuthGuard } from '@modules/session/guards/jwt-auth.guard';
|
|
import { InitModule } from '@modules/app/decorators/init-module';
|
|
import { MODULES } from '@modules/app/constants/modules';
|
|
import { InitFeature } from '@modules/app/decorators/init-feature.decorator';
|
|
import { FEATURE_KEY } from './constants';
|
|
import { FeatureAbilityGuard } from './ability/guard';
|
|
import { User as UserEntity } from '@entities/user.entity';
|
|
import { User } from '@modules/app/decorators/user.decorator';
|
|
|
|
@InitModule(MODULES.INSTANCE_SETTINGS)
|
|
@Controller('instance-settings')
|
|
@UseGuards(JwtAuthGuard, FeatureAbilityGuard)
|
|
export class InstanceSettingsController implements IInstanceSettingsController {
|
|
constructor() {}
|
|
|
|
@InitFeature(FEATURE_KEY.GET)
|
|
@Get()
|
|
async get(): Promise<any> {
|
|
throw new NotFoundException();
|
|
}
|
|
|
|
@InitFeature(FEATURE_KEY.CREATE)
|
|
@Post()
|
|
async create(@Body() body: CreateInstanceSettingsDto) {
|
|
throw new NotFoundException();
|
|
}
|
|
|
|
@InitFeature(FEATURE_KEY.UPDATE)
|
|
@Patch()
|
|
async update(@Body() body: UpdateUserSettingsDto, @User() user: UserEntity) {
|
|
throw new NotFoundException();
|
|
}
|
|
|
|
@InitFeature(FEATURE_KEY.DELETE)
|
|
@Delete(':id')
|
|
async delete(@Param('id') id: string) {
|
|
throw new NotFoundException();
|
|
}
|
|
}
|