Skip to content

Commit

Permalink
feat: Add approval support (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Mar 9, 2024
1 parent cf387ea commit e09ae60
Show file tree
Hide file tree
Showing 50 changed files with 5,834 additions and 1,720 deletions.
11 changes: 6 additions & 5 deletions apps/api/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@ module.exports = {
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
sourceType: 'module'
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:prettier/recommended'
],
root: true,
env: {
node: true,
jest: true,
jest: true
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};
'@typescript-eslint/no-unused-vars': ['warn']
}
}
1 change: 1 addition & 0 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@nestjs/swagger": "^7.3.0",
"@prisma/client": "^5.10.1",
"@supabase/supabase-js": "^2.39.6",
"@types/uuid": "^9.0.8",
"chalk": "^4.1.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
Expand Down
1 change: 0 additions & 1 deletion apps/api/src/api-key/api-key.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ describe('Api Key Role Controller Tests', () => {
url: `/api-key/${apiKey.id}`,
payload: {
name: 'Updated Test Key',
expiresAfter: '24',
authorities: ['READ_API_KEY', 'CREATE_ENVIRONMENT']
},
headers: {
Expand Down
4 changes: 3 additions & 1 deletion apps/api/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { WorkspaceRoleModule } from '../workspace-role/workspace-role.module'
import { ApiKeyGuard } from '../auth/guard/api-key/api-key.guard'
import { EventModule } from '../event/event.module'
import { VariableModule } from '../variable/variable.module'
import { ApprovalModule } from '../approval/approval.module'

@Module({
controllers: [AppController],
Expand All @@ -36,7 +37,8 @@ import { VariableModule } from '../variable/variable.module'
WorkspaceModule,
WorkspaceRoleModule,
EventModule,
VariableModule
VariableModule,
ApprovalModule
],
providers: [
{
Expand Down
Loading

0 comments on commit e09ae60

Please sign in to comment.