enum

package
v0.0.0-...-23e3271 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: Apache-2.0 Imports: 2 Imported by: 22

Documentation

Index

Constants

View Source
const (
	CustomFieldTextProperty  propertyName = "textValue"
	CustomFieldIntProperty   propertyName = "intValue"
	CustomFieldFloatProperty propertyName = "floatValue"
	CustomFieldBoolProperty  propertyName = "boolValue"
	CustomFieldTimeProperty  propertyName = "timeValue"
)

Variables

Functions

func IsValidActionType

func IsValidActionType(s string) bool

func IsValidBilledType

func IsValidBilledType(s string) bool

func IsValidChargePeriod

func IsValidChargePeriod(s string) bool

func IsValidContractStatus

func IsValidContractStatus(s string) bool

func IsValidInvoiceStatus

func IsValidInvoiceStatus(s string) bool

func IsValidMeetingStatus

func IsValidMeetingStatus(s string) bool

func IsValidPriceCalculationType

func IsValidPriceCalculationType(s string) bool

func IsValidPricingModel

func IsValidPricingModel(s string) bool

func NodeLabelForCustomFieldDataType

func NodeLabelForCustomFieldDataType(dataType string) string

func PropertyNameForCustomFieldDataType

func PropertyNameForCustomFieldDataType(dataType string) string

Types

type ActionType

type ActionType string
const (
	ActionNA                             ActionType = ""
	ActionCreated                        ActionType = "CREATED"
	ActionContractStatusUpdated          ActionType = "CONTRACT_STATUS_UPDATED"
	ActionServiceLineItemPriceUpdated    ActionType = "SERVICE_LINE_ITEM_PRICE_UPDATED"
	ActionServiceLineItemQuantityUpdated ActionType = "SERVICE_LINE_ITEM_QUANTITY_UPDATED"
	// Deprecated
	ActionServiceLineItemBilledTypeUpdated          ActionType = "SERVICE_LINE_ITEM_BILLED_TYPE_UPDATED"
	ActionServiceLineItemBilledTypeRecurringCreated ActionType = "SERVICE_LINE_ITEM_BILLED_TYPE_RECURRING_CREATED"
	ActionServiceLineItemBilledTypeOnceCreated      ActionType = "SERVICE_LINE_ITEM_BILLED_TYPE_ONCE_CREATED"
	ActionServiceLineItemBilledTypeUsageCreated     ActionType = "SERVICE_LINE_ITEM_BILLED_TYPE_USAGE_CREATED"
	ActionContractRenewed                           ActionType = "CONTRACT_RENEWED"
	ActionServiceLineItemRemoved                    ActionType = "SERVICE_LINE_ITEM_REMOVED"
	ActionOnboardingStatusChanged                   ActionType = "ONBOARDING_STATUS_CHANGED"
	ActionRenewalLikelihoodUpdated                  ActionType = "RENEWAL_LIKELIHOOD_UPDATED"
	ActionRenewalForecastUpdated                    ActionType = "RENEWAL_FORECAST_UPDATED"
	ActionInvoiceIssued                             ActionType = "INVOICE_ISSUED"
	ActionInvoicePaid                               ActionType = "INVOICE_PAID"
	ActionInvoiceVoided                             ActionType = "INVOICE_VOIDED"
	ActionInvoiceOverdue                            ActionType = "INVOICE_OVERDUE"
	ActionInvoiceSent                               ActionType = "INVOICE_SENT"
	ActionInteractionEventRead                      ActionType = "INTERACTION_EVENT_READ"
)

func GetActionType

func GetActionType(s string) ActionType

type BilledType

type BilledType string
const (
	BilledTypeNone      BilledType = ""
	BilledTypeMonthly   BilledType = "MONTHLY"
	BilledTypeQuarterly BilledType = "QUARTERLY"
	BilledTypeAnnually  BilledType = "ANNUALLY"
	BilledTypeOnce      BilledType = "ONCE"
	BilledTypeUsage     BilledType = "USAGE"
)

func DecodeBilledType

func DecodeBilledType(s string) BilledType

func (BilledType) InMonths

func (bt BilledType) InMonths() int64

func (BilledType) IsRecurrent

