sdk

package
v5.1.17 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: MIT Imports: 8 Imported by: 0

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

This section is empty.

Types ¶

type AuthorizationTag ¶

type AuthorizationTag struct {
	// contains filtered or unexported fields
}

func NewAuthorizationTag ¶

func NewAuthorizationTag(httpClient *http.Client, parser *sdkgen.Parser) *AuthorizationTag

func (*AuthorizationTag) GetWhoami ¶

func (client *AuthorizationTag) GetWhoami() (*BackendUser, error)

GetWhoami

func (*AuthorizationTag) Revoke ¶

func (client *AuthorizationTag) Revoke() (*CommonMessage, error)

Revoke

type BackendAccountChangePassword ¶

type BackendAccountChangePassword struct {
	OldPassword    string `json:"oldPassword"`
	NewPassword    string `json:"newPassword"`
	VerifyPassword string `json:"verifyPassword"`
}

type BackendAccountTag ¶

type BackendAccountTag struct {
	// contains filtered or unexported fields
}

func NewBackendAccountTag ¶

func NewBackendAccountTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendAccountTag

func (*BackendAccountTag) ChangePassword ¶

func (client *BackendAccountTag) ChangePassword(payload BackendAccountChangePassword) (*CommonMessage, error)

ChangePassword

func (*BackendAccountTag) Get ¶

func (client *BackendAccountTag) Get() (*BackendUser, error)

Get

func (*BackendAccountTag) Update ¶

func (client *BackendAccountTag) Update(payload BackendUserUpdate) (*CommonMessage, error)

Update

type BackendAction ¶

type BackendAction struct {
	Id       int                  `json:"id"`
	Status   int                  `json:"status"`
	Name     string               `json:"name"`
	Class    string               `json:"class"`
	Async    bool                 `json:"async"`
	Config   *BackendActionConfig `json:"config"`
	Metadata *CommonMetadata      `json:"metadata"`
}

type BackendActionCollection ¶

type BackendActionCollection struct {
	TotalResults int             `json:"totalResults"`
	StartIndex   int             `json:"startIndex"`
	ItemsPerPage int             `json:"itemsPerPage"`
	Entry        []BackendAction `json:"entry"`
}

type BackendActionConfig ¶

type BackendActionConfig = map[string]any

type BackendActionCreate ¶

type BackendActionCreate struct {
	Id       int                  `json:"id"`
	Status   int                  `json:"status"`
	Name     string               `json:"name"`
	Class    string               `json:"class"`
	Async    bool                 `json:"async"`
	Config   *BackendActionConfig `json:"config"`
	Metadata *CommonMetadata      `json:"metadata"`
}

type BackendActionExecuteRequest ¶

type BackendActionExecuteRequest struct {
	Method       string                           `json:"method"`
	UriFragments string                           `json:"uriFragments"`
	Parameters   string                           `json:"parameters"`
	Headers      string                           `json:"headers"`
	Body         *BackendActionExecuteRequestBody `json:"body"`
}

type BackendActionExecuteRequestBody ¶

type BackendActionExecuteRequestBody = map[string]any

type BackendActionExecuteResponse ¶

type BackendActionExecuteResponse struct {
	StatusCode int                                  `json:"statusCode"`
	Headers    *BackendActionExecuteResponseHeaders `json:"headers"`
	Body       *BackendActionExecuteResponseBody    `json:"body"`
}

type BackendActionExecuteResponseBody ¶

type BackendActionExecuteResponseBody = map[string]any

type BackendActionExecuteResponseHeaders ¶

type BackendActionExecuteResponseHeaders = map[string]string

type BackendActionIndex ¶

type BackendActionIndex struct {
	Actions []BackendActionIndexEntry `json:"actions"`
}

type BackendActionIndexEntry ¶

type BackendActionIndexEntry struct {
	Name  string `json:"name"`
	Class string `json:"class"`
}

type BackendActionTag ¶

type BackendActionTag struct {
	// contains filtered or unexported fields
}

func NewBackendActionTag ¶

func NewBackendActionTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendActionTag

func (*BackendActionTag) Create ¶

func (client *BackendActionTag) Create(payload BackendActionCreate) (*CommonMessage, error)

Create

func (*BackendActionTag) Delete ¶

func (client *BackendActionTag) Delete(actionId string) (*CommonMessage, error)

Delete

func (*BackendActionTag) Execute ¶

Execute

func (*BackendActionTag) Get ¶

func (client *BackendActionTag) Get(actionId string) (*BackendAction, error)

Get

func (*BackendActionTag) GetAll ¶

func (client *BackendActionTag) GetAll(startIndex int, count int, search string) (*BackendActionCollection, error)

GetAll

func (*BackendActionTag) GetClasses ¶

func (client *BackendActionTag) GetClasses() (*BackendActionIndex, error)

GetClasses

func (*BackendActionTag) GetForm ¶

func (client *BackendActionTag) GetForm(class string) (*CommonFormContainer, error)

GetForm

func (*BackendActionTag) Update ¶

func (client *BackendActionTag) Update(actionId string, payload BackendActionUpdate) (*CommonMessage, error)

Update

type BackendActionUpdate ¶

type BackendActionUpdate struct {
	Id       int                  `json:"id"`
	Status   int                  `json:"status"`
	Name     string               `json:"name"`
	Class    string               `json:"class"`
	Async    bool                 `json:"async"`
	Config   *BackendActionConfig `json:"config"`
	Metadata *CommonMetadata      `json:"metadata"`
}

type BackendApp ¶

type BackendApp struct {
	Id         int             `json:"id"`
	UserId     int             `json:"userId"`
	Status     int             `json:"status"`
	Name       string          `json:"name"`
	Url        string          `json:"url"`
	Parameters string          `json:"parameters"`
	AppKey     string          `json:"appKey"`
	AppSecret  string          `json:"appSecret"`
	Metadata   *CommonMetadata `json:"metadata"`
	Date       string          `json:"date"`
	Scopes     []string        `json:"scopes"`
	Tokens     []BackendToken  `json:"tokens"`
}

type BackendAppCollection ¶

type BackendAppCollection struct {
	TotalResults int          `json:"totalResults"`
	StartIndex   int          `json:"startIndex"`
	ItemsPerPage int          `json:"itemsPerPage"`
	Entry        []BackendApp `json:"entry"`
}

type BackendAppCreate ¶

type BackendAppCreate struct {
	Id         int             `json:"id"`
	UserId     int             `json:"userId"`
	Status     int             `json:"status"`
	Name       string          `json:"name"`
	Url        string          `json:"url"`
	Parameters string          `json:"parameters"`
	AppKey     string          `json:"appKey"`
	AppSecret  string          `json:"appSecret"`
	Metadata   *CommonMetadata `json:"metadata"`
	Date       string          `json:"date"`
	Scopes     []string        `json:"scopes"`
	Tokens     []BackendToken  `json:"tokens"`
}

type BackendAppTag ¶

type BackendAppTag struct {
	// contains filtered or unexported fields
}

func NewBackendAppTag ¶

func NewBackendAppTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendAppTag

func (*BackendAppTag) Create ¶

func (client *BackendAppTag) Create(payload BackendAppCreate) (*CommonMessage, error)

Create

func (*BackendAppTag) Delete ¶

func (client *BackendAppTag) Delete(appId string) (*CommonMessage, error)

Delete

func (*BackendAppTag) DeleteToken ¶

func (client *BackendAppTag) DeleteToken(appId string, tokenId string) (*CommonMessage, error)

DeleteToken

func (*BackendAppTag) Get ¶

func (client *BackendAppTag) Get(appId string) (*BackendApp, error)

Get

func (*BackendAppTag) GetAll ¶

func (client *BackendAppTag) GetAll(startIndex int, count int, search string) (*BackendAppCollection, error)

GetAll

func (*BackendAppTag) Update ¶

func (client *BackendAppTag) Update(appId string, payload BackendAppUpdate) (*CommonMessage, error)

Update

type BackendAppUpdate ¶

type BackendAppUpdate struct {
	Id         int             `json:"id"`
	UserId     int             `json:"userId"`
	Status     int             `json:"status"`
	Name       string          `json:"name"`
	Url        string          `json:"url"`
	Parameters string          `json:"parameters"`
	AppKey     string          `json:"appKey"`
	AppSecret  string          `json:"appSecret"`
	Metadata   *CommonMetadata `json:"metadata"`
	Date       string          `json:"date"`
	Scopes     []string        `json:"scopes"`
	Tokens     []BackendToken  `json:"tokens"`
}

type BackendAudit ¶

type BackendAudit struct {
	Id      int                 `json:"id"`
	App     *BackendApp         `json:"app"`
	User    *BackendUser        `json:"user"`
	Event   string              `json:"event"`
	Ip      string              `json:"ip"`
	Message string              `json:"message"`
	Content *BackendAuditObject `json:"content"`
	Date    string              `json:"date"`
}

type BackendAuditCollection ¶

type BackendAuditCollection struct {
	TotalResults int            `json:"totalResults"`
	StartIndex   int            `json:"startIndex"`
	ItemsPerPage int            `json:"itemsPerPage"`
	Entry        []BackendAudit `json:"entry"`
}

type BackendAuditObject ¶

type BackendAuditObject = map[string]any

A key value object containing the changes

type BackendAuditTag ¶

type BackendAuditTag struct {
	// contains filtered or unexported fields
}

func NewBackendAuditTag ¶

func NewBackendAuditTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendAuditTag

func (*BackendAuditTag) Get ¶

func (client *BackendAuditTag) Get(auditId string) (*BackendAudit, error)

Get

func (*BackendAuditTag) GetAll ¶

func (client *BackendAuditTag) GetAll(startIndex int, count int, search string, from string, to string, appId int, userId int, event string, ip string, message string) (*BackendAuditCollection, error)

GetAll

type BackendBackupExport ¶ added in v5.0.5

type BackendBackupExport struct {
	Export string `json:"export"`
}

type BackendBackupImport ¶ added in v5.0.5

type BackendBackupImport struct {
	Import string `json:"import"`
}

type BackendBackupImportResult ¶ added in v5.0.5

type BackendBackupImportResult struct {
	Success bool     `json:"success"`
	Message string   `json:"message"`
	Logs    []string `json:"logs"`
}

type BackendBackupTag ¶ added in v5.0.5

type BackendBackupTag struct {
	// contains filtered or unexported fields
}

func NewBackendBackupTag ¶ added in v5.0.5

func NewBackendBackupTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendBackupTag

func (*BackendBackupTag) Export ¶ added in v5.0.5

func (client *BackendBackupTag) Export() (*BackendBackupExport, error)

Export

func (*BackendBackupTag) Import ¶ added in v5.0.5

Import

type BackendCategory ¶

type BackendCategory struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type BackendCategoryCollection ¶

type BackendCategoryCollection struct {
	TotalResults int               `json:"totalResults"`
	StartIndex   int               `json:"startIndex"`
	ItemsPerPage int               `json:"itemsPerPage"`
	Entry        []BackendCategory `json:"entry"`
}

type BackendCategoryCreate ¶

type BackendCategoryCreate struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type BackendCategoryTag ¶

type BackendCategoryTag struct {
	// contains filtered or unexported fields
}

func NewBackendCategoryTag ¶

func NewBackendCategoryTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendCategoryTag

func (*BackendCategoryTag) Create ¶

func (client *BackendCategoryTag) Create(payload BackendCategoryCreate) (*CommonMessage, error)

Create

func (*BackendCategoryTag) Delete ¶

func (client *BackendCategoryTag) Delete(categoryId string) (*CommonMessage, error)

Delete

func (*BackendCategoryTag) Get ¶

func (client *BackendCategoryTag) Get(categoryId string) (*BackendCategory, error)

Get

func (*BackendCategoryTag) GetAll ¶

func (client *BackendCategoryTag) GetAll(startIndex int, count int, search string) (*BackendCategoryCollection, error)

GetAll

func (*BackendCategoryTag) Update ¶

func (client *BackendCategoryTag) Update(categoryId string, payload BackendCategoryUpdate) (*CommonMessage, error)

Update

type BackendCategoryUpdate ¶

type BackendCategoryUpdate struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type BackendConfig ¶

type BackendConfig struct {
	Id          int    `json:"id"`
	Type        int    `json:"type"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Value       any    `json:"value"`
}

type BackendConfigCollection ¶

type BackendConfigCollection struct {
	TotalResults int             `json:"totalResults"`
	StartIndex   int             `json:"startIndex"`
	ItemsPerPage int             `json:"itemsPerPage"`
	Entry        []BackendConfig `json:"entry"`
}

type BackendConfigTag ¶

type BackendConfigTag struct {
	// contains filtered or unexported fields
}

func NewBackendConfigTag ¶

func NewBackendConfigTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendConfigTag

func (*BackendConfigTag) Get ¶

func (client *BackendConfigTag) Get(configId string) (*BackendConfig, error)

Get

func (*BackendConfigTag) GetAll ¶

func (client *BackendConfigTag) GetAll(startIndex int, count int, search string) (*BackendConfigCollection, error)

GetAll

func (*BackendConfigTag) Update ¶

func (client *BackendConfigTag) Update(configId string, payload BackendConfigUpdate) (*CommonMessage, error)

Update

type BackendConfigUpdate ¶

type BackendConfigUpdate struct {
	Id          int    `json:"id"`
	Type        int    `json:"type"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Value       any    `json:"value"`
}

type BackendConnection ¶

type BackendConnection struct {
	Id       int                      `json:"id"`
	Name     string                   `json:"name"`
	Class    string                   `json:"class"`
	Oauth    bool                     `json:"oauth2"`
	Config   *BackendConnectionConfig `json:"config"`
	Metadata *CommonMetadata          `json:"metadata"`
}

type BackendConnectionCollection ¶

type BackendConnectionCollection struct {
	TotalResults int                 `json:"totalResults"`
	StartIndex   int                 `json:"startIndex"`
	ItemsPerPage int                 `json:"itemsPerPage"`
	Entry        []BackendConnection `json:"entry"`
}

type BackendConnectionConfig ¶

type BackendConnectionConfig = map[string]any

type BackendConnectionCreate ¶

type BackendConnectionCreate struct {
	Id       int                      `json:"id"`
	Name     string                   `json:"name"`
	Class    string                   `json:"class"`
	Oauth    bool                     `json:"oauth2"`
	Config   *BackendConnectionConfig `json:"config"`
	Metadata *CommonMetadata          `json:"metadata"`
}

type BackendConnectionIndex ¶

type BackendConnectionIndex struct {
	Connections []BackendConnectionIndexEntry `json:"connections"`
}

