94 lines
2.2 KiB
Go
94 lines
2.2 KiB
Go
package app
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
// NewContactActivity is an activity identifier
|
|
const NewContactActivity = "NEW_CONTACT_ACTIVITY"
|
|
|
|
// ContactActivityWrapper wraps the object with workflow params
|
|
type ContactActivityWrapper struct {
|
|
APIKey string
|
|
SagaID string
|
|
SagaType string
|
|
//
|
|
AccountID string
|
|
AssistantName string
|
|
AssistantPhone string
|
|
BirthDate string
|
|
Department string
|
|
Description string
|
|
Email string
|
|
FirstName string
|
|
HomePhone string
|
|
LastName string
|
|
LeadSource string
|
|
Level string
|
|
LinkedIn string
|
|
MailingAddress Address
|
|
MobilePhone string
|
|
Name string
|
|
OtherAddress Address
|
|
OtherPhone string
|
|
OwnerID string
|
|
PersonalEmail string
|
|
Phone string
|
|
PhotoURL string
|
|
Ref string
|
|
ReportsToID string
|
|
Salutation string
|
|
Status string
|
|
Title string
|
|
Type string
|
|
}
|
|
|
|
// Contact is a first-class object
|
|
type Contact struct {
|
|
ID string
|
|
AccountID string
|
|
AssistantName string
|
|
AssistantPhone string
|
|
BirthDate sql.NullTime
|
|
CreatedByID string
|
|
CreatedDate sql.NullTime
|
|
Department string
|
|
Description string
|
|
DoNotCall bool
|
|
Email string
|
|
EmailBounceDate sql.NullTime
|
|
EmailBouncedReason string
|
|
EnrollmentStatus string
|
|
Fax string
|
|
FirstName string
|
|
HasOptedOutOfEmail bool
|
|
HasOptedOutOfFax bool
|
|
HomePhone string
|
|
IsEmailBounced bool
|
|
IsProvisioned bool
|
|
LastModifiedByID string
|
|
LastModifiedDate sql.NullTime
|
|
LastName string
|
|
LeadSource string
|
|
Level string
|
|
LinkedIn string
|
|
MailingAddress *Address
|
|
MailingLists string
|
|
MobilePhone string
|
|
Name string
|
|
OtherAddress *Address
|
|
OtherPhone string
|
|
OwnerID string
|
|
PersonalEmail string
|
|
Phone string
|
|
PhotoURL string
|
|
RecruitingStatus string
|
|
Ref string
|
|
ReportsToID string
|
|
Salutation string
|
|
Status string
|
|
TenantID string
|
|
Title string
|
|
Type string
|
|
}
|