func (bt BilledType) IsRecurrent() bool

func (BilledType) String

func (bt BilledType) String() string

type ChargePeriod

type ChargePeriod string
const (
	ChargePeriodNone      ChargePeriod = ""
	ChargePeriodMonthly   ChargePeriod = "MOTHLY"
	ChargePeriodQuarterly ChargePeriod = "QUARTERLY"
	ChargePeriodAnnually  ChargePeriod = "ANNUALLY"
)

func DecodeChargePeriod

func DecodeChargePeriod(s string) ChargePeriod

func (ChargePeriod) String

func (e ChargePeriod) String() string

type ContractStatus

type ContractStatus string
const (
	ContractStatusUndefined     ContractStatus = ""
	ContractStatusDraft         ContractStatus = "DRAFT"
	ContractStatusScheduled     ContractStatus = "SCHEDULED"
	ContractStatusLive          ContractStatus = "LIVE"
	ContractStatusEnded         ContractStatus = "ENDED"
	ContractStatusOutOfContract ContractStatus = "OUT_OF_CONTRACT"
)

func DecodeContractStatus

func DecodeContractStatus(s string) ContractStatus

func (ContractStatus) String

func (c ContractStatus) String() string

type Currency

type Currency string
const (
	CurrencyAUD Currency = "AUD"
	CurrencyBRL Currency = "BRL"
	CurrencyCAD Currency = "CAD"
	CurrencyCHF Currency = "CHF"
	CurrencyCNY Currency = "CNY"
	CurrencyEUR Currency = "EUR"
	CurrencyGBP Currency = "GBP"
	CurrencyHKD Currency = "HKD"
	CurrencyINR Currency = "INR"
	CurrencyJPY Currency = "JPY"
	CurrencyKRW Currency = "KRW"
	CurrencyMXN Currency = "MXN"
	CurrencyNOK Currency = "NOK"
	CurrencyNZD Currency = "NZD"
	CurrencyRON Currency = "RON"
	CurrencySEK Currency = "SEK"
	CurrencySGD Currency = "SGD"
	CurrencyTRY Currency = "TRY"
	CurrencyUSD Currency = "USD"
	CurrencyZAR Currency = "ZAR"
)

func DecodeCurrency

func DecodeCurrency(code string) Currency

func (Currency) String

func (e Currency) String() string

func (Currency) Symbol

func (e Currency) Symbol() string

type CustomFieldDataType

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

func (CustomFieldDataType) String

func (cfdt CustomFieldDataType) String() string

type EnrichSource

type EnrichSource string
const (
	Brandfetch EnrichSource = "BRANDFETCH"
	ScrapIn    EnrichSource = "SCRAPIN"
)

func DecodeDomainEnrichSource

func DecodeDomainEnrichSource(str string) EnrichSource

func (EnrichSource) String

func (e EnrichSource) String() string

type ExternalSystemId

type ExternalSystemId string
const (
	Attio          ExternalSystemId = "attio"
	CalCom         ExternalSystemId = "calcom"
	Close          ExternalSystemId = "close"
	Fathom         ExternalSystemId = "fathom"
	GCal           ExternalSystemId = "gcal"
	GMail          ExternalSystemId = "gmail"
	Grain          ExternalSystemId = "grain"
	Hubspot        ExternalSystemId = "hubspot"
	Intercom       ExternalSystemId = "intercom"
	Mailstack      ExternalSystemId = "mailstack"
	Mixpanel       ExternalSystemId = "mixpanel"
	Outlook        ExternalSystemId = "outlook"
	Pipedrive      ExternalSystemId = "pipedrive"
	Postmark       ExternalSystemId = "postmark"
	Salesforce     ExternalSystemId = "salesforce"
	Slack          ExternalSystemId = "slack"
	Stripe         ExternalSystemId = "stripe"
	Unthread       ExternalSystemId = "unthread"
	WeConnect      ExternalSystemId = "weconnect"
	ZendeskSell    ExternalSystemId = "zendesk-sell"
	ZendeskSupport ExternalSystemId = "zendesk_support"
	NotSet         ExternalSystemId = ""
)

func DecodeExternalSystemId