type BackendConnectionIndexEntry ¶

type BackendConnectionIndexEntry struct {
	Name  string `json:"name"`
	Class string `json:"class"`
}

type BackendConnectionRedirectResponse ¶ added in v5.0.9

type BackendConnectionRedirectResponse struct {
	RedirectUri string `json:"redirectUri"`
}

type BackendConnectionTag ¶

type BackendConnectionTag struct {
	// contains filtered or unexported fields
}

func NewBackendConnectionTag ¶

func NewBackendConnectionTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendConnectionTag

func (*BackendConnectionTag) Create ¶

Create

func (*BackendConnectionTag) Delete ¶

func (client *BackendConnectionTag) Delete(connectionId string) (*CommonMessage, error)

Delete

func (*BackendConnectionTag) Get ¶

func (client *BackendConnectionTag) Get(connectionId string) (*BackendConnection, error)

Get

func (*BackendConnectionTag) GetAll ¶

func (client *BackendConnectionTag) GetAll(startIndex int, count int, search string, class string) (*BackendConnectionCollection, error)

GetAll

func (*BackendConnectionTag) GetClasses ¶

func (client *BackendConnectionTag) GetClasses() (*BackendConnectionIndex, error)

GetClasses

func (*BackendConnectionTag) GetForm ¶

func (client *BackendConnectionTag) GetForm(class string) (*CommonFormContainer, error)

GetForm

func (*BackendConnectionTag) GetRedirect ¶

func (client *BackendConnectionTag) GetRedirect(connectionId string) (*BackendConnectionRedirectResponse, error)

GetRedirect

func (*BackendConnectionTag) Update ¶

func (client *BackendConnectionTag) Update(connectionId string, payload BackendConnectionUpdate) (*CommonMessage, error)

Update

type BackendConnectionUpdate ¶

type BackendConnectionUpdate struct {
	Id       int                      `json:"id"`
	Name     string                   `json:"name"`
	Class    string                   `json:"class"`
	Oauth    bool                     `json:"oauth2"`
	Config   *BackendConnectionConfig `json:"config"`
	Metadata *CommonMetadata          `json:"metadata"`
}

type BackendCronjob ¶

type BackendCronjob struct {
	Id          int                   `json:"id"`
	Name        string                `json:"name"`
	Cron        string                `json:"cron"`
	Action      string                `json:"action"`
	ExecuteDate string                `json:"executeDate"`
	ExitCode    int                   `json:"exitCode"`
	Metadata    *CommonMetadata       `json:"metadata"`
	Errors      []BackendCronjobError `json:`
}

type BackendCronjobCollection ¶

type BackendCronjobCollection struct {
	TotalResults int              `json:"totalResults"`
	StartIndex   int              `json:"startIndex"`
	ItemsPerPage int              `json:"itemsPerPage"`
	Entry        []BackendCronjob `json:"entry"`
}

type BackendCronjobCreate ¶

type BackendCronjobCreate struct {
	Id          int                   `json:"id"`
	Name        string                `json:"name"`
	Cron        string                `json:"cron"`
	Action      string                `json:"action"`
	ExecuteDate string                `json:"executeDate"`
	ExitCode    int                   `json:"exitCode"`
	Metadata    *CommonMetadata       `json:"metadata"`
	Errors      []BackendCronjobError `json:`
}

type BackendCronjobError ¶

type BackendCronjobError struct {
	Message string `json:"message"`
	Trace   string `json:"trace"`
	File    string `json:"file"`
	Line    int    `json:"line"`
}

type BackendCronjobTag ¶

type BackendCronjobTag struct {
	// contains filtered or unexported fields
}

func NewBackendCronjobTag ¶

func NewBackendCronjobTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendCronjobTag

func (*BackendCronjobTag) Create ¶

func (client *BackendCronjobTag) Create(payload BackendCronjobCreate) (*CommonMessage, error)

Create

func (*BackendCronjobTag) Delete ¶

func (client *BackendCronjobTag) Delete(cronjobId string) (*CommonMessage, error)

Delete

func (*BackendCronjobTag) Get ¶

func (client *BackendCronjobTag) Get(cronjobId string) (*BackendCronjob, error)

Get

func (*BackendCronjobTag) GetAll ¶

func (client *BackendCronjobTag) GetAll(startIndex int, count int, search string) (*BackendCronjobCollection, error)

GetAll

func (*BackendCronjobTag) Update ¶

func (client *BackendCronjobTag) Update(cronjobId string, payload BackendCronjobUpdate) (*CommonMessage, error)

Update

type BackendCronjobUpdate ¶

type BackendCronjobUpdate struct {
	Id          int                   `json:"id"`
	Name        string                `json:"name"`
	Cron        string                `json:"cron"`
	Action      string                `json:"action"`
	ExecuteDate string                `json:"executeDate"`
	ExitCode    int                   `json:"exitCode"`
	Metadata    *CommonMetadata       `json:"metadata"`
	Errors      []BackendCronjobError `json:`
}

type BackendDashboard ¶

type BackendDashboard struct {
	ErrorsPerOperation   *BackendStatisticChart `json:"errorsPerOperation"`
	IncomingRequests     *BackendStatisticChart `json:"incomingRequests"`
	IncomingTransactions *BackendStatisticChart `json:"incomingTransactions"`
	MostUsedOperations   *BackendStatisticChart `json:"mostUsedOperations"`
	TimePerOperation     *BackendStatisticChart `json:"timePerOperation"`
	TestCoverage         *BackendStatisticChart `json:"testCoverage"`
	MostUsedActivities   *BackendStatisticChart `json:"mostUsedActivities"`
	ActivitiesPerUser    *BackendStatisticChart `json:"activitiesPerUser"`
	UserRegistrations    *BackendStatisticChart `json:"userRegistrations"`
}

type BackendDashboardTag ¶

type BackendDashboardTag struct {
	// contains filtered or unexported fields
}

func NewBackendDashboardTag ¶

func NewBackendDashboardTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendDashboardTag

func (*BackendDashboardTag) GetAll ¶

func (client *BackendDashboardTag) GetAll() (*BackendDashboard, error)

GetAll

type BackendDatabaseRow ¶ added in v5.1.0

type BackendDatabaseRow = map[string]any

type BackendDatabaseRowCollection ¶ added in v5.1.13

type BackendDatabaseRowCollection struct {
	TotalResults int                  `json:"totalResults"`
	StartIndex   int                  `json:"startIndex"`
	ItemsPerPage int                  `json:"itemsPerPage"`
	Entry        []BackendDatabaseRow `json:"entry"`
}

type BackendDatabaseTable ¶ added in v5.1.0

type BackendDatabaseTable struct {
	Name        string                                     `json:"name"`
	Columns     []BackendDatabaseTableColumn               `json:"columns"`
	PrimaryKey  string                                     `json:"primaryKey"`
	Indexes     []BackendDatabaseTableIndex                `json:"indexes"`
	ForeignKeys []BackendDatabaseTableForeignKeyConstraint `json:"foreignKeys"`
}

type BackendDatabaseTableCollection ¶ added in v5.1.13

type BackendDatabaseTableCollection struct {
	TotalResults int                    `json:"totalResults"`
	StartIndex   int                    `json:"startIndex"`
	ItemsPerPage int                    `json:"itemsPerPage"`
	Entry        []BackendDatabaseTable `json:"entry"`
}

type BackendDatabaseTableColumn ¶ added in v5.1.0

type BackendDatabaseTableColumn struct {
	Name          string `json:"name"`
	Type          string `json:"type"`
	Length        int    `json:"length"`
	Precision     int    `json:"precision"`
	Scale         int    `json:"scale"`
	Unsigned      bool   `json:"unsigned"`
	Fixed         bool   `json:"fixed"`
	NotNull       bool   `json:"notNull"`
	AutoIncrement bool   `json:"autoIncrement"`
	Default       any    `json:"default"`
	Comment       string `json:"comment"`
}

type BackendDatabaseTableForeignKeyConstraint ¶ added in v5.1.0

type BackendDatabaseTableForeignKeyConstraint struct {
	Name               string   `json:"name"`
	ForeignTable       string   `json:"foreignTable"`
	LocalColumnNames   []string `json:"localColumnNames"`
	ForeignColumnNames []string `json:"foreignColumnNames"`
}

type BackendDatabaseTableIndex ¶ added in v5.1.0

type BackendDatabaseTableIndex struct {
	Name    string   `json:"name"`
	Unique  bool     `json:"unique"`
	Columns []string `json:"columns"`
}

type BackendDatabaseTag ¶ added in v5.1.0

type BackendDatabaseTag struct {
	// contains filtered or unexported fields
}

func NewBackendDatabaseTag ¶ added in v5.1.0

func NewBackendDatabaseTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendDatabaseTag

func (*BackendDatabaseTag) CreateRow ¶ added in v5.1.0

func (client *BackendDatabaseTag) CreateRow(connectionId string, tableName string, payload BackendDatabaseRow) (*CommonMessage, error)

CreateRow

func (*BackendDatabaseTag) CreateTable ¶ added in v5.1.0

func (client *BackendDatabaseTag) CreateTable(connectionId string, payload BackendDatabaseTable) (*CommonMessage, error)

CreateTable

func (*BackendDatabaseTag) DeleteRow ¶ added in v5.1.0

func (client *BackendDatabaseTag) DeleteRow(connectionId string, tableName string, id string) (*CommonMessage, error)

DeleteRow

func (*BackendDatabaseTag) DeleteTable ¶ added in v5.1.0

func (client *BackendDatabaseTag) DeleteTable(connectionId string, tableName string) (*CommonMessage, error)

DeleteTable

func (*BackendDatabaseTag) GetRow ¶ added in v5.1.0

func (client *BackendDatabaseTag) GetRow(connectionId string, tableName string, id string) (*BackendDatabaseRow, error)

GetRow

func (*BackendDatabaseTag) GetRows ¶ added in v5.1.0

func (client *BackendDatabaseTag) GetRows(connectionId string, tableName string, startIndex int, count int, filterBy string, filterOp string, filterValue string, sortBy string, sortOrder string, columns string) (*BackendDatabaseRowCollection, error)

GetRows

func (*BackendDatabaseTag) GetTable ¶ added in v5.1.0

func (client *BackendDatabaseTag) GetTable(connectionId string, tableName string) (*BackendDatabaseTable, error)

GetTable

func (*BackendDatabaseTag) GetTables ¶ added in v5.1.0

func (client *BackendDatabaseTag) GetTables(connectionId string) (*BackendDatabaseTableCollection, error)

GetTables

func (*BackendDatabaseTag) UpdateRow ¶ added in v5.1.0

func (client *BackendDatabaseTag) UpdateRow(connectionId string, tableName string, id string, payload BackendDatabaseRow) (*CommonMessage, error)

UpdateRow

func (*BackendDatabaseTag) UpdateTable ¶ added in v5.1.0

func (client *BackendDatabaseTag) UpdateTable(connectionId string, tableName string, payload BackendDatabaseTable) (*CommonMessage, error)

UpdateTable

type BackendEvent ¶

type BackendEvent struct {
	Id          int             `json:"id"`
	Name        string          `json:"name"`
	Description string          `json:"description"`
	Schema      string          `json:"schema"`
	Metadata    *CommonMetadata `json:"metadata"`
}

type BackendEventCollection ¶

type BackendEventCollection struct {
	TotalResults int            `json:"totalResults"`
	StartIndex   int            `json:"startIndex"`
	ItemsPerPage int            `json:"itemsPerPage"`
	Entry        []BackendEvent `json:"entry"`
}

type BackendEventCreate ¶

type BackendEventCreate struct {
	Id          int             `json:"id"`
	Name        string          `json:"name"`
	Description string          `json:"description"`
	Schema      string          `json:"schema"`
	Metadata    *CommonMetadata `json:"metadata"`
}

type BackendEventTag ¶

type BackendEventTag struct {
	// contains filtered or unexported fields
}

func NewBackendEventTag ¶

func NewBackendEventTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendEventTag

func (*BackendEventTag) Create ¶

func (client *BackendEventTag) Create(payload BackendEventCreate) (*CommonMessage, error)

Create

func (*BackendEventTag) Delete ¶

func (client *BackendEventTag) Delete(eventId string) (*CommonMessage, error)

Delete

func (*BackendEventTag) Get ¶

func (client *BackendEventTag) Get(eventId string) (*BackendEvent, error)

Get

func (*BackendEventTag) GetAll ¶

func (client *BackendEventTag) GetAll(startIndex int, count int, search string) (*BackendEventCollection, error)

GetAll

func (*BackendEventTag) Update ¶

func (client *BackendEventTag) Update(eventId string, payload BackendEventUpdate) (*CommonMessage, error)

Update

type BackendEventUpdate ¶

type BackendEventUpdate struct {
	Id          int             `json:"id"`
	Name        string          `json:"name"`
	Description string          `json:"description"`
	Schema      string          `json:"schema"`
	Metadata    *CommonMetadata `json:"metadata"`
}

type BackendFirewall ¶ added in v5.1.17

type BackendFirewall struct {
	Id       int             `json:"id"`
	Name     string          `json:"name"`
	Type     int             `json:"type"`
	Ip       string          `json:"ip"`
	Expire   string          `json:"expire"`
	Metadata *CommonMetadata `json:"metadata"`
}

type BackendFirewallCollection ¶ added in v5.1.17

type BackendFirewallCollection struct {
	TotalResults int               `json:"totalResults"`
	StartIndex   int               `json:"startIndex"`
	ItemsPerPage int               `json:"itemsPerPage"`
	Entry        []BackendFirewall `json:"entry"`
}

type BackendFirewallCreate ¶ added in v5.1.17

type BackendFirewallCreate struct {
	Id       int             `json:"id"`
	Name     string          `json:"name"`
	Type     int             `json:"type"`
	Ip       string          `json:"ip"`
	Expire   string          `json:"expire"`
	Metadata *CommonMetadata `json:"metadata"`
}

type BackendFirewallTag ¶ added in v5.1.17

type BackendFirewallTag struct {
	// contains filtered or unexported fields
}

func NewBackendFirewallTag ¶ added in v5.1.17

func NewBackendFirewallTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendFirewallTag

func (*BackendFirewallTag) Create ¶ added in v5.1.17

func (client *BackendFirewallTag) Create(payload BackendFirewallCreate) (*CommonMessage, error)

Create

func (*BackendFirewallTag) Delete ¶ added in v5.1.17

func (client *BackendFirewallTag) Delete(firewallId string) (*CommonMessage, error)

Delete

func (*BackendFirewallTag) Get ¶ added in v5.1.17

