model

package
v0.0.0-...-d7ee072 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BillingProfile

type BillingProfile struct {
	Id             string        `json:"id"`
	LegalName      string        `json:"legalName"`
	TaxId          string        `json:"taxId"`
	CreatedAt      time.Time     `json:"createdAt"`
	UpdatedAt      time.Time     `json:"updatedAt"`
	SourceFields   common.Source `json:"sourceFields"`
	PrimaryEmailId string        `json:"primaryEmailId"`
	EmailIds       []string      `json:"emailIds"`
	LocationIds    []string      `json:"locationIds"`
}

type CustomField

type CustomField struct {
	Id                  string                      `json:"id"`
	Name                string                      `json:"name"`
	TemplateId          *string                     `json:"templateId,omitempty"`
	CustomFieldValue    neo4jmodel.CustomFieldValue `json:"customFieldValue"`
	CustomFieldDataType CustomFieldDataType         `json:"customFieldDataType"`
	Source              common.Source               `json:"source"`
	CreatedAt           time.Time                   `json:"createdAt,omitempty"`
	UpdatedAt           time.Time                   `json:"updatedAt,omitempty"`
}

type CustomFieldDataType

type CustomFieldDataType string
const (
	CustomFieldDataTypeText     CustomFieldDataType = "TEXT"
	CustomFieldDataTypeBool     CustomFieldDataType = "BOOL"
	CustomFieldDataTypeDatetime CustomFieldDataType = "DATETIME"
	CustomFieldDataTypeInteger  CustomFieldDataType = "INTEGER"
	CustomFieldDataTypeDecimal  CustomFieldDataType = "DECIMAL"
)

type OnboardingDetails

type OnboardingDetails struct {
	Status    string    `json:"status"`
	UpdatedAt time.Time `json:"updatedAt"`
	Comments  string    `json:"comments"`
}

type OnboardingStatus

type OnboardingStatus int32
const (
	NotApplicable OnboardingStatus = iota
	NotStarted
	OnTrack
	Late
	Stuck
	Done
	Successful
)

func (OnboardingStatus) String

func (os OnboardingStatus) String() string

type OnboardingStatusString

type OnboardingStatusString string
const (
	OnboardingStatusNotApplicable OnboardingStatusString = "NOT_APPLICABLE"
	OnboardingStatusNotStarted    OnboardingStatusString = "NOT_STARTED"
	OnboardingStatusOnTrack       OnboardingStatusString = "ON_TRACK"
	OnboardingStatusLate          OnboardingStatusString = "LATE"
	OnboardingStatusStuck         OnboardingStatusString = "STUCK"
	OnboardingStatusDone          OnboardingStatusString = "DONE"
	OnboardingStatusSuccessful    OnboardingStatusString = "SUCCESSFUL"
)

type Organization

type Organization struct {
	ID                string                             `json:"id"`
	Name              string                             `json:"name"`
	Hide              bool                               `json:"hide"`
	Description       string                             `json:"description"`
	Website           string                             `json:"website"`
	Industry          string                             `json:"industry"`
	SubIndustry       string                             `json:"subIndustry"`
	IndustryGroup     string                             `json:"industryGroup"`
	TargetAudience    string                             `json:"targetAudience"`
	ValueProposition  string                             `json:"valueProposition"`
	IsPublic          bool                               `json:"isPublic"`
	Employees         int64                              `json:"employees"`
	Market            string                             `json:"market"`
	LastFundingRound  string                             `json:"lastFundingRound"`
	LastFundingAmount string                             `json:"lastFundingAmount"`
	ReferenceId       string                             `json:"referenceId"`
	Note              string                             `json:"note"`
	Source            common.Source                      `json:"source"`
	CreatedAt         time.Time                          `json:"createdAt,omitempty"`
	UpdatedAt         time.Time                          `json:"updatedAt,omitempty"`
	PhoneNumbers      map[string]OrganizationPhoneNumber `json:"phoneNumbers"`
	// Deprecated
	LocationIds         []string                      `json:"locationIds,omitempty"`
	CustomFields        map[string]CustomField        `json:"customFields,omitempty"`
	ExternalSystems     []common.ExternalSystem       `json:"externalSystems"`
	ParentOrganizations map[string]ParentOrganization `json:"parentOrganizations,omitempty"`
	LogoUrl             string                        `json:"logoUrl,omitempty"`
	IconUrl             string                        `json:"iconUrl,omitempty"`
	YearFounded         *int64                        `json:"yearFounded,omitempty"`
	Headquarters        string                        `json:"headquarters,omitempty"`
	EmployeeGrowthRate  string                        `json:"employeeGrowthRate,omitempty"`
	SlackChannelId      string                        `json:"slackChannelId,omitempty"`
	OnboardingDetails   OnboardingDetails             `json:"onboardingDetails,omitempty"`
	BillingProfiles     map[string]BillingProfile     `json:"billingProfiles,omitempty"`
	Relationship        string                        `json:"relationship,omitempty"`
	Stage               string                        `json:"stage,omitempty"`
	LeadSource          string                        `json:"leadSource,omitempty"`
	TagIds              []string                      `json:"tagIds,omitempty"`
	Locations           map[string]common.Location    `json:"locations,omitempty"`
	IcpFit              bool                          `json:"icpFit"`
}

func (*Organization) ContainsExternalSystem

func (o *Organization) ContainsExternalSystem(externalSystem string) bool

func (*Organization) GetLocationIdForDetails

func (o *Organization) GetLocationIdForDetails(location common.Location) string

func (*Organization) SkipUpdate

func (o *Organization) SkipUpdate(fields *OrganizationFields) bool

func (*Organization) String

func (o *Organization) String() string

type OrganizationDataFields

type OrganizationDataFields struct {
	Name               string
	Hide               bool
	Description        string
	Website            string
	Industry           string
	SubIndustry        string
	IndustryGroup      string
	TargetAudience     string
	ValueProposition   string
	IsPublic           bool
	Employees          int64
	Market             string
	LastFundingRound   string
	LastFundingAmount  string
	ReferenceId        string
	Note               string
	YearFounded        *int64
	Headquarters       string
	EmployeeGrowthRate string
	LogoUrl            string
	IconUrl            string
	SlackChannelId     string
	Relationship       string
	Stage              string
	LeadSource         string
	IcpFit             bool
}

type OrganizationFields

type OrganizationFields struct {
	ID                     string
	Tenant                 string
	OrganizationDataFields OrganizationDataFields
	CreatedAt              *time.Time
	UpdatedAt              *time.Time
	Source                 cmnmod.Source
	ExternalSystem         cmnmod.ExternalSystem
}

type OrganizationPhoneNumber

type OrganizationPhoneNumber struct {
	Primary bool   `json:"primary"`
	Label   string `json:"label"`
}

type ParentOrganization

type ParentOrganization struct {
	OrganizationId string `json:"organizationId"`
	Type           string `json:"type"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL