0.0.28 • Published 3 years ago

elewis-nestjs-dto v0.0.28

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Common security modules

Overview

!!! This is an expermental module !!!

Provides a data transformation interceptor which adds workflow elements to all elements in an array of data.

Requires that method is decorated with the WorkflowConfig decorator

Install

npm install elewis-nestjs-workflow

Types

  • WorkflowTransoformationInterceptor

Usage

import { WorkflowTransformationInterceptor } from 'elewis-nestjs-workflow';
import { WorkflowTransformationInterceptor } from 'elewis-nestjs-workflow';
// etc.
@Get()
@Roles('admin')
@workflowConfig(workflow)         // Need this, it's injected into WorkflowInterceptor
@UseGuards(AuthGuard, RolesGuard)
@UseInterceptors(WorkflowTransormationInterceptor)
async findAll(
  @Headers('Authorization') authorzation: string,
): Promise<User[]> {
  return this.usersService.findAll();
}
0.0.28

3 years ago

0.0.27

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.26

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.20

3 years ago

0.0.21

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.16

3 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago