command

package
v0.0.0-...-808656e Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddParentCommand

type AddParentCommand struct {
	eventstore.BaseCommand
	ParentOrganizationId string `json:"parentOrganizationId" validate:"required,nefield=ObjectID"`
	Type                 string
	AppSource            string
}

func NewAddParentCommand

func NewAddParentCommand(organizationId, tenant, userId, parentOrganizationId, relType, appSource string) *AddParentCommand

type LinkLocationCommand

type LinkLocationCommand struct {
	eventstore.BaseCommand
	LocationId string `json:"locationId" validate:"required"`
}

func NewLinkLocationCommand

func NewLinkLocationCommand(organizationId, tenant, userId, locationId string) *LinkLocationCommand

type LinkPhoneNumberCommand

type LinkPhoneNumberCommand struct {
	eventstore.BaseCommand
	PhoneNumberId string `json:"phoneNumberId" validate:"required"`
	Primary       bool
	Label         string
}

func NewLinkPhoneNumberCommand

func NewLinkPhoneNumberCommand(objectID, tenant, userId, phoneNumberId, label string, primary bool) *LinkPhoneNumberCommand

type RefreshArrCommand

type RefreshArrCommand struct {
	eventstore.BaseCommand
	AppSource string
}

func NewRefreshArrCommand

func NewRefreshArrCommand(tenant, orgId, userId, appSource string) *RefreshArrCommand

type RemoveParentCommand

type RemoveParentCommand struct {
	eventstore.BaseCommand
	ParentOrganizationId string `json:"parentOrganizationId" validate:"required,nefield=ObjectID"`
	AppSource            string
}

func NewRemoveParentCommand

func NewRemoveParentCommand(organizationId, tenant, userId, parentOrganizationId, appSource string) *RemoveParentCommand

type UpdateOnboardingStatusCommand

type UpdateOnboardingStatusCommand struct {
	eventstore.BaseCommand
	Status             string     `json:"status"`
	Comments           string     `json:"comments"`
	UpdatedAt          *time.Time `json:"updatedAt"`
	CausedByContractId string     `json:"causedByContractId"`
}

func NewUpdateOnboardingStatusCommand

func NewUpdateOnboardingStatusCommand(tenant, orgId, loggedInUserId, appSource, status, comments, causedByContractId string, updatedAt *time.Time) *UpdateOnboardingStatusCommand

type UpdateOrganizationOwnerCommand

type UpdateOrganizationOwnerCommand struct {
	eventstore.BaseCommand
	OwnerUserId    string `json:"userId" validate:"required"` // who became owner
	OrganizationId string `json:"organizationId" validate:"required"`
	ActorUserId    string `json:"actorUserId"` // who set the owner
}

func NewUpdateOrganizationOwnerCommand

func NewUpdateOrganizationOwnerCommand(organizationId, tenant, loggedInUserId, ownerUserId, appSource string) *UpdateOrganizationOwnerCommand

type UpsertCustomFieldCommand

type UpsertCustomFieldCommand struct {
	eventstore.BaseCommand
	Source          common.Source
	CreatedAt       *time.Time
	UpdatedAt       *time.Time
	CustomFieldData model.CustomField
}

func NewUpsertCustomFieldCommand

func NewUpsertCustomFieldCommand(organizationId, tenant, source, sourceOfTruth, appSource, userId string,
	createdAt, updatedAt *time.Time, customField model.CustomField) *UpsertCustomFieldCommand

Jump to

Keyboard shortcuts

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