entity

package
v0.0.0-...-eaa1bfe Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 32

Documentation

Index

Constants

View Source
const PropertyExternalSystemStripePaymentMethodTypes = "stripePaymentMethodTypes"

Variables

Functions

func BuildEmailChannelData

func BuildEmailChannelData(messageId, threadId, subject, inReplyTo, references string) (*string, error)

func IsValidDataSource

func IsValidDataSource(s string) bool

func OrganizationStageAndRelationshipCompatible

func OrganizationStageAndRelationshipCompatible(stageStr, relationshipStr string) bool

Types

type ActionEntities

type ActionEntities []ActionEntity

type ActionEntity

type ActionEntity struct {
	DataLoaderKey
	Id            string
	CreatedAt     time.Time
	Content       string
	Metadata      string
	Type          neo4jenum.ActionType
	Source        DataSource
	SourceOfTruth DataSource
	AppSource     string
}

func (*ActionEntity) GetDataloaderKey

func (e *ActionEntity) GetDataloaderKey() string

func (ActionEntity) IsTimelineEvent

func (ActionEntity) IsTimelineEvent()

func (*ActionEntity) Labels

func (e *ActionEntity) Labels(tenant string) []string

func (*ActionEntity) SetDataloaderKey

func (e *ActionEntity) SetDataloaderKey(key string)

func (ActionEntity) TimelineEventLabel

func (ActionEntity) TimelineEventLabel() string

type AttachmentEntities

type AttachmentEntities []AttachmentEntity

type AttachmentEntity

type AttachmentEntity struct {
	DataLoaderKey

	Id        string
	CreatedAt *time.Time

	CdnUrl             string
	BasePath           string
	FileName           string
	MimeType           string
	Size               int64
	PublicUrl          string
	PublicUrlExpiresAt *time.Time

	Source        DataSource
	SourceOfTruth DataSource
	AppSource     string
}

type AttachmentProperty

type AttachmentProperty string
const (
	AttachmentPropertyPublicUrl          AttachmentProperty = "publicUrl"
	AttachmentPropertyPublicUrlExpiresAt AttachmentProperty = "publicUrlExpiresAt"
)

type BankAccountEntities

type BankAccountEntities []BankAccountEntity

type BankAccountEntity

type BankAccountEntity struct {
	Id                  string
	CreatedAt           time.Time
	UpdatedAt           time.Time
	Source              DataSource
	SourceOfTruth       DataSource
	AppSource           string
	BankName            string
	BankTransferEnabled bool
	AllowInternational  bool
	Currency            enum.Currency
	Iban                string
	Bic                 string
	SortCode            string
	AccountNumber       string
	RoutingNumber       string
	OtherDetails        string
}

type BillingProfileEntities

type BillingProfileEntities []BillingProfileEntity

type BillingProfileEntity

type BillingProfileEntity struct {
	Id            string
	CreatedAt     time.Time
	UpdatedAt     time.Time
	LegalName     string
	TaxId         string
	Source        DataSource
	SourceOfTruth DataSource
	AppSource     string
}

Deprecated - to be checked of not used and remove it

type CommentEntities

type CommentEntities []CommentEntity

type CommentEntity

type CommentEntity struct {
	DataloaderKey string
	Id            string
	Content       string
	ContentType   string
	CreatedAt     time.Time
	UpdatedAt     time.Time
	Source        DataSource
	SourceOfTruth DataSource
	AppSource     string
}

type ContactEnrichDetails

type ContactEnrichDetails struct {
	EnrichRequestedAt                           *time.Time
	EnrichedAt                                  *time.Time
	EnrichFailedAt                              *time.Time
	EnrichAttempts                              int64
	BettercontactFoundEmailAt                   *time.Time // TODO alexb check how it is used
	EnrichedScrapinRecordId                     string
	FindWorkEmailWithBetterContactRequestedId   *string
	FindWorkEmailWithBetterContactRequestedAt   *time.Time
	FindWorkEmailWithBetterContactCompletedAt   *time.Time
	FindWorkEmailWithBetterContactFound         *bool
	FindMobilePhoneWithBetterContactRequestedId *string
	FindMobilePhoneWithBetterContactRequestedAt *time.Time
	FindMobilePhoneWithBetterContactCompletedAt *time.Time
	FindMobilePhoneWithBetterContactFound       *bool
}

type ContactEntities

type ContactEntities []ContactEntity

type ContactEntity

type ContactEntity struct {
	DataLoaderKey
	EventStoreAggregate
	Id        string
	CreatedAt time.Time `neo4jDb:"property:createdAt;lookupName:CREATED_AT"`
	UpdatedAt time.Time `neo4jDb:"property:updatedAt;lookupName:UPDATED_AT"`
	Source    DataSource
	AppSource string

	Prefix          string `neo4jDb:"property:prefix;lookupName:PREFIX;supportCaseSensitive:true"`
	Name            string `neo4jDb:"property:name;lookupName:NAME;supportCaseSensitive:true"`
	FirstName       string `neo4jDb:"property:firstName;lookupName:FIRST_NAME;supportCaseSensitive:true"`
	LastName        string `neo4jDb:"property:lastName;lookupName:LAST_NAME;supportCaseSensitive:true"`
	Description     string `neo4jDb:"property:description;lookupName:DESCRIPTION;supportCaseSensitive:true"`
	Timezone        string `neo4jDb:"property:timezone;lookupName:TIMEZONE;supportCaseSensitive:true"`
	ProfilePhotoUrl string `neo4jDb:"property:profilePhotoUrl;lookupName:PROFILE_PHOTO_URL;supportCaseSensitive:true"`
	Hide            bool   `neo4jDb:"property:hide;lookupName:HIDE;supportCaseSensitive:false"`
	Username        string `neo4jDb:"property:username;lookupName:USERNAME;supportCaseSensitive:true"`
	HiddenAt        *time.Time

	InteractionEventParticipantDetails   InteractionEventParticipantDetails
	InteractionSessionParticipantDetails InteractionSessionParticipantDetails

	ContactInternalFields ContactInternalFields
	EnrichDetails         ContactEnrichDetails
}

func (ContactEntity) DeriveFirstAndLastNames

func (c ContactEntity) DeriveFirstAndLastNames() (string, string)

func (ContactEntity) EntityLabel

func (ContactEntity) EntityLabel() string

func (ContactEntity) GetDataloaderKey

func (c ContactEntity) GetDataloaderKey() string

func (ContactEntity) IsInteractionEventParticipant

func (ContactEntity) IsInteractionEventParticipant()

func (ContactEntity) IsInteractionSessionParticipant

func (ContactEntity) IsInteractionSessionParticipant()

func (ContactEntity) IsIssueParticipant

func (ContactEntity) IsIssueParticipant()

func (ContactEntity) IsMeetingParticipant

func (ContactEntity) IsMeetingParticipant()

func (ContactEntity) Labels

func (c ContactEntity) Labels(tenant string) []string

type ContactInternalFields

type ContactInternalFields struct {
	UpdateWithWorkEmailRequestedAt *time.Time
	HiddenAt                       *time.Time
	CheckedAt                      *time.Time
}

type ContactProperty

