-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PT-8151: Add About field for Contact (#17)
- Loading branch information
1 parent
4cca81b
commit 3b128e3
Showing
11 changed files
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas/InputContactBaseType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using GraphQL.Types; | ||
using VirtoCommerce.CustomerModule.Core.Model; | ||
|
||
namespace VirtoCommerce.ProfileExperienceApiModule.Data.Schemas | ||
{ | ||
public abstract class InputContactBaseType : InputMemberBaseType | ||
{ | ||
protected InputContactBaseType() | ||
{ | ||
Field<StringGraphType>(nameof(Contact.FullName)); | ||
Field<NonNullGraphType<StringGraphType>>(nameof(Contact.FirstName)); | ||
Field<NonNullGraphType<StringGraphType>>(nameof(Contact.LastName)); | ||
Field<StringGraphType>(nameof(Contact.MiddleName)); | ||
Field<StringGraphType>(nameof(Contact.Salutation)); | ||
Field<StringGraphType>(nameof(Contact.PhotoUrl)); | ||
Field<StringGraphType>(nameof(Contact.TimeZone)); | ||
Field<StringGraphType>(nameof(Contact.DefaultLanguage)); | ||
Field<StringGraphType>(nameof(Contact.About)); | ||
Field<ListGraphType<StringGraphType>>(nameof(Contact.Organizations)); | ||
} | ||
} | ||
} |
17 changes: 1 addition & 16 deletions
17
src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas/InputCreateContactType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,6 @@ | ||
using GraphQL.Types; | ||
using VirtoCommerce.CustomerModule.Core.Model; | ||
|
||
namespace VirtoCommerce.ProfileExperienceApiModule.Data.Schemas | ||
{ | ||
public class InputCreateContactType : InputMemberBaseType | ||
public class InputCreateContactType : InputContactBaseType | ||
{ | ||
public InputCreateContactType() | ||
{ | ||
Field<StringGraphType>(nameof(Contact.FullName)); | ||
Field<NonNullGraphType<StringGraphType>>(nameof(Contact.FirstName)); | ||
Field<NonNullGraphType<StringGraphType>>(nameof(Contact.LastName)); | ||
Field<StringGraphType>(nameof(Contact.MiddleName)); | ||
Field<StringGraphType>(nameof(Contact.Salutation)); | ||
Field<StringGraphType>(nameof(Contact.PhotoUrl)); | ||
Field<StringGraphType>(nameof(Contact.TimeZone)); | ||
Field<StringGraphType>(nameof(Contact.DefaultLanguage)); | ||
Field<ListGraphType<StringGraphType>>(nameof(Contact.Organizations)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters