-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Applying Unique ieds in all models * Added ThumbnailName field to image input and tied image to phones associated with the tenant selected * Fixed many-to-many paging/projection clashing that broke Tenant and Phone edges * Implemented GlobalIDsm update packages, fixed verify address, removed commented and serializations
- Loading branch information
Showing
28 changed files
with
349 additions
and
129 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
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
25 changes: 25 additions & 0 deletions
25
TenantFile/Api/Models/GraphQL/Addresses/AddressMutations.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,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using HotChocolate; | ||
using HotChocolate.Subscriptions; | ||
using HotChocolate.Types; | ||
using TenantFile.Api.Models.Tenants; | ||
using TenantFile.Api.Extensions; | ||
using TenantFile.Api.Models.Entities; | ||
using TenantFile.Api.Services; | ||
using TenantFile.Api.Models.Addresses; | ||
|
||
namespace TenantFile.Api.Models.Properties | ||
{ | ||
[ExtendObjectType(Name = "Mutation")] | ||
public class AddressMutations | ||
{ | ||
public async Task<VerifyAddressPayload> VerifyAddress([Service] IAddressVerificationService service, VerifyAddressInput address) | ||
{ | ||
return new VerifyAddressPayload(await service.VerifyAddressAsync(address)); | ||
} | ||
} | ||
} |
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
19 changes: 19 additions & 0 deletions
19
TenantFile/Api/Models/GraphQL/Addresses/VerifyAddressInput.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,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace TenantFile.Api.Models.Addresses | ||
{ | ||
public record VerifyAddressInput | ||
( | ||
string? Line1, | ||
string? Line2, | ||
string? Line3, | ||
string? Line4, | ||
string? City, | ||
string? State, | ||
string? PostalCode | ||
); | ||
} |
25 changes: 25 additions & 0 deletions
25
TenantFile/Api/Models/GraphQL/Addresses/VerifyAddressPayload.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,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Xml.Serialization; | ||
using TenantFile.Api.Common; | ||
using TenantFile.Api.Models.Entities; | ||
using TenantFile.Api.Services; | ||
|
||
namespace TenantFile.Api.Models.Addresses | ||
{ | ||
public class VerifyAddressPayload : TPayload<USPSVerifyPayload> | ||
{ | ||
|
||
public VerifyAddressPayload(USPSVerifyPayload address) : base(address) | ||
{ | ||
|
||
} | ||
public VerifyAddressPayload(UserError error) | ||
: base(new[] { error }) | ||
{ | ||
} | ||
} | ||
} |
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,13 +1,17 @@ | ||
using TenantFile.Api.Models.Entities; | ||
using HotChocolate.Types.Relay; | ||
using TenantFile.Api.Models.Entities; | ||
|
||
namespace TenantFile.Api.Models.Images | ||
{ | ||
public record AddImageInput( | ||
string FileName, | ||
Tenant Tenant, | ||
Residence Residence, | ||
string ThumbnailName, | ||
[ID(nameof(Tenant))] | ||
int Tenant, | ||
[ID(nameof(Residence))] | ||
int Residence, | ||
ImageLabel[] Labels | ||
|
||
); | ||
|
||
} |
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
Oops, something went wrong.