New code verification service
Some checks failed
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
ci/woodpecker/push/bump_version Pipeline failed
Some checks failed
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
ci/woodpecker/push/bump_version Pipeline failed
This commit is contained in:
@@ -6,12 +6,11 @@ type Type = string
|
||||
|
||||
const (
|
||||
Accounts Type = "accounts" // Represents user accounts in the system
|
||||
Confirmations Type = "confirmations" // Represents confirmation code flows
|
||||
Amplitude Type = "amplitude" // Represents analytics integration with Amplitude
|
||||
Site Type = "site" // Represents public site endpoints
|
||||
Automations Type = "automation" // Represents automation workflows
|
||||
Changes Type = "changes" // Tracks changes made to resources
|
||||
Clients Type = "clients" // Represents client information
|
||||
Comments Type = "comments" // Represents comments on tasks or other resources
|
||||
ChainGateway Type = "chain_gateway" // Represents chain gateway microservice
|
||||
FXOracle Type = "fx_oracle" // Represents FX oracle microservice
|
||||
FeePlans Type = "fee_plans" // Represents fee plans microservice
|
||||
@@ -37,37 +36,22 @@ const (
|
||||
Permissions Type = "permissions" // Represents permissiosns service
|
||||
Policies Type = "policies" // Represents access control policies
|
||||
PolicyAssignements Type = "policy_assignments" // Represents policy assignments database
|
||||
Priorities Type = "priorities" // Represents object properties
|
||||
PriorityGroups Type = "priority_groups" // Represents task or project priorities
|
||||
Projects Type = "projects" // Represents projects managed in the system
|
||||
PropertyBindings Type = "property_bindings" // Represents properties bindings of resources
|
||||
PropertySchemas Type = "property_schemas" // Represents properties or attributes of resources
|
||||
Properties Type = "properties" // Represents property values of the propertites of specific objects
|
||||
Reactions Type = "reactions" // Represents comment reactions
|
||||
RefreshTokens Type = "refresh_tokens" // Represents refresh tokens for authentication
|
||||
Roles Type = "roles" // Represents roles in access control
|
||||
Statuses Type = "statuses" // Represents statuses of tasks or projects
|
||||
StatusGroups Type = "status_groups" // Represents status groups
|
||||
Steps Type = "steps" // Represents steps in workflows or processes
|
||||
Storage Type = "storage" // Represents statuses of tasks or projects
|
||||
Tags Type = "tags" // Represents tags managed in the system
|
||||
Tasks Type = "tasks" // Represents tasks managed in the system
|
||||
Teams Type = "teams" // Represents teams managed in the system
|
||||
Tenants Type = "tenants" // Represents tenants managed in the system
|
||||
Workflows Type = "workflows" // Represents workflows for tasks or projects
|
||||
Workspaces Type = "workspaces" // Represents workspaces containing projects and teams
|
||||
)
|
||||
|
||||
func StringToSType(s string) (Type, error) {
|
||||
switch Type(s) {
|
||||
case Accounts, Amplitude, Site, Automations, Changes, Clients, Comments, ChainGateway, ChainWallets, ChainWalletBalances,
|
||||
case Accounts, Confirmations, Amplitude, Site, Changes, Clients, ChainGateway, ChainWallets, ChainWalletBalances,
|
||||
ChainTransfers, ChainDeposits, FXOracle, FeePlans, FilterProjects, Invitations, Invoices, Logo, Ledger,
|
||||
LedgerAccounts, LedgerBalances, LedgerEntries, LedgerOutbox, LedgerParties, LedgerPlines, Notifications,
|
||||
Organizations, Payments, PaymentOrchestrator, Permissions, Policies, PolicyAssignements, Priorities,
|
||||
PriorityGroups, Projects, PropertyBindings, PropertySchemas, Properties, Reactions, RefreshTokens, Roles,
|
||||
Statuses, StatusGroups, Steps, Storage, Tags, Tasks, Teams, Tenants, Workflows, Workspaces:
|
||||
Organizations, Payments, PaymentOrchestrator, Permissions, Policies, PolicyAssignements,
|
||||
RefreshTokens, Roles, Storage, Tenants, Workflows:
|
||||
return Type(s), nil
|
||||
default:
|
||||
return "", merrors.DataConflict("invalid service type: " + s)
|
||||
return "", merrors.InvalidArgument("invalid service type", s)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user