publishing

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	VersionID        int        `json:"versionId"`
	AppName          string     `json:"appName"`
	AppType          string     `json:"appType"`
	VersionName      *string    `json:"versionName"`
	VersionCode      int        `json:"versionCode"`
	VersionStatus    string     `json:"versionStatus"`
	PublishType      string     `json:"publishType"`
	PublishDateTime  *time.Time `json:"publishDateTime"`
	SendDateForModer *time.Time `json:"sendDateForModer"`
	PartialValue     int        `json:"partialValue"`
	WhatsNew         *string    `json:"whatsNew"`
	PriceValue       int        `json:"priceValue"`
	Paid             bool       `json:"paid"`
}

nolint: tagliatelle

type CreateDraftText

type CreateDraftText struct {
	AppName          string `json:"appName,omitempty"`
	AppType          string `json:"appType,omitempty"`
	Categories       string `json:"categories,omitempty"`
	AgeLegal         string `json:"ageLegal,omitempty"`
	ShortDescription string `json:"shortDescription,omitempty"`
	FullDescription  string `json:"fullDescription,omitempty"`
	WhatsNew         string `json:"whatsNew,omitempty"`
	ModerInfo        string `json:"moderInfo,omitempty"`
	PriceValue       string `json:"priceValue,omitempty"`
	PublishType      string `json:"publishType,omitempty"`
	PublishDateTime  string `json:"publishDateTime,omitempty"`
	PartialValue     string `json:"partialValue,omitempty"`
}

nolint: tagliatelle

type CreatePublishSettingsText

type CreatePublishSettingsText struct {
	PublishType     string `json:"publishType,omitempty"`
	PublishDateTime string `json:"publishDateTime,omitempty"`
	PartialValue    string `json:"partialValue,omitempty"`
}

type CreateVersionDraftResponse

type CreateVersionDraftResponse struct {
	Code      string    `json:"code"`
	Message   *string   `json:"message"`
	Body      int       `json:"body"`
	Timestamp time.Time `json:"timestamp"`
}

nolint: tagliatelle

type DeleteVersionDraftResponse

type DeleteVersionDraftResponse struct {
	Code      string    `json:"code"`
	Message   *string   `json:"message"` // Message приходит только в случае ошибки
	Timestamp time.Time `json:"timestamp"`
}

type GetVersion

type GetVersion struct {
	Code      string         `json:"code"`
	Message   *string        `json:"message"`
	Body      GetVersionBody `json:"body"`
	Timestamp time.Time      `json:"timestamp"`
}

nolint: tagliatelle

type GetVersionBody

type GetVersionBody struct {
	Content       []Content `json:"content"`
	PageNumber    int       `json:"pageNumber"`
	PageSize      int       `json:"pageSize"`
	TotalElements int       `json:"totalElements"`
	TotalPages    int       `json:"totalPages"`
}

nolint: tagliatelle

type PublishResponse

type PublishResponse struct {
	Code      string    `json:"code"`
	Message   *string   `json:"message"`
	Timestamp time.Time `json:"timestamp"`
}

type UploadFile

type UploadFile struct {
	Code      string    `json:"code"`
	Message   *string   `json:"message"` // Message приходит только в случае ошибки
	Timestamp time.Time `json:"timestamp"`
}

type Version

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

func New

func New(c *client.Client, packageName string) *Version

func (*Version) ChangePublishSettings

func (c *Version) ChangePublishSettings(ctx context.Context, versionID int,
	publishSettingsText CreatePublishSettingsText) (PublishResponse, error)

func (*Version) CreateVersionDraft

func (c *Version) CreateVersionDraft(ctx context.Context, draftText CreateDraftText) (CreateVersionDraftResponse, error)

func (*Version) DeleteVersionDraft

func (c *Version) DeleteVersionDraft(ctx context.Context, versionID int) (DeleteVersionDraftResponse, error)

func (*Version) GetVersion

func (c *Version) GetVersion(ctx context.Context, params neturl.Values) (GetVersion, error)

func (*Version) ManualPublish

func (c *Version) ManualPublish(ctx context.Context, versionID int) (PublishResponse, error)

func (*Version) SendToModeration

func (c *Version) SendToModeration(ctx context.Context, versionID int, params neturl.Values) (PublishResponse, error)

func (*Version) UploadAABFile

func (c *Version) UploadAABFile(ctx context.Context, versionID int, fileName string) (UploadFile, error)

func (*Version) UploadAPKFile

func (c *Version) UploadAPKFile(ctx context.Context, versionID int, fileName string,
	isMainAPK bool, params neturl.Values) (UploadFile, error)

func (*Version) UploadIcon

func (c *Version) UploadIcon(ctx context.Context, versionID int, fileName string) (UploadFile, error)

func (*Version) UploadScreenshot

func (c *Version) UploadScreenshot(ctx context.Context, versionID int, fileName string,
	orientation string, ordinal string) (UploadFile, error)

Jump to

Keyboard shortcuts

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