mongoModels

package
v1.0.52 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activities

type Activities struct {
	Types               string             `json:"types"`       // business, meeting, task
	GenericType         string             `json:"genericType"` // tipo de actividad ejemplo note, meeting, task
	CreateUser          User               `json:"createUser"`
	TypeActivity        ActivityType       `json:"typeActivity"`
	EmployeeToken       string             `json:"employeeToken"`
	IsFromClient        bool               `json:"isFromClient"` //el cliente  ejecuto la actividad
	UnixTime            int64              `json:"unixTime"`
	Data                DataActivities     `json:"dataHelper"`
	ContactDataResponse ActivitiesResponse `json:"data"`
	Point               int                `json:"point"`
}

type ActivitiesResponse

type ActivitiesResponse struct {
	Budget                Budget     `json:"budget"`
	User                  User       `json:"createUser"`
	Exposition            Exposition `json:"exposition"`
	TokenNote             string     `json:"tokenNote"`
	InteractionName       string     `json:"interactionName"`
	BusinessName          string     `json:"businessName"`
	TokenBusiness         string     `json:"tokenBusiness"`
	Stages                Stages     `json:"stages"`
	CommunicationToken    string     `json:"communicationToken"`
	StageName             string     `json:"stageName"`
	MeetingName           string     `json:"meetingName"`
	ObjectInteractionName string     `json:"objectInteractionName"`
	BudgetName            string     `json:"budgetName"`
	BudgetVersionNumber   string     `json:"budgetVersionNumber"`
	TaskName              string     `json:"taskName"`
	Item                  Item       `json:"item"`
}

type ActivityMessage added in v1.0.50

type ActivityMessage struct {
	CompanyToken string     `json:"companyToken"`
	ContactToken string     `json:"contactToken"`
	Activity     Activities `json:"activity"`
}

type ActivityType

type ActivityType string
const (
	ATTENTION_MADE                ActivityType = "ATTENTION_MADE"
	AUTONOMOUS_CHECKIN_CREATED    ActivityType = "AUTONOMOUS_CHECKIN_CREATED"
	BUDGET_ACCEPTED               ActivityType = "BUDGET_ACCEPTED"
	BUDGET_CREATED                ActivityType = "BUDGET_CREATED"
	BUDGET_EXPIRED                ActivityType = "BUDGET_EXPIRED"
	BUDGET_EXPIRED_EMPLOYEE       ActivityType = "BUDGET_EXPIRED_EMPLOYEE"
	BUDGET_LAPSED                 ActivityType = "BUDGET_LAPSED"
	BUDGET_OPTION_CREATED         ActivityType = "BUDGET_OPTION_CREATED"
	BUDGET_REJECTED               ActivityType = "BUDGET_REJECTED"
	BUDGET_VERSION_CREATED        ActivityType = "BUDGET_VERSION_CREATED"
	BUSINESS_BLOCKED              ActivityType = "BUSINESS_BLOCKED"
	BUSINESS_BUDGET_ACCEPTED      ActivityType = "BUSINESS_BUDGET_ACCEPTED"
	BUSINESS_CLOSED               ActivityType = "BUSINESS_CLOSED"
	BUSINESS_CREATED              ActivityType = "BUSINESS_CREATED"
	BUSINESS_INFORMATION_MODIFIED ActivityType = "BUSINESS_INFORMATION_MODIFIED"
	BUSINESS_LOST                 ActivityType = "BUSINESS_LOST"
	BUSINESS_MOVED                ActivityType = "BUSINESS_MOVED"
	BUSINESS_NOTE_PRIVATE         ActivityType = "BUSINESS_NOTE_PRIVATE"
	BUSINESS_NOTE_SHARED          ActivityType = "BUSINESS_NOTE_SHARED"
	BUSINESS_STATE_CHANGED        ActivityType = "BUSINESS_STATE_CHANGED"
	BUSINESS_UPDATED              ActivityType = "BUSINESS_UPDATED"
	CHECKIN_CREATED               ActivityType = "CHECKIN_CREATED"
	CHECKIN_MADE                  ActivityType = "CHECKIN_MADE"
	CHECKIN_SELF_MADE             ActivityType = "CHECKIN_SELF_MADE"
	COMM_CALL                     ActivityType = "COMM_CALL"
	COMM_EMAIL                    ActivityType = "COMM_EMAIL"
	COMM_IN_PERSON_MEETING        ActivityType = "COMM_IN_PERSON_MEETING"
	COMM_TEXT_VOICE               ActivityType = "COMM_TEXT_VOICE"
	COMM_VIDEO_CALL               ActivityType = "COMM_VIDEO_CALL"
	COMMERCIAL_ATTENTION_CREATED  ActivityType = "COMMERCIAL_ATTENTION_CREATED"
	CONTACT_AGENDA_CREATED        ActivityType = "CONTACT_AGENDA_CREATED"
	CONTACT_CREATED               ActivityType = "CONTACT_CREATED"
	LINE_COLLECTED                ActivityType = "LINE_COLLECTED"
	LINE_NOTE_PRIVATE             ActivityType = "LINE_NOTE_PRIVATE"
	LINE_NOTE_SHARED              ActivityType = "LINE_NOTE_SHARED"
	MEETING_SCHEDULED             ActivityType = "MEETING_SCHEDULED"
	NOTE_PRIVATE_CREATED          ActivityType = "NOTE_PRIVATE_CREATED"
	NOTE_SHARED_CREATED           ActivityType = "NOTE_SHARED_CREATED"
	PRODUCT_COLLECTED             ActivityType = "PRODUCT_COLLECTED"
	PRODUCT_NOTE_PRIVATE          ActivityType = "PRODUCT_NOTE_PRIVATE"
	PRODUCT_NOTE_SHARED           ActivityType = "PRODUCT_NOTE_SHARED"
	RECOLLECTED_ITEM              ActivityType = "RECOLLECTED_ITEM"
	SERVICE_COLLECTED             ActivityType = "SERVICE_COLLECTED"
	SERVICE_NOTE_PRIVATE          ActivityType = "SERVICE_NOTE_PRIVATE"
	SERVICE_NOTE_SHARED           ActivityType = "SERVICE_NOTE_SHARED"
	SYNC_CONTACT_CREATED          ActivityType = "SYNC_CONTACT_CREATED"
	SYNC_MADE                     ActivityType = "SYNC_MADE"
	TASK_FINISHED                 ActivityType = "TASK_FINISHED"
	TASK_STARTED                  ActivityType = "TASK_STARTED"

	// EXPO TYPES
	EXPO_PERSON_ACCREDITED        ActivityType = "EXPO_PERSON_ACCREDITED"
	EXPO_BADGE_REPRINTED          ActivityType = "EXPO_BADGE_REPRINTED"
	EXPO_PERSON_BAN               ActivityType = "EXPO_PERSON_BAN"
	EXPO_ACCESS_UNBAN             ActivityType = "EXPO_ACCESS_UNBAN"
	EXPO_PRE_ACCREDITATION_ONLINE ActivityType = "EXPO_PRE_ACCREDITATION_ONLINE"
	EXPO_ENTRY_REGISTERED         ActivityType = "EXPO_ENTRY_REGISTERED"
	EXPO_EXIT_REGISTERED          ActivityType = "EXPO_EXIT_REGISTERED"
)

