@tndhuy/create-app 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tndhuy/create-app",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "create-app": "dist/cli.js"
@@ -1,6 +1,7 @@
1
1
  import { Body, Controller, Delete, Get, Param, Post, Query } from '@nestjs/common';
2
2
  import { ApiTags, ApiOperation, ApiResponse, ApiParam } from '@nestjs/swagger';
3
3
  import { CommandBus, QueryBus } from '@nestjs/cqrs';
4
+ import { PublicApi } from '../../../common/decorators/public-api.decorator';
4
5
  import { CreateItemDto } from '../application/dtos/create-item.dto';
5
6
  import { ItemResponseDto } from '../application/dtos/item.response.dto';
6
7
  import { CreateItemCommand } from '../application/commands/create-item.command';
@@ -34,6 +35,7 @@ export class ItemController {
34
35
  return this.commandBus.execute(new DeleteItemCommand(id));
35
36
  }
36
37
 
38
+ @PublicApi()
37
39
  @Get(':id')
38
40
  @ApiOperation({ summary: 'Get an item by ID' })
39
41
  @ApiParam({ name: 'id', description: 'Item UUID' })
@@ -43,6 +45,7 @@ export class ItemController {
43
45
  return this.queryBus.execute(new GetItemQuery(id));
44
46
  }
45
47
 
48
+ @PublicApi()
46
49
  @Get()
47
50
  @ApiOperation({ summary: 'List all items with pagination' })
48
51
  @ApiResponse({ status: 200, description: 'List of items', type: [ItemResponseDto] })
@@ -1,6 +1,7 @@
1
1
  import { Body, Controller, Delete, Get, Param, Post, Query } from '@nestjs/common';
2
2
  import { ApiTags, ApiOperation, ApiResponse, ApiParam } from '@nestjs/swagger';
3
3
  import { CommandBus, QueryBus } from '@nestjs/cqrs';
4
+ import { PublicApi } from '../../../common/decorators/public-api.decorator';
4
5
  import { CreateItemDto } from '../application/dtos/create-item.dto';
5
6
  import { ItemResponseDto } from '../application/dtos/item.response.dto';
6
7
  import { CreateItemCommand } from '../application/commands/create-item.command';
@@ -34,6 +35,7 @@ export class ItemController {
34
35
  return this.commandBus.execute(new DeleteItemCommand(id));
35
36
  }
36
37
 
38
+ @PublicApi()
37
39
  @Get(':id')
38
40
  @ApiOperation({ summary: 'Get an item by ID' })
39
41
  @ApiParam({ name: 'id', description: 'Item UUID' })
@@ -43,6 +45,7 @@ export class ItemController {
43
45
  return this.queryBus.execute(new GetItemQuery(id));
44
46
  }
45
47
 
48
+ @PublicApi()
46
49
  @Get()
47
50
  @ApiOperation({ summary: 'List all items with pagination' })
48
51
  @ApiResponse({ status: 200, description: 'List of items', type: [ItemResponseDto] })