mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
1a00faf132
* fix: return orgDomain validationType * added missing translations for orgDomain activity * claim org domain * show message if domain token was requested * fix tests * fix tests Co-authored-by: Max Peintner <max@caos.ch>
57 lines
1.1 KiB
Go
57 lines
1.1 KiB
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/caos/zitadel/internal/model"
|
|
)
|
|
|
|
type OrgDomainView struct {
|
|
OrgID string
|
|
CreationDate time.Time
|
|
ChangeDate time.Time
|
|
Domain string
|
|
Primary bool
|
|
Verified bool
|
|
ValidationType OrgDomainValidationType
|
|
}
|
|
|
|
type OrgDomainSearchRequest struct {
|
|
Offset uint64
|
|
Limit uint64
|
|
SortingColumn OrgDomainSearchKey
|
|
Asc bool
|
|
Queries []*OrgDomainSearchQuery
|
|
}
|
|
|
|
type OrgDomainSearchKey int32
|
|
|
|
const (
|
|
OrgDomainSearchKeyUnspecified OrgDomainSearchKey = iota
|
|
OrgDomainSearchKeyDomain
|
|
OrgDomainSearchKeyOrgID
|
|
OrgDomainSearchKeyVerified
|
|
OrgDomainSearchKeyPrimary
|
|
)
|
|
|
|
type OrgDomainSearchQuery struct {
|
|
Key OrgDomainSearchKey
|
|
Method model.SearchMethod
|
|
Value interface{}
|
|
}
|
|
|
|
type OrgDomainSearchResponse struct {
|
|
Offset uint64
|
|
Limit uint64
|
|
TotalResult uint64
|
|
Result []*OrgDomainView
|
|
Sequence uint64
|
|
Timestamp time.Time
|
|
}
|
|
|
|
func (r *OrgDomainSearchRequest) EnsureLimit(limit uint64) {
|
|
if r.Limit == 0 || r.Limit > limit {
|
|
r.Limit = limit
|
|
}
|
|
}
|