command

package
v0.0.0-...-a174813 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 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 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