func (client *BackendFirewallTag) Get(firewallId string) (*BackendFirewall, error)

Get

func (*BackendFirewallTag) GetAll ¶ added in v5.1.17

func (client *BackendFirewallTag) GetAll(startIndex int, count int, search string) (*BackendFirewallCollection, error)

GetAll

func (*BackendFirewallTag) Update ¶ added in v5.1.17

func (client *BackendFirewallTag) Update(firewallId string, payload BackendFirewallUpdate) (*CommonMessage, error)

Update

type BackendFirewallUpdate ¶ added in v5.1.17

type BackendFirewallUpdate struct {
	Id       int             `json:"id"`
	Name     string          `json:"name"`
	Type     int             `json:"type"`
	Ip       string          `json:"ip"`
	Expire   string          `json:"expire"`
	Metadata *CommonMetadata `json:"metadata"`
}

type BackendForm ¶ added in v5.1.16

type BackendForm struct {
	Id          int             `json:"id"`
	Status      int             `json:"status"`
	Name        string          `json:"name"`
	OperationId int             `json:"operationId"`
	UiSchema    any             `json:"uiSchema"`
	Metadata    *CommonMetadata `json:"metadata"`
}

type BackendFormCollection ¶ added in v5.1.16

type BackendFormCollection struct {
	TotalResults int           `json:"totalResults"`
	StartIndex   int           `json:"startIndex"`
	ItemsPerPage int           `json:"itemsPerPage"`
	Entry        []BackendForm `json:"entry"`
}

type BackendFormCreate ¶ added in v5.1.16

type BackendFormCreate struct {
	Id          int             `json:"id"`
	Status      int             `json:"status"`
	Name        string          `json:"name"`
	OperationId int             `json:"operationId"`
	UiSchema    any             `json:"uiSchema"`
	Metadata    *CommonMetadata `json:"metadata"`
}

type BackendFormTag ¶ added in v5.1.16

type BackendFormTag struct {
	// contains filtered or unexported fields
}

func NewBackendFormTag ¶ added in v5.1.16

func NewBackendFormTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendFormTag

func (*BackendFormTag) Create ¶ added in v5.1.16

func (client *BackendFormTag) Create(payload BackendFormCreate) (*CommonMessage, error)

Create

func (*BackendFormTag) Delete ¶ added in v5.1.16

func (client *BackendFormTag) Delete(formId string) (*CommonMessage, error)

Delete

func (*BackendFormTag) Get ¶ added in v5.1.16

func (client *BackendFormTag) Get(formId string) (*BackendForm, error)

Get

func (*BackendFormTag) GetAll ¶ added in v5.1.16

func (client *BackendFormTag) GetAll(startIndex int, count int, search string) (*BackendFormCollection, error)

GetAll

func (*BackendFormTag) Update ¶ added in v5.1.16

func (client *BackendFormTag) Update(formId string, payload BackendFormUpdate) (*CommonMessage, error)

Update

type BackendFormUpdate ¶ added in v5.1.16

type BackendFormUpdate struct {
	Id          int             `json:"id"`
	Status      int             `json:"status"`
	Name        string          `json:"name"`
	OperationId int             `json:"operationId"`
	UiSchema    any             `json:"uiSchema"`
	Metadata    *CommonMetadata `json:"metadata"`
}

type BackendGeneratorIndexProvider ¶

type BackendGeneratorIndexProvider struct {
	Name  string `json:"name"`
	Class string `json:"class"`
}

type BackendGeneratorIndexProviders ¶

type BackendGeneratorIndexProviders struct {
	Providers []BackendGeneratorIndexProvider `json:"providers"`
}

type BackendGeneratorProvider ¶

type BackendGeneratorProvider struct {
	Path   string                          `json:"path"`
	Scopes []string                        `json:"scopes"`
	Public bool                            `json:"public"`
	Config *BackendGeneratorProviderConfig `json:"config"`
}

type BackendGeneratorProviderChangelog ¶

type BackendGeneratorProviderChangelog struct {
	Schemas    []BackendSchema    `json:"schemas"`
	Actions    []BackendAction    `json:"actions"`
	Operations []BackendOperation `json:"operations"`
}

type BackendGeneratorProviderConfig ¶

type BackendGeneratorProviderConfig = map[string]any

type BackendGeneratorTag ¶

type BackendGeneratorTag struct {
	// contains filtered or unexported fields
}

func NewBackendGeneratorTag ¶

func NewBackendGeneratorTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendGeneratorTag

func (*BackendGeneratorTag) ExecuteProvider ¶

func (client *BackendGeneratorTag) ExecuteProvider(provider string, payload BackendGeneratorProvider) (*CommonMessage, error)

ExecuteProvider

func (*BackendGeneratorTag) GetChangelog ¶

GetChangelog

func (*BackendGeneratorTag) GetClasses ¶

func (client *BackendGeneratorTag) GetClasses() (*BackendGeneratorIndexProviders, error)

GetClasses

func (*BackendGeneratorTag) GetForm ¶

func (client *BackendGeneratorTag) GetForm(provider string) (*CommonFormContainer, error)

GetForm

type BackendIdentity ¶

type BackendIdentity struct {
	Id          int                    `json:"id"`
	AppId       int                    `json:"appId"`
	RoleId      int                    `json:"roleId"`
	Name        string                 `json:"name"`
	Icon        string                 `json:"icon"`
	Class       string                 `json:"class"`
	Config      *BackendIdentityConfig `json:"config"`
	AllowCreate bool                   `json:"allowCreate"`
}

type BackendIdentityCollection ¶

type BackendIdentityCollection struct {
	TotalResults int               `json:"totalResults"`
	StartIndex   int               `json:"startIndex"`
	ItemsPerPage int               `json:"itemsPerPage"`
	Entry        []BackendIdentity `json:"entry"`
}

type BackendIdentityConfig ¶

type BackendIdentityConfig = map[string]any

type BackendIdentityCreate ¶

type BackendIdentityCreate struct {
	Id          int                    `json:"id"`
	AppId       int                    `json:"appId"`
	RoleId      int                    `json:"roleId"`
	Name        string                 `json:"name"`
	Icon        string                 `json:"icon"`
	Class       string                 `json:"class"`
	Config      *BackendIdentityConfig `json:"config"`
	AllowCreate bool                   `json:"allowCreate"`
}

type BackendIdentityIndex ¶

type BackendIdentityIndex struct {
	Providers []BackendIdentityIndexEntry `json:"providers"`
}

type BackendIdentityIndexEntry ¶

type BackendIdentityIndexEntry struct {
	Name  string `json:"name"`
	Class string `json:"class"`
}

type BackendIdentityTag ¶

type BackendIdentityTag struct {
	// contains filtered or unexported fields
}

func NewBackendIdentityTag ¶

func NewBackendIdentityTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendIdentityTag

func (*BackendIdentityTag) Create ¶

func (client *BackendIdentityTag) Create(payload BackendIdentityCreate) (*CommonMessage, error)

Create

func (*BackendIdentityTag) Delete ¶

func (client *BackendIdentityTag) Delete(identityId string) (*CommonMessage, error)

Delete

func (*BackendIdentityTag) Get ¶

func (client *BackendIdentityTag) Get(identityId string) (*BackendIdentity, error)

Get

func (*BackendIdentityTag) GetAll ¶

func (client *BackendIdentityTag) GetAll(startIndex int, count int, search string) (*BackendIdentityCollection, error)

GetAll

func (*BackendIdentityTag) GetClasses ¶

func (client *BackendIdentityTag) GetClasses() (*BackendIdentityIndex, error)

GetClasses

func (*BackendIdentityTag) GetForm ¶

func (client *BackendIdentityTag) GetForm(class string) (*CommonFormContainer, error)

GetForm

func (*BackendIdentityTag) Update ¶

func (client *BackendIdentityTag) Update(identityId string, payload BackendIdentityUpdate) (*CommonMessage, error)

Update

type BackendIdentityUpdate ¶

type BackendIdentityUpdate struct {
	Id          int                    `json:"id"`
	AppId       int                    `json:"appId"`
	RoleId      int                    `json:"roleId"`
	Name        string                 `json:"name"`
	Icon        string                 `json:"icon"`
	Class       string                 `json:"class"`
	Config      *BackendIdentityConfig `json:"config"`
	AllowCreate bool                   `json:"allowCreate"`
}

type BackendLog ¶

type BackendLog struct {
	Id        int               `json:"id"`
	Ip        string            `json:"ip"`
	UserAgent string            `json:"userAgent"`
	Method    string            `json:"method"`
	Path      string            `json:"path"`
	Header    string            `json:"header"`
	Body      string            `json:"body"`
	Date      string            `json:"date"`
	Errors    []BackendLogError `json:`
}

type BackendLogCollection ¶

type BackendLogCollection struct {
	TotalResults int          `json:"totalResults"`
	StartIndex   int          `json:"startIndex"`
	ItemsPerPage int          `json:"itemsPerPage"`
	Entry        []BackendLog `json:"entry"`
}

type BackendLogError ¶

type BackendLogError struct {
	Id         int    `json:"id"`
	LogId      int    `json:"logId"`
	Message    string `json:"message"`
	Trace      string `json:"trace"`
	File       string `json:"file"`
	Line       int    `json:"line"`
	InsertDate string `json:"insertDate"`
}

type BackendLogErrorCollection ¶

type BackendLogErrorCollection struct {
	TotalResults int               `json:"totalResults"`
	StartIndex   int               `json:"startIndex"`
	ItemsPerPage int               `json:"itemsPerPage"`
	Entry        []BackendLogError `json:"entry"`
}

type BackendLogTag ¶

type BackendLogTag struct {
	// contains filtered or unexported fields
}

func NewBackendLogTag ¶

func NewBackendLogTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendLogTag

func (*BackendLogTag) Get ¶

func (client *BackendLogTag) Get(logId string) (*BackendLog, error)

Get

func (*BackendLogTag) GetAll ¶

func (client *BackendLogTag) GetAll(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendLogCollection, error)

GetAll

func (*BackendLogTag) GetAllErrors ¶

func (client *BackendLogTag) GetAllErrors(startIndex int, count int, search string) (*BackendLogErrorCollection, error)

GetAllErrors

func (*BackendLogTag) GetError ¶

func (client *BackendLogTag) GetError(errorId string) (*BackendLogError, error)

GetError

type BackendMarketplaceActionTag ¶ added in v5.1.3

type BackendMarketplaceActionTag struct {
	// contains filtered or unexported fields
}

func NewBackendMarketplaceActionTag ¶ added in v5.1.3

func NewBackendMarketplaceActionTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendMarketplaceActionTag

func (*BackendMarketplaceActionTag) Get ¶ added in v5.1.3

func (client *BackendMarketplaceActionTag) Get(user string, name string) (*MarketplaceAction, error)

Get

func (*BackendMarketplaceActionTag) GetAll ¶ added in v5.1.3

func (client *BackendMarketplaceActionTag) GetAll(startIndex int, query string) (*MarketplaceActionCollection, error)

GetAll

func (*BackendMarketplaceActionTag) Install ¶ added in v5.1.3

Install

func (*BackendMarketplaceActionTag) Upgrade ¶ added in v5.1.3

func (client *BackendMarketplaceActionTag) Upgrade(user string, name string) (*CommonMessage, error)

Upgrade

type BackendMarketplaceAppTag ¶ added in v5.1.3

type BackendMarketplaceAppTag struct {
	// contains filtered or unexported fields
}

func NewBackendMarketplaceAppTag ¶ added in v5.1.3

func NewBackendMarketplaceAppTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendMarketplaceAppTag

func (*BackendMarketplaceAppTag) Get ¶ added in v5.1.3

func (client *BackendMarketplaceAppTag) Get(user string, name string) (*MarketplaceApp, error)

Get

func (*BackendMarketplaceAppTag) GetAll ¶ added in v5.1.3

func (client *BackendMarketplaceAppTag) GetAll(startIndex int, query string) (*MarketplaceAppCollection, error)

GetAll

func (*BackendMarketplaceAppTag) Install ¶ added in v5.1.3

Install

func (*BackendMarketplaceAppTag) Upgrade ¶ added in v5.1.3

func (client *BackendMarketplaceAppTag) Upgrade(user string, name string) (*MarketplaceMessage, error)

Upgrade

type BackendMarketplaceTag ¶

type BackendMarketplaceTag struct {
	// contains filtered or unexported fields
}

func NewBackendMarketplaceTag ¶

func NewBackendMarketplaceTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendMarketplaceTag

func (*BackendMarketplaceTag) Action ¶ added in v5.1.3

func (*BackendMarketplaceTag) App ¶ added in v5.1.3

type BackendOperation ¶

type BackendOperation struct {
	Id          int                         `json:"id"`
	Status      int                         `json:"status"`
	Active      bool                        `json:"active"`
	Public      bool                        `json:"public"`
	Stability   int                         `json:"stability"`
	Description string                      `json:"description"`
	HttpMethod  string                      `json:"httpMethod"`
	HttpPath    string                      `json:"httpPath"`
	HttpCode    int                         `json:"httpCode"`
	Name        string                      `json:"name"`
	Parameters  *BackendOperationParameters `json:"parameters"`
	Incoming    string                      `json:"incoming"`
	Outgoing    string                      `json:"outgoing"`
	Throws      *BackendOperationThrows     `json:"throws"`
	Action      string                      `json:"action"`
	Costs       int                         `json:"costs"`
	Scopes      []string                    `json:"scopes"`
	Metadata    *CommonMetadata             `json:"metadata"`
}

type BackendOperationCollection ¶

type BackendOperationCollection struct {
	TotalResults int                `json:"totalResults"`
	StartIndex   int                `json:"startIndex"`
	ItemsPerPage int                `json:"itemsPerPage"`
	Entry        []BackendOperation `json:"entry"`
}

type BackendOperationCreate ¶

type BackendOperationCreate struct {
	Id          int                         `json:"id"`
	Status      int                         `json:"status"`
	Active      bool                        `json:"active"`
	Public      bool                        `json:"public"`
	Stability   int                         `json:"stability"`
	Description string                      `json:"description"`
	HttpMethod  string                      `json:"httpMethod"`
	HttpPath    string                      `json:"httpPath"`
	HttpCode    int                         `json:"httpCode"`
	Name        string                      `json:"name"`
	Parameters  *BackendOperationParameters `json:"parameters"`
	Incoming    string                      `json:"incoming"`
	Outgoing    string                      `json:"outgoing"`
	Throws      *BackendOperationThrows     `json:"throws"`
	Action      string                      `json:"action"`
	Costs       int                         `json:"costs"`
	Scopes      []string                    `json:"scopes"`
	Metadata    *CommonMetadata             `json:"metadata"`
}

