Skip to content

Commit 30f5aec

Browse files
committed
feat: make input types generic
1 parent f7c3274 commit 30f5aec

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas/InputCreateApplicationUserType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace VirtoCommerce.ProfileExperienceApiModule.Data.Schemas
55
{
6-
public class InputCreateApplicationUserType : InputObjectGraphType
6+
public class InputCreateApplicationUserType : InputObjectGraphType<ApplicationUser>
77
{
88
public InputCreateApplicationUserType()
99
{

src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas/InputLockContactType.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
61
using GraphQL.Types;
72

83
namespace VirtoCommerce.ProfileExperienceApiModule.Data.Schemas

src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas/InputPersonalDataType.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using GraphQL.Types;
22
using VirtoCommerce.CustomerModule.Core.Model;
33
using VirtoCommerce.Platform.Core.Security;
4+
using VirtoCommerce.ProfileExperienceApiModule.Data.Aggregates.Contact;
45

56
namespace VirtoCommerce.ProfileExperienceApiModule.Data.Schemas
67
{
7-
public class InputPersonalDataType : InputObjectGraphType
8+
public class InputPersonalDataType : InputObjectGraphType<PersonalData>
89
{
910
public InputPersonalDataType()
1011
{

src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas/InputUpdateApplicationUserType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace VirtoCommerce.ProfileExperienceApiModule.Data.Schemas
55
{
6-
public class InputUpdateApplicationUserType : InputObjectGraphType
6+
public class InputUpdateApplicationUserType : InputObjectGraphType<ApplicationUser>
77
{
88
public InputUpdateApplicationUserType()
99
{

src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas/RegisterCompany/InputRegisterAccountType.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using GraphQL.Types;
2+
using VirtoCommerce.ProfileExperienceApiModule.Data.Models.RegisterOrganization;
23

34
namespace VirtoCommerce.ProfileExperienceApiModule.Data.Schemas.RegisterCompany
45
{
5-
public class InputRegisterAccountType : InputObjectGraphType
6+
public class InputRegisterAccountType : InputObjectGraphType<Account>
67
{
78
public InputRegisterAccountType()
89
{

src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas/RegisterCompany/InputRegisterContactType.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using GraphQL.Types;
22
using VirtoCommerce.CustomerModule.Core.Model;
3+
using VirtoCommerce.ProfileExperienceApiModule.Data.Models.RegisterOrganization;
34
using VirtoCommerce.Xapi.Core.Schemas;
45

56
namespace VirtoCommerce.ProfileExperienceApiModule.Data.Schemas.RegisterCompany
67
{
7-
public class InputRegisterContactType : InputObjectGraphType
8+
public class InputRegisterContactType : InputObjectGraphType<RegisteredContact>
89
{
910
public InputRegisterContactType()
1011
{

src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas/RegisterCompany/InputRegisterOrganizationType.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using GraphQL.Types;
22
using VirtoCommerce.CustomerModule.Core.Model;
3+
using VirtoCommerce.ProfileExperienceApiModule.Data.Models.RegisterOrganization;
34
using VirtoCommerce.Xapi.Core.Schemas;
45

56
namespace VirtoCommerce.ProfileExperienceApiModule.Data.Schemas.RegisterCompany
67
{
7-
public class InputRegisterOrganizationType : InputObjectGraphType
8+
public class InputRegisterOrganizationType : InputObjectGraphType<RegisteredOrganization>
89
{
910
public InputRegisterOrganizationType()
1011
{

src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFramework>net8.0</TargetFramework>
44
</PropertyGroup>
@@ -25,7 +25,7 @@
2525
<PackageReference Include="VirtoCommerce.Platform.Security" Version="3.889.0" />
2626
<PackageReference Include="VirtoCommerce.PricingModule.Core" Version="3.809.0" />
2727
<PackageReference Include="VirtoCommerce.TaxModule.Core" Version="3.802.0" />
28-
<PackageReference Include="VirtoCommerce.Xapi.Core" Version="3.918.0" />
28+
<PackageReference Include="VirtoCommerce.Xapi.Core" Version="3.919.0-alpha.106-vcst-3619" />
2929
<PackageReference Include="VirtoCommerce.XOrder.Core" Version="3.904.0" />
3030
</ItemGroup>
3131
</Project>

0 commit comments

Comments
 (0)