func DecodeExternalSystemId(value string) ExternalSystemId

func (ExternalSystemId) IntegrationID

func (e ExternalSystemId) IntegrationID(rotationCount int) string

func (ExternalSystemId) String

func (e ExternalSystemId) String() string

type InvoiceStatus

type InvoiceStatus string
const (
	InvoiceStatusNone        InvoiceStatus = ""
	InvoiceStatusInitialized InvoiceStatus = "INITIALIZED"
	InvoiceStatusDue         InvoiceStatus = "DUE"
	InvoiceStatusPaid        InvoiceStatus = "PAID"
	InvoiceStatusVoid        InvoiceStatus = "VOID"
	InvoiceStatusScheduled   InvoiceStatus = "SCHEDULED"
	InvoiceStatusOverdue     InvoiceStatus = "OVERDUE"
	InvoiceStatusOnHold      InvoiceStatus = "ON_HOLD"
	InvoiceStatusEmpty       InvoiceStatus = "EMPTY"
)

func DecodeInvoiceStatus

func DecodeInvoiceStatus(s string) InvoiceStatus

func (InvoiceStatus) String

func (e InvoiceStatus) String() string

type MeetingStatus

type MeetingStatus string
const (
	MeetingStatusUndefined MeetingStatus = ""
	MeetingStatusAccepted  MeetingStatus = "ACCEPTED"
	MeetingStatusCanceled  MeetingStatus = "CANCELED"
)

func DecodeMeetingStatus

func DecodeMeetingStatus(s string) MeetingStatus

type OnboardingStatus

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

type OpportunityInternalStage

type OpportunityInternalStage string
const (
	OpportunityInternalStageOpen       OpportunityInternalStage = "OPEN"
	OpportunityInternalStageClosedWon  OpportunityInternalStage = "CLOSED_WON"
	OpportunityInternalStageClosedLost OpportunityInternalStage = "CLOSED_LOST"
	OpportunityInternalStageSuspended  OpportunityInternalStage = "SUSPENDED"
)

func DecodeOpportunityInternalStage

func DecodeOpportunityInternalStage(input string) OpportunityInternalStage

func (OpportunityInternalStage) IsValid

func (e OpportunityInternalStage) IsValid() bool

func (OpportunityInternalStage) String

func (e OpportunityInternalStage) String() string

type OpportunityInternalType

type OpportunityInternalType string
const (
	OpportunityInternalTypeNBO       OpportunityInternalType = "NBO"
	OpportunityInternalTypeUpsell    OpportunityInternalType = "UPSELL"
	OpportunityInternalTypeCrossSell OpportunityInternalType = "CROSS_SELL"
	OpportunityInternalTypeRenewal   OpportunityInternalType = "RENEWAL"
)

func DecodeOpportunityInternalType

func DecodeOpportunityInternalType(input string) OpportunityInternalType

func (OpportunityInternalType) IsValid

func (e OpportunityInternalType) IsValid() bool

func (OpportunityInternalType) String

func (e OpportunityInternalType) String() string

type OrganizationRelationship

type OrganizationRelationship string
const (
	OrganizationRelationshipProspect       OrganizationRelationship = "PROSPECT"
	OrganizationRelationshipCustomer       OrganizationRelationship = "CUSTOMER"
	OrganizationRelationshipFormerCustomer OrganizationRelationship = "FORMER_CUSTOMER"
	OrganizationRelationshipNotAFit        OrganizationRelationship = "NOT_A_FIT"
)

func DecodeOrganizationRelationship

func DecodeOrganizationRelationship(str string) OrganizationRelationship

func (OrganizationRelationship) DefaultStage

func (OrganizationRelationship) IsValid

func (e OrganizationRelationship) IsValid() bool

func (OrganizationRelationship) String

func (e OrganizationRelationship) String() string

type OrganizationStage