type BackendOperationParameters ¶

type BackendOperationParameters = map[string]BackendOperationSchema

type BackendOperationSchema ¶

type BackendOperationSchema struct {
	Description string `json:"description"`
	Type        string `json:"type"`
	Format      string `json:"format"`
	Enum        string `json:"enum"`
}

type BackendOperationTag ¶

type BackendOperationTag struct {
	// contains filtered or unexported fields
}

func NewBackendOperationTag ¶

func NewBackendOperationTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendOperationTag

func (*BackendOperationTag) Create ¶

func (client *BackendOperationTag) Create(payload BackendOperationCreate) (*CommonMessage, error)

Create

func (*BackendOperationTag) Delete ¶

func (client *BackendOperationTag) Delete(operationId string) (*CommonMessage, error)

Delete

func (*BackendOperationTag) Get ¶

func (client *BackendOperationTag) Get(operationId string) (*BackendOperation, error)

Get

func (*BackendOperationTag) GetAll ¶

func (client *BackendOperationTag) GetAll(startIndex int, count int, search string) (*BackendOperationCollection, error)

GetAll

func (*BackendOperationTag) Update ¶

func (client *BackendOperationTag) Update(operationId string, payload BackendOperationUpdate) (*CommonMessage, error)

Update

type BackendOperationThrows ¶

type BackendOperationThrows = map[string]string

type BackendOperationUpdate ¶

type BackendOperationUpdate struct {
	Id          int                         `json:"id"`
	Status      int                         `json:"status"`
	Active      bool                        `json:"active"`
	Public      bool                        `json:"public"`
	Stability   int                         `json:"stability"`
	Description string                      `json:"description"`
	HttpMethod  string                      `json:"httpMethod"`
	HttpPath    string                      `json:"httpPath"`
	HttpCode    int                         `json:"httpCode"`
	Name        string                      `json:"name"`
	Parameters  *BackendOperationParameters `json:"parameters"`
	Incoming    string                      `json:"incoming"`
	Outgoing    string                      `json:"outgoing"`
	Throws      *BackendOperationThrows     `json:"throws"`
	Action      string                      `json:"action"`
	Costs       int                         `json:"costs"`
	Scopes      []string                    `json:"scopes"`
	Metadata    *CommonMetadata             `json:"metadata"`
}

type BackendPage ¶

type BackendPage struct {
	Id       int             `json:"id"`
	Status   int             `json:"status"`
	Title    string          `json:"title"`
	Slug     string          `json:"slug"`
	Content  string          `json:"content"`
	Metadata *CommonMetadata `json:"metadata"`
}

type BackendPageCollection ¶

type BackendPageCollection struct {
	TotalResults int           `json:"totalResults"`
	StartIndex   int           `json:"startIndex"`
	ItemsPerPage int           `json:"itemsPerPage"`
	Entry        []BackendPage `json:"entry"`
}

type BackendPageCreate ¶

type BackendPageCreate struct {
	Id       int             `json:"id"`
	Status   int             `json:"status"`
	Title    string          `json:"title"`
	Slug     string          `json:"slug"`
	Content  string          `json:"content"`
	Metadata *CommonMetadata `json:"metadata"`
}

type BackendPageTag ¶

type BackendPageTag struct {
	// contains filtered or unexported fields
}

func NewBackendPageTag ¶

func NewBackendPageTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendPageTag

func (*BackendPageTag) Create ¶

func (client *BackendPageTag) Create(payload BackendPageCreate) (*CommonMessage, error)

Create

func (*BackendPageTag) Delete ¶

func (client *BackendPageTag) Delete(pageId string) (*CommonMessage, error)

Delete

func (*BackendPageTag) Get ¶

func (client *BackendPageTag) Get(pageId string) (*BackendPage, error)

Get

func (*BackendPageTag) GetAll ¶

func (client *BackendPageTag) GetAll(startIndex int, count int, search string) (*BackendPageCollection, error)

GetAll

func (*BackendPageTag) Update ¶

func (client *BackendPageTag) Update(pageId string, payload BackendPageUpdate) (*CommonMessage, error)

Update

type BackendPageUpdate ¶

type BackendPageUpdate struct {
	Id       int             `json:"id"`
	Status   int             `json:"status"`
	Title    string          `json:"title"`
	Slug     string          `json:"slug"`
	Content  string          `json:"content"`
	Metadata *CommonMetadata `json:"metadata"`
}

type BackendPlan ¶

type BackendPlan struct {
	Id          int             `json:"id"`
	Name        string          `json:"name"`
	Description string          `json:"description"`
	Price       float64         `json:"price"`
	Points      int             `json:"points"`
	Period      int             `json:"period"`
	ExternalId  string          `json:"externalId"`
	Scopes      []string        `json:"scopes"`
	Metadata    *CommonMetadata `json:"metadata"`
}

type BackendPlanCollection ¶

type BackendPlanCollection struct {
	TotalResults int           `json:"totalResults"`
	StartIndex   int           `json:"startIndex"`
	ItemsPerPage int           `json:"itemsPerPage"`
	Entry        []BackendPlan `json:"entry"`
}

type BackendPlanCreate ¶

type BackendPlanCreate struct {
	Id          int             `json:"id"`
	Name        string          `json:"name"`
	Description string          `json:"description"`
	Price       float64         `json:"price"`
	Points      int             `json:"points"`
	Period      int             `json:"period"`
	ExternalId  string          `json:"externalId"`
	Scopes      []string        `json:"scopes"`
	Metadata    *CommonMetadata `json:"metadata"`
}

type BackendPlanTag ¶

type BackendPlanTag struct {
	// contains filtered or unexported fields
}

func NewBackendPlanTag ¶

func NewBackendPlanTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendPlanTag

func (*BackendPlanTag) Create ¶

func (client *BackendPlanTag) Create(payload BackendPlanCreate) (*CommonMessage, error)

Create

func (*BackendPlanTag) Delete ¶

func (client *BackendPlanTag) Delete(planId string) (*CommonMessage, error)

Delete

func (*BackendPlanTag) Get ¶

func (client *BackendPlanTag) Get(planId string) (*BackendPlan, error)

Get

func (*BackendPlanTag) GetAll ¶

func (client *BackendPlanTag) GetAll(startIndex int, count int, search string) (*BackendPlanCollection, error)

GetAll

func (*BackendPlanTag) Update ¶

func (client *BackendPlanTag) Update(planId string, payload BackendPlanUpdate) (*CommonMessage, error)

Update

type BackendPlanUpdate ¶

type BackendPlanUpdate struct {
	Id          int             `json:"id"`
	Name        string          `json:"name"`
	Description string          `json:"description"`
	Price       float64         `json:"price"`
	Points      int             `json:"points"`
	Period      int             `json:"period"`
	ExternalId  string          `json:"externalId"`
	Scopes      []string        `json:"scopes"`
	Metadata    *CommonMetadata `json:"metadata"`
}

type BackendRate ¶

type BackendRate struct {
	Id         int                     `json:"id"`
	Priority   int                     `json:"priority"`
	Name       string                  `json:"name"`
	RateLimit  int                     `json:"rateLimit"`
	Timespan   string                  `json:"timespan"`
	Allocation []BackendRateAllocation `json:"allocation"`
	Metadata   *CommonMetadata         `json:"metadata"`
}

type BackendRateAllocation ¶

type BackendRateAllocation struct {
	Id            int  `json:"id"`
	OperationId   int  `json:"operationId"`
	UserId        int  `json:"userId"`
	PlanId        int  `json:"planId"`
	AppId         int  `json:"appId"`
	Authenticated bool `json:"authenticated"`
}

type BackendRateCollection ¶

type BackendRateCollection struct {
	TotalResults int           `json:"totalResults"`
	StartIndex   int           `json:"startIndex"`
	ItemsPerPage int           `json:"itemsPerPage"`
	Entry        []BackendRate `json:"entry"`
}

type BackendRateCreate ¶

type BackendRateCreate struct {
	Id         int                     `json:"id"`
	Priority   int                     `json:"priority"`
	Name       string                  `json:"name"`
	RateLimit  int                     `json:"rateLimit"`
	Timespan   string                  `json:"timespan"`
	Allocation []BackendRateAllocation `json:"allocation"`
	Metadata   *CommonMetadata         `json:"metadata"`
}

type BackendRateTag ¶

type BackendRateTag struct {
	// contains filtered or unexported fields
}

func NewBackendRateTag ¶

func NewBackendRateTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendRateTag

func (*BackendRateTag) Create ¶

func (client *BackendRateTag) Create(payload BackendRateCreate) (*CommonMessage, error)

Create

func (*BackendRateTag) Delete ¶

func (client *BackendRateTag) Delete(rateId string) (*CommonMessage, error)

Delete

func (*BackendRateTag) Get ¶

func (client *BackendRateTag) Get(rateId string) (*BackendRate, error)

Get

func (*BackendRateTag) GetAll ¶

func (client *BackendRateTag) GetAll(startIndex int, count int, search string) (*BackendRateCollection, error)

GetAll

func (*BackendRateTag) Update ¶

func (client *BackendRateTag) Update(rateId string, payload BackendRateUpdate) (*CommonMessage, error)

Update

type BackendRateUpdate ¶

type BackendRateUpdate struct {
	Id         int                     `json:"id"`
	Priority   int                     `json:"priority"`
	Name       string                  `json:"name"`
	RateLimit  int                     `json:"rateLimit"`
	Timespan   string                  `json:"timespan"`
	Allocation []BackendRateAllocation `json:"allocation"`
	Metadata   *CommonMetadata         `json:"metadata"`
}

type BackendRole ¶

type BackendRole struct {
	Id         int      `json:"id"`
	CategoryId int      `json:"categoryId"`
	Name       string   `json:"name"`
	Scopes     []string `json:"scopes"`
}

type BackendRoleCollection ¶

type BackendRoleCollection struct {
	TotalResults int           `json:"totalResults"`
	StartIndex   int           `json:"startIndex"`
	ItemsPerPage int           `json:"itemsPerPage"`
	Entry        []BackendRole `json:"entry"`
}

type BackendRoleCreate ¶

type BackendRoleCreate struct {
	Id         int      `json:"id"`
	CategoryId int      `json:"categoryId"`
	Name       string   `json:"name"`
	Scopes     []string `json:"scopes"`
}

type BackendRoleTag ¶

type BackendRoleTag struct {
	// contains filtered or unexported fields
}

func NewBackendRoleTag ¶

func NewBackendRoleTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendRoleTag

func (*BackendRoleTag) Create ¶

func (client *BackendRoleTag) Create(payload BackendRoleCreate) (*CommonMessage, error)

Create

func (*BackendRoleTag) Delete ¶

func (client *BackendRoleTag) Delete(roleId string) (*CommonMessage, error)

Delete

func (*BackendRoleTag) Get ¶

func (client *BackendRoleTag) Get(roleId string) (*BackendRole, error)

Get

func (*BackendRoleTag) GetAll ¶

func (client *BackendRoleTag) GetAll(startIndex int, count int, search string) (*BackendRoleCollection, error)

GetAll

func (*BackendRoleTag) Update ¶

func (client *BackendRoleTag) Update(roleId string, payload BackendRoleUpdate) (*CommonMessage, error)

Update

type BackendRoleUpdate ¶

type BackendRoleUpdate struct {
	Id         int      `json:"id"`
	CategoryId int      `json:"categoryId"`
	Name       string   `json:"name"`
	Scopes     []string `json:"scopes"`
}

type BackendSchema ¶

type BackendSchema struct {
	Id       int                  `json:"id"`
	Status   int                  `json:"status"`
	Name     string               `json:"name"`
	Source   *BackendSchemaSource `json:"source"`
	Form     *BackendSchemaForm   `json:"form"`
	Readonly bool                 `json:"readonly"`
	Metadata *CommonMetadata      `json:"metadata"`
}

type BackendSchemaCollection ¶

type BackendSchemaCollection struct {
	TotalResults int             `json:"totalResults"`
	StartIndex   int             `json:"startIndex"`
	ItemsPerPage int             `json:"itemsPerPage"`
	Entry        []BackendSchema `json:"entry"`
}

type BackendSchemaCreate ¶

type BackendSchemaCreate struct {
	Id       int                  `json:"id"`
	Status   int                  `json:"status"`
	Name     string               `json:"name"`
	Source   *BackendSchemaSource `json:"source"`
	Form     *BackendSchemaForm   `json:"form"`
	Readonly bool                 `json:"readonly"`
	Metadata *CommonMetadata      `json:"metadata"`
}

type BackendSchemaForm ¶

type BackendSchemaForm = map[string]any

Contains a UI vocabulary to describe the UI of the schema

type BackendSchemaPreviewResponse ¶

type BackendSchemaPreviewResponse struct {
	Preview string `json:"preview"`
}

type BackendSchemaSource ¶

type BackendSchemaSource = map[string]any

Contains the TypeSchema specification

type BackendSchemaTag ¶

type BackendSchemaTag struct {
	// contains filtered or unexported fields
}

func NewBackendSchemaTag ¶

func NewBackendSchemaTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendSchemaTag

func (*BackendSchemaTag) Create ¶

func (client *BackendSchemaTag) Create(payload BackendSchemaCreate) (*CommonMessage, error)

Create

func (*BackendSchemaTag) Delete ¶

func (client *BackendSchemaTag) Delete(schemaId string) (*CommonMessage, error)

Delete

func (*BackendSchemaTag) Get ¶

func (client *BackendSchemaTag) Get(schemaId string) (*BackendSchema, error)

Get

func (*BackendSchemaTag) GetAll ¶

func (client *BackendSchemaTag) GetAll(startIndex int, count int, search string) (*BackendSchemaCollection, error)

GetAll

func (*BackendSchemaTag) GetPreview ¶

func (client *BackendSchemaTag) GetPreview(schemaId string) (*BackendSchemaPreviewResponse, error)

GetPreview

func (*BackendSchemaTag) Update ¶

func (client *BackendSchemaTag) Update(schemaId string, payload BackendSchemaUpdate) (*CommonMessage, error)

Update

func (*BackendSchemaTag) UpdateForm ¶

func (client *BackendSchemaTag) UpdateForm(schemaId string, payload BackendSchemaForm) (*CommonMessage, error)

UpdateForm

type BackendSchemaUpdate ¶

type BackendSchemaUpdate struct {
	Id       int                  `json:"id"`
	Status   int                  `json:"status"`
	Name     string               `json:"name"`
	Source   *BackendSchemaSource `json:"source"`
	Form     *BackendSchemaForm   `json:"form"`
	Readonly bool                 `json:"readonly"`
	Metadata *CommonMetadata      `json:"metadata"`
}

