generator-codedesignplus 0.6.2 → 0.6.4

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.
@@ -1,17 +1,11 @@
1
- using CodeDesignPlus.Net.Microservice.Application.Order.Commands.AddProductToOrder;
2
- using CodeDesignPlus.Net.Microservice.Application.Order.Commands.CancelOrder;
3
- using CodeDesignPlus.Net.Microservice.Application.Order.Commands.CreateOrder;
4
- using CodeDesignPlus.Net.Microservice.Application.Order.Commands.UpdateQuantityProduct;
5
- using CodeDesignPlus.Net.Microservice.Domain.ValueObjects;
6
-
7
- namespace CodeDesignPlus.Net.Microservice.Application.Setup;
1
+ namespace CodeDesignPlus.Net.Microservice.Application.Setup;
8
2
 
9
3
  public static class MapsterConfigOrder
10
4
  {
11
5
  public static void Configure()
12
6
  {
13
- TypeAdapterConfig<ClientDto, ClientValueObject>.NewConfig().TwoWays();
14
- TypeAdapterConfig<AddressDto, AddressValueObject>.NewConfig().TwoWays();
7
+ TypeAdapterConfig<ClientDto, Domain.ValueObjects.ClientValueObject>.NewConfig().TwoWays();
8
+ TypeAdapterConfig<AddressDto, Domain.ValueObjects.AddressValueObject>.NewConfig().TwoWays();
15
9
  TypeAdapterConfig<ProductDto, ProductDto>.NewConfig().TwoWays();
16
10
 
17
11
  TypeAdapterConfig<OrderAggregate, OrderDto>.NewConfig()
@@ -27,9 +21,9 @@ public static class MapsterConfigOrder
27
21
  .Map(dest => dest.UpdatedBy, src => src.UpdatedBy)
28
22
  .Map(dest => dest.ReasonForCancellation, src => src.ReasonForCancellation);
29
23
 
30
- TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.AddProductToOrderDto, AddProductToOrderCommand>.NewConfig().TwoWays();
31
- TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.CancelOrderDto, CancelOrderCommand>.NewConfig().TwoWays();
32
- TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.CreateOrderDto, CreateOrderCommand>.NewConfig().TwoWays();
33
- TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.UpdateQuantityProductDto, UpdateQuantityProductCommand>.NewConfig().TwoWays();
24
+ TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.AddProductToOrderDto, Order.Commands.AddProductToOrder.AddProductToOrderCommand>.NewConfig().TwoWays();
25
+ TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.CancelOrderDto, Order.Commands.CancelOrder.CancelOrderCommand>.NewConfig().TwoWays();
26
+ TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.CreateOrderDto, Order.Commands.CreateOrder.CreateOrderCommand>.NewConfig().TwoWays();
27
+ TypeAdapterConfig<CodeDesignPlus.Microservice.Api.Dtos.UpdateQuantityProductDto, Order.Commands.UpdateQuantityProduct.UpdateQuantityProductCommand>.NewConfig().TwoWays();
34
28
  }
35
29
  }
@@ -11,7 +11,7 @@ export class ConsumerModel extends BaseModel {
11
11
  this.file = `${this.fullname}.cs`;
12
12
 
13
13
  this.aggregate = `${this._validate(toPascalCase(data.aggregate), 'Aggregate')}`;
14
- this.action = data.action.toLowerCase();
14
+ this.action = `${data.action}${this.sufix}`;
15
15
  this.domainEvent = `${this._validate(toPascalCase(this.name), 'DomainEvent')}`;
16
16
  this.command = toPascalCase(data.action);
17
17
  this.microservice = data.microservice.toLowerCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-codedesignplus",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "Yeoman generator for creating microservices based on the CodeDesignPlus.Net.Microservice archetype.",
5
5
  "private": false,
6
6
  "main": "generators/index.mjs",