type OrganizationStage string
const (
	Lead           OrganizationStage = "LEAD"
	Target         OrganizationStage = "TARGET"
	Engaged        OrganizationStage = "ENGAGED"
	Unqualified    OrganizationStage = "UNQUALIFIED"
	ReadyToBuy     OrganizationStage = "READY_TO_BUY"
	Onboarding     OrganizationStage = "ONBOARDING"
	InitialValue   OrganizationStage = "INITIAL_VALUE"
	RecurringValue OrganizationStage = "RECURRING_VALUE"
	MaxValue       OrganizationStage = "MAX_VALUE"
	PendingChurn   OrganizationStage = "PENDING_CHURN"
	Trial          OrganizationStage = "TRIAL"
)

func DecodeOrganizationStage

func DecodeOrganizationStage(str string) OrganizationStage

func (OrganizationStage) IsValid

func (e OrganizationStage) IsValid() bool

func (OrganizationStage) String

func (e OrganizationStage) String() string

type PriceCalculationType

type PriceCalculationType string
const (
	PriceCalculationTypeNone         PriceCalculationType = ""
	PriceCalculationTypeRevenueShare PriceCalculationType = "REVENUE_SHARE"
)

func DecodePriceCalculationType

func DecodePriceCalculationType(s string) PriceCalculationType

func (PriceCalculationType) String

func (e PriceCalculationType) String() string

type PricingModel

type PricingModel string
const (
	PricingModelNone         PricingModel = ""
	PricingModelSubscription PricingModel = "SUBSCRIPTION"
	PricingModelOneTime      PricingModel = "ONE_TIME"
	PricingModelUsage        PricingModel = "USAGE"
)

func DecodePricingModel

func DecodePricingModel(s string) PricingModel

func (PricingModel) String

func (e PricingModel) String() string

type RenewalLikelihood

type RenewalLikelihood string
const (
	// still used in opportunities, TODO migrate to V2
	RenewalLikelihoodHigh   RenewalLikelihood = "HIGH"
	RenewalLikelihoodMedium RenewalLikelihood = "MEDIUM"
	RenewalLikelihoodLow    RenewalLikelihood = "LOW"
	RenewalLikelihoodZero   RenewalLikelihood = "ZERO"

	RenewalLikelihoodHighV2   RenewalLikelihood = "HIGH_RENEWAL"
	RenewalLikelihoodMediumV2 RenewalLikelihood = "MEDIUM_RENEWAL"
	RenewalLikelihoodLowV2    RenewalLikelihood = "LOW_RENEWAL"
	RenewalLikelihoodZeroV2   RenewalLikelihood = "ZERO_RENEWAL"
)

func DecodeRenewalLikelihood

func DecodeRenewalLikelihood(input string) RenewalLikelihood

func (RenewalLikelihood) IsValid

func (e RenewalLikelihood) IsValid() bool

func (RenewalLikelihood) String

func (e RenewalLikelihood) String() string

func (RenewalLikelihood) ToV2

type TouchpointType

type TouchpointType string
const (
	TouchpointTypePageView                      TouchpointType = "PAGE_VIEW"
	TouchpointTypeInteractionSession            TouchpointType = "INTERACTION_SESSION"
	TouchpointTypeNote                          TouchpointType = "NOTE"
	TouchpointTypeInteractionEventEmailSent     TouchpointType = "INTERACTION_EVENT_EMAIL_SENT"
	TouchpointTypeInteractionEventEmailReceived TouchpointType = "INTERACTION_EVENT_EMAIL_RECEIVED"
	TouchpointTypeInteractionEventPhoneCall     TouchpointType = "INTERACTION_EVENT_PHONE_CALL"
	TouchpointTypeInteractionEventChat          TouchpointType = "INTERACTION_EVENT_CHAT"
	TouchpointTypeMeeting                       TouchpointType = "MEETING"
	TouchpointTypeActionCreated                 TouchpointType = "ACTION_CREATED"
	TouchpointTypeAction                        TouchpointType = "ACTION"
	TouchpointTypeLogEntry                      TouchpointType = "LOG_ENTRY"
	TouchpointTypeIssueCreated                  TouchpointType = "ISSUE_CREATED"
	TouchpointTypeIssueUpdated                  TouchpointType = "ISSUE_UPDATED"
)

func DecodeTouchpointType

func DecodeTouchpointType(str string) TouchpointType

func (TouchpointType) String

func (e TouchpointType) String() string

Jump to

Keyboard shortcuts

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