Documentation
¶
Index ¶
- Constants
- Variables
- func ActiveStatusFrom(status ActiveStatus) models.ActiveStatus
- func ActiveStatusPtr(status *ActiveStatus) *models.ActiveStatus
- func ApproveStatusFrom(status qmodels.ApproveStatus) models.ApproveStatus
- func ApproveStatusPtr(status *qmodels.ApproveStatus) *models.ApproveStatus
- func DeletedAt(t gorm.DeletedAt) *time.Time
- func ErrorInvalidField(field, msg string, path ...string) *gqlerror.Error
- func ErrorRequiredField(field string, path ...string) *gqlerror.Error
- func FromApproveStatus(status models.ApproveStatus) qmodels.ApproveStatus
- func PricingModelFrom(pm PricingModel) models.PricingModel
- func StatisticAdListOrder(ord []*StatisticAdKeyOrder) *statistic.ListOrder
- func StatisticGroup(group []StatisticKey) *repository.GroupOption
- type Account
- type ActiveStatus
- type AdFormat
- type AdFormatEdge
- type AdFormatInput
- type AdFormatListFilter
- type AdFormatListOrder
- type AdFormatPayload
- type AnyIPv4IPv6
- func (e AnyIPv4IPv6) Int() int
- func (e *AnyIPv4IPv6) IntPtr() *int
- func (e AnyIPv4IPv6) IsValid() bool
- func (e AnyIPv4IPv6) MarshalGQL(w io.Writer)
- func (e AnyIPv4IPv6) MarshalJSON() ([]byte, error)
- func (e AnyIPv4IPv6) String() string
- func (e *AnyIPv4IPv6) UnmarshalGQL(v any) error
- func (e *AnyIPv4IPv6) UnmarshalJSON(b []byte) error
- type AnyOnlyExclude
- func (e AnyOnlyExclude) Int() int
- func (e *AnyOnlyExclude) IntPtr() *int
- func (e AnyOnlyExclude) IsValid() bool
- func (e AnyOnlyExclude) MarshalGQL(w io.Writer)
- func (e AnyOnlyExclude) MarshalJSON() ([]byte, error)
- func (e AnyOnlyExclude) String() string
- func (e *AnyOnlyExclude) UnmarshalGQL(v any) error
- func (e *AnyOnlyExclude) UnmarshalJSON(b []byte) error
- type Application
- type ApplicationCreateInput
- type ApplicationEdge
- type ApplicationListFilter
- type ApplicationListOrder
- type ApplicationPayload
- type ApplicationType
- func (e ApplicationType) IsValid() bool
- func (e ApplicationType) MarshalGQL(w io.Writer)
- func (e ApplicationType) MarshalJSON() ([]byte, error)
- func (e ApplicationType) ModelType() models.ApplicationType
- func (e ApplicationType) String() string
- func (e *ApplicationType) UnmarshalGQL(v any) error
- func (e *ApplicationType) UnmarshalJSON(b []byte) error
- type ApplicationUpdateInput
- type AuctionType
- func (e AuctionType) AuctionType() models.AuctionType
- func (e *AuctionType) AuctionTypePtr() *models.AuctionType
- func (e AuctionType) IsValid() bool
- func (e AuctionType) MarshalGQL(w io.Writer)
- func (e AuctionType) MarshalJSON() ([]byte, error)
- func (e AuctionType) String() string
- func (e *AuctionType) UnmarshalGQL(v any) error
- func (e *AuctionType) UnmarshalJSON(b []byte) error
- type AuthClient
- type Browser
- type BrowserCreateInput
- type BrowserEdge
- type BrowserListFilter
- type BrowserListOrder
- type BrowserPayload
- type BrowserUpdateInput
- type Category
- type CategoryEdge
- type CategoryInput
- type CategoryListFilter
- type CategoryListOrder
- type CategoryPayload
- type Continent
- type Coordinates
- type Country
- type DeviceMaker
- type DeviceMakerCreateInput
- type DeviceMakerEdge
- type DeviceMakerListFilter
- type DeviceMakerListOrder
- type DeviceMakerPayload
- type DeviceMakerUpdateInput
- type DeviceModel
- type DeviceModelCreateInput
- type DeviceModelEdge
- type DeviceModelListFilter
- type DeviceModelListOrder
- type DeviceModelPayload
- type DeviceModelUpdateInput
- type DeviceType
- type HistoryAction
- type HistoryActionEdge
- type HistoryActionListFilter
- type HistoryActionListOrder
- type HistoryActionPayload
- type Lang
- type LangListFilter
- type OSCreateInput
- type OSEdge
- type OSListFilter
- type OSListOrder
- type OSPayload
- type OSUpdateInput
- type Option
- type Os
- type Page
- type PlatformType
- func (e PlatformType) IsValid() bool
- func (e PlatformType) MarshalGQL(w io.Writer)
- func (e PlatformType) MarshalJSON() ([]byte, error)
- func (e PlatformType) ModelType() models.PlatformType
- func (e PlatformType) String() string
- func (e *PlatformType) UnmarshalGQL(v any) error
- func (e *PlatformType) UnmarshalJSON(b []byte) error
- type PricingModel
- func (e PricingModel) IsValid() bool
- func (e PricingModel) MarshalGQL(w io.Writer)
- func (e PricingModel) MarshalJSON() ([]byte, error)
- func (pm PricingModel) ModelType() models.PricingModel
- func (e PricingModel) String() string
- func (e *PricingModel) UnmarshalGQL(v any) error
- func (e *PricingModel) UnmarshalJSON(b []byte) error
- type PrivateStatus
- func (e PrivateStatus) IsValid() bool
- func (e PrivateStatus) MarshalGQL(w io.Writer)
- func (e PrivateStatus) MarshalJSON() ([]byte, error)
- func (e *PrivateStatus) ModelStatus() models.PrivateStatus
- func (e *PrivateStatus) ModelStatusPtr() *models.PrivateStatus
- func (e PrivateStatus) String() string
- func (e *PrivateStatus) UnmarshalGQL(v any) error
- func (e *PrivateStatus) UnmarshalJSON(b []byte) error
- type RBACRole
- type RTBRequestFormatType
- func (e RTBRequestFormatType) IsValid() bool
- func (e RTBRequestFormatType) MarshalGQL(w io.Writer)
- func (e RTBRequestFormatType) MarshalJSON() ([]byte, error)
- func (e RTBRequestFormatType) RequestType() models.RTBRequestType
- func (e *RTBRequestFormatType) RequestTypePtr() *models.RTBRequestType
- func (e RTBRequestFormatType) String() string
- func (e *RTBRequestFormatType) UnmarshalGQL(v any) error
- func (e *RTBRequestFormatType) UnmarshalJSON(b []byte) error
- type RTBSource
- type RTBSourceCreateInput
- type RTBSourceEdge
- type RTBSourceListFilter
- type RTBSourceListOrder
- type RTBSourcePayload
- type RTBSourceUpdateInput
- type SessionToken
- type SocialAccount
- type StatisticAdItem
- type StatisticAdKeyCondition
- type StatisticAdKeyOrder
- type StatisticAdListFilter
- type StatisticCondition
- func (op StatisticCondition) AsQueryOp() statistic.Operation
- func (e StatisticCondition) IsValid() bool
- func (e StatisticCondition) MarshalGQL(w io.Writer)
- func (e StatisticCondition) MarshalJSON() ([]byte, error)
- func (e StatisticCondition) String() string
- func (e *StatisticCondition) UnmarshalGQL(v any) error
- func (e *StatisticCondition) UnmarshalJSON(b []byte) error
- type StatisticItemKey
- type StatisticKey
- func (key StatisticKey) AsQueryKey() statistic.Key
- func (e StatisticKey) IsValid() bool
- func (e StatisticKey) MarshalGQL(w io.Writer)
- func (e StatisticKey) MarshalJSON() ([]byte, error)
- func (e StatisticKey) String() string
- func (e *StatisticKey) UnmarshalGQL(v any) error
- func (e *StatisticKey) UnmarshalJSON(b []byte) error
- type StatisticOrderingKey
- func (e StatisticOrderingKey) IsValid() bool
- func (e StatisticOrderingKey) MarshalGQL(w io.Writer)
- func (e StatisticOrderingKey) MarshalJSON() ([]byte, error)
- func (e StatisticOrderingKey) String() string
- func (e *StatisticOrderingKey) UnmarshalGQL(v any) error
- func (e *StatisticOrderingKey) UnmarshalJSON(b []byte) error
- type StatusResponse
- type TimeZone
- type TrafficRouter
- type TrafficRouterCreateInput
- type TrafficRouterEdge
- type TrafficRouterListFilter
- type TrafficRouterListOrder
- type TrafficRouterPayload
- type TrafficRouterUpdateInput
- type User
- type Zone
- type ZoneEdge
- type ZoneInput
- type ZoneListFilter
- type ZoneListOrder
- type ZonePayload
Constants ¶
const ( ActiveStatusActive = bzgqlmodel.ActiveStatusActive ActiveStatusPaused = bzgqlmodel.ActiveStatusPaused )
const ( ResponseStatusSuccess = bzgqlmodel.ResponseStatusSuccess ResponseStatusError = bzgqlmodel.ResponseStatusError )
Variables ¶
var AllAnyIPv4IPv6 = []AnyIPv4IPv6{ AnyIPv4IPv6Any, AnyIPv4IPv6IPv4, AnyIPv4IPv6IPv6, }
var AllAnyOnlyExclude = []AnyOnlyExclude{ AnyOnlyExcludeAny, AnyOnlyExcludeOnly, AnyOnlyExcludeExclude, }
var AllApplicationType = []ApplicationType{ ApplicationTypeUndefined, ApplicationTypeSite, ApplicationTypeApp, ApplicationTypeGame, }
var AllAuctionType = []AuctionType{ AuctionTypeUndefined, AuctionTypeFirstPrice, AuctionTypeSecondPrice, }
var AllPlatformType = []PlatformType{ PlatformTypeUndefined, PlatformTypeWeb, PlatformTypeDesktop, PlatformTypeMobile, PlatformTypeSmartPhone, PlatformTypeTablet, PlatformTypeSmartTv, PlatformTypeGameStation, PlatformTypeSmartWatch, PlatformTypeVr, PlatformTypeSmartGlasses, PlatformTypeSmartBillboard, }
var AllPricingModel = []PricingModel{ PricingModelUndefined, PricingModelCpm, PricingModelCpc, PricingModelCpa, }
var AllPrivateStatus = []PrivateStatus{ PrivateStatusPublic, PrivateStatusPrivate, }
var AllRTBRequestFormatType = []RTBRequestFormatType{ RTBRequestFormatTypeUndefined, RTBRequestFormatTypeJSON, RTBRequestFormatTypeXML, }
var AllStatisticCondition = []StatisticCondition{ StatisticConditionEq, StatisticConditionNotEq, StatisticConditionGt, StatisticConditionGtEq, StatisticConditionLt, StatisticConditionLtEq, StatisticConditionIn, StatisticConditionNotIn, StatisticConditionBetween, StatisticConditionNotBetween, StatisticConditionLike, StatisticConditionNotLike, StatisticConditionIsNull, StatisticConditionIsNotNull, }
var AllStatisticKey = []StatisticKey{ StatisticKeyUndefined, StatisticKeyDatemark, StatisticKeyTimemark, StatisticKeySourceID, StatisticKeyPlatformType, StatisticKeyDomain, StatisticKeyAppID, StatisticKeyZoneID, StatisticKeyFormatID, StatisticKeyCarrierID, StatisticKeyCountry, StatisticKeyLanguage, StatisticKeyIP, StatisticKeyDeviceID, StatisticKeyDeviceType, StatisticKeyOsID, StatisticKeyBrowserID, }
var AllStatisticOrderingKey = []StatisticOrderingKey{ StatisticOrderingKeyUndefined, StatisticOrderingKeyDatemark, StatisticOrderingKeyTimemark, StatisticOrderingKeySourceID, StatisticOrderingKeyPlatformType, StatisticOrderingKeyDomain, StatisticOrderingKeyAppID, StatisticOrderingKeyZoneID, StatisticOrderingKeyFormatID, StatisticOrderingKeyCarrierID, StatisticOrderingKeyCountry, StatisticOrderingKeyLanguage, StatisticOrderingKeyIP, StatisticOrderingKeyDeviceID, StatisticOrderingKeyDeviceType, StatisticOrderingKeyOsID, StatisticOrderingKeyBrowserID, StatisticOrderingKeyProfit, StatisticOrderingKeyBidPrice, StatisticOrderingKeyRequests, StatisticOrderingKeyImpressions, StatisticOrderingKeyViews, StatisticOrderingKeyDirects, StatisticOrderingKeyClicks, StatisticOrderingKeyBids, StatisticOrderingKeyWins, StatisticOrderingKeySkips, StatisticOrderingKeyNobids, StatisticOrderingKeyErrors, StatisticOrderingKeyCtr, StatisticOrderingKeyEcpm, StatisticOrderingKeyEcpc, StatisticOrderingKeyEcpa, }
Functions ¶
func ActiveStatusFrom ¶
func ActiveStatusFrom(status ActiveStatus) models.ActiveStatus
func ActiveStatusPtr ¶
func ActiveStatusPtr(status *ActiveStatus) *models.ActiveStatus
func ApproveStatusFrom ¶
func ApproveStatusFrom(status qmodels.ApproveStatus) models.ApproveStatus
func ApproveStatusPtr ¶
func ApproveStatusPtr(status *qmodels.ApproveStatus) *models.ApproveStatus
func FromApproveStatus ¶
func FromApproveStatus(status models.ApproveStatus) qmodels.ApproveStatus
func PricingModelFrom ¶
func PricingModelFrom(pm PricingModel) models.PricingModel
func StatisticAdListOrder ¶
func StatisticAdListOrder(ord []*StatisticAdKeyOrder) *statistic.ListOrder
func StatisticGroup ¶
func StatisticGroup(group []StatisticKey) *repository.GroupOption
Types ¶
type Account ¶
type Account = bzgqlmodel.Account
type ActiveStatus ¶
type ActiveStatus = bzgqlmodel.ActiveStatus
func FromActiveStatus ¶
func FromActiveStatus(status models.ActiveStatus) ActiveStatus
type AdFormat ¶
type AdFormat struct {
// Ad format ID
ID uint64 `json:"ID"`
// Codename of the ad format
Codename string `json:"codename"`
// Ad format type
Type string `json:"type"`
// Ad format title
Title string `json:"title"`
// Ad format description
Description string `json:"description"`
// Active status of the ad format
Active models.ActiveStatus `json:"active"`
// Width of the ad format
Width int `json:"width"`
// Height of the ad format
Height int `json:"height"`
// Minimum width of the ad format
MinWidth int `json:"minWidth"`
// Minimum height of the ad format
MinHeight int `json:"minHeight"`
// Configurations of the ad format which includes structure of assets and their properties
Config types.NullableJSON `json:"config"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
func FromAdFormatModel ¶
func FromAdFormatModelList ¶
type AdFormatEdge ¶
type AdFormatInput ¶
type AdFormatInput struct {
// Codename of the ad format
Codename *string `json:"codename,omitempty"`
// Ad format type
Type *string `json:"type,omitempty"`
// Ad format title
Title *string `json:"title,omitempty"`
// Ad format description
Description *string `json:"description,omitempty"`
// Active status of the ad format
Active *models.ActiveStatus `json:"active,omitempty"`
// Width of the ad format
Width *int `json:"width,omitempty"`
// Height of the ad format
Height *int `json:"height,omitempty"`
// Minimum width of the ad format
MinWidth *int `json:"minWidth,omitempty"`
// Minimum height of the ad format
MinHeight *int `json:"minHeight,omitempty"`
// Configurations of the ad format which includes structure of assets and their properties
Config *types.JSON `json:"config,omitempty"`
}
Input for querying ad formats
func (*AdFormatInput) FillModel ¶
func (inp *AdFormatInput) FillModel(m *models.Format)
type AdFormatListFilter ¶
type AdFormatListFilter struct {
ID []uint64 `json:"ID,omitempty"`
Codename []string `json:"codename,omitempty"`
Type []string `json:"type,omitempty"`
Title []string `json:"title,omitempty"`
Active []models.ActiveStatus `json:"active,omitempty"`
}
func (*AdFormatListFilter) Filter ¶
func (fl *AdFormatListFilter) Filter() *adformat.Filter
type AdFormatListOrder ¶
type AdFormatListOrder struct {
ID *models.Ordering `json:"ID,omitempty"`
Codename *models.Ordering `json:"codename,omitempty"`
Type *models.Ordering `json:"type,omitempty"`
Title *models.Ordering `json:"title,omitempty"`
Active *models.Ordering `json:"active,omitempty"`
CreatedAt *models.Ordering `json:"createdAt,omitempty"`
UpdatedAt *models.Ordering `json:"updatedAt,omitempty"`
}
func (*AdFormatListOrder) Order ¶
func (ord *AdFormatListOrder) Order() *adformat.ListOrder
type AdFormatPayload ¶
type AdFormatPayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID string `json:"clientMutationID"`
// The AdFormat that was created by this mutation.
FormatID uint64 `json:"formatID"`
// The AdFormat object accessible by a client.
Format *AdFormat `json:"format"`
}
type AnyIPv4IPv6 ¶
type AnyIPv4IPv6 string
const ( AnyIPv4IPv6Any AnyIPv4IPv6 = "ANY" AnyIPv4IPv6IPv4 AnyIPv4IPv6 = "IPv4" AnyIPv4IPv6IPv6 AnyIPv4IPv6 = "IPv6" )
func FromAnyIPv4IPv6 ¶
func FromAnyIPv4IPv6(status int) AnyIPv4IPv6
func (AnyIPv4IPv6) Int ¶
func (e AnyIPv4IPv6) Int() int
func (*AnyIPv4IPv6) IntPtr ¶
func (e *AnyIPv4IPv6) IntPtr() *int
func (AnyIPv4IPv6) IsValid ¶
func (e AnyIPv4IPv6) IsValid() bool
func (AnyIPv4IPv6) MarshalGQL ¶
func (e AnyIPv4IPv6) MarshalGQL(w io.Writer)
func (AnyIPv4IPv6) MarshalJSON ¶
func (e AnyIPv4IPv6) MarshalJSON() ([]byte, error)
func (AnyIPv4IPv6) String ¶
func (e AnyIPv4IPv6) String() string
func (*AnyIPv4IPv6) UnmarshalGQL ¶
func (e *AnyIPv4IPv6) UnmarshalGQL(v any) error
func (*AnyIPv4IPv6) UnmarshalJSON ¶
func (e *AnyIPv4IPv6) UnmarshalJSON(b []byte) error
type AnyOnlyExclude ¶
type AnyOnlyExclude string
const ( AnyOnlyExcludeAny AnyOnlyExclude = "ANY" AnyOnlyExcludeOnly AnyOnlyExclude = "ONLY" AnyOnlyExcludeExclude AnyOnlyExclude = "EXCLUDE" )
func FromAnyOnlyExclude ¶
func FromAnyOnlyExclude(status int) AnyOnlyExclude
func (AnyOnlyExclude) Int ¶
func (e AnyOnlyExclude) Int() int
func (*AnyOnlyExclude) IntPtr ¶
func (e *AnyOnlyExclude) IntPtr() *int
func (AnyOnlyExclude) IsValid ¶
func (e AnyOnlyExclude) IsValid() bool
func (AnyOnlyExclude) MarshalGQL ¶
func (e AnyOnlyExclude) MarshalGQL(w io.Writer)
func (AnyOnlyExclude) MarshalJSON ¶
func (e AnyOnlyExclude) MarshalJSON() ([]byte, error)
func (AnyOnlyExclude) String ¶
func (e AnyOnlyExclude) String() string
func (*AnyOnlyExclude) UnmarshalGQL ¶
func (e *AnyOnlyExclude) UnmarshalGQL(v any) error
func (*AnyOnlyExclude) UnmarshalJSON ¶
func (e *AnyOnlyExclude) UnmarshalJSON(b []byte) error
type Application ¶
type Application struct {
ID uint64 `json:"ID"`
AccountID uint64 `json:"accountID"`
CreatorID uint64 `json:"creatorID"`
Title string `json:"title"`
Description string `json:"description"`
// Unique application identifier, e.g., site domain or app bundle
URI string `json:"URI"`
Type ApplicationType `json:"type"`
Platform PlatformType `json:"platform"`
Premium bool `json:"premium"`
// Status of the application
Status models.ApproveStatus `json:"status"`
// Active status of the application
Active models.ActiveStatus `json:"active"`
// Private status of the application
Private PrivateStatus `json:"private"`
// Categories associated with the application
Categories []int `json:"categories,omitempty"`
RevenueShare *float64 `json:"revenueShare,omitempty"`
// Time marks
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
Application object represents a site or mobile/desktop application.
func FromApplicationModel ¶
func FromApplicationModel(obj *models.Application) *Application
func FromApplicationModelList ¶
func FromApplicationModelList(list []*models.Application) []*Application
type ApplicationCreateInput ¶
type ApplicationCreateInput struct {
// Account ID associated with the application and can be defined if have permission
AccountID *uint64 `json:"accountID,omitempty"`
Title string `json:"title"`
Description *string `json:"description,omitempty"`
// Unique application identifier, e.g., site domain or app bundle
URI string `json:"URI"`
Type *ApplicationType `json:"type,omitempty"`
Platform *PlatformType `json:"platform,omitempty"`
Categories []int `json:"categories,omitempty"`
}
func (*ApplicationCreateInput) FillModel ¶
func (inp *ApplicationCreateInput) FillModel(trg *models.Application) error
type ApplicationEdge ¶
type ApplicationEdge struct {
// A cursor for use in pagination.
Cursor string `json:"cursor"`
// The Application at the end of ApplicationEdge.
Node *Application `json:"node"`
}
ApplicationEdge wrapper to access Application objects
type ApplicationListFilter ¶
type ApplicationListFilter struct {
ID []uint64 `json:"ID,omitempty"`
Title *string `json:"title,omitempty"`
URI *string `json:"URI,omitempty"`
AccountID *uint64 `json:"accountID,omitempty"`
Type []ApplicationType `json:"type,omitempty"`
Platform []PlatformType `json:"platform,omitempty"`
Premium *bool `json:"premium,omitempty"`
Status *models.ApproveStatus `json:"status,omitempty"`
Active *models.ActiveStatus `json:"active,omitempty"`
Private *PrivateStatus `json:"private,omitempty"`
}
func (*ApplicationListFilter) Filter ¶
func (fl *ApplicationListFilter) Filter() *application.Filter
type ApplicationListOrder ¶
type ApplicationListOrder struct {
ID *models.Ordering `json:"ID,omitempty"`
Title *models.Ordering `json:"title,omitempty"`
URI *models.Ordering `json:"URI,omitempty"`
Type *models.Ordering `json:"type,omitempty"`
Platform *models.Ordering `json:"platform,omitempty"`
Premium *models.Ordering `json:"premium,omitempty"`
Status *models.Ordering `json:"status,omitempty"`
Active *models.Ordering `json:"active,omitempty"`
CreatedAt *models.Ordering `json:"createdAt,omitempty"`
UpdatedAt *models.Ordering `json:"updatedAt,omitempty"`
DeletedAt *models.Ordering `json:"deletedAt,omitempty"`
}
func (*ApplicationListOrder) Order ¶
func (ol *ApplicationListOrder) Order() *application.ListOrder
type ApplicationPayload ¶
type ApplicationPayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID string `json:"clientMutationID"`
// The Application that was created or updated by this mutation.
ApplicationID uint64 `json:"applicationID"`
// The Application object accessible by a client.
Application *Application `json:"application"`
}
ApplicationPayload wrapper to access Application operation results
type ApplicationType ¶
type ApplicationType string
const ( ApplicationTypeUndefined ApplicationType = "UNDEFINED" ApplicationTypeSite ApplicationType = "SITE" ApplicationTypeApp ApplicationType = "APP" ApplicationTypeGame ApplicationType = "GAME" )
func FromApplicationType ¶
func FromApplicationType(tp models.ApplicationType) ApplicationType
func (ApplicationType) IsValid ¶
func (e ApplicationType) IsValid() bool
func (ApplicationType) MarshalGQL ¶
func (e ApplicationType) MarshalGQL(w io.Writer)
func (ApplicationType) MarshalJSON ¶
func (e ApplicationType) MarshalJSON() ([]byte, error)
func (ApplicationType) ModelType ¶
func (e ApplicationType) ModelType() models.ApplicationType
func (ApplicationType) String ¶
func (e ApplicationType) String() string
func (*ApplicationType) UnmarshalGQL ¶
func (e *ApplicationType) UnmarshalGQL(v any) error
func (*ApplicationType) UnmarshalJSON ¶
func (e *ApplicationType) UnmarshalJSON(b []byte) error
type ApplicationUpdateInput ¶
type ApplicationUpdateInput struct {
// Account ID associated with the application and can be defined if have permission
AccountID *uint64 `json:"accountID,omitempty"`
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
// Unique application identifier, e.g., site domain or app bundle
URI *string `json:"URI,omitempty"`
Type *ApplicationType `json:"type,omitempty"`
Platform *PlatformType `json:"platform,omitempty"`
Categories []int `json:"categories,omitempty"`
}
func (*ApplicationUpdateInput) FillModel ¶
func (inp *ApplicationUpdateInput) FillModel(trg *models.Application) error
type AuctionType ¶
type AuctionType string
const ( AuctionTypeUndefined AuctionType = "UNDEFINED" AuctionTypeFirstPrice AuctionType = "FIRST_PRICE" AuctionTypeSecondPrice AuctionType = "SECOND_PRICE" )
func FromAuctionType ¶
func FromAuctionType(t models.AuctionType) AuctionType
func (AuctionType) AuctionType ¶
func (e AuctionType) AuctionType() models.AuctionType
func (*AuctionType) AuctionTypePtr ¶
func (e *AuctionType) AuctionTypePtr() *models.AuctionType
func (AuctionType) IsValid ¶
func (e AuctionType) IsValid() bool
func (AuctionType) MarshalGQL ¶
func (e AuctionType) MarshalGQL(w io.Writer)
func (AuctionType) MarshalJSON ¶
func (e AuctionType) MarshalJSON() ([]byte, error)
func (AuctionType) String ¶
func (e AuctionType) String() string
func (*AuctionType) UnmarshalGQL ¶
func (e *AuctionType) UnmarshalGQL(v any) error
func (*AuctionType) UnmarshalJSON ¶
func (e *AuctionType) UnmarshalJSON(b []byte) error
type AuthClient ¶
type AuthClient = bzgqlmodel.AuthClient
type Browser ¶
type Browser struct {
// Browser ID
ID uint64 `json:"ID"`
// Name of the browser
Name string `json:"name"`
// Description of the browser
Description string `json:"description"`
// Version of the browser
Version string `json:"version"`
// Year of release of the browser
YearRelease int `json:"yearRelease"`
// Year of end of support of the browser
YearEndSupport int `json:"yearEndSupport"`
// Active status of the browser
Active models.ActiveStatus `json:"active"`
MatchNameExp string `json:"matchNameExp"`
MatchUserAgentExp string `json:"matchUserAgentExp"`
MatchVersionMinExp string `json:"matchVersionMinExp"`
MatchVersionMaxExp string `json:"matchVersionMaxExp"`
// Parent ID of the browser group
ParentID uint64 `json:"parentID"`
// Parent object of the browser
Parent *Browser `json:"parent,omitempty"`
// List of child browser
Versions []*Browser `json:"versions,omitempty"`
// Creation time of the browser
CreatedAt time.Time `json:"createdAt"`
// Last update time of the browser
UpdatedAt time.Time `json:"updatedAt"`
// Deletion time of the browser
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
Browser model schema
func FromBrowserModel ¶
func FromBrowserModelList ¶
type BrowserCreateInput ¶
type BrowserCreateInput struct {
// Parent ID of the OS group
ParentID *uint64 `json:"parentID,omitempty"`
// Name of the browser
Name string `json:"name"`
// Version of the browser
Version *string `json:"version,omitempty"`
// Description of the browser
Description *string `json:"description,omitempty"`
// Active status of the browser
Active *models.ActiveStatus `json:"active,omitempty"`
// Year of release of the browser
YearRelease *int `json:"yearRelease,omitempty"`
// Year of end of support of the browser
YearEndSupport *int `json:"yearEndSupport,omitempty"`
MatchNameExp *string `json:"matchNameExp,omitempty"`
MatchUserAgentExp *string `json:"matchUserAgentExp,omitempty"`
MatchVersionMinExp *string `json:"matchVersionMinExp,omitempty"`
MatchVersionMaxExp *string `json:"matchVersionMaxExp,omitempty"`
}
Input for querying create browsers
type BrowserEdge ¶
type BrowserListFilter ¶
type BrowserListFilter struct {
ID []uint64 `json:"ID,omitempty"`
ParentID []uint64 `json:"parentID,omitempty"`
Name []string `json:"name,omitempty"`
Active []models.ActiveStatus `json:"active,omitempty"`
}
func (*BrowserListFilter) Filter ¶
func (fl *BrowserListFilter) Filter() *browser.Filter
type BrowserListOrder ¶
type BrowserListOrder struct {
ID *models.Ordering `json:"ID,omitempty"`
Name *models.Ordering `json:"name,omitempty"`
Active *models.Ordering `json:"active,omitempty"`
CreatedAt *models.Ordering `json:"createdAt,omitempty"`
UpdatedAt *models.Ordering `json:"updatedAt,omitempty"`
YearRelease *models.Ordering `json:"yearRelease,omitempty"`
}
func (*BrowserListOrder) Fill ¶
func (ol *BrowserListOrder) Fill(order *browser.ListOrder)
func (*BrowserListOrder) Order ¶
func (ol *BrowserListOrder) Order() *browser.ListOrder
type BrowserPayload ¶
type BrowserPayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID string `json:"clientMutationID"`
// The Browser that was created by this mutation.
BrowserID uint64 `json:"browserID"`
// The Browser object accessible by a client.
Browser *Browser `json:"browser"`
}
type BrowserUpdateInput ¶
type BrowserUpdateInput struct {
// Name of the browser
Name *string `json:"name,omitempty"`
// Version of the browser
Version *string `json:"version,omitempty"`
// Description of the browser
Description *string `json:"description,omitempty"`
// Active status of the browser
Active *models.ActiveStatus `json:"active,omitempty"`
// Year of release of the browser
YearRelease *int `json:"yearRelease,omitempty"`
// Year of end of support of the browser
YearEndSupport *int `json:"yearEndSupport,omitempty"`
MatchNameExp *string `json:"matchNameExp,omitempty"`
MatchUserAgentExp *string `json:"matchUserAgentExp,omitempty"`
MatchVersionMinExp *string `json:"matchVersionMinExp,omitempty"`
MatchVersionMaxExp *string `json:"matchVersionMaxExp,omitempty"`
}
Input for querying update browsers
type Category ¶
type Category struct {
// Category ID
ID uint64 `json:"ID"`
// Name of the category
Name string `json:"name"`
// Description of the category
Description string `json:"description"`
// IAB category code of OpenRTB
IABCode string `json:"IABCode"`
// Parent category ID
ParentID *uint64 `json:"parentID,omitempty"`
// Parent category object
Parent *Category `json:"parent,omitempty"`
// Child categories
Childrens []*Category `json:"childrens"`
// Position of the category
Position int `json:"position"`
// Active status of the category
Active models.ActiveStatus `json:"active"`
// Creation time of the category
CreatedAt time.Time `json:"createdAt"`
// Last update time of the category
UpdatedAt time.Time `json:"updatedAt"`
// Deletion time of the category
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
Advertising category schema
func FromCategoryModel ¶
func FromCategoryModelList ¶
type CategoryEdge ¶
type CategoryInput ¶
type CategoryInput struct {
// Name of the category
Name *string `json:"name,omitempty"`
// Description of the category
Description *string `json:"description,omitempty"`
// IAB category code of OpenRTB
IABCode *string `json:"IABCode,omitempty"`
// Parent category ID
ParentID *uint64 `json:"parentID,omitempty"`
// Position of the category
Position *int `json:"position,omitempty"`
// Active status of the category
Active *models.ActiveStatus `json:"active,omitempty"`
}
Input for querying categories
func (*CategoryInput) FillModel ¶
func (m *CategoryInput) FillModel(category *models.Category)
type CategoryListFilter ¶
type CategoryListFilter struct {
ID []uint64 `json:"ID,omitempty"`
Name []string `json:"name,omitempty"`
IABCode []string `json:"IABCode,omitempty"`
ParentID []uint64 `json:"parentID,omitempty"`
Active []models.ActiveStatus `json:"active,omitempty"`
}
func (*CategoryListFilter) Filter ¶
func (fl *CategoryListFilter) Filter() *category.Filter
type CategoryListOrder ¶
type CategoryListOrder struct {
ID *models.Ordering `json:"ID,omitempty"`
Name *models.Ordering `json:"name,omitempty"`
IABCode *models.Ordering `json:"IABCode,omitempty"`
ParentID *models.Ordering `json:"parentID,omitempty"`
Position *models.Ordering `json:"position,omitempty"`
Active *models.Ordering `json:"active,omitempty"`
CreatedAt *models.Ordering `json:"createdAt,omitempty"`
UpdatedAt *models.Ordering `json:"updatedAt,omitempty"`
}
func (*CategoryListOrder) Order ¶
func (ol *CategoryListOrder) Order() *category.ListOrder
type CategoryPayload ¶
type CategoryPayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID string `json:"clientMutationID"`
// The Category that was created by this mutation.
CategoryID uint64 `json:"categoryID"`
// The Category object accessible by a client.
Category *Category `json:"category"`
}
type Continent ¶
type Continent struct {
// Continent ID
ID uint64 `json:"ID"`
// Continent code2
Code2 string `json:"code2"`
// Continent name
Name string `json:"name"`
// List of countries
Countries []*Country `json:"countries,omitempty"`
}
func FromGeoContinentByCode ¶
func FromGeoContinentModel ¶
type Coordinates ¶
type Country ¶
type Country struct {
// Country ID
ID uint64 `json:"ID"`
// Country code2
Code2 string `json:"code2"`
// Country code3
Code3 string `json:"code3"`
// Country name
Name string `json:"name"`
// Country native name
NativeName string `json:"nativeName"`
// Continent code
ContinentCode string `json:"continentCode"`
// Continent object
Continent *Continent `json:"continent"`
// Name of the capital city
Capital string `json:"capital"`
// Languages spoken in the country
Languages []string `json:"languages,omitempty"`
// Phone codes for the country
PhoneCodes []string `json:"phoneCodes,omitempty"`
// Time zones for the country
TimeZones []*TimeZone `json:"timeZones,omitempty"`
// Coordinates of the country
Coordinates *Coordinates `json:"coordinates"`
// List of currencies
Currency []string `json:"currency,omitempty"`
}
func FromGeoCountryModel ¶
func FromGeoCountryModelList ¶
type DeviceMaker ¶
type DeviceMaker struct {
// Device maker ID
ID uint64 `json:"ID"`
// Codename of the device maker, equivalent to the device maker ID
// Example: "apple", "samsung", "xiaomi", etc.
Codename string `json:"codename"`
// Name of the device maker
Name string `json:"name"`
// Description of the device type
Description string `json:"description"`
// Expression to match the device maker
MatchExp string `json:"matchExp"`
// List of device models
Models []*DeviceModel `json:"models,omitempty"`
// Active status of the device maker
Active models.ActiveStatus `json:"active"`
// Creation time of the device maker
CreatedAt time.Time `json:"createdAt"`
// Last update time of the device maker
UpdatedAt time.Time `json:"updatedAt"`
// Deletion time of the device maker
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
Device maker schema
func FromDeviceMakerModel ¶
func FromDeviceMakerModel(m *models.DeviceMaker) *DeviceMaker
func FromDeviceMakerModelList ¶
func FromDeviceMakerModelList(list []*models.DeviceMaker) []*DeviceMaker
type DeviceMakerCreateInput ¶
type DeviceMakerCreateInput struct {
// Codename of the device maker
Codename string `json:"codename"`
// Name of the device maker
Name string `json:"name"`
// Description of the device maker
Description *string `json:"description,omitempty"`
// Expression to match the device maker
MatchExp *string `json:"matchExp,omitempty"`
// Active status of the device maker
Active models.ActiveStatus `json:"active"`
}
Input for querying device maker create
func (*DeviceMakerCreateInput) FillModel ¶
func (inp *DeviceMakerCreateInput) FillModel(m *models.DeviceMaker) error
type DeviceMakerEdge ¶
type DeviceMakerEdge struct {
// A cursor for use in pagination
Cursor string `json:"cursor"`
// The DeviceMaker at the end of the edge
Node *DeviceMaker `json:"node"`
}
type DeviceMakerListFilter ¶
type DeviceMakerListFilter struct {
ID []uint64 `json:"ID,omitempty"`
Codename []string `json:"codename,omitempty"`
Name []string `json:"name,omitempty"`
Active []models.ActiveStatus `json:"active,omitempty"`
}
func (*DeviceMakerListFilter) Filter ¶
func (fl *DeviceMakerListFilter) Filter() *devicemaker.Filter
type DeviceMakerListOrder ¶
type DeviceMakerListOrder struct {
ID *models.Ordering `json:"ID,omitempty"`
Codename *models.Ordering `json:"codename,omitempty"`
Name *models.Ordering `json:"name,omitempty"`
Active *models.Ordering `json:"active,omitempty"`
CreatedAt *models.Ordering `json:"createdAt,omitempty"`
UpdatedAt *models.Ordering `json:"updatedAt,omitempty"`
}
func (*DeviceMakerListOrder) Fill ¶
func (ol *DeviceMakerListOrder) Fill(vl *devicemaker.ListOrder)
func (*DeviceMakerListOrder) Order ¶
func (ol *DeviceMakerListOrder) Order() *devicemaker.ListOrder
type DeviceMakerPayload ¶
type DeviceMakerPayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID string `json:"clientMutationID"`
// The DeviceMaker that was created by this mutation.
MakerID uint64 `json:"makerID"`
// The DeviceMaker object accessible by a client.
Maker *DeviceMaker `json:"maker"`
}
type DeviceMakerUpdateInput ¶
type DeviceMakerUpdateInput struct {
// Codename of the device maker
Codename *string `json:"codename,omitempty"`
// Name of the device maker
Name *string `json:"name,omitempty"`
// Description of the device maker
Description *string `json:"description,omitempty"`
// Expression to match the device maker
MatchExp *string `json:"matchExp,omitempty"`
// Active status of the device maker
Active *models.ActiveStatus `json:"active,omitempty"`
}
Input for querying device maker update
func (*DeviceMakerUpdateInput) FillModel ¶
func (inp *DeviceMakerUpdateInput) FillModel(m *models.DeviceMaker)
type DeviceModel ¶
type DeviceModel struct {
// Device model ID
ID uint64 `json:"ID"`
// Device model codename
Codename string `json:"codename"`
// Name of the device model
Name string `json:"name"`
// Description of the device type
Description string `json:"description"`
// Version of the device model
Version string `json:"version"`
// Year of release of the device model
YearRelease int `json:"yearRelease"`
// Device parent ID
ParentID *uint64 `json:"parentID,omitempty"`
// Device parent object if exists
Parent *DeviceModel `json:"parent,omitempty"`
// Expression to match the device model
MatchExp string `json:"matchExp"`
// Device type codename
TypeCodename string `json:"typeCodename"`
// Device type object
Type *DeviceType `json:"type,omitempty"`
// Device maker codename
MakerCodename string `json:"makerCodename"`
// Device maker object
Maker *DeviceMaker `json:"maker,omitempty"`
// List of device model versions
Versions []*DeviceModel `json:"versions,omitempty"`
// Active status of the device model
Active models.ActiveStatus `json:"active"`
// Creation time of the device model
CreatedAt time.Time `json:"createdAt"`
// Last update time of the device model
UpdatedAt time.Time `json:"updatedAt"`
// Deletion time of the device model
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
Device model schema
func FromDeviceModelModel ¶
func FromDeviceModelModel(m *models.DeviceModel) *DeviceModel
func FromDeviceModelModelList ¶
func FromDeviceModelModelList(list []*models.DeviceModel) []*DeviceModel
type DeviceModelCreateInput ¶
type DeviceModelCreateInput struct {
// Name of the device model
Name string `json:"name"`
// Code name of the device model
Codename string `json:"codename"`
// Description of the device model
Description *string `json:"description,omitempty"`
// Version of the device model
Version string `json:"version"`
// Device parent ID
ParentID *uint64 `json:"parentID,omitempty"`
// Expression to match the device model
MatchExp *string `json:"matchExp,omitempty"`
// Device type codename
TypeCodename string `json:"typeCodename"`
// Device maker codename
MakerCodename string `json:"makerCodename"`
// Active status of the device model
Active models.ActiveStatus `json:"active"`
}
Input for querying create device models
func (*DeviceModelCreateInput) FillModel ¶
func (inp *DeviceModelCreateInput) FillModel(m *models.DeviceModel) error
type DeviceModelEdge ¶
type DeviceModelEdge struct {
// A cursor for use in pagination
Cursor string `json:"cursor"`
// The DeviceModel at the end of the edge
Node *DeviceModel `json:"node"`
}
type DeviceModelListFilter ¶
type DeviceModelListFilter struct {
ID []uint64 `json:"ID,omitempty"`
ParentID []uint64 `json:"parentID,omitempty"`
Codename []string `json:"codename,omitempty"`
Name []string `json:"name,omitempty"`
TypeCodename []string `json:"typeCodename,omitempty"`
MakerCodename []string `json:"makerCodename,omitempty"`
Active []models.ActiveStatus `json:"active,omitempty"`
}
Input model list filter
func (*DeviceModelListFilter) Filter ¶
func (fl *DeviceModelListFilter) Filter() *devicemodel.Filter
type DeviceModelListOrder ¶
type DeviceModelListOrder struct {
ID *models.Ordering `json:"ID,omitempty"`
Codename *models.Ordering `json:"codename,omitempty"`
Name *models.Ordering `json:"name,omitempty"`
TypeCodename *models.Ordering `json:"typeCodename,omitempty"`
MakerCodename *models.Ordering `json:"makerCodename,omitempty"`
Active *models.Ordering `json:"active,omitempty"`
CreatedAt *models.Ordering `json:"createdAt,omitempty"`
UpdatedAt *models.Ordering `json:"updatedAt,omitempty"`
YearRelease *models.Ordering `json:"yearRelease,omitempty"`
}
func (*DeviceModelListOrder) Fill ¶
func (ol *DeviceModelListOrder) Fill(vl *devicemodel.ListOrder)
func (*DeviceModelListOrder) Order ¶
func (ol *DeviceModelListOrder) Order() *devicemodel.ListOrder
type DeviceModelPayload ¶
type DeviceModelPayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID string `json:"clientMutationID"`
// The DeviceModel that was created by this mutation.
ModelID uint64 `json:"modelID"`
// The DeviceModel object accessible by a client.
Model *DeviceModel `json:"model"`
}
type DeviceModelUpdateInput ¶
type DeviceModelUpdateInput struct {
// Name of the device model
Name *string `json:"name,omitempty"`
// Code name of the device model
Codename *string `json:"codename,omitempty"`
// Description of the device model
Description *string `json:"description,omitempty"`
// Version of the device model
Version *string `json:"version,omitempty"`
// Device parent ID
ParentID *uint64 `json:"parentID,omitempty"`
// Expression to match the device model
MatchExp *string `json:"matchExp,omitempty"`
// Device type codename
TypeCodename *string `json:"typeCodename,omitempty"`
// Device maker codename
MakerCodename *string `json:"makerCodename,omitempty"`
// Active status of the device model
Active *models.ActiveStatus `json:"active,omitempty"`
}
Input for querying update device models
func (*DeviceModelUpdateInput) FillModel ¶
func (inp *DeviceModelUpdateInput) FillModel(m *models.DeviceModel)
type DeviceType ¶
type DeviceType struct {
// Device type ID
ID uint64 `json:"ID"`
// Name of the device type
Name string `json:"name"`
// Codename of the device type, equivalent to the device type ID
// Example: "smartphone", "tablet", "smartwatch", etc.
Codename string `json:"codename"`
// Description of the device type
Description string `json:"description"`
// Active status of the device type
Active models.ActiveStatus `json:"active"`
}
Device type schema
func FromDeviceTypeModel ¶
func FromDeviceTypeModel(m *models.DeviceType) *DeviceType
func FromDeviceTypeModelList ¶
func FromDeviceTypeModelList(m []*models.DeviceType) []*DeviceType
type HistoryAction ¶
type HistoryAction = bzgqlmodel.HistoryAction
type HistoryActionEdge ¶
type HistoryActionEdge = bzgqlmodel.HistoryActionEdge
type HistoryActionListFilter ¶
type HistoryActionListFilter = bzgqlmodel.HistoryActionListFilter
type HistoryActionListOrder ¶
type HistoryActionListOrder = bzgqlmodel.HistoryActionListOrder
type HistoryActionPayload ¶
type HistoryActionPayload = bzgqlmodel.HistoryActionPayload
type Lang ¶
type Lang struct {
ID uint64 `json:"ID"`
// Language code (ISO 639-1)
Iso2 string `json:"iso2"`
// Name of the language
Name string `json:"name"`
// Native name of the language
NativeName string `json:"nativeName"`
}
Lang is a language used in the system.
type LangListFilter ¶
type OSCreateInput ¶
type OSCreateInput struct {
// Parent ID of the OS group
ParentID *uint64 `json:"parentID,omitempty"`
// Name of the OS
Name string `json:"name"`
// Version of the OS
Version *string `json:"version,omitempty"`
// Description of the OS
Description *string `json:"description,omitempty"`
// Active status of the OS
Active *models.ActiveStatus `json:"active,omitempty"`
// Year of release of the OS
YearRelease *int `json:"yearRelease,omitempty"`
// Year of end of support of the OS
YearEndSupport *int `json:"yearEndSupport,omitempty"`
MatchNameExp *string `json:"matchNameExp,omitempty"`
MatchUserAgentExp *string `json:"matchUserAgentExp,omitempty"`
MatchVersionMinExp *string `json:"matchVersionMinExp,omitempty"`
MatchVersionMaxExp *string `json:"matchVersionMaxExp,omitempty"`
}
Input for querying OS
type OSListFilter ¶
type OSListFilter struct {
ID []uint64 `json:"ID,omitempty"`
ParentID []uint64 `json:"parentID,omitempty"`
Name []string `json:"name,omitempty"`
Active *models.ActiveStatus `json:"active,omitempty"`
}
func (*OSListFilter) Filter ¶
func (fl *OSListFilter) Filter() *os.Filter
type OSListOrder ¶
type OSListOrder struct {
ID *models.Ordering `json:"ID,omitempty"`
Name *models.Ordering `json:"name,omitempty"`
Active *models.Ordering `json:"active,omitempty"`
CreatedAt *models.Ordering `json:"createdAt,omitempty"`
UpdatedAt *models.Ordering `json:"updatedAt,omitempty"`
YearRelease *models.Ordering `json:"yearRelease,omitempty"`
}
func (*OSListOrder) Fill ¶
func (ol *OSListOrder) Fill(order *os.ListOrder)
func (*OSListOrder) Order ¶
func (ol *OSListOrder) Order() *os.ListOrder
type OSUpdateInput ¶
type OSUpdateInput struct {
// Name of the OS
Name *string `json:"name,omitempty"`
// Version of the OS
Version *string `json:"version,omitempty"`
// Description of the OS
Description *string `json:"description,omitempty"`
// Active status of the OS
Active *models.ActiveStatus `json:"active,omitempty"`
// Year of release of the OS
YearRelease *int `json:"yearRelease,omitempty"`
// Year of end of support of the OS
YearEndSupport *int `json:"yearEndSupport,omitempty"`
MatchNameExp *string `json:"matchNameExp,omitempty"`
MatchUserAgentExp *string `json:"matchUserAgentExp,omitempty"`
MatchVersionMinExp *string `json:"matchVersionMinExp,omitempty"`
MatchVersionMaxExp *string `json:"matchVersionMaxExp,omitempty"`
}
type Option ¶
type Option = bzgqlmodel.Option
type Os ¶
type Os struct {
// OS ID
ID uint64 `json:"ID"`
// Name of the OS
Name string `json:"name"`
// Description of the OS
Description string `json:"description"`
// Version of the OS
Version string `json:"version"`
// Year of release of the OS
YearRelease int `json:"yearRelease"`
// Year of end of support of the OS
YearEndSupport int `json:"yearEndSupport"`
// Active status of the OS
Active models.ActiveStatus `json:"active"`
MatchNameExp string `json:"matchNameExp"`
MatchUserAgentExp string `json:"matchUserAgentExp"`
MatchVersionMinExp string `json:"matchVersionMinExp"`
MatchVersionMaxExp string `json:"matchVersionMaxExp"`
// Parent ID of the OS group
ParentID uint64 `json:"parentID"`
// Parent object of the OS
Parent *Os `json:"parent,omitempty"`
// List of child OS
Versions []*Os `json:"versions,omitempty"`
// Creation time of the OS
CreatedAt time.Time `json:"createdAt"`
// Last update time of the OS
UpdatedAt time.Time `json:"updatedAt"`
// Deletion time of the OS
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
OS model schema
func FromOSModel ¶
func FromOSModelList ¶
type Page ¶
type Page = bzgqlmodel.Page
type PlatformType ¶
type PlatformType string
const ( PlatformTypeUndefined PlatformType = "UNDEFINED" PlatformTypeWeb PlatformType = "WEB" PlatformTypeDesktop PlatformType = "DESKTOP" PlatformTypeMobile PlatformType = "MOBILE" PlatformTypeSmartPhone PlatformType = "SMART_PHONE" PlatformTypeTablet PlatformType = "TABLET" PlatformTypeSmartTv PlatformType = "SMART_TV" PlatformTypeGameStation PlatformType = "GAME_STATION" PlatformTypeSmartWatch PlatformType = "SMART_WATCH" PlatformTypeVr PlatformType = "VR" PlatformTypeSmartGlasses PlatformType = "SMART_GLASSES" PlatformTypeSmartBillboard PlatformType = "SMART_BILLBOARD" )
func FromPlatformType ¶
func FromPlatformType(tp models.PlatformType) PlatformType
func (PlatformType) IsValid ¶
func (e PlatformType) IsValid() bool
func (PlatformType) MarshalGQL ¶
func (e PlatformType) MarshalGQL(w io.Writer)
func (PlatformType) MarshalJSON ¶
func (e PlatformType) MarshalJSON() ([]byte, error)
func (PlatformType) ModelType ¶
func (e PlatformType) ModelType() models.PlatformType
func (PlatformType) String ¶
func (e PlatformType) String() string
func (*PlatformType) UnmarshalGQL ¶
func (e *PlatformType) UnmarshalGQL(v any) error
func (*PlatformType) UnmarshalJSON ¶
func (e *PlatformType) UnmarshalJSON(b []byte) error
type PricingModel ¶
type PricingModel string
const ( PricingModelUndefined PricingModel = "UNDEFINED" PricingModelCpm PricingModel = "CPM" PricingModelCpc PricingModel = "CPC" PricingModelCpa PricingModel = "CPA" )
func FromPricingModel ¶
func FromPricingModel(pm models.PricingModel) PricingModel
func (PricingModel) IsValid ¶
func (e PricingModel) IsValid() bool
func (PricingModel) MarshalGQL ¶
func (e PricingModel) MarshalGQL(w io.Writer)
func (PricingModel) MarshalJSON ¶
func (e PricingModel) MarshalJSON() ([]byte, error)
func (PricingModel) ModelType ¶
func (pm PricingModel) ModelType() models.PricingModel
func (PricingModel) String ¶
func (e PricingModel) String() string
func (*PricingModel) UnmarshalGQL ¶
func (e *PricingModel) UnmarshalGQL(v any) error
func (*PricingModel) UnmarshalJSON ¶
func (e *PricingModel) UnmarshalJSON(b []byte) error
type PrivateStatus ¶
type PrivateStatus string
const ( PrivateStatusPublic PrivateStatus = "PUBLIC" PrivateStatusPrivate PrivateStatus = "PRIVATE" )
func FromPrivateStatus ¶
func FromPrivateStatus(status models.PrivateStatus) PrivateStatus
func (PrivateStatus) IsValid ¶
func (e PrivateStatus) IsValid() bool
func (PrivateStatus) MarshalGQL ¶
func (e PrivateStatus) MarshalGQL(w io.Writer)
func (PrivateStatus) MarshalJSON ¶
func (e PrivateStatus) MarshalJSON() ([]byte, error)
func (*PrivateStatus) ModelStatus ¶
func (e *PrivateStatus) ModelStatus() models.PrivateStatus
func (*PrivateStatus) ModelStatusPtr ¶
func (e *PrivateStatus) ModelStatusPtr() *models.PrivateStatus
func (PrivateStatus) String ¶
func (e PrivateStatus) String() string
func (*PrivateStatus) UnmarshalGQL ¶
func (e *PrivateStatus) UnmarshalGQL(v any) error
func (*PrivateStatus) UnmarshalJSON ¶
func (e *PrivateStatus) UnmarshalJSON(b []byte) error
type RBACRole ¶
type RBACRole = bzgqlmodel.RBACRole
type RTBRequestFormatType ¶
type RTBRequestFormatType string
const ( RTBRequestFormatTypeUndefined RTBRequestFormatType = "UNDEFINED" RTBRequestFormatTypeJSON RTBRequestFormatType = "JSON" RTBRequestFormatTypeXML RTBRequestFormatType = "XML" )
func FromRTBRequestType ¶
func FromRTBRequestType(t models.RTBRequestType) RTBRequestFormatType
func (RTBRequestFormatType) IsValid ¶
func (e RTBRequestFormatType) IsValid() bool
func (RTBRequestFormatType) MarshalGQL ¶
func (e RTBRequestFormatType) MarshalGQL(w io.Writer)
func (RTBRequestFormatType) MarshalJSON ¶
func (e RTBRequestFormatType) MarshalJSON() ([]byte, error)
func (RTBRequestFormatType) RequestType ¶
func (e RTBRequestFormatType) RequestType() models.RTBRequestType
func (*RTBRequestFormatType) RequestTypePtr ¶
func (e *RTBRequestFormatType) RequestTypePtr() *models.RTBRequestType
func (RTBRequestFormatType) String ¶
func (e RTBRequestFormatType) String() string
func (*RTBRequestFormatType) UnmarshalGQL ¶
func (e *RTBRequestFormatType) UnmarshalGQL(v any) error
func (*RTBRequestFormatType) UnmarshalJSON ¶
func (e *RTBRequestFormatType) UnmarshalJSON(b []byte) error
type RTBSource ¶
type RTBSource struct {
ID uint64 `json:"ID"`
AccountID uint64 `json:"accountID"`
// Account owner of the traffic router
Account *models.Account `json:"account,omitempty"`
Title string `json:"title"`
Description string `json:"description"`
// Status of source approval, indicating whether the source is approved or not.
Status models.ApproveStatus `json:"status"`
// Active status of the source, indicating whether the source is currently active.
Active models.ActiveStatus `json:"active"`
// Flags associated with the source, stored as a JSON object.
Flags types.NullableJSON `json:"flags"`
Protocol string `json:"protocol"`
MinimalWeight float64 `json:"minimalWeight"`
// URL of the RTB source. This cannot be changed after approval.
URL string `json:"URL"`
Method string `json:"method"`
RequestType RTBRequestFormatType `json:"requestType"`
Headers types.NullableJSON `json:"headers"`
Rps int `json:"RPS"`
Timeout int `json:"timeout"`
Accuracy float64 `json:"accuracy"`
PriceCorrectionReduce float64 `json:"priceCorrectionReduce"`
AuctionType AuctionType `json:"auctionType"`
MinBid float64 `json:"minBid"`
MaxBid float64 `json:"maxBid"`
FormatCodes []string `json:"formatCodes,omitempty"`
Formats []*AdFormat `json:"formats,omitempty"`
DeviceTypeIDs []uint64 `json:"deviceTypeIDs,omitempty"`
DeviceTypes []*DeviceType `json:"deviceTypes,omitempty"`
DeviceIDs []uint64 `json:"deviceIDs,omitempty"`
Devices []*DeviceModel `json:"devices,omitempty"`
OSIDs []uint64 `json:"OSIDs,omitempty"`
Os []*Os `json:"OS,omitempty"`
BrowserIDs []uint64 `json:"browserIDs,omitempty"`
Browsers []*Browser `json:"browsers,omitempty"`
CarrierIDs []uint64 `json:"carrierIDs,omitempty"`
CategoryIDs []uint64 `json:"categoryIDs,omitempty"`
Categories []*Category `json:"categories,omitempty"`
CountryCodes []string `json:"countryCodes,omitempty"`
Countries []*Country `json:"countries,omitempty"`
LanguageCodes []string `json:"languageCodes,omitempty"`
Languages []*Lang `json:"languages,omitempty"`
Domains []string `json:"domains,omitempty"`
ApplicationIDs []uint64 `json:"applicationIDs,omitempty"`
Applications []*Application `json:"applications,omitempty"`
ZoneIDs []uint64 `json:"zoneIDs,omitempty"`
Zones []*Zone `json:"zones,omitempty"`
Secure AnyOnlyExclude `json:"secure"`
AdBlock AnyOnlyExclude `json:"adBlock"`
PrivateBrowsing AnyOnlyExclude `json:"privateBrowsing"`
IP AnyIPv4IPv6 `json:"IP"`
Config types.NullableJSON `json:"config"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
RTBSource object represents a source of RTB (Real-Time Bidding) advertising.
func FromRTBSourceModel ¶
func FromRTBSourceModelList ¶
type RTBSourceCreateInput ¶
type RTBSourceCreateInput struct {
AccountID *uint64 `json:"accountID,omitempty"`
// Title of the RTB source.
Title string `json:"title"`
// Description of the RTB source.
Description *string `json:"description,omitempty"`
// Flags associated with the source.
Flags *types.NullableJSON `json:"flags,omitempty"`
Protocol string `json:"protocol"`
MinimalWeight *float64 `json:"minimalWeight,omitempty"`
// URL of the RTB source. Cannot be changed after approval.
URL string `json:"URL"`
Method string `json:"method"`
RequestType RTBRequestFormatType `json:"requestType"`
Headers *types.NullableJSON `json:"headers,omitempty"`
Rps int `json:"RPS"`
Timeout int `json:"timeout"`
Accuracy float64 `json:"accuracy"`
PriceCorrectionReduce float64 `json:"priceCorrectionReduce"`
AuctionType AuctionType `json:"auctionType"`
MinBid float64 `json:"minBid"`
MaxBid float64 `json:"maxBid"`
FormatCodes []string `json:"formatCodes,omitempty"`
DeviceTypeIDs []uint64 `json:"deviceTypeIDs,omitempty"`
DeviceIDs []uint64 `json:"deviceIDs,omitempty"`
OSIDs []uint64 `json:"OSIDs,omitempty"`
BrowserIDs []uint64 `json:"browserIDs,omitempty"`
CarrierIDs []uint64 `json:"carrierIDs,omitempty"`
CategoryIDs []uint64 `json:"categoryIDs,omitempty"`
CountryCodes []string `json:"countryCodes,omitempty"`
LanguageCodes []string `json:"languageCodes,omitempty"`
ApplicationIDs []uint64 `json:"applicationIDs,omitempty"`
Domains []string `json:"domains,omitempty"`
ZoneIDs []uint64 `json:"zoneIDs,omitempty"`
Secure *AnyOnlyExclude `json:"secure,omitempty"`
AdBlock *AnyOnlyExclude `json:"adBlock,omitempty"`
PrivateBrowsing *AnyOnlyExclude `json:"privateBrowsing,omitempty"`
IP *AnyIPv4IPv6 `json:"IP,omitempty"`
Config *types.NullableJSON `json:"config,omitempty"`
}
Input for creating a new RTBSource.
func (*RTBSourceCreateInput) FillModel ¶
func (inp *RTBSourceCreateInput) FillModel(m *models.RTBSource)
type RTBSourceEdge ¶
type RTBSourceEdge struct {
// A cursor for use in pagination.
Cursor string `json:"cursor"`
// The RTBSource at the end of the RTBSourceEdge.
Node *RTBSource `json:"node"`
}
RTBSourceEdge wrapper to access RTBSource objects in a paginated list.
type RTBSourceListFilter ¶
type RTBSourceListFilter struct {
ID []uint64 `json:"ID,omitempty"`
AccountID *uint64 `json:"accountID,omitempty"`
Protocol []string `json:"protocol,omitempty"`
Status *models.ApproveStatus `json:"status,omitempty"`
Active *models.ActiveStatus `json:"active,omitempty"`
Method []string `json:"method,omitempty"`
RequestType []RTBRequestFormatType `json:"requestType,omitempty"`
AuctionType []AuctionType `json:"auctionType,omitempty"`
}
Filter options for listing RTBSource objects.
func (*RTBSourceListFilter) Filter ¶
func (fl *RTBSourceListFilter) Filter() *rtbsource.Filter
type RTBSourceListOrder ¶
type RTBSourceListOrder struct {
ID *models.Ordering `json:"ID,omitempty"`
AccountID *models.Ordering `json:"accountID,omitempty"`
Title *models.Ordering `json:"title,omitempty"`
Protocol *models.Ordering `json:"protocol,omitempty"`
Status *models.Ordering `json:"status,omitempty"`
Active *models.Ordering `json:"active,omitempty"`
Method *models.Ordering `json:"method,omitempty"`
RequestType *models.Ordering `json:"requestType,omitempty"`
AuctionType *models.Ordering `json:"auctionType,omitempty"`
CreatedAt *models.Ordering `json:"createdAt,omitempty"`
UpdatedAt *models.Ordering `json:"updatedAt,omitempty"`
DeletedAt *models.Ordering `json:"deletedAt,omitempty"`
}
Ordering options for listing RTBSource objects.
func (*RTBSourceListOrder) Fill ¶
func (ord *RTBSourceListOrder) Fill(order *rtbsource.ListOrder)
func (*RTBSourceListOrder) Order ¶
func (ord *RTBSourceListOrder) Order() *rtbsource.ListOrder
type RTBSourcePayload ¶
type RTBSourcePayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID string `json:"clientMutationID"`
// The ID of the RTBSource created or affected by the mutation.
SourceID uint64 `json:"sourceID"`
// The RTBSource object accessible by a client.
Source *RTBSource `json:"source"`
}
RTBSourcePayload wrapper to access the results of RTBSource operations.
type RTBSourceUpdateInput ¶
type RTBSourceUpdateInput struct {
AccountID *uint64 `json:"accountID,omitempty"`
// Title of the RTB source.
Title *string `json:"title,omitempty"`
// Description of the RTB source.
Description *string `json:"description,omitempty"`
// Flags associated with the source.
Flags *types.NullableJSON `json:"flags,omitempty"`
Protocol *string `json:"protocol,omitempty"`
MinimalWeight *float64 `json:"minimalWeight,omitempty"`
// URL of the RTB source. Cannot be changed after approval.
URL *string `json:"URL,omitempty"`
Method *string `json:"method,omitempty"`
RequestType *RTBRequestFormatType `json:"requestType,omitempty"`
Headers *types.NullableJSON `json:"headers,omitempty"`
Rps *int `json:"RPS,omitempty"`
Timeout *int `json:"timeout,omitempty"`
Accuracy *float64 `json:"accuracy,omitempty"`
PriceCorrectionReduce *float64 `json:"priceCorrectionReduce,omitempty"`
AuctionType *AuctionType `json:"auctionType,omitempty"`
MinBid *float64 `json:"minBid,omitempty"`
MaxBid *float64 `json:"maxBid,omitempty"`
FormatCodes []string `json:"formatCodes,omitempty"`
DeviceTypeIDs []uint64 `json:"deviceTypeIDs,omitempty"`
DeviceIDs []uint64 `json:"deviceIDs,omitempty"`
OSIDs []uint64 `json:"OSIDs,omitempty"`
BrowserIDs []uint64 `json:"browserIDs,omitempty"`
CarrierIDs []uint64 `json:"carrierIDs,omitempty"`
CategoryIDs []uint64 `json:"categoryIDs,omitempty"`
CountryCodes []string `json:"countryCodes,omitempty"`
LanguageCodes []string `json:"languageCodes,omitempty"`
ApplicationIDs []uint64 `json:"applicationIDs,omitempty"`
Domains []string `json:"domains,omitempty"`
ZoneIDs []uint64 `json:"zoneIDs,omitempty"`
Secure *AnyOnlyExclude `json:"secure,omitempty"`
AdBlock *AnyOnlyExclude `json:"adBlock,omitempty"`
PrivateBrowsing *AnyOnlyExclude `json:"privateBrowsing,omitempty"`
IP *AnyIPv4IPv6 `json:"IP,omitempty"`
Config *types.NullableJSON `json:"config,omitempty"`
}
Input for updating an existing RTBSource.
func (*RTBSourceUpdateInput) FillModel ¶
func (inp *RTBSourceUpdateInput) FillModel(m *models.RTBSource)
type SessionToken ¶
type SessionToken = bzgqlmodel.SessionToken
type SocialAccount ¶
type SocialAccount = bzgqlmodel.SocialAccount
type StatisticAdItem ¶
type StatisticAdItem struct {
Keys []*StatisticItemKey `json:"keys,omitempty"`
Profit float64 `json:"profit"`
BidPrice float64 `json:"bidPrice"`
Requests uint64 `json:"requests"`
Impressions uint64 `json:"impressions"`
Views uint64 `json:"views"`
Directs uint64 `json:"directs"`
Clicks uint64 `json:"clicks"`
Bids uint64 `json:"bids"`
Wins uint64 `json:"wins"`
Skips uint64 `json:"skips"`
Nobids uint64 `json:"nobids"`
Errors uint64 `json:"errors"`
Ctr float64 `json:"CTR"`
ECpm float64 `json:"eCPM"`
ECpc float64 `json:"eCPC"`
}
func FromStatisticAdItemModel ¶
func FromStatisticAdItemModel(st *models.StatisticAdItem) *StatisticAdItem
func FromStatisticAdItemModelList ¶
func FromStatisticAdItemModelList(st []*models.StatisticAdItem) []*StatisticAdItem
type StatisticAdKeyCondition ¶
type StatisticAdKeyCondition struct {
Key StatisticKey `json:"key"`
Op StatisticCondition `json:"op"`
Value []any `json:"value"`
}
type StatisticAdKeyOrder ¶
type StatisticAdKeyOrder struct {
Key StatisticOrderingKey `json:"key"`
Order models.Ordering `json:"order"`
}
type StatisticAdListFilter ¶
type StatisticAdListFilter struct {
Conditions []*StatisticAdKeyCondition `json:"conditions,omitempty"`
StartDate *types.DateTime `json:"startDate,omitempty"`
EndDate *types.DateTime `json:"endDate,omitempty"`
}
func (*StatisticAdListFilter) Filter ¶
func (fl *StatisticAdListFilter) Filter() *statistic.Filter
type StatisticCondition ¶
type StatisticCondition string
const ( StatisticConditionEq StatisticCondition = "EQ" StatisticConditionNotEq StatisticCondition = "NOT_EQ" StatisticConditionGt StatisticCondition = "GT" StatisticConditionGtEq StatisticCondition = "GT_EQ" StatisticConditionLt StatisticCondition = "LT" StatisticConditionLtEq StatisticCondition = "LT_EQ" StatisticConditionIn StatisticCondition = "IN" StatisticConditionNotIn StatisticCondition = "NOT_IN" StatisticConditionBetween StatisticCondition = "BETWEEN" StatisticConditionNotBetween StatisticCondition = "NOT_BETWEEN" StatisticConditionLike StatisticCondition = "LIKE" StatisticConditionNotLike StatisticCondition = "NOT_LIKE" StatisticConditionIsNull StatisticCondition = "IS_NULL" StatisticConditionIsNotNull StatisticCondition = "IS_NOT_NULL" )
func (StatisticCondition) AsQueryOp ¶
func (op StatisticCondition) AsQueryOp() statistic.Operation
func (StatisticCondition) IsValid ¶
func (e StatisticCondition) IsValid() bool
func (StatisticCondition) MarshalGQL ¶
func (e StatisticCondition) MarshalGQL(w io.Writer)
func (StatisticCondition) MarshalJSON ¶
func (e StatisticCondition) MarshalJSON() ([]byte, error)
func (StatisticCondition) String ¶
func (e StatisticCondition) String() string
func (*StatisticCondition) UnmarshalGQL ¶
func (e *StatisticCondition) UnmarshalGQL(v any) error
func (*StatisticCondition) UnmarshalJSON ¶
func (e *StatisticCondition) UnmarshalJSON(b []byte) error
type StatisticItemKey ¶
type StatisticItemKey struct {
Key StatisticKey `json:"key"`
Value any `json:"value"`
Text string `json:"text"`
}
func FromStatisticAdItemKeyModel ¶
func FromStatisticAdItemKeyModel(st *models.StatisticAdItemKey) *StatisticItemKey
type StatisticKey ¶
type StatisticKey string
const ( StatisticKeyUndefined StatisticKey = "UNDEFINED" StatisticKeyDatemark StatisticKey = "DATEMARK" StatisticKeyTimemark StatisticKey = "TIMEMARK" StatisticKeySourceID StatisticKey = "SOURCE_ID" StatisticKeyPlatformType StatisticKey = "PLATFORM_TYPE" StatisticKeyDomain StatisticKey = "DOMAIN" StatisticKeyAppID StatisticKey = "APP_ID" StatisticKeyZoneID StatisticKey = "ZONE_ID" StatisticKeyFormatID StatisticKey = "FORMAT_ID" StatisticKeyCarrierID StatisticKey = "CARRIER_ID" StatisticKeyCountry StatisticKey = "COUNTRY" StatisticKeyLanguage StatisticKey = "LANGUAGE" StatisticKeyIP StatisticKey = "IP" StatisticKeyDeviceID StatisticKey = "DEVICE_ID" StatisticKeyDeviceType StatisticKey = "DEVICE_TYPE" StatisticKeyOsID StatisticKey = "OS_ID" StatisticKeyBrowserID StatisticKey = "BROWSER_ID" )
func FromRepoStatisticKey ¶
func FromRepoStatisticKey(key statistic.Key) StatisticKey
func (StatisticKey) AsQueryKey ¶
func (key StatisticKey) AsQueryKey() statistic.Key
func (StatisticKey) IsValid ¶
func (e StatisticKey) IsValid() bool
func (StatisticKey) MarshalGQL ¶
func (e StatisticKey) MarshalGQL(w io.Writer)
func (StatisticKey) MarshalJSON ¶
func (e StatisticKey) MarshalJSON() ([]byte, error)
func (StatisticKey) String ¶
func (e StatisticKey) String() string
func (*StatisticKey) UnmarshalGQL ¶
func (e *StatisticKey) UnmarshalGQL(v any) error
func (*StatisticKey) UnmarshalJSON ¶
func (e *StatisticKey) UnmarshalJSON(b []byte) error
type StatisticOrderingKey ¶
type StatisticOrderingKey string
const ( StatisticOrderingKeyUndefined StatisticOrderingKey = "UNDEFINED" StatisticOrderingKeyDatemark StatisticOrderingKey = "DATEMARK" StatisticOrderingKeyTimemark StatisticOrderingKey = "TIMEMARK" StatisticOrderingKeySourceID StatisticOrderingKey = "SOURCE_ID" StatisticOrderingKeyPlatformType StatisticOrderingKey = "PLATFORM_TYPE" StatisticOrderingKeyDomain StatisticOrderingKey = "DOMAIN" StatisticOrderingKeyAppID StatisticOrderingKey = "APP_ID" StatisticOrderingKeyZoneID StatisticOrderingKey = "ZONE_ID" StatisticOrderingKeyFormatID StatisticOrderingKey = "FORMAT_ID" StatisticOrderingKeyCarrierID StatisticOrderingKey = "CARRIER_ID" StatisticOrderingKeyCountry StatisticOrderingKey = "COUNTRY" StatisticOrderingKeyLanguage StatisticOrderingKey = "LANGUAGE" StatisticOrderingKeyIP StatisticOrderingKey = "IP" StatisticOrderingKeyDeviceID StatisticOrderingKey = "DEVICE_ID" StatisticOrderingKeyDeviceType StatisticOrderingKey = "DEVICE_TYPE" StatisticOrderingKeyOsID StatisticOrderingKey = "OS_ID" StatisticOrderingKeyBrowserID StatisticOrderingKey = "BROWSER_ID" StatisticOrderingKeyProfit StatisticOrderingKey = "PROFIT" StatisticOrderingKeyBidPrice StatisticOrderingKey = "BID_PRICE" StatisticOrderingKeyRequests StatisticOrderingKey = "REQUESTS" StatisticOrderingKeyImpressions StatisticOrderingKey = "IMPRESSIONS" StatisticOrderingKeyViews StatisticOrderingKey = "VIEWS" StatisticOrderingKeyDirects StatisticOrderingKey = "DIRECTS" StatisticOrderingKeyClicks StatisticOrderingKey = "CLICKS" StatisticOrderingKeyBids StatisticOrderingKey = "BIDS" StatisticOrderingKeyWins StatisticOrderingKey = "WINS" StatisticOrderingKeySkips StatisticOrderingKey = "SKIPS" StatisticOrderingKeyNobids StatisticOrderingKey = "NOBIDS" StatisticOrderingKeyErrors StatisticOrderingKey = "ERRORS" StatisticOrderingKeyCtr StatisticOrderingKey = "CTR" StatisticOrderingKeyEcpm StatisticOrderingKey = "ECPM" StatisticOrderingKeyEcpc StatisticOrderingKey = "ECPC" StatisticOrderingKeyEcpa StatisticOrderingKey = "ECPA" )
func (StatisticOrderingKey) IsValid ¶
func (e StatisticOrderingKey) IsValid() bool
func (StatisticOrderingKey) MarshalGQL ¶
func (e StatisticOrderingKey) MarshalGQL(w io.Writer)
func (StatisticOrderingKey) MarshalJSON ¶
func (e StatisticOrderingKey) MarshalJSON() ([]byte, error)
func (StatisticOrderingKey) String ¶
func (e StatisticOrderingKey) String() string
func (*StatisticOrderingKey) UnmarshalGQL ¶
func (e *StatisticOrderingKey) UnmarshalGQL(v any) error
func (*StatisticOrderingKey) UnmarshalJSON ¶
func (e *StatisticOrderingKey) UnmarshalJSON(b []byte) error
type StatusResponse ¶
type StatusResponse = bzgqlmodel.StatusResponse
type TrafficRouter ¶
type TrafficRouter struct {
// ID of the traffic router
ID uint64 `json:"ID"`
// Title of the traffic router
Title string `json:"title"`
// Account ID owner of the traffic router
AccountID uint64 `json:"accountID"`
// Account owner of the traffic router
Account *models.Account `json:"account,omitempty"`
// Traffic router percent of the traffic to share between RTB sources
Percent float64 `json:"percent"`
// Description of the traffic router
Description string `json:"description"`
// Active status of source
Active models.ActiveStatus `json:"active"`
// RTB sources of the advertising
RTBSourceIDs []uint64 `json:"RTBSourceIDs,omitempty"`
// RTB sources of the advertising
RTBSources []*RTBSource `json:"RTBSources,omitempty"`
FormatCodes []string `json:"formatCodes,omitempty"`
Formats []*AdFormat `json:"formats,omitempty"`
DeviceTypeIDs []uint64 `json:"deviceTypeIDs,omitempty"`
DeviceTypes []*DeviceType `json:"deviceTypes,omitempty"`
DeviceIDs []uint64 `json:"deviceIDs,omitempty"`
Devices []*DeviceModel `json:"devices,omitempty"`
OSIDs []uint64 `json:"OSIDs,omitempty"`
Os []*Os `json:"OS,omitempty"`
BrowserIDs []uint64 `json:"browserIDs,omitempty"`
Browsers []*Browser `json:"browsers,omitempty"`
CarrierIDs []uint64 `json:"carrierIDs,omitempty"`
CategoryIDs []uint64 `json:"categoryIDs,omitempty"`
Categories []*Category `json:"categories,omitempty"`
CountryCodes []string `json:"countryCodes,omitempty"`
Countries []*Country `json:"countries,omitempty"`
LanguageCodes []string `json:"languageCodes,omitempty"`
Languages []*Lang `json:"languages,omitempty"`
Domains []string `json:"domains,omitempty"`
ApplicationIDs []uint64 `json:"applicationIDs,omitempty"`
Applications []*Application `json:"applications,omitempty"`
ZoneIDs []uint64 `json:"zoneIDs,omitempty"`
Zones []*Zone `json:"zones,omitempty"`
Secure AnyOnlyExclude `json:"secure"`
AdBlock AnyOnlyExclude `json:"adBlock"`
PrivateBrowsing AnyOnlyExclude `json:"privateBrowsing"`
IP AnyIPv4IPv6 `json:"IP"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
Traffic routing represents the way of traffic distribution between different traffic sources and RTB ad sources
func FromTrafficRouterModel ¶
func FromTrafficRouterModel(m *models.TrafficRouter) *TrafficRouter
func FromTrafficRouterModelList ¶
func FromTrafficRouterModelList(m []*models.TrafficRouter) []*TrafficRouter
type TrafficRouterCreateInput ¶
type TrafficRouterCreateInput struct {
// Account ID owner of the traffic router
AccountID *uint64 `json:"accountID,omitempty"`
// Title of the traffic router
Title string `json:"title"`
// Description of the traffic router
Description *string `json:"description,omitempty"`
// Active status of the traffic router
Active models.ActiveStatus `json:"active"`
// Traffic router percent of the traffic to share between RTB sources
Percent float64 `json:"percent"`
// RTB sources of the advertising
RTBSourceIDs []uint64 `json:"RTBSourceIDs"`
FormatCodes []string `json:"formatCodes,omitempty"`
DeviceTypeIDs []uint64 `json:"deviceTypeIDs,omitempty"`
DeviceIDs []uint64 `json:"deviceIDs,omitempty"`
OSIDs []uint64 `json:"OSIDs,omitempty"`
BrowserIDs []uint64 `json:"browserIDs,omitempty"`
CarrierIDs []uint64 `json:"carrierIDs,omitempty"`
CategoryIDs []uint64 `json:"categoryIDs,omitempty"`
CountryCodes []string `json:"countryCodes,omitempty"`
LanguageCodes []string `json:"languageCodes,omitempty"`
ApplicationIDs []uint64 `json:"applicationIDs,omitempty"`
Domains []string `json:"domains,omitempty"`
ZoneIDs []uint64 `json:"zoneIDs,omitempty"`
Secure *AnyOnlyExclude `json:"secure,omitempty"`
AdBlock *AnyOnlyExclude `json:"adBlock,omitempty"`
PrivateBrowsing *AnyOnlyExclude `json:"privateBrowsing,omitempty"`
IP *AnyIPv4IPv6 `json:"IP,omitempty"`
}
func (*TrafficRouterCreateInput) FillModel ¶
func (inp *TrafficRouterCreateInput) FillModel(obj *models.TrafficRouter)
type TrafficRouterEdge ¶
type TrafficRouterEdge struct {
// Cursor for the traffic router
Cursor string `json:"cursor"`
// Node of the traffic router
Node *TrafficRouter `json:"node"`
}
type TrafficRouterListFilter ¶
type TrafficRouterListFilter struct {
ID []uint64 `json:"ID,omitempty"`
AccountID *uint64 `json:"accountID,omitempty"`
Active *models.ActiveStatus `json:"active,omitempty"`
RTBSourceIDs []uint64 `json:"RTBSourceIDs,omitempty"`
FormatCodes []string `json:"formatCodes,omitempty"`
DeviceTypeIDs []uint64 `json:"deviceTypeIDs,omitempty"`
DeviceIDs []uint64 `json:"deviceIDs,omitempty"`
OSIDs []uint64 `json:"OSIDs,omitempty"`
BrowserIDs []uint64 `json:"browserIDs,omitempty"`
CarrierIDs []uint64 `json:"carrierIDs,omitempty"`
CategoryIDs []uint64 `json:"categoryIDs,omitempty"`
CountryCodes []string `json:"countryCodes,omitempty"`
LanguageCodes []string `json:"languageCodes,omitempty"`
ApplicationIDs []uint64 `json:"applicationIDs,omitempty"`
Domains []string `json:"domains,omitempty"`
ZoneIDs []uint64 `json:"zoneIDs,omitempty"`
Secure *AnyOnlyExclude `json:"secure,omitempty"`
AdBlock *AnyOnlyExclude `json:"adBlock,omitempty"`
PrivateBrowsing *AnyOnlyExclude `json:"privateBrowsing,omitempty"`
IP *AnyIPv4IPv6 `json:"IP,omitempty"`
}
func (*TrafficRouterListFilter) Filter ¶
func (fl *TrafficRouterListFilter) Filter() *trafficrouter.Filter
type TrafficRouterListOrder ¶
type TrafficRouterListOrder struct {
ID *models.Ordering `json:"ID,omitempty"`
Title *models.Ordering `json:"title,omitempty"`
Active *models.Ordering `json:"active,omitempty"`
Percent *models.Ordering `json:"percent,omitempty"`
CreatedAt *models.Ordering `json:"createdAt,omitempty"`
UpdatedAt *models.Ordering `json:"updatedAt,omitempty"`
}
func (*TrafficRouterListOrder) Fill ¶
func (ord *TrafficRouterListOrder) Fill(order *trafficrouter.ListOrder)
func (*TrafficRouterListOrder) Order ¶
func (ord *TrafficRouterListOrder) Order() *trafficrouter.ListOrder
type TrafficRouterPayload ¶
type TrafficRouterPayload struct {
// Unique identifier of the client
ClientMutationID string `json:"clientMutationID"`
// ID of the traffic router
RouterID uint64 `json:"routerID"`
// Traffic router object
Router *TrafficRouter `json:"router"`
}
type TrafficRouterUpdateInput ¶
type TrafficRouterUpdateInput struct {
// Title of the traffic router
Title *string `json:"title,omitempty"`
// Description of the traffic router
Description *string `json:"description,omitempty"`
// Active status of the traffic router
Active *models.ActiveStatus `json:"active,omitempty"`
// Traffic router percent of the traffic to share between RTB sources
Percent *float64 `json:"percent,omitempty"`
// RTB sources of the advertising
RTBSourceIDs []uint64 `json:"RTBSourceIDs,omitempty"`
FormatCodes []string `json:"formatCodes,omitempty"`
DeviceTypeIDs []uint64 `json:"deviceTypeIDs,omitempty"`
DeviceIDs []uint64 `json:"deviceIDs,omitempty"`
OSIDs []uint64 `json:"OSIDs,omitempty"`
BrowserIDs []uint64 `json:"browserIDs,omitempty"`
CarrierIDs []uint64 `json:"carrierIDs,omitempty"`
CategoryIDs []uint64 `json:"categoryIDs,omitempty"`
CountryCodes []string `json:"countryCodes,omitempty"`
LanguageCodes []string `json:"languageCodes,omitempty"`
ApplicationIDs []uint64 `json:"applicationIDs,omitempty"`
Domains []string `json:"domains,omitempty"`
ZoneIDs []uint64 `json:"zoneIDs,omitempty"`
Secure *AnyOnlyExclude `json:"secure,omitempty"`
AdBlock *AnyOnlyExclude `json:"adBlock,omitempty"`
PrivateBrowsing *AnyOnlyExclude `json:"privateBrowsing,omitempty"`
IP *AnyIPv4IPv6 `json:"IP,omitempty"`
}
func (*TrafficRouterUpdateInput) FillModel ¶
func (inp *TrafficRouterUpdateInput) FillModel(obj *models.TrafficRouter)
type User ¶
type User = bzgqlmodel.User
type Zone ¶
type Zone struct {
ID uint64 `json:"ID"`
Codename string `json:"codename"`
AccountID uint64 `json:"accountID"`
Title string `json:"title"`
Description string `json:"description"`
// Status of the zone
Status models.ApproveStatus `json:"status"`
// Active status of the zone
Active models.ActiveStatus `json:"active"`
DefaultCode types.NullableJSON `json:"defaultCode"`
Context types.NullableJSON `json:"context"`
MinEcpm float64 `json:"minECPM"`
FixedPurchasePrice float64 `json:"fixedPurchasePrice"`
AllowedFormats []string `json:"allowedFormats,omitempty"`
AllowedTypes []int64 `json:"allowedTypes,omitempty"`
AllowedSources []int64 `json:"allowedSources,omitempty"`
DisallowedSources []int64 `json:"disallowedSources,omitempty"`
Campaigns []int64 `json:"campaigns,omitempty"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
Zone object represents a specific advertising zone within an account.
func FromZoneModel ¶
func FromZoneModelList ¶
type ZoneEdge ¶
type ZoneEdge struct {
// A cursor for use in pagination.
Cursor string `json:"cursor"`
// The Zone at the end of ZoneEdge.
Node *Zone `json:"node"`
}
ZoneEdge wrapper to access Zone objects
type ZoneInput ¶
type ZoneInput struct {
// Account ID associated with the Zone. Must have appropriate permissions.
AccountID *uint64 `json:"accountID,omitempty"`
// Unique codename for the Zone.
Codename *string `json:"codename,omitempty"`
// Title of the Zone.
Title *string `json:"title,omitempty"`
// Description of the Zone.
Description *string `json:"description,omitempty"`
DefaultCode *types.JSON `json:"defaultCode,omitempty"`
Context *types.JSON `json:"context,omitempty"`
MinEcpm *float64 `json:"minECPM,omitempty"`
MinECPMByGeo *types.JSON `json:"minECPMByGeo,omitempty"`
FixedPurchasePrice *float64 `json:"fixedPurchasePrice,omitempty"`
AllowedFormats []string `json:"allowedFormats,omitempty"`
AllowedTypes []int64 `json:"allowedTypes,omitempty"`
AllowedSources []int64 `json:"allowedSources,omitempty"`
DisallowedSources []int64 `json:"disallowedSources,omitempty"`
Campaigns []int64 `json:"campaigns,omitempty"`
}
Input type for creating or updating a Zone.
type ZoneListFilter ¶
type ZoneListFilter struct {
ID []uint64 `json:"ID,omitempty"`
Codename []string `json:"codename,omitempty"`
AccountID []uint64 `json:"accountID,omitempty"`
Status *models.ApproveStatus `json:"status,omitempty"`
Active *models.ActiveStatus `json:"active,omitempty"`
MinEcpm *float64 `json:"minECPM,omitempty"`
MaxEcpm *float64 `json:"maxECPM,omitempty"`
}
Filter input for listing Zones.
func (*ZoneListFilter) Filter ¶
func (fl *ZoneListFilter) Filter() *zone.Filter
type ZoneListOrder ¶
type ZoneListOrder struct {
ID *models.Ordering `json:"ID,omitempty"`
Codename *models.Ordering `json:"codename,omitempty"`
Title *models.Ordering `json:"title,omitempty"`
AccountID *models.Ordering `json:"accountID,omitempty"`
Type *models.Ordering `json:"type,omitempty"`
Status *models.Ordering `json:"status,omitempty"`
Active *models.Ordering `json:"active,omitempty"`
MinEcpm *models.Ordering `json:"minECPM,omitempty"`
CreatedAt *models.Ordering `json:"createdAt,omitempty"`
UpdatedAt *models.Ordering `json:"updatedAt,omitempty"`
}
Order input for listing Zones.
func (*ZoneListOrder) Order ¶
func (ord *ZoneListOrder) Order() *zone.ListOrder
type ZonePayload ¶
type ZonePayload struct {
// A unique identifier for the client performing the mutation.
ClientMutationID string `json:"clientMutationID"`
// The Zone that was created or updated by this mutation.
ZoneID uint64 `json:"zoneID"`
// The Zone object accessible by a client.
Zone *Zone `json:"zone"`
}
ZonePayload wrapper to access Zone operation results