type ContactProperty string
const (
	ContactPropertyEnrichedAt                                  ContactProperty = "enrichedAt"
	ContactPropertyEnrichFailedAt                              ContactProperty = "enrichFailedAt"
	ContactPropertyEnrichRequestedAt                           ContactProperty = "techEnrichRequestedAt"
	ContactPropertyEnrichAttempts                              ContactProperty = "techEnrichAttempts"
	ContactPropertyEnrichedScrapinRecordId                     ContactProperty = "enrichedScrapinRecordId"
	ContactPropertyBettercontactFoundEmailAt                   ContactProperty = "bettercontactFoundEmailAt"
	ContactPropertyFindWorkEmailWithBetterContactRequestedId   ContactProperty = "techFindWorkEmailWithBetterContactRequestId"
	ContactPropertyFindWorkEmailWithBetterContactRequestedAt   ContactProperty = "techFindWorkEmailWithBetterContactRequestedAt"
	ContactPropertyFindWorkEmailWithBetterContactCompletedAt   ContactProperty = "techFindWorkEmailWithBetterContactCompletedAt"
	ContactPropertyFindWorkEmailWithBetterContactFound         ContactProperty = "techFindWorkEmailWithBetterContactFound"
	ContactPropertyFindMobilePhoneWithBetterContactRequestedId ContactProperty = "techFindMobilePhoneWithBetterContactRequestId"
	ContactPropertyFindMobilePhoneWithBetterContactRequestedAt ContactProperty = "techFindMobilePhoneWithBetterContactRequestedAt"
	ContactPropertyFindMobilePhoneWithBetterContactCompletedAt ContactProperty = "techFindMobilePhoneWithBetterContactCompletedAt"
	ContactPropertyFindMobilePhoneWithBetterContactFound       ContactProperty = "techFindMobilePhoneWithBetterContactFound"
	ContactPropertyUpdateWithWorkEmailRequestedAt              ContactProperty = "techUpdateWithWorkEmailRequestedAt"
	ContactPropertyCheckedAt                                   ContactProperty = "techCheckedAt"
	ContactPropertyPrefix                                      ContactProperty = "prefix"
	ContactPropertyName                                        ContactProperty = "name"
	ContactPropertyFirstName                                   ContactProperty = "firstName"
	ContactPropertyLastName                                    ContactProperty = "lastName"
	ContactPropertyDescription                                 ContactProperty = "description"
	ContactPropertyTimezone                                    ContactProperty = "timezone"
	ContactPropertyProfilePhotoUrl                             ContactProperty = "profilePhotoUrl"
	ContactPropertyHide                                        ContactProperty = "hide"
	ContactPropertyUsername                                    ContactProperty = "username"
	ContactPropertyHiddenAt                                    ContactProperty = "hiddenAt"
)

type ContractEntities

type ContractEntities []ContractEntity

type ContractEntity

type ContractEntity struct {
	DataLoaderKey
	EventStoreAggregate
	Id                              string
	Name                            string `neo4jDb:"property:name;lookupName:NAME;supportCaseSensitive:true"`
	CreatedAt                       time.Time
	UpdatedAt                       time.Time
	ServiceStartedAt                *time.Time // DateTime
	SignedAt                        *time.Time // DateTime
	EndedAt                         *time.Time `neo4jDb:"property:endedAt;lookupName:ENDED_AT;supportCaseSensitive:false"` // DateTime
	ContractStatus                  enum.ContractStatus
	Source                          DataSource
	SourceOfTruth                   DataSource
	AppSource                       string
	ContractUrl                     string
	InvoicingStartDate              *time.Time // Date only
	NextInvoiceDate                 *time.Time // Date only
	BillingCycleInMonths            int64
	Currency                        enum.Currency
	TriggeredOnboardingStatusChange bool
	AddressLine1                    string
	AddressLine2                    string
	Zip                             string
	Locality                        string
	Country                         string
	Region                          string
	OrganizationLegalName           string
	InvoiceEmail                    string
	InvoiceEmailCC                  []string
	InvoiceEmailBCC                 []string
	InvoiceNote                     string
	CanPayWithCard                  bool
	CanPayWithDirectDebit           bool
	CanPayWithBankTransfer          bool
	InvoicingEnabled                bool
	PayOnline                       bool
	PayAutomatically                bool
	AutoRenew                       bool
	Check                           bool
	DueDays                         int64
	ContractInternalFields          ContractInternalFields
	LengthInMonths                  int64
	Approved                        bool
	Ltv                             float64
}

func (ContractEntity) IsDraft

func (c ContractEntity) IsDraft() bool

func (ContractEntity) IsEligibleToStartOnboarding

func (c ContractEntity) IsEligibleToStartOnboarding() bool

func (ContractEntity) IsEnded

func (c ContractEntity) IsEnded() bool

func (ContractEntity) IsServiceStarted

func (c ContractEntity) IsServiceStarted() bool

func (ContractEntity) IsSigned

func (c ContractEntity) IsSigned() bool

type ContractInternalFields

type ContractInternalFields struct {
	StatusRenewalRequestedAt      *time.Time
	RolloutRenewalRequestedAt     *time.Time
	NextPreviewInvoiceRequestedAt *time.Time
}

type CountryEntities

type CountryEntities []CountryEntity

type CountryEntity

type CountryEntity struct {
	DataLoaderKey

	Id        string
	CreatedAt time.Time
	UpdatedAt time.Time
	Name      string
	CodeA2    string
	CodeA3    string
	PhoneCode string
}

type CustomFieldTemplateEntities

type CustomFieldTemplateEntities []CustomFieldTemplateEntity

type CustomFieldTemplateEntity