type ActivityTypeResponse

type ActivityTypeResponse struct {
	AmountActivities int          `json:"amountActivities"`
	TotalPoints      int          `json:"totalPoints"`
	Activities       []Activities `json:"activities"`
}

type Budget

type Budget struct {
	Name    string `json:"name"`
	Number  string `json:"number"`
	Version string `json:"version"`
}

type Company

type Company struct {
	Token    string //token de la empresa
	Contacts []Contact
}

type Contact

type Contact struct {
	ContactToken string       `json:"contactToken"`
	Activities   []Activities `json:"activities"`
}

type DataActivities

type DataActivities struct {
	ReasonUpdateTokenBusiness string `json:"reasonUpdateToken"`
	LostBusinesstoken         string `json:"lostBusinessToken"`
	ReasonBlocked             string `json:"reasonBlocked"`
	StageTokenLast            string `json:"stageTokenLast"`
	StageTokenNow             string `json:"stageTokenNow"`
	TokenTaskObjet            string `json:"tokenTaskObjet"`
	TokenCommunicationObjet   string `json:"tokenCommunicationObjet"`
	TokenMeetingObjet         string `json:"tokenMeetingObjet"`
	StageToken                string `json:"stageToken"`
	MeetID                    int    `json:"meetId"`
	TokenMeeting              string `json:"tokenMeeting"`
	TokenBusiness             string `json:"tokenBusiness"`
	TokenTask                 string `json:"tokenTask"`
	TokenLine                 string `json:"tokenLine"`
	TokenProduct              string `json:"tokenProduct"`
	TokenService              string `json:"tokenService"`
	TokenEmployee             string `json:"tokenEmployee"`
	TokenCompany              string `json:"tokenCompany"`
	TokenNote                 string `json:"tokeNote"`
	TokenInteraction          string `json:"interactionToken"`
	TokenBudgetVersion        string `json:"tokenBudgetVersion"`
	TokenBudgetOption         string `json:"tokenBudgetOption"`
	TokenPreAccreditation     string `json:"tokenPreAccreditation"`
	TokenEdition              string `json:"tokenEdition"`
	TokenExposition           string `json:"tokenExposition"`
}

type Exposition added in v1.0.46

type Exposition struct {
	Name    string `json:"name"`
	Edition string `json:"edition"`
}

type History

type History struct {
	Companies []Company
}

type Historyt

type Historyt struct {
	EmployeeToken string        `json:"employeeToken"`
	Name          string        `json:"name"`
	Avatar        string        `json:"avatar"`
	Activity      *LastActivity `json:"activity"`
}

type Item

type Item struct {
	Name  string `json:"name"`
	Token string `json:"token"`
}

type LastActivity

type LastActivity struct {
	Date   string `json:"date"`
	Name   string `json:"name"`
	Reason string `json:"reason"`
}

type Option

type Option string

type Stage

type Stage struct {
	Name      string `json:"name"`
	StageName string `json:"stageName"`
	Token     string `json:"token"`
}

type Stages

type Stages struct {
	OldStage            Stage  `json:"oldStage"`
	NewStage            Stage  `json:"newStage"`
	Reason              string `json:"reasonId"`
	ReasonDescription   string `json:"reasonDescription" `
	TimeStampBlockedEnd string `json:"timeStampBlockedEnd"`
}

type TaskHistory

type TaskHistory struct {
	Token   string      `json:"token"`
	Name    string      `json:"name"`
	History *[]Historyt `json:"history"`
}

type User

type User struct {
	Name               string `json:"name"`
	Avatar             string `json:"avatar"`
	SectorORProfession string `json:"sectorORProfession"`
	CompanyName        string `json:"companyName"`
}

Jump to

Keyboard shortcuts

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