type BackendScope ¶

type BackendScope struct {
	Id          int                     `json:"id"`
	Name        string                  `json:"name"`
	Description string                  `json:"description"`
	Operations  []BackendScopeOperation `json:"operations"`
	Metadata    *CommonMetadata         `json:"metadata"`
}

type BackendScopeCategories ¶

type BackendScopeCategories struct {
	Categories []BackendScopeCategory `json:"categories"`
}

type BackendScopeCategory ¶

type BackendScopeCategory struct {
	Id     int                         `json:"id"`
	Name   string                      `json:"name"`
	Scopes []BackendScopeCategoryScope `json:"scopes"`
}

type BackendScopeCategoryScope ¶

type BackendScopeCategoryScope struct {
	Id          int    `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type BackendScopeCollection ¶

type BackendScopeCollection struct {
	TotalResults int            `json:"totalResults"`
	StartIndex   int            `json:"startIndex"`
	ItemsPerPage int            `json:"itemsPerPage"`
	Entry        []BackendScope `json:"entry"`
}

type BackendScopeCreate ¶

type BackendScopeCreate struct {
	Id          int                     `json:"id"`
	Name        string                  `json:"name"`
	Description string                  `json:"description"`
	Operations  []BackendScopeOperation `json:"operations"`
	Metadata    *CommonMetadata         `json:"metadata"`
}

type BackendScopeOperation ¶

type BackendScopeOperation struct {
	OperationId int  `json:"operationId"`
	Allow       bool `json:"allow"`
}

type BackendScopeTag ¶

type BackendScopeTag struct {
	// contains filtered or unexported fields
}

func NewBackendScopeTag ¶

func NewBackendScopeTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendScopeTag

func (*BackendScopeTag) Create ¶

func (client *BackendScopeTag) Create(payload BackendScopeCreate) (*CommonMessage, error)

Create

func (*BackendScopeTag) Delete ¶

func (client *BackendScopeTag) Delete(scopeId string) (*CommonMessage, error)

Delete

func (*BackendScopeTag) Get ¶

func (client *BackendScopeTag) Get(scopeId string) (*BackendScope, error)

Get

func (*BackendScopeTag) GetAll ¶

func (client *BackendScopeTag) GetAll(startIndex int, count int, search string) (*BackendScopeCollection, error)

GetAll

func (*BackendScopeTag) GetCategories ¶

func (client *BackendScopeTag) GetCategories() (*BackendScopeCategories, error)

GetCategories

func (*BackendScopeTag) Update ¶

func (client *BackendScopeTag) Update(scopeId string, payload BackendScopeUpdate) (*CommonMessage, error)

Update

type BackendScopeUpdate ¶

type BackendScopeUpdate struct {
	Id          int                     `json:"id"`
	Name        string                  `json:"name"`
	Description string                  `json:"description"`
	Operations  []BackendScopeOperation `json:"operations"`
	Metadata    *CommonMetadata         `json:"metadata"`
}

type BackendSdkGenerate ¶

type BackendSdkGenerate struct {
	Format string `json:"format"`
	Config string `json:"config"`
}

type BackendSdkMessage ¶ added in v5.1.2

type BackendSdkMessage struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
	Link    string `json:"link"`
}

type BackendSdkResponse ¶

type BackendSdkResponse struct {
	Types *BackendSdkTypes `json:"types"`
}

type BackendSdkTag ¶

type BackendSdkTag struct {
	// contains filtered or unexported fields
}

func NewBackendSdkTag ¶

func NewBackendSdkTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendSdkTag

func (*BackendSdkTag) Generate ¶

func (client *BackendSdkTag) Generate(payload BackendSdkGenerate) (*BackendSdkMessage, error)

Generate

func (*BackendSdkTag) GetAll ¶

func (client *BackendSdkTag) GetAll() (*BackendSdkResponse, error)

GetAll

type BackendSdkTypes ¶

type BackendSdkTypes = map[string]string

type BackendStatisticChart ¶

type BackendStatisticChart struct {
	Labels []string                      `json:"labels"`
	Series []BackendStatisticChartSeries `json:"series"`
}

type BackendStatisticChartSeries ¶ added in v5.1.12

type BackendStatisticChartSeries struct {
	Name string    `json:"name"`
	Data []float64 `json:"data"`
}

type BackendStatisticCount ¶

type BackendStatisticCount struct {
	Count int    `json:"count"`
	From  string `json:"from"`
	To    string `json:"to"`
}

type BackendStatisticTag ¶

type BackendStatisticTag struct {
	// contains filtered or unexported fields
}

func NewBackendStatisticTag ¶

func NewBackendStatisticTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendStatisticTag

func (*BackendStatisticTag) GetActivitiesPerUser ¶ added in v5.1.6

func (client *BackendStatisticTag) GetActivitiesPerUser(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticChart, error)

GetActivitiesPerUser

func (*BackendStatisticTag) GetCountRequests ¶

func (client *BackendStatisticTag) GetCountRequests(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticCount, error)

GetCountRequests

func (*BackendStatisticTag) GetErrorsPerOperation ¶

func (client *BackendStatisticTag) GetErrorsPerOperation(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticChart, error)

GetErrorsPerOperation

func (*BackendStatisticTag) GetIncomingRequests ¶

func (client *BackendStatisticTag) GetIncomingRequests(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticChart, error)

GetIncomingRequests

func (*BackendStatisticTag) GetIncomingTransactions ¶

func (client *BackendStatisticTag) GetIncomingTransactions(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticChart, error)

GetIncomingTransactions

func (*BackendStatisticTag) GetIssuedTokens ¶

func (client *BackendStatisticTag) GetIssuedTokens(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticChart, error)

GetIssuedTokens

func (*BackendStatisticTag) GetMostUsedActivities ¶ added in v5.1.6

func (client *BackendStatisticTag) GetMostUsedActivities(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticChart, error)

GetMostUsedActivities

func (*BackendStatisticTag) GetMostUsedApps ¶

func (client *BackendStatisticTag) GetMostUsedApps(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticChart, error)

GetMostUsedApps

func (*BackendStatisticTag) GetMostUsedOperations ¶

func (client *BackendStatisticTag) GetMostUsedOperations(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticChart, error)

GetMostUsedOperations

func (*BackendStatisticTag) GetTestCoverage ¶ added in v5.1.5

func (client *BackendStatisticTag) GetTestCoverage() (*BackendStatisticChart, error)

GetTestCoverage

func (*BackendStatisticTag) GetTimeAverage ¶

func (client *BackendStatisticTag) GetTimeAverage(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticChart, error)

GetTimeAverage

func (*BackendStatisticTag) GetTimePerOperation ¶

func (client *BackendStatisticTag) GetTimePerOperation(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticChart, error)

GetTimePerOperation

func (*BackendStatisticTag) GetUsedPoints ¶

func (client *BackendStatisticTag) GetUsedPoints(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticChart, error)

GetUsedPoints

func (*BackendStatisticTag) GetUserRegistrations ¶ added in v5.1.6

func (client *BackendStatisticTag) GetUserRegistrations(startIndex int, count int, search string, from string, to string, operationId int, appId int, userId int, ip string, userAgent string, method string, path string, header string, body string) (*BackendStatisticChart, error)

GetUserRegistrations

type BackendTag ¶

type BackendTag struct {
	// contains filtered or unexported fields
}

func NewBackendTag ¶

func NewBackendTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendTag

func (*BackendTag) Account ¶

func (client *BackendTag) Account() *BackendAccountTag

func (*BackendTag) Action ¶

func (client *BackendTag) Action() *BackendActionTag

func (*BackendTag) App ¶

func (client *BackendTag) App() *BackendAppTag

func (*BackendTag) Audit ¶

func (client *BackendTag) Audit() *BackendAuditTag

func (*BackendTag) Backup ¶ added in v5.0.5

func (client *BackendTag) Backup() *BackendBackupTag

func (*BackendTag) Category ¶

func (client *BackendTag) Category() *BackendCategoryTag

func (*BackendTag) Config ¶

func (client *BackendTag) Config() *BackendConfigTag

func (*BackendTag) Connection ¶

func (client *BackendTag) Connection() *BackendConnectionTag

func (*BackendTag) Cronjob ¶

func (client *BackendTag) Cronjob() *BackendCronjobTag

func (*BackendTag) Dashboard ¶

func (client *BackendTag) Dashboard() *BackendDashboardTag

func (*BackendTag) Database ¶ added in v5.1.0

func (client *BackendTag) Database() *BackendDatabaseTag

func (*BackendTag) Event ¶

func (client *BackendTag) Event() *BackendEventTag

func (*BackendTag) Firewall ¶ added in v5.1.17

func (client *BackendTag) Firewall() *BackendFirewallTag

func (*BackendTag) Form ¶ added in v5.1.16

func (client *BackendTag) Form() *BackendFormTag

func (*BackendTag) Generator ¶

func (client *BackendTag) Generator() *BackendGeneratorTag

func (*BackendTag) Identity ¶

func (client *BackendTag) Identity() *BackendIdentityTag

func (*BackendTag) Log ¶

func (client *BackendTag) Log() *BackendLogTag

func (*BackendTag) Marketplace ¶

func (client *BackendTag) Marketplace() *BackendMarketplaceTag

func (*BackendTag) Operation ¶

func (client *BackendTag) Operation() *BackendOperationTag

func (*BackendTag) Page ¶

func (client *BackendTag) Page() *BackendPageTag

func (*BackendTag) Plan ¶

func (client *BackendTag) Plan() *BackendPlanTag

func (*BackendTag) Rate ¶

func (client *BackendTag) Rate() *BackendRateTag

func (*BackendTag) Role ¶

func (client *BackendTag) Role() *BackendRoleTag

func (*BackendTag) Schema ¶

func (client *BackendTag) Schema() *BackendSchemaTag

func (*BackendTag) Scope ¶

func (client *BackendTag) Scope() *BackendScopeTag

func (*BackendTag) Sdk ¶

func (client *BackendTag) Sdk() *BackendSdkTag

func (*BackendTag) Statistic ¶

func (client *BackendTag) Statistic() *BackendStatisticTag

func (*BackendTag) Tenant ¶

func (client *BackendTag) Tenant() *BackendTenantTag

func (*BackendTag) Test ¶ added in v5.1.4

func (client *BackendTag) Test() *BackendTestTag

func (*BackendTag) Token ¶

func (client *BackendTag) Token() *BackendTokenTag

func (*BackendTag) Transaction ¶

func (client *BackendTag) Transaction() *BackendTransactionTag

func (*BackendTag) Trash ¶

func (client *BackendTag) Trash() *BackendTrashTag

func (*BackendTag) User ¶

func (client *BackendTag) User() *BackendUserTag

func (*BackendTag) Webhook ¶

func (client *BackendTag) Webhook() *BackendWebhookTag

type BackendTenantTag ¶

type BackendTenantTag struct {
	// contains filtered or unexported fields
}

func NewBackendTenantTag ¶

func NewBackendTenantTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendTenantTag

func (*BackendTenantTag) Remove ¶

func (client *BackendTenantTag) Remove(tenantId string) (*CommonMessage, error)

Remove

func (*BackendTenantTag) Setup ¶

func (client *BackendTenantTag) Setup(tenantId string) (*CommonMessage, error)

Setup

type BackendTestCollection ¶ added in v5.1.4

type BackendTestCollection struct {
	TotalResults int           `json:"totalResults"`
	StartIndex   int           `json:"startIndex"`
	ItemsPerPage int           `json:"itemsPerPage"`
	Entry        []BackendTest `json:"entry"`
}

type BackendTestConfig ¶ added in v5.1.4

type BackendTestConfig struct {
	Method       string                           `json:"method"`
	UriFragments string                           `json:"uriFragments"`
	Parameters   string                           `json:"parameters"`
	Headers      string                           `json:"headers"`
	Body         *BackendActionExecuteRequestBody `json:"body"`
}

type BackendTestTag ¶ added in v5.1.4

type BackendTestTag struct {
	// contains filtered or unexported fields
}

func NewBackendTestTag ¶ added in v5.1.4

func NewBackendTestTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendTestTag

func (*BackendTestTag) Get ¶ added in v5.1.4

func (client *BackendTestTag) Get(testId string) (*BackendTest, error)

Get

func (*BackendTestTag) GetAll ¶ added in v5.1.4

func (client *BackendTestTag) GetAll(startIndex int, count int, search string) (*BackendTestCollection, error)

GetAll

func (*BackendTestTag) Refresh ¶ added in v5.1.4

func (client *BackendTestTag) Refresh() (*CommonMessage, error)

Refresh

func (*BackendTestTag) Run ¶ added in v5.1.4

func (client *BackendTestTag) Run() (*CommonMessage, error)

Run

func (*BackendTestTag) Update ¶ added in v5.1.4

func (client *BackendTestTag) Update(testId string, payload BackendTest) (*CommonMessage, error)

Update

type BackendToken ¶

type BackendToken struct {
	Id     int      `json:"id"`
	Status int      `json:"status"`
	Name   string   `json:"name"`
	Scopes []string `json:"scopes"`
	Ip     string   `json:"ip"`
	Expire string   `json:"expire"`
	Date   string   `json:"date"`
}

type BackendTokenCollection ¶

type BackendTokenCollection struct {
	TotalResults int            `json:"totalResults"`
	StartIndex   int            `json:"startIndex"`
	ItemsPerPage int            `json:"itemsPerPage"`
	Entry        []BackendToken `json:"entry"`
}

type BackendTokenTag ¶

type BackendTokenTag struct {
	// contains filtered or unexported fields
}

func NewBackendTokenTag ¶

func NewBackendTokenTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendTokenTag

func (*BackendTokenTag) Get ¶

func (client *BackendTokenTag) Get(tokenId string) (*BackendToken, error)

Get

func (*BackendTokenTag) GetAll ¶

func (client *BackendTokenTag) GetAll(startIndex int, count int, search string, from string, to string, appId int, userId int, status int, scope string, ip string) (*BackendTokenCollection, error)

GetAll

type BackendTransaction ¶

type BackendTransaction struct {
	Id            int     `json:"id"`
	UserId        int     `json:"userId"`
	PlanId        int     `json:"planId"`
	TransactionId string  `json:"transactionId"`
	Amount        float64 `json:"amount"`
	Points        float64 `json:"points"`
	PeriodStart   string  `json:"periodStart"`
	PeriodEnd     string  `json:"periodEnd"`
	InsertDate    string  `json:"insertDate"`
}

type BackendTransactionCollection ¶

type BackendTransactionCollection struct {
	TotalResults int                  `json:"totalResults"`
	StartIndex   int                  `json:"startIndex"`
	ItemsPerPage int                  `json:"itemsPerPage"`
	Entry        []BackendTransaction `json:"entry"`
}

type BackendTransactionTag ¶

type BackendTransactionTag struct {
	// contains filtered or unexported fields
}

func NewBackendTransactionTag ¶

func NewBackendTransactionTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendTransactionTag

func (*BackendTransactionTag) Get ¶

func (client *BackendTransactionTag) Get(transactionId string) (*BackendTransaction, error)

Get

func (*BackendTransactionTag) GetAll ¶

func (client *BackendTransactionTag) GetAll(startIndex int, count int, search string, from string, to string, planId int, userId int, appId int, status string, provider string) (*BackendTransactionCollection, error)

GetAll

type BackendTrashData ¶

type BackendTrashData struct {
	Id     int    `json:"id"`
	Status int    `json:"status"`
	Name   string `json:"name"`
}

type BackendTrashDataCollection ¶

type BackendTrashDataCollection struct {
	TotalResults int                `json:"totalResults"`
	StartIndex   int                `json:"startIndex"`
	ItemsPerPage int                `json:"itemsPerPage"`
	Entry        []BackendTrashData `json:"entry"`
}

type BackendTrashRestore ¶

type BackendTrashRestore struct {
	Id int `json:"id"`
}

type BackendTrashTag ¶

type BackendTrashTag struct {
	// contains filtered or unexported fields
}

func NewBackendTrashTag ¶

func NewBackendTrashTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendTrashTag

func (*BackendTrashTag) GetAllByType ¶

func (client *BackendTrashTag) GetAllByType(_type string, startIndex int, count int, search string) (*BackendTrashDataCollection, error)

GetAllByType

func (*BackendTrashTag) GetTypes ¶

func (client *BackendTrashTag) GetTypes() (*BackendTrashTypes, error)

GetTypes

func (*BackendTrashTag) Restore ¶

func (client *BackendTrashTag) Restore(_type string, payload BackendTrashRestore) (*CommonMessage, error)

Restore

type BackendTrashTypes ¶

type BackendTrashTypes struct {
	Types []string `json:"types"`
}

type BackendUser ¶

type BackendUser struct {
	Id       int             `json:"id"`
	RoleId   int             `json:"roleId"`
	PlanId   int             `json:"planId"`
	Status   int             `json:"status"`
	Name     string          `json:"name"`
	Email    string          `json:"email"`
	Points   int             `json:"points"`
	Scopes   []string        `json:"scopes"`
	Apps     []BackendApp    `json:"apps"`
	Metadata *CommonMetadata `json:"metadata"`
	Date     string          `json:"date"`
}

type BackendUserCollection ¶

type BackendUserCollection struct {
	TotalResults int           `json:"totalResults"`
	StartIndex   int           `json:"startIndex"`
	ItemsPerPage int           `json:"itemsPerPage"`
	Entry        []BackendUser `json:"entry"`
}

type BackendUserCreate ¶

type BackendUserCreate struct {
	Id       int             `json:"id"`
	RoleId   int             `json:"roleId"`
	PlanId   int             `json:"planId"`
	Status   int             `json:"status"`
	Name     string          `json:"name"`
	Email    string          `json:"email"`
	Points   int             `json:"points"`
	Scopes   []string        `json:"scopes"`
	Apps     []BackendApp    `json:"apps"`
	Metadata *CommonMetadata `json:"metadata"`
	Date     string          `json:"date"`
	Password string          `json:"password"`
}

type BackendUserTag ¶

type BackendUserTag struct {
	// contains filtered or unexported fields
}

func NewBackendUserTag ¶

func NewBackendUserTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendUserTag

func (*BackendUserTag) Create ¶

func (client *BackendUserTag) Create(payload BackendUserCreate) (*CommonMessage, error)

Create

func (*BackendUserTag) Delete ¶

func (client *BackendUserTag) Delete(userId string) (*CommonMessage, error)

Delete

func (*BackendUserTag) Get ¶

func (client *BackendUserTag) Get(userId string) (*BackendUser, error)

Get

func (*BackendUserTag) GetAll ¶

func (client *BackendUserTag) GetAll(startIndex int, count int, search string) (*BackendUserCollection, error)

GetAll

func (*BackendUserTag) Update ¶

func (client *BackendUserTag) Update(userId string, payload BackendUserUpdate) (*CommonMessage, error)

Update

type BackendUserUpdate ¶

type BackendUserUpdate struct {
	Id       int             `json:"id"`
	RoleId   int             `json:"roleId"`
	PlanId   int             `json:"planId"`
	Status   int             `json:"status"`
	Name     string          `json:"name"`
	Email    string          `json:"email"`
	Points   int             `json:"points"`
	Scopes   []string        `json:"scopes"`
	Apps     []BackendApp    `json:"apps"`
	Metadata *CommonMetadata `json:"metadata"`
	Date     string          `json:"date"`
}

type BackendWebhook ¶

type BackendWebhook struct {
	Id        int                      `json:"id"`
	EventId   int                      `json:"eventId"`
	UserId    int                      `json:"userId"`
	Name      string                   `json:"name"`
	Endpoint  string                   `json:"endpoint"`
	Responses []BackendWebhookResponse `json:"responses"`
}

type BackendWebhookCollection ¶

type BackendWebhookCollection struct {
	TotalResults int              `json:"totalResults"`
	StartIndex   int              `json:"startIndex"`
	ItemsPerPage int              `json:"itemsPerPage"`
	Entry        []BackendWebhook `json:"entry"`
}

type BackendWebhookCreate ¶

type BackendWebhookCreate struct {
	Id        int                      `json:"id"`
	EventId   int                      `json:"eventId"`
	UserId    int                      `json:"userId"`
	Name      string                   `json:"name"`
	Endpoint  string                   `json:"endpoint"`
	Responses []BackendWebhookResponse `json:"responses"`
}

type BackendWebhookResponse ¶

type BackendWebhookResponse struct {
	Id          int    `json:"id"`
	Status      int    `json:"status"`
	Code        int    `json:"code"`
	Attempts    int    `json:"attempts"`
	Error       string `json:"error"`
	ExecuteDate string `json:"executeDate"`
}

type BackendWebhookTag ¶

type BackendWebhookTag struct {
	// contains filtered or unexported fields
}

func NewBackendWebhookTag ¶

func NewBackendWebhookTag(httpClient *http.Client, parser *sdkgen.Parser) *BackendWebhookTag

func (*BackendWebhookTag) Create ¶

func (client *BackendWebhookTag) Create(payload BackendWebhookCreate) (*CommonMessage, error)

Create

func (*BackendWebhookTag) Delete ¶

func (client *BackendWebhookTag) Delete(webhookId string) (*CommonMessage, error)

Delete

func (*BackendWebhookTag) Get ¶

func (client *BackendWebhookTag) Get(webhookId string) (*BackendWebhook, error)

Get

func (*BackendWebhookTag) GetAll ¶

func (client *BackendWebhookTag) GetAll(startIndex int, count int, search string) (*BackendWebhookCollection, error)

GetAll

func (*BackendWebhookTag) Update ¶

func (client *BackendWebhookTag) Update(webhookId string, payload BackendWebhookUpdate) (*CommonMessage, error)

Update

type BackendWebhookUpdate ¶

type BackendWebhookUpdate struct {
	Id        int                      `json:"id"`
	EventId   int                      `json:"eventId"`
	UserId    int                      `json:"userId"`
	Name      string                   `json:"name"`
	Endpoint  string                   `json:"endpoint"`
	Responses []BackendWebhookResponse `json:"responses"`
}

type Client ¶

type Client struct {
	// contains filtered or unexported fields
}

func BuildAnonymous ¶ added in v5.1.9

func BuildAnonymous(baseUrl string) (*Client, error)

func NewClient ¶

func NewClient(baseUrl string, credentials sdkgen.CredentialsInterface) (*Client, error)

func (*Client) Authorization ¶

func (client *Client) Authorization() *AuthorizationTag

func (*Client) Backend ¶

func (client *Client) Backend() *BackendTag

func (*Client) Consumer ¶

func (client *Client) Consumer() *ConsumerTag

func (*Client) System ¶

func (client *Client) System() *SystemTag

type CommonCollection ¶

type CommonCollection[T any] struct {
	TotalResults int `json:"totalResults"`
	StartIndex   int `json:"startIndex"`
	ItemsPerPage int `json:"itemsPerPage"`
	Entry        []T `json:"entry"`
}

Base collection

type CommonFormContainer ¶

type CommonFormContainer struct {
	Element []CommonFormElement `json:"element"`
}

type CommonFormElement ¶

type CommonFormElement struct {
	Type    string `json:"type"`
	Element string `json:"element"`
	Name    string `json:"name"`
	Title   string `json:"title"`
	Help    string `json:"help"`
}

type CommonFormElementInput ¶

type CommonFormElementInput struct {
	Type    string `json:"type"`
	Element string `json:"element"`
	Name    string `json:"name"`
	Title   string `json:"title"`
	Help    string `json:"help"`
}

type CommonFormElementSelect ¶

type CommonFormElementSelect struct {
	Type    string                          `json:"type"`
	Element string                          `json:"element"`
	Name    string                          `json:"name"`
	Title   string                          `json:"title"`
	Help    string                          `json:"help"`
	Options []CommonFormElementSelectOption `json:"options"`
}

type CommonFormElementSelectOption ¶

type CommonFormElementSelectOption struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type CommonFormElementTag ¶

type CommonFormElementTag struct {
	Type    string `json:"type"`
	Element string `json:"element"`
	Name    string `json:"name"`
	Title   string `json:"title"`
	Help    string `json:"help"`
}

type CommonFormElementTextArea ¶

type CommonFormElementTextArea struct {
	Type    string `json:"type"`
	Element string `json:"element"`
	Name    string `json:"name"`
	Title   string `json:"title"`
	Help    string `json:"help"`
	Mode    string `json:"mode"`
}

type CommonMessage ¶

type CommonMessage struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
	Id      string `json:"id"`
}

Common error message

type CommonMessageException ¶

type CommonMessageException struct {
	Payload  CommonMessage
	Previous error
}

func (*CommonMessageException) Error ¶

func (e *CommonMessageException) Error() string

type CommonMetadata ¶

type CommonMetadata = map[string]string

type ConsumerAccountTag ¶

type ConsumerAccountTag struct {
	// contains filtered or unexported fields
}

func NewConsumerAccountTag ¶

func NewConsumerAccountTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerAccountTag

func (*ConsumerAccountTag) Activate ¶

func (client *ConsumerAccountTag) Activate(payload ConsumerUserActivate) (*CommonMessage, error)

Activate

func (*ConsumerAccountTag) Authorize ¶

Authorize

func (*ConsumerAccountTag) ChangePassword ¶

func (client *ConsumerAccountTag) ChangePassword(payload BackendAccountChangePassword) (*CommonMessage, error)

ChangePassword

func (*ConsumerAccountTag) ExecutePasswordReset ¶

func (client *ConsumerAccountTag) ExecutePasswordReset(payload ConsumerUserPasswordReset) (*CommonMessage, error)

ExecutePasswordReset

func (*ConsumerAccountTag) Get ¶

func (client *ConsumerAccountTag) Get() (*ConsumerUserAccount, error)

Get

func (*ConsumerAccountTag) GetApp ¶

func (client *ConsumerAccountTag) GetApp() (*ConsumerAuthorizeMeta, error)

GetApp

func (*ConsumerAccountTag) Login ¶

func (client *ConsumerAccountTag) Login(payload ConsumerUserLogin) (*ConsumerUserJWT, error)

Login

func (*ConsumerAccountTag) Refresh ¶

func (client *ConsumerAccountTag) Refresh(payload ConsumerUserRefresh) (*ConsumerUserJWT, error)

Refresh

func (*ConsumerAccountTag) Register ¶

func (client *ConsumerAccountTag) Register(payload ConsumerUserRegister) (*CommonMessage, error)

Register

func (*ConsumerAccountTag) RequestPasswordReset ¶

func (client *ConsumerAccountTag) RequestPasswordReset(payload ConsumerUserEmail) (*CommonMessage, error)

RequestPasswordReset

func (*ConsumerAccountTag) Update ¶

func (client *ConsumerAccountTag) Update(payload ConsumerUserAccount) (*CommonMessage, error)

Update

type ConsumerApp ¶

type ConsumerApp struct {
	Id        int             `json:"id"`
	UserId    int             `json:"userId"`
	Status    int             `json:"status"`
	Name      string          `json:"name"`
	Url       string          `json:"url"`
	AppKey    string          `json:"appKey"`
	AppSecret string          `json:"appSecret"`
	Date      string          `json:"date"`
	Scopes    []string        `json:"scopes"`
	Metadata  *CommonMetadata `json:"metadata"`
}

type ConsumerAppCollection ¶

type ConsumerAppCollection struct {
	TotalResults int           `json:"totalResults"`
	StartIndex   int           `json:"startIndex"`
	ItemsPerPage int           `json:"itemsPerPage"`
	Entry        []ConsumerApp `json:"entry"`
}

type ConsumerAppCreate ¶

type ConsumerAppCreate struct {
	Name   string   `json:"name"`
	Url    string   `json:"url"`
	Scopes []string `json:"scopes"`
}

type ConsumerAppTag ¶

type ConsumerAppTag struct {
	// contains filtered or unexported fields
}

func NewConsumerAppTag ¶

func NewConsumerAppTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerAppTag

func (*ConsumerAppTag) Create ¶

func (client *ConsumerAppTag) Create(payload ConsumerAppCreate) (*CommonMessage, error)

Create

func (*ConsumerAppTag) Delete ¶

func (client *ConsumerAppTag) Delete(appId string) (*CommonMessage, error)

Delete

func (*ConsumerAppTag) Get ¶

func (client *ConsumerAppTag) Get(appId string) (*ConsumerApp, error)

Get

func (*ConsumerAppTag) GetAll ¶

func (client *ConsumerAppTag) GetAll(startIndex int, count int, search string) (*ConsumerAppCollection, error)

GetAll

func (*ConsumerAppTag) Update ¶

func (client *ConsumerAppTag) Update(appId string, payload ConsumerAppUpdate) (*CommonMessage, error)

Update

type ConsumerAppUpdate ¶

type ConsumerAppUpdate struct {
	Name   string   `json:"name"`
	Url    string   `json:"url"`
	Scopes []string `json:"scopes"`
}

type ConsumerAuthorizeMeta ¶

type ConsumerAuthorizeMeta struct {
	Name   string          `json:"name"`
	Url    string          `json:"url"`
	Scopes []ConsumerScope `json:"scopes"`
}

type ConsumerAuthorizeRequest ¶

type ConsumerAuthorizeRequest struct {
	ResponseType string `json:"responseType"`
	ClientId     string `json:"clientId"`
	RedirectUri  string `json:"redirectUri"`
	Scope        string `json:"scope"`
	State        string `json:"state"`
	Allow        bool   `json:"allow"`
}

type ConsumerAuthorizeResponse ¶

type ConsumerAuthorizeResponse struct {
	Type        string                          `json:"type"`
	Token       *ConsumerAuthorizeResponseToken `json:"token"`
	Code        string                          `json:"code"`
	RedirectUri string                          `json:"redirectUri"`
}

type ConsumerAuthorizeResponseToken ¶

type ConsumerAuthorizeResponseToken struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	ExpiresIn   string `json:"expires_in"`
	Scope       string `json:"scope"`
}

type ConsumerEvent ¶

type ConsumerEvent struct {
	Id          int             `json:"id"`
	Name        string          `json:"name"`
	Description string          `json:"description"`
	Metadata    *CommonMetadata `json:"metadata"`
}

type ConsumerEventCollection ¶

type ConsumerEventCollection struct {
	TotalResults int             `json:"totalResults"`
	StartIndex   int             `json:"startIndex"`
	ItemsPerPage int             `json:"itemsPerPage"`
	Entry        []ConsumerEvent `json:"entry"`
}

type ConsumerEventTag ¶

type ConsumerEventTag struct {
	// contains filtered or unexported fields
}

func NewConsumerEventTag ¶

func NewConsumerEventTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerEventTag

func (*ConsumerEventTag) Get ¶ added in v5.1.11

func (client *ConsumerEventTag) Get(eventId string) (*ConsumerEvent, error)

Get

func (*ConsumerEventTag) GetAll ¶

func (client *ConsumerEventTag) GetAll(startIndex int, count int, search string) (*ConsumerEventCollection, error)

GetAll

type ConsumerForm ¶ added in v5.1.16

type ConsumerForm struct {
	Id         int             `json:"id"`
	Name       string          `json:"name"`
	Action     string          `json:"action"`
	Method     string          `json:"method"`
	JsonSchema any             `json:"jsonSchema"`
	UiSchema   any             `json:"uiSchema"`
	Metadata   *CommonMetadata `json:"metadata"`
}

type ConsumerFormCollection ¶ added in v5.1.16

type ConsumerFormCollection struct {
	TotalResults int            `json:"totalResults"`
	StartIndex   int            `json:"startIndex"`
	ItemsPerPage int            `json:"itemsPerPage"`
	Entry        []ConsumerForm `json:"entry"`
}

type ConsumerFormTag ¶ added in v5.1.16

type ConsumerFormTag struct {
	// contains filtered or unexported fields
}

func NewConsumerFormTag ¶ added in v5.1.16

func NewConsumerFormTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerFormTag

func (*ConsumerFormTag) Get ¶ added in v5.1.16

func (client *ConsumerFormTag) Get(formId string) (*ConsumerForm, error)

Get

func (*ConsumerFormTag) GetAll ¶ added in v5.1.16

func (client *ConsumerFormTag) GetAll(startIndex int, count int, search string) (*ConsumerFormCollection, error)

GetAll

type ConsumerGrant ¶

type ConsumerGrant struct {
	Id         int          `json:"id"`
	App        *ConsumerApp `json:"app"`
	CreateDate string       `json:"createDate"`
}

type ConsumerGrantCollection ¶

type ConsumerGrantCollection struct {
	TotalResults int             `json:"totalResults"`
	StartIndex   int             `json:"startIndex"`
	ItemsPerPage int             `json:"itemsPerPage"`
	Entry        []ConsumerGrant `json:"entry"`
}

type ConsumerGrantTag ¶

type ConsumerGrantTag struct {
	// contains filtered or unexported fields
}

func NewConsumerGrantTag ¶

func NewConsumerGrantTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerGrantTag

func (*ConsumerGrantTag) Delete ¶

func (client *ConsumerGrantTag) Delete(grantId string) (*CommonMessage, error)

Delete

func (*ConsumerGrantTag) GetAll ¶

func (client *ConsumerGrantTag) GetAll(startIndex int, count int, search string) (*ConsumerGrantCollection, error)

GetAll

type ConsumerIdentity ¶

type ConsumerIdentity struct {
	Id       int    `json:"id"`
	Name     string `json:"name"`
	Icon     string `json:"icon"`
	Redirect string `json:"redirect"`
}

type ConsumerIdentityCollection ¶

type ConsumerIdentityCollection struct {
	TotalResults int                `json:"totalResults"`
	StartIndex   int                `json:"startIndex"`
	ItemsPerPage int                `json:"itemsPerPage"`
	Entry        []ConsumerIdentity `json:"entry"`
}

type ConsumerIdentityTag ¶

type ConsumerIdentityTag struct {
	// contains filtered or unexported fields
}

func NewConsumerIdentityTag ¶

func NewConsumerIdentityTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerIdentityTag

func (*ConsumerIdentityTag) Exchange ¶

func (client *ConsumerIdentityTag) Exchange(identity string) (*Passthru, error)

Exchange

func (*ConsumerIdentityTag) GetAll ¶

func (client *ConsumerIdentityTag) GetAll(appId int, appKey string) (*ConsumerIdentityCollection, error)

GetAll

func (*ConsumerIdentityTag) Redirect ¶

func (client *ConsumerIdentityTag) Redirect(identity string) (*Passthru, error)

Redirect

type ConsumerLog ¶

type ConsumerLog struct {
	Id        int    `json:"id"`
	AppId     int    `json:"appId"`
	Ip        string `json:"ip"`
	UserAgent string `json:"userAgent"`
	Method    string `json:"method"`
	Path      string `json:"path"`
	Header    string `json:"header"`
	Body      string `json:"body"`
	Date      string `json:"date"`
}

type ConsumerLogCollection ¶

type ConsumerLogCollection struct {
	TotalResults int           `json:"totalResults"`
	StartIndex   int           `json:"startIndex"`
	ItemsPerPage int           `json:"itemsPerPage"`
	Entry        []ConsumerLog `json:"entry"`
}

type ConsumerLogTag ¶

type ConsumerLogTag struct {
	// contains filtered or unexported fields
}

func NewConsumerLogTag ¶

func NewConsumerLogTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerLogTag

func (*ConsumerLogTag) Get ¶

func (client *ConsumerLogTag) Get(logId string) (*ConsumerLog, error)

Get

func (*ConsumerLogTag) GetAll ¶

func (client *ConsumerLogTag) GetAll(startIndex int, count int, search string) (*ConsumerLogCollection, error)

GetAll

type ConsumerPage ¶

type ConsumerPage struct {
	Id       int             `json:"id"`
	Title    string          `json:"title"`
	Slug     string          `json:"slug"`
	Content  string          `json:"content"`
	Metadata *CommonMetadata `json:"metadata"`
}

type ConsumerPageCollection ¶

type ConsumerPageCollection struct {
	TotalResults int            `json:"totalResults"`
	StartIndex   int            `json:"startIndex"`
	ItemsPerPage int            `json:"itemsPerPage"`
	Entry        []ConsumerPage `json:"entry"`
}

type ConsumerPageTag ¶

type ConsumerPageTag struct {
	// contains filtered or unexported fields
}

func NewConsumerPageTag ¶

func NewConsumerPageTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerPageTag

func (*ConsumerPageTag) Get ¶

func (client *ConsumerPageTag) Get(pageId string) (*ConsumerPage, error)

Get

func (*ConsumerPageTag) GetAll ¶

func (client *ConsumerPageTag) GetAll(startIndex int, count int, search string) (*ConsumerPageCollection, error)

GetAll

type ConsumerPaymentCheckoutRequest ¶

type ConsumerPaymentCheckoutRequest struct {
	PlanId    int    `json:"planId"`
	ReturnUrl string `json:"returnUrl"`
}

type ConsumerPaymentCheckoutResponse ¶

type ConsumerPaymentCheckoutResponse struct {
	ApprovalUrl string `json:"approvalUrl"`
}

type ConsumerPaymentPortalRequest ¶

type ConsumerPaymentPortalRequest struct {
	ReturnUrl string `json:"returnUrl"`
}

type ConsumerPaymentPortalResponse ¶

type ConsumerPaymentPortalResponse struct {
	RedirectUrl string `json:"redirectUrl"`
}

type ConsumerPaymentTag ¶

type ConsumerPaymentTag struct {
	// contains filtered or unexported fields
}

func NewConsumerPaymentTag ¶

func NewConsumerPaymentTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerPaymentTag

func (*ConsumerPaymentTag) Checkout ¶

Checkout

func (*ConsumerPaymentTag) Portal ¶

Portal

type ConsumerPlan ¶

type ConsumerPlan struct {
	Id          int             `json:"id"`
	Name        string          `json:"name"`
	Description string          `json:"description"`
	Price       float64         `json:"price"`
	Points      int             `json:"points"`
	Period      int             `json:"period"`
	Metadata    *CommonMetadata `json:"metadata"`
}

type ConsumerPlanCollection ¶

type ConsumerPlanCollection struct {
	TotalResults int            `json:"totalResults"`
	StartIndex   int            `json:"startIndex"`
	ItemsPerPage int            `json:"itemsPerPage"`
	Entry        []ConsumerPlan `json:"entry"`
}

type ConsumerPlanTag ¶

type ConsumerPlanTag struct {
	// contains filtered or unexported fields
}

func NewConsumerPlanTag ¶

func NewConsumerPlanTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerPlanTag

func (*ConsumerPlanTag) Get ¶

func (client *ConsumerPlanTag) Get(planId string) (*ConsumerPlan, error)

Get

func (*ConsumerPlanTag) GetAll ¶

func (client *ConsumerPlanTag) GetAll(startIndex int, count int, search string) (*ConsumerPlanCollection, error)

GetAll

type ConsumerScope ¶

type ConsumerScope struct {
	Id          int             `json:"id"`
	Name        string          `json:"name"`
	Description string          `json:"description"`
	Metadata    *CommonMetadata `json:"metadata"`
}

type ConsumerScopeCategories ¶ added in v5.1.15

type ConsumerScopeCategories struct {
	Categories []ConsumerScopeCategory `json:"categories"`
}

type ConsumerScopeCategory ¶ added in v5.1.15

type ConsumerScopeCategory struct {
	Id     int                          `json:"id"`
	Name   string                       `json:"name"`
	Scopes []ConsumerScopeCategoryScope `json:"scopes"`
}

type ConsumerScopeCategoryScope ¶ added in v5.1.15

type ConsumerScopeCategoryScope struct {
	Id          int    `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type ConsumerScopeCollection ¶

type ConsumerScopeCollection struct {
	TotalResults int             `json:"totalResults"`
	StartIndex   int             `json:"startIndex"`
	ItemsPerPage int             `json:"itemsPerPage"`
	Entry        []ConsumerScope `json:"entry"`
}

type ConsumerScopeTag ¶

type ConsumerScopeTag struct {
	// contains filtered or unexported fields
}

func NewConsumerScopeTag ¶

func NewConsumerScopeTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerScopeTag

func (*ConsumerScopeTag) GetAll ¶

func (client *ConsumerScopeTag) GetAll(startIndex int, count int, search string) (*ConsumerScopeCollection, error)

GetAll

func (*ConsumerScopeTag) GetCategories ¶ added in v5.1.15

func (client *ConsumerScopeTag) GetCategories() (*ConsumerScopeCategories, error)

GetCategories

type ConsumerTag ¶

type ConsumerTag struct {
	// contains filtered or unexported fields
}

func NewConsumerTag ¶

func NewConsumerTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerTag

func (*ConsumerTag) Account ¶

func (client *ConsumerTag) Account() *ConsumerAccountTag

func (*ConsumerTag) App ¶

func (client *ConsumerTag) App() *ConsumerAppTag

func (*ConsumerTag) Event ¶

func (client *ConsumerTag) Event() *ConsumerEventTag

func (*ConsumerTag) Form ¶ added in v5.1.16

func (client *ConsumerTag) Form() *ConsumerFormTag

func (*ConsumerTag) Grant ¶

func (client *ConsumerTag) Grant() *ConsumerGrantTag

func (*ConsumerTag) Identity ¶

func (client *ConsumerTag) Identity() *ConsumerIdentityTag

func (*ConsumerTag) Log ¶

func (client *ConsumerTag) Log() *ConsumerLogTag

func (*ConsumerTag) Page ¶

func (client *ConsumerTag) Page() *ConsumerPageTag

func (*ConsumerTag) Payment ¶

func (client *ConsumerTag) Payment() *ConsumerPaymentTag

func (*ConsumerTag) Plan ¶

func (client *ConsumerTag) Plan() *ConsumerPlanTag

func (*ConsumerTag) Scope ¶

func (client *ConsumerTag) Scope() *ConsumerScopeTag

func (*ConsumerTag) Token ¶

func (client *ConsumerTag) Token() *ConsumerTokenTag

func (*ConsumerTag) Transaction ¶

func (client *ConsumerTag) Transaction() *ConsumerTransactionTag

func (*ConsumerTag) Webhook ¶

func (client *ConsumerTag) Webhook() *ConsumerWebhookTag

type ConsumerToken ¶

type ConsumerToken struct {
	Id     int      `json:"id"`
	Status int      `json:"status"`
	Name   string   `json:"name"`
	Scopes []string `json:"scopes"`
	Ip     string   `json:"ip"`
	Expire string   `json:"expire"`
	Date   string   `json:"date"`
}

type ConsumerTokenAccessToken ¶

type ConsumerTokenAccessToken struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int    `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
}

type ConsumerTokenCollection ¶

type ConsumerTokenCollection struct {
	TotalResults int             `json:"totalResults"`
	StartIndex   int             `json:"startIndex"`
	ItemsPerPage int             `json:"itemsPerPage"`
	Entry        []ConsumerToken `json:"entry"`
}

type ConsumerTokenCreate ¶

type ConsumerTokenCreate struct {
	Name   string   `json:"name"`
	Scopes []string `json:"scopes"`
	Expire string   `json:"expire"`
}

type ConsumerTokenTag ¶

type ConsumerTokenTag struct {
	// contains filtered or unexported fields
}

func NewConsumerTokenTag ¶

func NewConsumerTokenTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerTokenTag

func (*ConsumerTokenTag) Create ¶

Create

func (*ConsumerTokenTag) Delete ¶

func (client *ConsumerTokenTag) Delete(tokenId string) (*CommonMessage, error)

Delete

func (*ConsumerTokenTag) Get ¶

func (client *ConsumerTokenTag) Get(tokenId string) (*ConsumerToken, error)

Get

func (*ConsumerTokenTag) GetAll ¶

func (client *ConsumerTokenTag) GetAll(startIndex int, count int, search string) (*ConsumerTokenCollection, error)

GetAll

func (*ConsumerTokenTag) Update ¶

func (client *ConsumerTokenTag) Update(tokenId string, payload ConsumerTokenUpdate) (*ConsumerTokenAccessToken, error)

Update

type ConsumerTokenUpdate ¶

type ConsumerTokenUpdate struct {
	Name   string `json:"name"`
	Expire string `json:"expire"`
}

type ConsumerTransaction ¶

type ConsumerTransaction struct {
	Id            int           `json:"id"`
	UserId        int           `json:"userId"`
	PlanId        int           `json:"planId"`
	Plan          *ConsumerPlan `json:"plan"`
	TransactionId string        `json:"transactionId"`
	Amount        float64       `json:"amount"`
	Points        float64       `json:"points"`
	PeriodStart   string        `json:"periodStart"`
	PeriodEnd     string        `json:"periodEnd"`
	InsertDate    string        `json:"insertDate"`
}

type ConsumerTransactionCollection ¶

type ConsumerTransactionCollection struct {
	TotalResults int                   `json:"totalResults"`
	StartIndex   int                   `json:"startIndex"`
	ItemsPerPage int                   `json:"itemsPerPage"`
	Entry        []ConsumerTransaction `json:"entry"`
}

type ConsumerTransactionTag ¶

type ConsumerTransactionTag struct {
	// contains filtered or unexported fields
}

func NewConsumerTransactionTag ¶

func NewConsumerTransactionTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerTransactionTag

func (*ConsumerTransactionTag) Get ¶

func (client *ConsumerTransactionTag) Get(transactionId string) (*ConsumerTransaction, error)

Get

func (*ConsumerTransactionTag) GetAll ¶

func (client *ConsumerTransactionTag) GetAll(startIndex int, count int, search string) (*ConsumerTransactionCollection, error)

GetAll

type ConsumerUserAccount ¶

type ConsumerUserAccount struct {
	Id       int                `json:"id"`
	PlanId   int                `json:"planId"`
	Status   int                `json:"status"`
	Name     string             `json:"name"`
	Email    string             `json:"email"`
	Points   int                `json:"points"`
	Scopes   []string           `json:"scopes"`
	Plans    []ConsumerUserPlan `json:"plans"`
	Metadata *CommonMetadata    `json:"metadata"`
	Date     string             `json:"date"`
}

type ConsumerUserActivate ¶

type ConsumerUserActivate struct {
	Token string `json:"token"`
}

type ConsumerUserEmail ¶

type ConsumerUserEmail struct {
	Email   string `json:"email"`
	Captcha string `json:"captcha"`
}

type ConsumerUserJWT ¶

type ConsumerUserJWT struct {
	Token        string `json:"token"`
	ExpiresIn    int    `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
}

