client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package client provides a full-featured App Store Connect API client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// GetAppForBundleID returns the App resource matching the given bundle ID
	GetAppForBundleID(ctx *context.Context, bundleID string) (*asc.App, error)
	GetAppInfo(ctx *context.Context, appID string) (*asc.AppInfo, error)
	// GetBuild returns the Build resource for the given app, depending on the value set for
	// ctx.Build. Returns an error if the selected build is still processing.
	GetBuild(ctx *context.Context, app *asc.App) (*asc.Build, error)
	// ReleaseForAppIsInitial returns true if the App resource has never released before,
	// i.e. has one or less associated App Store Version relationships.
	ReleaseForAppIsInitial(ctx *context.Context, appID string) (bool, error)

	// UpdateBetaAppLocalizations updates an App's beta app localizations, and creates any new ones that do not exist.
	// It will not delete or update any locales that are associated with the app but are not configured in cider.
	UpdateBetaAppLocalizations(ctx *context.Context, appID string, config config.TestflightLocalizations) error
	// UpdateBetaBuildDetails updates an App's beta build details, or creates new ones if they do not yet exist.
	UpdateBetaBuildDetails(ctx *context.Context, buildID string, config config.Testflight) error
	// UpdateBetaBuildLocalizations updates an App's beta build localizations, and creates any new ones that do not exist.
	// It will not delete or update any locales that are associated with the app but are not configured in cider.
	UpdateBetaBuildLocalizations(ctx *context.Context, buildID string, config config.TestflightLocalizations) error
	// UpdateBetaLicenseAgreement updates an App's beta license agreement, or creates a new one if one does not yet exist.
	UpdateBetaLicenseAgreement(ctx *context.Context, appID string, config config.Testflight) error
	AssignBetaGroups(ctx *context.Context, appID string, buildID string, groups []config.BetaGroup) error
	AssignBetaTesters(ctx *context.Context, appID string, buildID string, testers []config.BetaTester) error
	// UpdateBetaReviewDetails updates an App's beta review details, or creates new ones if they do not yet exist.
	UpdateBetaReviewDetails(ctx *context.Context, appID string, config config.ReviewDetails) error
	// SubmitBetaApp submits the given beta build for review
	SubmitBetaApp(ctx *context.Context, buildID string) error

	UpdateApp(ctx *context.Context, appID string, appInfoID string, versionID string, config config.App) error
	UpdateAppLocalizations(ctx *context.Context, appID string, config config.AppLocalizations) error
	CreateVersionIfNeeded(ctx *context.Context, appID string, buildID string, config config.Version) (*asc.AppStoreVersion, error)
	UpdateVersionLocalizations(ctx *context.Context, versionID string, config config.VersionLocalizations) error
	UpdateIDFADeclaration(ctx *context.Context, versionID string, config config.IDFADeclaration) error
	UploadRoutingCoverage(ctx *context.Context, versionID string, config config.File) error
	// UpdateReviewDetails updates an App's review details, or creates new ones if they do not yet exist.
	UpdateReviewDetails(ctx *context.Context, versionID string, config config.ReviewDetails) error
	EnablePhasedRelease(ctx *context.Context, versionID string) error
	// SubmitApp submits the given app store version for review
	SubmitApp(ctx *context.Context, versionID string) error

	Project() (*config.Project, error)
}

Client is an abstraction of an App Store Connect API client's functionality.

func New

func New(ctx *context.Context) Client

New returns a new Client.

Directories

Path Synopsis
Package clienttest provides utilities for mocking the App Store Connect client.
Package clienttest provides utilities for mocking the App Store Connect client.

Jump to

Keyboard shortcuts

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