Skip to content

Commit

Permalink
chore: remove agent usecases abd objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ochom committed Aug 29, 2021
1 parent 83e6160 commit 09b6f77
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 888 deletions.
27 changes: 0 additions & 27 deletions pkg/onboarding/application/dto/output.go
Expand Up @@ -5,33 +5,6 @@ import (
"github.com/savannahghi/profileutils"
)

// Admin represents agent with details inferred from their user profile
type Admin struct {
ID string `json:"id"`

PrimaryPhone string `json:"primaryPhone"`

PrimaryEmailAddress *string `json:"primaryEmailAddress"`

SecondaryPhoneNumbers []string `json:"secondaryPhoneNumbers"`

SecondaryEmailAddresses []string `json:"secondaryEmailAddresses"`

TermsAccepted bool `json:"termsAccepted,omitempty"`

Suspended bool `json:"suspended"`

PhotoUploadID string `json:"photoUploadID,omitempty"`

UserBioData profileutils.BioData `json:"userBioData,omitempty"`

// Resend PIN helps inform the whether a send new temporary PIN
// True when the user hasn't performed the initial sign up to change PIN
ResendPIN bool `json:"resendPIN"`

Roles []RoleOutput `json:"roles"`
}

// AccountRecoveryPhonesResponse payload sent back to the frontend when recovery an account
type AccountRecoveryPhonesResponse struct {
MaskedPhoneNumbers []string `json:"maskedPhoneNumbers"`
Expand Down

0 comments on commit 09b6f77

Please sign in to comment.