type ConsumerUserLogin ¶

type ConsumerUserLogin struct {
	Username string   `json:"username"`
	Password string   `json:"password"`
	Scopes   []string `json:"scopes"`
}

type ConsumerUserPasswordReset ¶

type ConsumerUserPasswordReset struct {
	Token       string `json:"token"`
	NewPassword string `json:"newPassword"`
}

type ConsumerUserPlan ¶

type ConsumerUserPlan struct {
	Id     int    `json:"id"`
	Name   string `json:"name"`
	Price  int    `json:"price"`
	Points int    `json:"points"`
	Period int    `json:"period"`
}

type ConsumerUserRefresh ¶

type ConsumerUserRefresh struct {
	RefreshToken string `json:"refresh_token"`
}

type ConsumerUserRegister ¶

type ConsumerUserRegister struct {
	Name     string `json:"name"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Captcha  string `json:"captcha"`
}

type ConsumerWebhook ¶

type ConsumerWebhook struct {
	Id        int                       `json:"id"`
	Status    int                       `json:"status"`
	Event     string                    `json:"event"`
	Name      string                    `json:"name"`
	Endpoint  string                    `json:"endpoint"`
	Responses []ConsumerWebhookResponse `json:"responses"`
}

type ConsumerWebhookCollection ¶

type ConsumerWebhookCollection struct {
	TotalResults int               `json:"totalResults"`
	StartIndex   int               `json:"startIndex"`
	ItemsPerPage int               `json:"itemsPerPage"`
	Entry        []ConsumerWebhook `json:"entry"`
}

type ConsumerWebhookCreate ¶

type ConsumerWebhookCreate struct {
	Event    string `json:"event"`
	Name     string `json:"name"`
	Endpoint string `json:"endpoint"`
}

type ConsumerWebhookResponse ¶

type ConsumerWebhookResponse struct {
	Status      int    `json:"status"`
	Code        int    `json:"code"`
	Attempts    string `json:"attempts"`
	ExecuteDate string `json:"executeDate"`
}

type ConsumerWebhookTag ¶

type ConsumerWebhookTag struct {
	// contains filtered or unexported fields
}

func NewConsumerWebhookTag ¶

func NewConsumerWebhookTag(httpClient *http.Client, parser *sdkgen.Parser) *ConsumerWebhookTag

func (*ConsumerWebhookTag) Create ¶

func (client *ConsumerWebhookTag) Create(payload ConsumerWebhookCreate) (*CommonMessage, error)

Create

func (*ConsumerWebhookTag) Delete ¶

func (client *ConsumerWebhookTag) Delete(webhookId string) (*CommonMessage, error)

Delete

func (*ConsumerWebhookTag) Get ¶

func (client *ConsumerWebhookTag) Get(webhookId string) (*ConsumerWebhook, error)

Get

func (*ConsumerWebhookTag) GetAll ¶

func (client *ConsumerWebhookTag) GetAll(startIndex int, count int, search string) (*ConsumerWebhookCollection, error)

GetAll

func (*ConsumerWebhookTag) Update ¶

func (client *ConsumerWebhookTag) Update(webhookId string, payload ConsumerWebhookUpdate) (*CommonMessage, error)

Update

type ConsumerWebhookUpdate ¶

type ConsumerWebhookUpdate struct {
	Event    string `json:"event"`
	Name     string `json:"name"`
	Endpoint string `json:"endpoint"`
}

type MarketplaceAction ¶ added in v5.1.3

type MarketplaceAction struct {
	Id          int                      `json:"id"`
	Name        string                   `json:"name"`
	Author      *MarketplaceUser         `json:"author"`
	Version     string                   `json:"version"`
	Icon        string                   `json:"icon"`
	Summary     string                   `json:"summary"`
	Description string                   `json:"description"`
	Cost        int                      `json:"cost"`
	UpdateDate  string                   `json:"updateDate"`
	InsertDate  string                   `json:"insertDate"`
	Class       string                   `json:"class"`
	Config      *MarketplaceActionConfig `json:"config"`
}

type MarketplaceActionCollection ¶ added in v5.1.3

type MarketplaceActionCollection struct {
	TotalResults int                 `json:"totalResults"`
	StartIndex   int                 `json:"startIndex"`
	ItemsPerPage int                 `json:"itemsPerPage"`
	Entry        []MarketplaceAction `json:"entry"`
}

type MarketplaceActionConfig ¶ added in v5.1.3

type MarketplaceActionConfig = map[string]any

type MarketplaceApp ¶ added in v5.1.3

type MarketplaceApp struct {
	Id          int              `json:"id"`
	Name        string           `json:"name"`
	Author      *MarketplaceUser `json:"author"`
	Version     string           `json:"version"`
	Icon        string           `json:"icon"`
	Summary     string           `json:"summary"`
	Description string           `json:"description"`
	Cost        int              `json:"cost"`
	UpdateDate  string           `json:"updateDate"`
	InsertDate  string           `json:"insertDate"`
	Scopes      []string         `json:"scopes"`
	DownloadUrl string           `json:"downloadUrl"`
	Hash        string           `json:"hash"`
}

type MarketplaceAppCollection ¶ added in v5.1.3

type MarketplaceAppCollection struct {
	TotalResults int              `json:"totalResults"`
	StartIndex   int              `json:"startIndex"`
	ItemsPerPage int              `json:"itemsPerPage"`
	Entry        []MarketplaceApp `json:"entry"`
}

type MarketplaceCollection ¶ added in v5.1.3

type MarketplaceCollection[T any] struct {
	TotalResults int `json:"totalResults"`
	StartIndex   int `json:"startIndex"`
	ItemsPerPage int `json:"itemsPerPage"`
	Entry        []T `json:"entry"`
}

type MarketplaceInstall ¶ added in v5.1.3

type MarketplaceInstall struct {
	Name string `json:"name"`
}

Installs an object from the marketplace

type MarketplaceMessage ¶ added in v5.1.3

type MarketplaceMessage struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

type MarketplaceObject ¶ added in v5.1.3

type MarketplaceObject struct {
	Id          int              `json:"id"`
	Name        string           `json:"name"`
	Author      *MarketplaceUser `json:"author"`
	Version     string           `json:"version"`
	Icon        string           `json:"icon"`
	Summary     string           `json:"summary"`
	Description string           `json:"description"`
	Cost        int              `json:"cost"`
	UpdateDate  string           `json:"updateDate"`
	InsertDate  string           `json:"insertDate"`
}

Base class of all objects on the marketplace

type MarketplaceUser ¶ added in v5.1.3

type MarketplaceUser struct {
	Id       int    `json:"id"`
	Name     string `json:"name"`
	Verified bool   `json:"verified"`
}

type Passthru ¶

type Passthru = map[string]any

No schema information available

type SystemAbout ¶

type SystemAbout struct {
	ApiVersion      string            `json:"apiVersion"`
	Title           string            `json:"title"`
	Description     string            `json:"description"`
	TermsOfService  string            `json:"termsOfService"`
	ContactName     string            `json:"contactName"`
	ContactUrl      string            `json:"contactUrl"`
	ContactEmail    string            `json:"contactEmail"`
	LicenseName     string            `json:"licenseName"`
	LicenseUrl      string            `json:"licenseUrl"`
	PaymentCurrency string            `json:"paymentCurrency"`
	Categories      []string          `json:"categories"`
	Scopes          []string          `json:"scopes"`
	Apps            *SystemAboutApps  `json:"apps"`
	Links           []SystemAboutLink `json:"links"`
}

type SystemAboutApps ¶

type SystemAboutApps = map[string]string
type SystemAboutLink struct {
	Rel  string `json:"rel"`
	Href string `json:"href"`
}

type SystemConnectionTag ¶

type SystemConnectionTag struct {
	// contains filtered or unexported fields
}

func NewSystemConnectionTag ¶

func NewSystemConnectionTag(httpClient *http.Client, parser *sdkgen.Parser) *SystemConnectionTag

func (*SystemConnectionTag) Callback ¶

func (client *SystemConnectionTag) Callback(name string) (*CommonMessage, error)

Callback

type SystemHealthCheck ¶

type SystemHealthCheck struct {
	Healthy bool   `json:"healthy"`
	Error   string `json:"error"`
}

type SystemMetaTag ¶

type SystemMetaTag struct {
	// contains filtered or unexported fields
}

func NewSystemMetaTag ¶

func NewSystemMetaTag(httpClient *http.Client, parser *sdkgen.Parser) *SystemMetaTag

func (*SystemMetaTag) GetAbout ¶

func (client *SystemMetaTag) GetAbout() (*SystemAbout, error)

GetAbout

func (*SystemMetaTag) GetDebug ¶

func (client *SystemMetaTag) GetDebug(payload Passthru) (*Passthru, error)

GetDebug

func (*SystemMetaTag) GetHealth ¶

func (client *SystemMetaTag) GetHealth() (*SystemHealthCheck, error)

GetHealth

func (*SystemMetaTag) GetOAuthConfiguration ¶ added in v5.0.3

func (client *SystemMetaTag) GetOAuthConfiguration() (*SystemOAuthConfiguration, error)

GetOAuthConfiguration

func (*SystemMetaTag) GetRoutes ¶

func (client *SystemMetaTag) GetRoutes() (*SystemRoute, error)

GetRoutes

func (*SystemMetaTag) GetSchema ¶

func (client *SystemMetaTag) GetSchema(name string) (*SystemSchema, error)

GetSchema

type SystemOAuthConfiguration ¶ added in v5.0.3

type SystemOAuthConfiguration struct {
	Issuer                            string   `json:"issuer"`
	TokenEndpoint                     string   `json:"token_endpoint"`
	TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported"`
	UserinfoEndpoint                  string   `json:"userinfo_endpoint"`
	ScopesSupported                   []string `json:"scopes_supported"`
	ClaimsSupported                   []string `json:"claims_supported"`
}