type CustomFieldTemplateEntity struct {
	DataLoaderKey
	Id          string
	Name        string
	EntityType  model.EntityType
	Type        string
	ValidValues []string
	Order       *int64
	Required    *bool
	Length      *int64
	Min         *int64
	Max         *int64
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

func (CustomFieldTemplateEntity) EntityLabel

func (cft CustomFieldTemplateEntity) EntityLabel() []string

type CustomFieldTemplateProperty

type CustomFieldTemplateProperty string
const (
	CustomFieldTemplatePropertyId          CustomFieldTemplateProperty = "id"
	CustomFieldTemplatePropertyName        CustomFieldTemplateProperty = "name"
	CustomFieldTemplatePropertyEntityType  CustomFieldTemplateProperty = "entityType"
	CustomFieldTemplatePropertyType        CustomFieldTemplateProperty = "type"
	CustomFieldTemplatePropertyValidValues CustomFieldTemplateProperty = "validValues"
	CustomFieldTemplatePropertyOrder       CustomFieldTemplateProperty = "order"
	CustomFieldTemplatePropertyRequired    CustomFieldTemplateProperty = "required"
	CustomFieldTemplatePropertyLength      CustomFieldTemplateProperty = "length"
	CustomFieldTemplatePropertyMin         CustomFieldTemplateProperty = "min"
	CustomFieldTemplatePropertyMax         CustomFieldTemplateProperty = "max"
	CustomFieldTemplatePropertyCreatedAt   CustomFieldTemplateProperty = "createdAt"
	CustomFieldTemplatePropertyUpdatedAt   CustomFieldTemplateProperty = "updatedAt"
)

type DataLoaderKey

type DataLoaderKey struct {
	DataloaderKey string
}

type DataSource

type DataSource string
const (
	DataSourceNA             DataSource = ""
	DataSourceAttio          DataSource = "attio"
	DataSourceClose          DataSource = "close"
	DataSourceFathom         DataSource = "fathom"
	DataSourceGmail          DataSource = "gmail"
	DataSourceGrain          DataSource = "grain"
	DataSourceHubspot        DataSource = "hubspot"
	DataSourceIntercom       DataSource = "intercom"
	DataSourceMailstack      DataSource = "mailstack"
	DataSourceMixpanel       DataSource = "mixpanel"
	DataSourceOpenline       DataSource = "openline"
	DataSourceOutlook        DataSource = "outlook"
	DataSourcePipedrive      DataSource = "pipedrive"
	DataSourceSalesforce     DataSource = "salesforce"
	DataSourceShopify        DataSource = "shopify"
	DataSourceSlack          DataSource = "slack"
	DataSourceStripe         DataSource = "stripe"
	DataSourceUnthread       DataSource = "unthread"
	DataSourceWebscrape      DataSource = "webscrape"
	DataSourceZendeskSell    DataSource = "zendesk-sell"
	DataSourceZendeskSupport DataSource = "zendesk_support"
)

func DecodeDataSource

func DecodeDataSource(s string) DataSource

func (DataSource) String

func (ds DataSource) String() string

type DerivedData

type DerivedData struct {
	ChurnedAt   *time.Time    `neo4jDb:"property:derivedNextRenewalAt;lookupName:CHURN_DATE;supportCaseSensitive:false"`
	Ltv         float64       `neo4jDb:"property:derivedLtv;lookupName:LTV;supportCaseSensitive:false"`
	LtvCurrency enum.Currency `neo4jDb:"property:derivedLtvCurrency;lookupName:LTV_CURRENCY;supportCaseSensitive:false"`
}

type DomainEntities

type DomainEntities []DomainEntity

type DomainEntity

type DomainEntity struct {
	DataLoaderKey
	CreatedAt      time.Time
	UpdatedAt      time.Time
	Domain         string
	Source         DataSource
	AppSource      string
	IsPrimary      *bool
	PrimaryDomain  string
	InternalFields DomainInternalFields
}

type DomainInternalFields

type DomainInternalFields struct {
	PrimaryDomainCheckRequestedAt *time.Time
}

type DomainProperty

type DomainProperty string
const (
	DomainPropertyCreatedAt                     DomainProperty = "createdAt"
	DomainPropertyUpdatedAt                     DomainProperty = "updatedAt"
	DomainPropertyDomain                        DomainProperty = "domain"
	DomainPropertySource                        DomainProperty = "source"
	DomainPropertyAppSource                     DomainProperty = "appSource"
	DomainPropertyIsPrimary                     DomainProperty = "primary"
	DomainPropertyPrimaryDomain                 DomainProperty = "primaryDomain"
	DomainPropertyPrimaryDomainCheckRequestedAt DomainProperty = "techPrimaryDomainCheckRequestedAt"
)

type EmailChannelData

type EmailChannelData struct {
	ProviderMessageId string `json:"providerMessageId"`
	ThreadId          string `json:"threadId"`
	Subject           string `json:"Subject"`
	InReplyTo         string `json:"InReplyTo"`
	Reference         string `json:"Reference"`
}

type EmailEntities

type EmailEntities []EmailEntity

type EmailEntity

type EmailEntity struct {
	DataLoaderKey
	Id        string
	Email     string `neo4jDb:"property:email;lookupName:EMAIL;supportCaseSensitive:true"`
	RawEmail  string `neo4jDb:"property:rawEmail;lookupName:RAW_EMAIL;supportCaseSensitive:true"`
	Work      *bool
	Primary   bool
	Source    DataSource
	CreatedAt time.Time
	UpdatedAt time.Time

	IsValidSyntax     *bool
	Username          *string
	IsRisky           *bool
	IsFirewalled      *bool
	Provider          *string
	Firewall          *string
	IsCatchAll        *bool
	Deliverable       *string
	IsMailboxFull     *bool
	IsRoleAccount     *bool
	IsSystemGenerated *bool
	IsFreeAccount     *bool
	SmtpSuccess       *bool
	ResponseCode      *string
	ErrorCode         *string
	Description       *string
	IsPrimaryDomain   *bool
	PrimaryDomain     *string
	AlternateEmail    *string
	RetryValidation   *bool

	EmailInternalFields EmailInternalFields

	InteractionEventParticipantDetails   InteractionEventParticipantDetails
	InteractionSessionParticipantDetails InteractionSessionParticipantDetails
}

func (EmailEntity) EntityLabel

func (EmailEntity) EntityLabel() string

func (EmailEntity) GetDataloaderKey

func (e EmailEntity) GetDataloaderKey() string

func (EmailEntity) IsInteractionEventParticipant

func (EmailEntity) IsInteractionEventParticipant()

func (EmailEntity) IsInteractionSessionParticipant

func (EmailEntity) IsInteractionSessionParticipant()

func (EmailEntity) IsMeetingParticipant

func (EmailEntity) IsMeetingParticipant()

func (EmailEntity) Labels

func (e EmailEntity) Labels(tenant string) []string

type EmailInternalFields

type EmailInternalFields struct {
	ValidatedAt           *time.Time
	ValidationRequestedAt *time.Time
}

type EmailProperty

type EmailProperty string
const (
	EmailPropertyEmail                 EmailProperty = "email"
	EmailPropertyRawEmail              EmailProperty = "rawEmail"
	EmailPropertyIsRoleAccount         EmailProperty = "isRoleAccount"
	EmailPropertyIsSystemGenerated     EmailProperty = "isSystemGenerated"
	EmailPropertyIsValidSyntax         EmailProperty = "isValidSyntax"
	EmailPropertyIsCatchAll            EmailProperty = "isCatchAll"
	EmailPropertyDeliverable           EmailProperty = "deliverable"
	EmailPropertyValidatedAt           EmailProperty = "techValidatedAt"
	EmailPropertyValidationRequestedAt EmailProperty = "techValidationRequestedAt"
	EmailPropertyUsername              EmailProperty = "username"
	EmailPropertyIsRisky               EmailProperty = "isRisky"
	EmailPropertyIsFirewalled          EmailProperty = "isFirewalled"
	EmailPropertyProvider              EmailProperty = "provider"
	EmailPropertyFirewall              EmailProperty = "firewall"
	EmailPropertyIsMailboxFull         EmailProperty = "isMailboxFull"
	EmailPropertyIsFreeAccount         EmailProperty = "isFreeAccount"
	EmailPropertySmtpSuccess           EmailProperty = "smtpSuccess"
	EmailPropertyResponseCode          EmailProperty = "verifyResponseCode"
	EmailPropertyErrorCode             EmailProperty = "verifyErrorCode"
	EmailPropertyDescription           EmailProperty = "verifyDescription"
	EmailPropertyIsPrimaryDomain       EmailProperty = "isPrimaryDomain"
	EmailPropertyPrimaryDomain         EmailProperty = "primaryDomain"
	EmailPropertyAlternateEmail        EmailProperty = "alternateEmail"
	EmailPropertyWork                  EmailProperty = "work"
	EmailPropertyRetryValidation       EmailProperty = "retryValidation"
)

type EventStoreAggregate

type EventStoreAggregate struct {
	AggregateVersion *int64 `json:"aggregate_version"`
}

type ExternalSystemEntities

type ExternalSystemEntities []ExternalSystemEntity

type ExternalSystemEntity

type ExternalSystemEntity struct {
	DataLoaderKey
	ExternalSystemId neo4jenum.ExternalSystemId
	Name             string
	Relationship     struct {
		ExternalId     string
		SyncDate       *time.Time
		ExternalUrl    *string
		ExternalSource *string
		Primary        bool
	}
	Stripe struct {
		PaymentMethodTypes []string
	}
}

type FlowActionEntities

type FlowActionEntities []FlowActionEntity

type FlowActionEntity

type FlowActionEntity struct {
	DataLoaderKey
	Id         string
	ExternalId string
	CreatedAt  time.Time
	UpdatedAt  time.Time

	Type string
	Data struct {
		//FLOW_START properties
		Entity      *string // CONTACT / ORGANIZATION / etc
		TriggerType *string

		WaitBefore int64 // in minutes

		Action FlowActionType

		//Email
		Subject      *string
		BodyTemplate *string

		//Linkedin
		MessageTemplate *string
	} `json:"data"`
	Json string
}

type FlowActionExecutionEntities

type FlowActionExecutionEntities []FlowActionExecutionEntity

type FlowActionExecutionEntity

type FlowActionExecutionEntity struct {
	DataLoaderKey
	Id        string
	CreatedAt time.Time
	UpdatedAt time.Time

	FlowId        string
	ActionId      string
	ParticipantId string
	EntityId      string
	EntityType    model.EntityType

	// Scheduling Info
	ScheduledAt     time.Time
	ExecutedAt      *time.Time
	StatusUpdatedAt time.Time
	Status          FlowActionExecutionStatus

	//Config
	Mailbox   *string
	UserId    *string
	SocialUrl *string

	// Additional metadata
	Error *string // If execution fails, store the error message
}

type FlowActionExecutionStatus

type FlowActionExecutionStatus string
const (
	FlowActionExecutionStatusScheduled     FlowActionExecutionStatus = "SCHEDULED"
	FlowActionExecutionStatusInProgress    FlowActionExecutionStatus = "IN_PROGRESS"
	FlowActionExecutionStatusSkipped       FlowActionExecutionStatus = "SKIPPED"
	FlowActionExecutionStatusSuccess       FlowActionExecutionStatus = "SUCCESS"
	FlowActionExecutionStatusTechError     FlowActionExecutionStatus = "TECH_ERROR"
	FlowActionExecutionStatusBusinessError FlowActionExecutionStatus = "BUSINESS_ERROR"
)

func GetFlowActionExecutionStatus

func GetFlowActionExecutionStatus(s string) FlowActionExecutionStatus

type FlowActionType

type FlowActionType string
const (
	FlowActionTypeFlowStart                 FlowActionType = "FLOW_START"
	FlowActionTypeEmailNew                  FlowActionType = "EMAIL_NEW"
	FlowActionTypeEmailReply                FlowActionType = "EMAIL_REPLY"
	FlowActionTypeLinkedinConnectionRequest FlowActionType = "LINKEDIN_CONNECTION_REQUEST"
	FlowActionTypeLinkedinMessage           FlowActionType = "LINKEDIN_MESSAGE"
	FlowActionTypeFlowEnd                   FlowActionType = "FLOW_END"
)

func GetFlowActionType

func GetFlowActionType(s string) FlowActionType

type FlowEntities

type FlowEntities []FlowEntity

type FlowEntity

type FlowEntity struct {
	DataLoaderKey
	Id        string
	CreatedAt time.Time
	UpdatedAt time.Time

	Name string

	Nodes string
	Edges string

	FirstStartedAt *time.Time
	Status         FlowStatus

	Total        int64
	OnHold       int64
	Ready        int64
	Scheduled    int64
	InProgress   int64
	Completed    int64
	GoalAchieved int64
}

type FlowExecutionSettingsEntity

type FlowExecutionSettingsEntity struct {
	Id        string
	CreatedAt time.Time
	UpdatedAt time.Time

	FlowId     string
	EntityId   string
	EntityType model.EntityType

	Mailbox *string
	UserId  *string
}

type FlowParticipantEntities

type FlowParticipantEntities []FlowParticipantEntity

type FlowParticipantEntity

type FlowParticipantEntity struct {
	DataLoaderKey
	Id        string
	CreatedAt time.Time
	UpdatedAt time.Time

	EntityId   string
	EntityType model.EntityType

	Status          FlowParticipantStatus
	ScheduledAction *string
	ScheduledAt     *time.Time
}

type FlowParticipantStatus

type FlowParticipantStatus string
const (
	FlowParticipantStatusOnHold       FlowParticipantStatus = "ON_HOLD"
	FlowParticipantStatusReady        FlowParticipantStatus = "READY"
	FlowParticipantStatusScheduled    FlowParticipantStatus = "SCHEDULED"
	FlowParticipantStatusInProgress   FlowParticipantStatus = "IN_PROGRESS"
	FlowParticipantStatusCompleted    FlowParticipantStatus = "COMPLETED"
	FlowParticipantStatusGoalAchieved FlowParticipantStatus = "GOAL_ACHIEVED"
	FlowParticipantStatusGoalError    FlowParticipantStatus = "ERROR"
)

func GetFlowContactStatus

func GetFlowContactStatus(s string) FlowParticipantStatus

type FlowSenderEntities

type FlowSenderEntities []FlowSenderEntity

type FlowSenderEntity

type FlowSenderEntity struct {
	DataLoaderKey
	Id        string
	CreatedAt time.Time
	UpdatedAt time.Time

	UserId *string
}

type FlowStatus

type FlowStatus string
const (
	FlowStatusOff      FlowStatus = "OFF"
	FlowStatusOn       FlowStatus = "ON"
	FlowStatusArchived FlowStatus = "ARCHIVED"
)

func GetFlowStatus

func GetFlowStatus(s string) FlowStatus

type InteractionEventEntities

type InteractionEventEntities []InteractionEventEntity

type InteractionEventEntity

type InteractionEventEntity struct {
	DataLoaderKey
	Id                           string
	CreatedAt                    time.Time
	UpdatedAt                    time.Time
	Content                      string
	ContentType                  string
	Channel                      string
	ChannelData                  string
	Identifier                   string
	CustomerOSInternalIdentifier string
	EventType                    string
	Hide                         bool
	Source                       DataSource
	SourceOfTruth                DataSource
	AppSource                    string
}

func (*InteractionEventEntity) GetDataloaderKey

func (e *InteractionEventEntity) GetDataloaderKey() string

func (InteractionEventEntity) IsTimelineEvent

func (InteractionEventEntity) IsTimelineEvent()

func (*InteractionEventEntity) SetDataloaderKey

func (e *InteractionEventEntity) SetDataloaderKey(key string)

func (InteractionEventEntity) TimelineEventLabel

func (InteractionEventEntity) TimelineEventLabel() string

type InteractionEventParticipant

type InteractionEventParticipant interface {
	IsInteractionEventParticipant()
	EntityLabel() string
	GetDataloaderKey() string
}

type InteractionEventParticipantDetails

type InteractionEventParticipantDetails struct {
	Type string
}

type InteractionEventParticipants

type InteractionEventParticipants []InteractionEventParticipant

type InteractionSessionEntities

type InteractionSessionEntities []InteractionSessionEntity

type InteractionSessionEntity

type InteractionSessionEntity struct {
	DataLoaderKey
	Id            string
	CreatedAt     time.Time
	UpdatedAt     time.Time
	Identifier    string
	Name          string
	Status        string
	Type          string
	Channel       string
	ChannelData   string
	AppSource     string
	Source        DataSource
	SourceOfTruth DataSource
}

func (*InteractionSessionEntity) GetDataloaderKey

func (e *InteractionSessionEntity) GetDataloaderKey() string

func (InteractionSessionEntity) IsTimelineEvent

func (InteractionSessionEntity) IsTimelineEvent()

func (*InteractionSessionEntity) SetDataloaderKey

func (e *InteractionSessionEntity) SetDataloaderKey(key string)

func (InteractionSessionEntity) TimelineEventLabel

func (InteractionSessionEntity) TimelineEventLabel() string

type InteractionSessionParticipant

type InteractionSessionParticipant interface {
	IsInteractionSessionParticipant()
	EntityLabel() string
	GetDataloaderKey() string
}

type InteractionSessionParticipantDetails

type InteractionSessionParticipantDetails struct {
	Type string
}

type InteractionSessionParticipants

type InteractionSessionParticipants []InteractionSessionParticipant

type InvoiceCustomer

type InvoiceCustomer struct {
	Name         string
	Email        string
	AddressLine1 string
	AddressLine2 string
	Zip          string
	Locality     string
	Country      string
	Region       string
}

type InvoiceEntities

type InvoiceEntities []InvoiceEntity

type InvoiceEntity

type InvoiceEntity struct {
	EventStoreAggregate
	Id                   string
	CreatedAt            time.Time `neo4jDb:"property:createdAt;lookupName:CREATED_AT;supportCaseSensitive:false"`
	UpdatedAt            time.Time
	DryRun               bool          `neo4jDb:"property:dryRun;lookupName:DRY_RUN;supportCaseSensitive:false"`
	Number               string        `neo4jDb:"property:number;lookupName:NUMBER;supportCaseSensitive:false"`
	Currency             enum.Currency `neo4jDb:"property:currency;lookupName:CURRENCY;supportCaseSensitive:false"`
	PeriodStartDate      time.Time     // Date only
	PeriodEndDate        time.Time     // Date only
	DueDate              time.Time     `neo4jDb:"property:dueDate;lookupName:DUE_DATE;supportCaseSensitive:false"`       // Date only
	IssuedDate           time.Time     `neo4jDb:"property:issuedDate;lookupName:ISSUED_DATE;supportCaseSensitive:false"` // Datetime
	Customer             InvoiceCustomer
	Provider             InvoiceProvider
	Amount               float64 `neo4jDb:"property:amount;lookupName:AMOUNT;supportCaseSensitive:false"`
	Vat                  float64 `neo4jDb:"property:vat;lookupName:VAT;supportCaseSensitive:false"`
	TotalAmount          float64 `neo4jDb:"property:totalAmount;lookupName:TOTAL_AMOUNT;supportCaseSensitive:false"`
	RepositoryFileId     string
	BillingCycleInMonths int64
	Status               enum.InvoiceStatus `neo4jDb:"property:status;lookupName:STATUS;supportCaseSensitive:false"`
	Note                 string
	PaymentDetails       PaymentDetails
	OffCycle             bool
	Postpaid             bool
	Preview              bool `neo4jDb:"property:preview;lookupName:PREVIEW;supportCaseSensitive:false"`

	Source        DataSource
	SourceOfTruth DataSource
	AppSource     string

	InvoiceInternalFields InvoiceInternalFields

	DataloaderKey string
}

func (InvoiceEntity) IsDue

func (i InvoiceEntity) IsDue() bool

func (InvoiceEntity) IsOverdue

func (i InvoiceEntity) IsOverdue() bool

func (InvoiceEntity) IsPaid

func (i InvoiceEntity) IsPaid() bool

func (InvoiceEntity) IsVoid

func (i InvoiceEntity) IsVoid() bool

type InvoiceInternalFields

type InvoiceInternalFields struct {
	InvoiceFinalizedSentAt               *time.Time // used to send the invoice finalized notification to slack and integration app
	InvoiceFinalizedWebhookProcessedAt   *time.Time // used to process webhook for invoice finalized to temporal, if no webhook is configured, property will be set
	InvoicePaidWebhookProcessedAt        *time.Time // used to process webhook for invoice paid to temporal, if no webhook is configured, property will be set
	PaymentLinkRequestedAt               *time.Time
	PayInvoiceNotificationRequestedAt    *time.Time // used for locking in batch to not send the same notification multiple times under an hour
	PayInvoiceNotificationSentAt         *time.Time // used to prevent sending the same notification
	RemindInvoiceNotificationRequestedAt *time.Time
	LastRemindInvoiceNotificationSentAt  *time.Time
	RemindInvoiceNotificationRequestAt   *time.Time
	PaidInvoiceNotificationSentAt        *time.Time
	VoidInvoiceNotificationSentAt        *time.Time
}

type InvoiceLineEntities

type InvoiceLineEntities []InvoiceLineEntity

type InvoiceLineEntity

type InvoiceLineEntity struct {
	Id                      string
	CreatedAt               time.Time
	UpdatedAt               time.Time
	Name                    string
	Price                   float64
	Quantity                int64
	BilledType              neo4jenum.BilledType
	Amount                  float64
	Vat                     float64
	TotalAmount             float64
	Source                  DataSource
	SourceOfTruth           DataSource
	AppSource               string
	ServiceLineItemId       string
	ServiceLineItemParentId string

	DataloaderKey string
}

type InvoiceProperty

type InvoiceProperty string
const (
	InvoicePropertyCreatedAt                            InvoiceProperty = "createdAt"
	InvoicePropertyFinalizedWebhookProcessedAt          InvoiceProperty = "techInvoiceFinalizedWebhookProcessedAt"
	InvoicePropertyPaidWebhookProcessedAt               InvoiceProperty = "techInvoicePaidWebhookProcessedAt"
	InvoicePropertyInvoiceFinalizedEventSentAt          InvoiceProperty = "techInvoiceFinalizedSentAt"
	InvoicePropertyPaymentLink                          InvoiceProperty = "paymentLink"
	InvoicePropertyPaymentLinkValidUntil                InvoiceProperty = "paymentLinkValidUntil"
	InvoicePropertyLastRemindInvoiceNotificationSentAt  InvoiceProperty = "lastRemindInvoiceNotificationSentAt"
	InvoicePropertyRemindInvoiceNotificationRequestedAt InvoiceProperty = "techRemindInvoiceNotificationRequestedAt"
)

type InvoiceProvider

type InvoiceProvider struct {
	LogoRepositoryFileId string
	Name                 string
	Email                string
	AddressLine1         string
	AddressLine2         string
	Zip                  string
	Locality             string
	Country              string
	Region               string
}

type IssueEntities

type IssueEntities []IssueEntity

type IssueEntity

type IssueEntity struct {
	DataLoaderKey
	Id            string
	CreatedAt     time.Time
	UpdatedAt     time.Time
	Subject       string
	Status        string
	Priority      string
	Description   string
	Source        DataSource
	SourceOfTruth DataSource
	AppSource     string
}

func (*IssueEntity) GetDataloaderKey

func (e *IssueEntity) GetDataloaderKey() string

func (IssueEntity) IsTimelineEvent

func (IssueEntity) IsTimelineEvent()

func (*IssueEntity) SetDataloaderKey

func (e *IssueEntity) SetDataloaderKey(key string)

func (IssueEntity) TimelineEventLabel

func (IssueEntity) TimelineEventLabel() string

type IssueParticipant

type IssueParticipant interface {
	IsIssueParticipant()
	EntityLabel() string
	GetDataloaderKey() string
}

type IssueParticipantDetails

type IssueParticipantDetails struct {
	Type string
}

type IssueParticipants

type IssueParticipants []IssueParticipant

type JobRoleEntities

type JobRoleEntities []JobRoleEntity

type JobRoleEntity

type JobRoleEntity struct {
	DataLoaderKey
	Id          string
	JobTitle    string
	Primary     bool
	CreatedAt   time.Time
	UpdatedAt   time.Time
	StartedAt   *time.Time
	EndedAt     *time.Time
	Source      DataSource
	AppSource   string
	Description *string
	Company     *string

	InteractionEventParticipantDetails   InteractionEventParticipantDetails
	InteractionSessionParticipantDetails InteractionSessionParticipantDetails
}

func (JobRoleEntity) EntityLabel

func (JobRoleEntity) EntityLabel() string

func (JobRoleEntity) GetDataloaderKey

func (e JobRoleEntity) GetDataloaderKey() string

func (JobRoleEntity) IsInteractionEventParticipant

func (JobRoleEntity) IsInteractionEventParticipant()

func (JobRoleEntity) IsInteractionSessionParticipant

func (JobRoleEntity) IsInteractionSessionParticipant()

func (JobRoleEntity) ParticipantLabel

func (JobRoleEntity) ParticipantLabel() string

type LinkedinConnectionRequest

type LinkedinConnectionRequest struct {
	Id        string
	CreatedAt time.Time
	UpdatedAt time.Time

	ProducerId   string
	ProducerType string

	SocialUrl string
	UserId    string

	ScheduledAt time.Time
	Status      LinkedinConnectionRequestStatus
}

type LinkedinConnectionRequestStatus

type LinkedinConnectionRequestStatus string
const (
	LinkedinConnectionRequestStatusPending  LinkedinConnectionRequestStatus = "PENDING"
	LinkedinConnectionRequestStatusAccepted LinkedinConnectionRequestStatus = "ACCEPTED"
	LinkedinConnectionRequestStatusDeclined LinkedinConnectionRequestStatus = "DECLINED"
)

func GetLinkedinConnectionRequestStatus

func GetLinkedinConnectionRequestStatus(s string) LinkedinConnectionRequestStatus

type LocationEntities

type LocationEntities []LocationEntity

type LocationEntity

type LocationEntity struct {
	DataLoaderKey

	Id            string
	Name          string
	CreatedAt     time.Time
	UpdatedAt     time.Time
	Country       string `neo4jDb:"property:country;lookupName:COUNTRY;supportCaseSensitive:true"`
	CountryCodeA2 string `neo4jDb:"property:countryCodeA2;lookupName:COUNTRY_CODE_A2;supportCaseSensitive:true"`
	CountryCodeA3 string `neo4jDb:"property:countryCodeA3;lookupName:COUNTRY_CODE_A3;supportCaseSensitive:true"`
	Region        string `neo4jDb:"property:region;lookupName:REGION;supportCaseSensitive:true"`
	Locality      string `neo4jDb:"property:locality;lookupName:LOCALITY;supportCaseSensitive:true"`
	Address       string
	Address2      string
	Zip           string
	AddressType   string
	HouseNumber   string
	PostalCode    string
	PlusFour      string
	Commercial    bool
	Predirection  string
	District      string
	Street        string
	RawAddress    string
	Latitude      *float64
	Longitude     *float64
	TimeZone      string
	UtcOffset     *float64
	SourceOfTruth DataSource
	Source        DataSource
	AppSource     string
}

type LocationProperty

type LocationProperty string
const (
	LocationPropertyName          LocationProperty = "name"
	LocationPropertyCountry       LocationProperty = "country"
	LocationPropertyRegion        LocationProperty = "region"
	LocationPropertyLocality      LocationProperty = "locality"
	LocationPropertyAddress       LocationProperty = "address"
	LocationPropertyAddress2      LocationProperty = "address2"
	LocationPropertyZip           LocationProperty = "zip"
	LocationPropertyAddressType   LocationProperty = "addressType"
	LocationPropertyHouseNumber   LocationProperty = "houseNumber"
	LocationPropertyPostalCode    LocationProperty = "postalCode"
	LocationPropertyPlusFour      LocationProperty = "plusFour"
	LocationPropertyCommercial    LocationProperty = "commercial"
	LocationPropertyPredirection  LocationProperty = "predirection"
	LocationPropertyDistrict      LocationProperty = "district"
	LocationPropertyStreet        LocationProperty = "street"
	LocationPropertyRawAddress    LocationProperty = "rawAddress"
	LocationPropertyLatitude      LocationProperty = "latitude"
	LocationPropertyLongitude     LocationProperty = "longitude"
	LocationPropertyTimeZone      LocationProperty = "timeZone"
	LocationPropertyUtcOffset     LocationProperty = "utcOffset"
	LocationPropertyCountryCodeA2 LocationProperty = "countryCodeA2"
	LocationPropertyCountryCodeA3 LocationProperty = "countryCodeA3"
)

type LogEntryEntities

type LogEntryEntities []LogEntryEntity

type LogEntryEntity

type LogEntryEntity struct {
	DataLoaderKey
	Id            string
	Content       string
	ContentType   string
	CreatedAt     time.Time
	UpdatedAt     time.Time
	StartedAt     time.Time
	Source        DataSource
	SourceOfTruth DataSource
	AppSource     string
}

func (*LogEntryEntity) GetDataloaderKey

func (e *LogEntryEntity) GetDataloaderKey() string

func (LogEntryEntity) IsTimelineEvent

func (LogEntryEntity) IsTimelineEvent()

func (*LogEntryEntity) SetDataloaderKey

func (e *LogEntryEntity) SetDataloaderKey(key string)

func (LogEntryEntity) TimelineEventLabel

func (LogEntryEntity) TimelineEventLabel() string

type MarkdownEventEntities

type MarkdownEventEntities []MarkdownEventEntity

type MarkdownEventEntity

type MarkdownEventEntity struct {
	DataLoaderKey
	Id        string
	Content   string
	CreatedAt time.Time
	UpdatedAt time.Time
	Source    DataSource
	AppSource string
}

func (*MarkdownEventEntity) GetDataloaderKey

func (e *MarkdownEventEntity) GetDataloaderKey() string

func (MarkdownEventEntity) IsTimelineEvent

func (MarkdownEventEntity) IsTimelineEvent()

func (*MarkdownEventEntity) SetDataloaderKey

func (e *MarkdownEventEntity) SetDataloaderKey(key string)

func (MarkdownEventEntity) TimelineEventLabel

func (MarkdownEventEntity) TimelineEventLabel() string

type MeetingEntity

type MeetingEntity struct {
	DataLoaderKey
	Id                 string
	Name               *string `neo4jDb:"property:name;lookupName:NAME;supportCaseSensitive:true"`
	CreatedAt          time.Time
	UpdatedAt          time.Time
	StartedAt          *time.Time
	EndedAt            *time.Time
	ConferenceUrl      *string
	MeetingExternalUrl *string
	AppSource          string
	Agenda             *string
	AgendaContentType  *string
	Source             DataSource
	SourceOfTruth      DataSource
	Recording          *string
	Status             *enum.MeetingStatus
}

func (*MeetingEntity) GetDataloaderKey

func (e *MeetingEntity) GetDataloaderKey() string

func (MeetingEntity) IsTimelineEvent

func (MeetingEntity) IsTimelineEvent()

func (*MeetingEntity) SetDataloaderKey

func (e *MeetingEntity) SetDataloaderKey(key string)

func (MeetingEntity) TimelineEventLabel

func (MeetingEntity) TimelineEventLabel() string

type MeetingParticipant

type MeetingParticipant interface {
	IsMeetingParticipant()
	EntityLabel() string
	GetDataloaderKey() string
}

type MeetingParticipants

type MeetingParticipants []MeetingParticipant

type Neo4jNode

type Neo4jNode interface {
	Labels(tenant string) []string
}

type NoteEntity

type NoteEntity struct {
	DataLoaderKey
	Id            string
	Content       string
	ContentType   string
	CreatedAt     time.Time
	UpdatedAt     time.Time
	Source        DataSource
	SourceOfTruth DataSource
	AppSource     string
}

func (*NoteEntity) GetDataloaderKey

func (e *NoteEntity) GetDataloaderKey() string

func (NoteEntity) IsTimelineEvent

func (NoteEntity) IsTimelineEvent()

func (*NoteEntity) SetDataloaderKey

func (e *NoteEntity) SetDataloaderKey(key string)

func (NoteEntity) TimelineEventLabel

func (NoteEntity) TimelineEventLabel() string

type OnboardingDetails

type OnboardingDetails struct {
	Status       string
	SortingOrder *int64
	UpdatedAt    *time.Time
	Comments     string
}

type OpportunityEntities

type OpportunityEntities []OpportunityEntity

type OpportunityEntity

type OpportunityEntity struct {
	DataLoaderKey
	Id                string
	Name              string
	CreatedAt         time.Time
	UpdatedAt         time.Time
	Amount            float64
	MaxAmount         float64
	InternalType      enum.OpportunityInternalType
	ExternalType      string
	InternalStage     enum.OpportunityInternalStage
	ExternalStage     string
	EstimatedClosedAt *time.Time
	ClosedAt          *time.Time
	GeneralNotes      string
	NextSteps         string
	Comments          string
	Source            DataSource
	SourceOfTruth     DataSource
	AppSource         string
	OwnerUserId       string
	RenewalDetails    RenewalDetails
	InternalFields    OpportunityInternalFields
	LikelihoodRate    int64
	Currency          enum.Currency
	StageUpdatedAt    *time.Time
}

func (OpportunityEntity) IsNBO

func (op OpportunityEntity) IsNBO() bool

func (OpportunityEntity) IsRenewal

func (op OpportunityEntity) IsRenewal() bool

type OpportunityInternalFields

type OpportunityInternalFields struct {
	RolloutRenewalRequestedAt *time.Time
}

type OpportunityProperty

type OpportunityProperty string
const (
	OpportunityPropertyAmount         OpportunityProperty = "amount"
	OpportunityPropertyMaxAmount      OpportunityProperty = "maxAmount"
	OpportunityPropertyNextSteps      OpportunityProperty = "nextSteps"
	OpportunityPropertyCurrency       OpportunityProperty = "currency"
	OpportunityPropertyLikelihoodRate OpportunityProperty = "likelihoodRate"
	OpportunityPropertyStageUpdatedAt OpportunityProperty = "stageUpdatedAt"
)

type OrganizationEnrichDetails

type OrganizationEnrichDetails struct {
	EnrichRequestedAt *time.Time
	EnrichedAt        *time.Time
	EnrichFailedAt    *time.Time
	EnrichAttempts    int64
	EnrichDomain      string
	EnrichSource      enum.EnrichSource
}

type OrganizationEntities

type OrganizationEntities []OrganizationEntity

type OrganizationEntity

type OrganizationEntity struct {
	EventStoreAggregate
	DataLoaderKey
	ID                 string
	CustomerOsId       string `neo4jDb:"property:customerOsId;lookupName:CUSTOMER_OS_ID;supportCaseSensitive:false"`
	CustomId           string `neo4jDb:"property:customId;lookupName:CUSTOMER_ID;supportCaseSensitive:false"`
	Name               string `neo4jDb:"property:name;lookupName:NAME;supportCaseSensitive:true"`
	Description        string `neo4jDb:"property:description;lookupName:DESCRIPTION;supportCaseSensitive:true"`
	Website            string `neo4jDb:"property:website;lookupName:WEBSITE;supportCaseSensitive:true"`
	Industry           string `neo4jDb:"property:industry;lookupName:INDUSTRY;supportCaseSensitive:true"`
	SubIndustry        string
	IndustryGroup      string
	TargetAudience     string
	ValueProposition   string
	IsPublic           bool
	Hide               bool
	Market             string
	LastFundingRound   string
	LastFundingAmount  string
	ReferenceId        string `neo4jDb:"property:referenceId;lookupName:REFERENCE_ID;supportCaseSensitive:true"`
	Note               string
	Employees          int64
	CreatedAt          time.Time
	UpdatedAt          time.Time  `neo4jDb:"property:updatedAt;lookupName:UPDATED_AT;supportCaseSensitive:false"`
	LastTouchpointAt   *time.Time `neo4jDb:"property:lastTouchpointAt;lookupName:LAST_TOUCHPOINT_AT;supportCaseSensitive:false"`
	LastTouchpointId   *string    `neo4jDb:"property:lastTouchpointId;lookupName:LAST_TOUCHPOINT_ID;supportCaseSensitive:false"`
	LastTouchpointType *string    `neo4jDb:"property:lastTouchpointType;lookupName:LAST_TOUCHPOINT_TYPE;supportCaseSensitive:false"`
	Source             DataSource
	YearFounded        *int64
	Headquarters       string
	EmployeeGrowthRate string
	SlackChannelId     string
	LogoUrl            string
	IconUrl            string
	Relationship       enum.OrganizationRelationship `neo4jDb:"property:relationship;lookupName:RELATIONSHIP;supportCaseSensitive:false"`
	Stage              enum.OrganizationStage        `neo4jDb:"property:stage;lookupName:STAGE;supportCaseSensitive:false"`
	StageUpdatedAt     *time.Time
	LeadSource         string `neo4jDb:"property:leadSource;lookupName:LEAD_SOURCE;supportCaseSensitive:true"`
	IcpFit             bool

	LinkedOrganizationType *string

	SuggestedMerge struct {
		SuggestedAt *time.Time
		SuggestedBy *string
		Confidence  *float64
	}
	RenewalSummary                     RenewalSummary
	OnboardingDetails                  OnboardingDetails
	EnrichDetails                      OrganizationEnrichDetails
	InteractionEventParticipantDetails InteractionEventParticipantDetails
	OrganizationInternalFields         OrganizationInternalFields
	DerivedData                        DerivedData
}

func (OrganizationEntity) EntityLabel

func (OrganizationEntity) EntityLabel() string

func (OrganizationEntity) GetDataloaderKey

func (o OrganizationEntity) GetDataloaderKey() string

func (OrganizationEntity) IsHidden

func (o OrganizationEntity) IsHidden() bool

func (OrganizationEntity) IsInteractionEventParticipant

func (OrganizationEntity) IsInteractionEventParticipant()

func (OrganizationEntity) IsIssueParticipant

func (OrganizationEntity) IsIssueParticipant()

func (OrganizationEntity) IsMeetingParticipant

func (OrganizationEntity) IsMeetingParticipant()

func (OrganizationEntity) IsNotedEntity

func (OrganizationEntity) IsNotedEntity()

func (OrganizationEntity) Labels

func (o OrganizationEntity) Labels(tenant string) []string

type OrganizationInternalFields

type OrganizationInternalFields struct {
	DomainCheckedAt           *time.Time
	IndustryCheckedAt         *time.Time
	CheckedAt                 *time.Time
	LastTouchpointRequestedAt *time.Time
	HiddenAt                  *time.Time
}

type OrganizationProperty

type OrganizationProperty string
const (
	OrganizationPropertyEmployees                 OrganizationProperty = "employees"
	OrganizationPropertyUpdatedAt                 OrganizationProperty = "updatedAt"
	OrganizationPropertyYearFounded               OrganizationProperty = "yearFounded"
	OrganizationPropertyHide                      OrganizationProperty = "hide"
	OrganizationPropertyStage                     OrganizationProperty = "stage"
	OrganizationPropertyIndustry                  OrganizationProperty = "industry"
	OrganizationPropertyIsPublic                  OrganizationProperty = "isPublic"
	OrganizationPropertyDomainCheckedAt           OrganizationProperty = "techDomainCheckedAt"
	OrganizationPropertyIndustryCheckedAt         OrganizationProperty = "techIndustryCheckedAt"
	OrganizationPropertyCheckedAt                 OrganizationProperty = "techCheckedAt"
	OrganizationPropertyLastTouchpointRequestedAt OrganizationProperty = "techLastTouchpointRequestedAt"
	OrganizationPropertyIcpFit                    OrganizationProperty = "icpFit"
	OrganizationPropertyHiddenAt                  OrganizationProperty = "hiddenAt"
	OrganizationPropertyEnrichRequestedAt         OrganizationProperty = "techEnrichRequestedAt"
	OrganizationPropertyEnrichedAt                OrganizationProperty = "enrichedAt"
	OrganizationPropertyEnrichFailedAt            OrganizationProperty = "enrichFailedAt"
	OrganizationPropertyEnrichAttempts            OrganizationProperty = "techEnrichAttempts"
)

type OrganizationWithJobRole

type OrganizationWithJobRole struct {
	DataLoaderKey
	Organization OrganizationEntity
	JobRole      JobRoleEntity
}

type OrganizationWithJobRoleEntities

type OrganizationWithJobRoleEntities []OrganizationWithJobRole

type PageViewEntity

type PageViewEntity struct {
	DataLoaderKey
	Id             string
	Application    string
	TrackerName    string
	SessionId      string
	PageUrl        string
	PageTitle      string
	OrderInSession int64
	EngagedTime    int64
	StartedAt      time.Time
	EndedAt        time.Time
	Source         DataSource
	SourceOfTruth  DataSource
	AppSource      string
}

func (*PageViewEntity) GetDataloaderKey

func (e *PageViewEntity) GetDataloaderKey() string

func (PageViewEntity) IsTimelineEvent

func (PageViewEntity) IsTimelineEvent()

func (*PageViewEntity) SetDataloaderKey

func (e *PageViewEntity) SetDataloaderKey(key string)

func (PageViewEntity) TimelineEventLabel

func (PageViewEntity) TimelineEventLabel() string

type PaymentDetails

type PaymentDetails struct {
	PaymentLink           string
	PaymentLinkValidUntil *time.Time
}

type PersonEntities

type PersonEntities []PlayerEntity

type PhoneNumberEntities

type PhoneNumberEntities []PhoneNumberEntity

type PhoneNumberEntity

type PhoneNumberEntity struct {
	DataLoaderKey
	Id             string
	E164           string
	Validated      *bool
	RawPhoneNumber string
	Source         DataSource
	SourceOfTruth  DataSource
	AppSource      string
	CreatedAt      time.Time
	UpdatedAt      time.Time
	Label          string
	Primary        bool

	InteractionEventParticipantDetails   InteractionEventParticipantDetails
	InteractionSessionParticipantDetails InteractionSessionParticipantDetails
}

func (PhoneNumberEntity) EntityLabel

func (PhoneNumberEntity) EntityLabel() string

func (PhoneNumberEntity) GetDataloaderKey

func (e PhoneNumberEntity) GetDataloaderKey() string

func (PhoneNumberEntity) IsInteractionEventParticipant

func (PhoneNumberEntity) IsInteractionEventParticipant()

func (PhoneNumberEntity) IsInteractionSessionParticipant

func (PhoneNumberEntity) IsInteractionSessionParticipant()

func (PhoneNumberEntity) Labels

func (e PhoneNumberEntity) Labels(tenant string) []string

type PlayerEntity

type PlayerEntity struct {
	Id            string
	IdentityId    string
	AuthId        string
	Provider      string
	Source        string
	SourceOfTruth string
	AppSource     string
	CreatedAt     time.Time
	UpdatedAt     time.Time

	DataloaderKey string
}

func (PlayerEntity) Labels

func (PlayerEntity) Labels(tenant string) []string

type PlayerRelation

type PlayerRelation string
const (
	IDENTIFIES PlayerRelation = "IDENTIFIES"
)

type ReminderEntity

type ReminderEntity struct {
	Id            string     `json:"id"`
	CreatedAt     time.Time  `json:"createdAt"`
	UpdatedAt     time.Time  `json:"updatedAt"`
	Source        DataSource `json:"source"`
	SourceOfTruth DataSource `json:"sourceOfTruth"`
	AppSource     string     `json:"appSource"`
	Content       string     `json:"content"`
	DueDate       time.Time  `json:"dueDate"`
	Dismissed     bool       `json:"dismissed"`
}

type RenewalDetails

type RenewalDetails struct {
	RenewedAt              *time.Time // DateTime
	RenewalLikelihood      enum.RenewalLikelihood
	RenewalUpdatedByUserId string
	RenewalUpdatedByUserAt *time.Time
	RenewalApproved        bool
	RenewalAdjustedRate    int64
}

type RenewalSummary

type RenewalSummary struct {
	ArrForecast            *float64
	MaxArrForecast         *float64
	NextRenewalAt          *time.Time `neo4jDb:"property:derivedNextRenewalAt;lookupName:RENEWAL_DATE;supportCaseSensitive:false"`
	RenewalLikelihood      string     `neo4jDb:"property:derivedRenewalLikelihood;lookupName:RENEWAL_LIKELIHOOD;supportCaseSensitive:false"`
	RenewalLikelihoodOrder *int64
}

type SLIProperty

type SLIProperty string
const (
	SLIPropertyUpdatedAt SLIProperty = "updatedAt"
	SLIPropertyPaused    SLIProperty = "paused"
)

type ServiceLineItemEntities

type ServiceLineItemEntities []ServiceLineItemEntity

type ServiceLineItemEntity

type ServiceLineItemEntity struct {
	ID               string
	Name             string
	CreatedAt        time.Time
	UpdatedAt        time.Time
	StartedAt        time.Time  // DateTime
	EndedAt          *time.Time // DateTime
	Canceled         bool
	Billed           enum.BilledType
	Price            float64
	Quantity         int64
	PreviousBilled   enum.BilledType
	PreviousPrice    float64
	PreviousQuantity int64
	Comments         string
	Source           DataSource
	SourceOfTruth    DataSource
	AppSource        string
	ParentID         string
	VatRate          float64
	Paused           bool

	DataLoaderKey
}

func (ServiceLineItemEntity) IsActiveAt

func (sli ServiceLineItemEntity) IsActiveAt(referenceTime time.Time) bool

func (ServiceLineItemEntity) IsEnded

func (sli ServiceLineItemEntity) IsEnded() bool

func (ServiceLineItemEntity) IsOneTime

func (sli ServiceLineItemEntity) IsOneTime() bool

func (ServiceLineItemEntity) IsRecurrent

func (sli ServiceLineItemEntity) IsRecurrent() bool

type SocialEntities

type SocialEntities []SocialEntity

type SocialEntity

type SocialEntity struct {
	DataLoaderKey
	Id             string
	CreatedAt      time.Time
	UpdatedAt      time.Time
	Source         DataSource
	AppSource      string
	Url            string
	Alias          string
	FollowersCount int64
	ExternalId     string
}

func (SocialEntity) ExtractLinkedinCompanyIdentifierFromUrl

func (s SocialEntity) ExtractLinkedinCompanyIdentifierFromUrl() string

func (SocialEntity) ExtractLinkedinPersonIdentifierFromUrl

func (s SocialEntity) ExtractLinkedinPersonIdentifierFromUrl() string

func (SocialEntity) IsLinkedin

func (s SocialEntity) IsLinkedin() bool

type SocialProperty

type SocialProperty string
const (
	SocialPropertyId             SocialProperty = "id"
	SocialPropertyCreatedAt      SocialProperty = "createdAt"
	SocialPropertyUpdatedAt      SocialProperty = "updatedAt"
	SocialPropertySource         SocialProperty = "source"
	SocialPropertyAppSource      SocialProperty = "appSource"
	SocialPropertyUrl            SocialProperty = "url"
	SocialPropertyAlias          SocialProperty = "alias"
	SocialPropertyFollowersCount SocialProperty = "followersCount"
	SocialPropertyExternalId     SocialProperty = "externalId"
)

type StateEntity

type StateEntity struct {
	Id        string
	CountryId string
	Name      string
	Code      string
	CreatedAt time.Time
	UpdatedAt time.Time
}

func (StateEntity) Labels

func (StateEntity) Labels() []string

func (StateEntity) StateEntity

func (country StateEntity) StateEntity() []string

func (StateEntity) ToString

func (country StateEntity) ToString() string

type TagEntities

type TagEntities []TagEntity

type TagEntity

type TagEntity struct {
	DataLoaderKey
	Id         string
	Name       string
	CreatedAt  time.Time
	UpdatedAt  time.Time
	Source     DataSource
	AppSource  string
	TaggedAt   time.Time
	EntityType commonmodel.EntityType
}

type TagProperty

type TagProperty string
const (
	TagPropertyId         TagProperty = "id"
	TagPropertyName       TagProperty = "name"
	TagPropertyEntityType TagProperty = "entityType"
	TagPropertySource     TagProperty = "source"
	TagPropertyAppSource  TagProperty = "appSource"
	TagPropertyCreatedAt  TagProperty = "createdAt"
	TagPropertyUpdatedAt  TagProperty = "updatedAt"
)

type TenantBillingProfileEntities

type TenantBillingProfileEntities []TenantBillingProfileEntity

type TenantBillingProfileEntity

type TenantBillingProfileEntity struct {
	Id                     string
	CreatedAt              time.Time
	UpdatedAt              time.Time
	LegalName              string
	Phone                  string
	AddressLine1           string
	AddressLine2           string
	AddressLine3           string
	Country                string
	Region                 string
	Locality               string
	Zip                    string
	VatNumber              string
	SendInvoicesFrom       string
	SendInvoicesBcc        string
	CanPayWithPigeon       bool
	CanPayWithBankTransfer bool
	Source                 DataSource
	SourceOfTruth          DataSource
	AppSource              string
	Check                  bool
}

type TenantEntity

type TenantEntity struct {
	Id        string
	Name      string
	CreatedAt time.Time
	UpdatedAt time.Time
	Source    DataSource
	AppSource string
	Settings  TenantSettingsEntity
	Active    bool
}

type TenantSettingsEntity

type TenantSettingsEntity struct {
	Id                       string
	LogoRepositoryFileId     string
	BaseCurrency             enum.Currency
	InvoicingEnabled         bool
	InvoicingPostpaid        bool
	WorkspaceName            string
	CreatedAt                time.Time
	UpdatedAt                time.Time
	EnrichContacts           bool
	StripeCustomerPortalLink string
	SharedSlackChannelUrl    string
}

type TenantSettingsProperty

type TenantSettingsProperty string
const (
	TenantSettingsPropertyLogoRepositoryFileId     TenantSettingsProperty = "logoRepositoryFileId"
	TenantSettingsPropertyBaseCurrency             TenantSettingsProperty = "baseCurrency"
	TenantSettingsPropertyInvoicingEnabled         TenantSettingsProperty = "invoicingEnabled"
	TenantSettingsPropertyInvoicingPostpaid        TenantSettingsProperty = "invoicingPostpaid"
	TenantSettingsPropertyWorkspaceName            TenantSettingsProperty = "workspaceName"
	TenantSettingsPropertyEnrichContacts           TenantSettingsProperty = "enrichContacts"
	TenantSettingsPropertyStripeCustomerPortalLink TenantSettingsProperty = "stripeCustomerPortalLink"
	TenantSettingsPropertySlackChannelUrl          TenantSettingsProperty = "slackChannelUrl"
)

type TimelineEvent

type TimelineEvent interface {
	IsTimelineEvent()
	TimelineEventLabel() string
	SetDataloaderKey(key string)
	GetDataloaderKey() string
}

type TimelineEventEntities

type TimelineEventEntities []TimelineEvent

type UserEntities

type UserEntities []UserEntity

type UserEntity

type UserEntity struct {
	DataLoaderKey
	Id              string
	FirstName       string     `neo4jDb:"property:firstName;lookupName:FIRST_NAME;supportCaseSensitive:true"`
	LastName        string     `neo4jDb:"property:lastName;lookupName:LAST_NAME;supportCaseSensitive:true"`
	Name            string     `neo4jDb:"property:name;lookupName:NAME;supportCaseSensitive:true"`
	CreatedAt       time.Time  `neo4jDb:"property:createdAt;lookupName:CREATED_AT;supportCaseSensitive:false"`
	UpdatedAt       time.Time  `neo4jDb:"property:updatedAt;lookupName:UPDATED_AT;supportCaseSensitive:false"`
	Source          DataSource `neo4jDb:"property:source;lookupName:SOURCE;supportCaseSensitive:false"`
	SourceOfTruth   DataSource `neo4jDb:"property:sourceOfTruth;lookupName:SOURCE;supportCaseSensitive:false"`
	AppSource       string     `neo4jDb:"property:appSource;lookupName:APP_SOURCE;supportCaseSensitive:false"`
	Roles           []string   `neo4jDb:"property:roles;lookupName:ROLES;supportCaseSensitive:false"`
	Timezone        string     `neo4jDb:"property:timezone;lookupName:TIMEZONE;supportCaseSensitive:true"`
	ProfilePhotoUrl string     `neo4jDb:"property:profilePhotoUrl;lookupName:PROFILE_PHOTO_URL;supportCaseSensitive:true"`
	Internal        bool
	Test            bool
	Bot             bool

	InteractionEventParticipantDetails   InteractionEventParticipantDetails
	InteractionSessionParticipantDetails InteractionSessionParticipantDetails

	// Indirect properties
	DefaultForPlayer bool
	Tenant           string
}

func (UserEntity) EntityLabel

func (UserEntity) EntityLabel() string

func (UserEntity) GetDataloaderKey

func (e UserEntity) GetDataloaderKey() string

func (UserEntity) GetFullName

func (u UserEntity) GetFullName() string

func (UserEntity) IsInteractionEventParticipant

func (UserEntity) IsInteractionEventParticipant()

func (UserEntity) IsInteractionSessionParticipant

func (UserEntity) IsInteractionSessionParticipant()

func (UserEntity) IsIssueParticipant

func (UserEntity) IsIssueParticipant()

func (UserEntity) IsMeetingParticipant

func (UserEntity) IsMeetingParticipant()

type WorkspaceEntities

type WorkspaceEntities []WorkspaceEntity

type WorkspaceEntity

type WorkspaceEntity struct {
	Id            string
	Name          string
	Provider      string
	CreatedAt     time.Time
	UpdatedAt     time.Time
	Source        DataSource
	SourceOfTruth DataSource
	AppSource     string

	DataloaderKey string
}

Jump to

Keyboard shortcuts

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