@punks/cli 0.1.10 → 0.1.12

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@punks/cli",
3
3
  "license": "MIT",
4
- "version": "0.1.10",
4
+ "version": "0.1.12",
5
5
  "bin": {
6
6
  "punks": "bin/run.js"
7
7
  },
@@ -18,7 +18,7 @@ namespace namespace.AppUsers.Configuration;
18
18
 
19
19
  public static class AppUserConfiguration
20
20
  {
21
- public static IServiceCollection AddAppUser(this IServiceCollection services)
21
+ public static IServiceCollection AddAppUsers(this IServiceCollection services)
22
22
  {
23
23
  services
24
24
  .AddEntityManager()
@@ -36,7 +36,7 @@ public static class AppUserConfiguration
36
36
  return services;
37
37
  }
38
38
 
39
- public static void UseAppUserApi(this IEndpointRouteBuilder app)
39
+ public static void UseAppUsersApi(this IEndpointRouteBuilder app)
40
40
  {
41
41
  app.UseEntityApi<AppUser, Guid, AppUserDto, AppUserListItemDto, AppUserCreateInput, AppUserUpdateInput,
42
42
  AppUserSearchParameters, AppUserSortBy, int, AppUserSearchResultFacets>(new EntityApiOptions
@@ -17,7 +17,7 @@ namespace {{ namespace }}.Configuration;
17
17
 
18
18
  public static class {{ entityName }}Configuration
19
19
  {
20
- public static IServiceCollection Add{{ entityName }}(this IServiceCollection services)
20
+ public static IServiceCollection Add{{ pluralizedEntityName }}(this IServiceCollection services)
21
21
  {
22
22
  services
23
23
  .AddEntityManager()
@@ -37,7 +37,7 @@ public static class {{ entityName }}Configuration
37
37
  return services;
38
38
  }
39
39
 
40
- public static void Use{{ entityName }}Api(this IEndpointRouteBuilder app)
40
+ public static void Use{{ pluralizedEntityName }}Api(this IEndpointRouteBuilder app)
41
41
  {
42
42
  app.UseEntityApi<{{ entityName }}, Guid, {{ entityName }}Dto, {{ entityName }}ListItemDto, {{ entityName }}CreateInput, {{ entityName }}UpdateInput,
43
43
  {{ entityName }}SearchParameters, {{ entityName }}SortBy, int, {{ entityName }}SearchResultFacets>(new EntityApiOptions