type SystemPaymentTag ¶

type SystemPaymentTag struct {
	// contains filtered or unexported fields
}

func NewSystemPaymentTag ¶

func NewSystemPaymentTag(httpClient *http.Client, parser *sdkgen.Parser) *SystemPaymentTag

func (*SystemPaymentTag) Webhook ¶

func (client *SystemPaymentTag) Webhook(provider string) (*CommonMessage, error)

Webhook

type SystemRoute ¶

type SystemRoute struct {
	Routes *SystemRoutePath `json:"routes"`
}

type SystemRouteMethod ¶

type SystemRouteMethod = map[string]string

type SystemRoutePath ¶

type SystemRoutePath = map[string]SystemRouteMethod

type SystemSchema ¶

type SystemSchema struct {
	Schema *SystemSchemaTypeSchema `json:"schema"`
	Form   *SystemSchemaForm       `json:"form"`
}

type SystemSchemaForm ¶

type SystemSchemaForm = map[string]any

type SystemSchemaTypeSchema ¶

type SystemSchemaTypeSchema = map[string]any

type SystemTag ¶

type SystemTag struct {
	// contains filtered or unexported fields
}

func NewSystemTag ¶

func NewSystemTag(httpClient *http.Client, parser *sdkgen.Parser) *SystemTag

func (*SystemTag) Connection ¶

func (client *SystemTag) Connection() *SystemConnectionTag

func (*SystemTag) Meta ¶

func (client *SystemTag) Meta() *SystemMetaTag

func (*SystemTag) Payment ¶

func (client *SystemTag) Payment() *SystemPaymentTag

Source Files ¶

Jump to

Keyboard shortcuts

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