migrate

package
v1.260504.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateCommand

func MigrateCommand() *ffcli.Command

MigrateCommand returns the migrate command with subcommands.

func MigrateExportCommand

func MigrateExportCommand() *ffcli.Command

MigrateExportCommand returns the migrate export subcommand.

func MigrateImportCommand

func MigrateImportCommand() *ffcli.Command

MigrateImportCommand returns the migrate import subcommand.

func MigrateMetadataCommand

func MigrateMetadataCommand() *ffcli.Command

MigrateMetadataCommand provides migration-friendly aliases for metadata workflows.

func MigrateValidateCommand

func MigrateValidateCommand() *ffcli.Command

MigrateValidateCommand returns the migrate validate subcommand.

Types

type AppInfoFastlaneLocalization

type AppInfoFastlaneLocalization struct {
	Locale     string `json:"locale"`
	Name       string `json:"name,omitempty"`
	Subtitle   string `json:"subtitle,omitempty"`
	PrivacyURL string `json:"privacyUrl,omitempty"`
}

AppInfoFastlaneLocalization holds app-level metadata (name, subtitle) from fastlane.

type DeliverfileConfig

type DeliverfileConfig struct {
	MetadataPath    string
	ScreenshotsPath string
	AppIdentifier   string
	AppVersion      string
	Platform        string
	SkipMetadata    bool
	SkipScreenshots bool
}

type FastlaneLocalization

type FastlaneLocalization struct {
	Locale          string `json:"locale"`
	Description     string `json:"description,omitempty"`
	Keywords        string `json:"keywords,omitempty"`
	WhatsNew        string `json:"whatsNew,omitempty"`
	PromotionalText string `json:"promotionalText,omitempty"`
	SupportURL      string `json:"supportUrl,omitempty"`
	MarketingURL    string `json:"marketingUrl,omitempty"`
}

FastlaneLocalization holds version-level metadata read from fastlane structure.

type LocalizationFilePlan

type LocalizationFilePlan struct {
	Locale string   `json:"locale"`
	Files  []string `json:"files"`
}

type LocalizationUploadItem

type LocalizationUploadItem struct {
	Locale         string `json:"locale"`
	Fields         int    `json:"fields"`
	Action         string `json:"action,omitempty"`
	LocalizationID string `json:"localizationId,omitempty"`
}

LocalizationUploadItem represents an uploaded localization.

type MigrateExportResult

type MigrateExportResult struct {
	VersionID  string   `json:"versionId"`
	OutputDir  string   `json:"outputDir"`
	Locales    []string `json:"locales"`
	TotalFiles int      `json:"totalFiles"`
}

MigrateExportResult is the result of a migrate export operation.

type MigrateImportResult

type MigrateImportResult struct {
	DryRun               bool                          `json:"dryRun"`
	VersionID            string                        `json:"versionId"`
	AppID                string                        `json:"appId,omitempty"`
	DeliverfilePath      string                        `json:"deliverfilePath,omitempty"`
	MetadataDir          string                        `json:"metadataDir,omitempty"`
	ScreenshotsDir       string                        `json:"screenshotsDir,omitempty"`
	Locales              []string                      `json:"locales,omitempty"`
	Localizations        []FastlaneLocalization        `json:"localizations,omitempty"`
	AppInfoLocalizations []AppInfoFastlaneLocalization `json:"appInfoLocalizations,omitempty"`
	MetadataFiles        []LocalizationFilePlan        `json:"metadataFiles,omitempty"`
	AppInfoFiles         []LocalizationFilePlan        `json:"appInfoFiles,omitempty"`
	ReviewInformation    *ReviewInformation            `json:"reviewInformation,omitempty"`
	ScreenshotPlan       []ScreenshotPlan              `json:"screenshotPlan,omitempty"`
	Skipped              []SkippedItem                 `json:"skipped,omitempty"`
	Uploaded             []LocalizationUploadItem      `json:"uploaded,omitempty"`
	AppInfoUploaded      []LocalizationUploadItem      `json:"appInfoUploaded,omitempty"`
	ReviewInfoResult     *ReviewInfoResult             `json:"reviewInfoResult,omitempty"`
	ScreenshotResults    []ScreenshotUploadResult      `json:"screenshotResults,omitempty"`
}

MigrateImportResult is the result of a migrate import operation.

type MigrateValidateResult

type MigrateValidateResult struct {
	FastlaneDir string            `json:"fastlaneDir"`
	Locales     []string          `json:"locales"`
	Issues      []ValidationIssue `json:"issues"`
	Skipped     []SkippedItem     `json:"skipped,omitempty"`
	ErrorCount  int               `json:"errorCount"`
	WarnCount   int               `json:"warnCount"`
	Valid       bool              `json:"valid"`
}

MigrateValidateResult is the result of a migrate validate operation.

type ReviewInfoResult

type ReviewInfoResult struct {
	Action   string `json:"action,omitempty"`
	DetailID string `json:"detailId,omitempty"`
}

type ReviewInformation

type ReviewInformation struct {
	ContactFirstName    *string `json:"contactFirstName,omitempty"`
	ContactLastName     *string `json:"contactLastName,omitempty"`
	ContactPhone        *string `json:"contactPhone,omitempty"`
	ContactEmail        *string `json:"contactEmail,omitempty"`
	DemoAccountName     *string `json:"demoAccountName,omitempty"`
	DemoAccountPassword *string `json:"demoAccountPassword,omitempty"`
	DemoAccountRequired *bool   `json:"demoAccountRequired,omitempty"`
	Notes               *string `json:"notes,omitempty"`
}

type ScreenshotPlan

type ScreenshotPlan struct {
	Locale      string   `json:"locale"`
	DisplayType string   `json:"displayType"`
	Files       []string `json:"files"`
}

type ScreenshotUploadResult

type ScreenshotUploadResult struct {
	Locale      string                      `json:"locale"`
	DisplayType string                      `json:"displayType"`
	Uploaded    []asc.AssetUploadResultItem `json:"uploaded,omitempty"`
	Skipped     []SkippedItem               `json:"skipped,omitempty"`
}

type SkippedItem

type SkippedItem struct {
	Path   string `json:"path"`
	Reason string `json:"reason"`
}

type ValidationIssue

type ValidationIssue struct {
	Locale   string `json:"locale"`
	Field    string `json:"field"`
	Severity string `json:"severity"` // "error" or "warning"
	Message  string `json:"message"`
	Length   int    `json:"length,omitempty"`
	Limit    int    `json:"limit,omitempty"`
}

ValidationIssue represents a validation error or warning.

Jump to

Keyboard shortcuts

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