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 716c572
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 1,418 deletions.
12 changes: 0 additions & 12 deletions pkg/onboarding/application/dto/input.go
Expand Up @@ -168,18 +168,6 @@ type RolePayload struct {
Role *profileutils.RoleType `json:"role"`
}

// RegisterAdminInput provides the data payload required to create an Admin
type RegisterAdminInput struct {
FirstName string `json:"lastName"`
LastName string `json:"firstName"`
Gender enumutils.Gender `json:"gender"`
PhoneNumber string `json:"phoneNumber"`
Email string `json:"email"`
DateOfBirth scalarutils.Date `json:"dateOfBirth"`
// ID of the Role being assigned to the new employee
RoleIDs []string `json:"roleIDs"`
}

//CustomerPubSubMessagePayload is an `onboarding` PubSub message struct for commontools
type CustomerPubSubMessagePayload struct {
CustomerPayload dm.CustomerPayload `json:"customerPayload"`
Expand Down
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 716c572

Please sign in to comment.