@gpc-cli/core 0.9.44 → 0.9.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.ts +39 -3
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -75,6 +75,6 @@ const analysis = await analyzeBundle("./app.aab");
|
|
|
75
75
|
- [Full documentation](https://yasserstudio.github.io/gpc/)
|
|
76
76
|
- [Architecture](https://yasserstudio.github.io/gpc/advanced/architecture)
|
|
77
77
|
|
|
78
|
-
##
|
|
78
|
+
## Licensing
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Free to use. Source code is on GitHub at [yasserstudio/gpc](https://github.com/yasserstudio/gpc).
|
package/dist/index.d.ts
CHANGED
|
@@ -792,8 +792,44 @@ declare function listLeaderboards(client: GamesApiClient, packageName: string):
|
|
|
792
792
|
declare function listAchievements(client: GamesApiClient, packageName: string): Promise<Achievement[]>;
|
|
793
793
|
declare function listEvents(client: GamesApiClient, packageName: string): Promise<GameEvent[]>;
|
|
794
794
|
|
|
795
|
-
|
|
796
|
-
|
|
795
|
+
/**
|
|
796
|
+
* Parameters for creating a private enterprise app via the Play Custom App
|
|
797
|
+
* Publishing API. All fields are user-supplied inputs — the returned
|
|
798
|
+
* `CustomApp.packageName` is assigned by Google.
|
|
799
|
+
*/
|
|
800
|
+
interface CreateEnterpriseAppParams {
|
|
801
|
+
/** Developer account ID (int64-shaped, from Play Console URL). */
|
|
802
|
+
accountId: string;
|
|
803
|
+
/** Path to the AAB or APK to upload. */
|
|
804
|
+
bundlePath: string;
|
|
805
|
+
/** Title for the Android app. Required. */
|
|
806
|
+
title: string;
|
|
807
|
+
/** Default listing language. Defaults to "en_US" when omitted. */
|
|
808
|
+
languageCode?: string;
|
|
809
|
+
/** Target enterprise organizations. Zero or more. */
|
|
810
|
+
organizations?: Array<{
|
|
811
|
+
organizationId: string;
|
|
812
|
+
organizationName?: string;
|
|
813
|
+
}>;
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* Create and publish a private custom app. Orchestrates the input shape
|
|
817
|
+
* expected by the CLI layer (flat params) into the shape the api-client
|
|
818
|
+
* expects (accountId, bundlePath, metadata).
|
|
819
|
+
*
|
|
820
|
+
* Once created, the returned app is permanently private — it cannot be made
|
|
821
|
+
* public. Subsequent operations (version uploads, tracks, listings) use the
|
|
822
|
+
* regular Publisher API commands (`gpc releases`, `gpc tracks`, `gpc listings`)
|
|
823
|
+
* against the returned `packageName`.
|
|
824
|
+
*/
|
|
825
|
+
declare function createEnterpriseApp(client: EnterpriseApiClient, params: CreateEnterpriseAppParams): Promise<CustomApp>;
|
|
826
|
+
/**
|
|
827
|
+
* One-shot publish wrapper — functionally identical to `createEnterpriseApp`
|
|
828
|
+
* today but kept as a distinct function so the CLI `publish` subcommand has
|
|
829
|
+
* a stable entry point for future divergence (e.g. post-create validation,
|
|
830
|
+
* automatic first-release upload, analytics hooks).
|
|
831
|
+
*/
|
|
832
|
+
declare function publishEnterpriseApp(client: EnterpriseApiClient, params: CreateEnterpriseAppParams): Promise<CustomApp>;
|
|
797
833
|
|
|
798
834
|
interface QuotaUsage {
|
|
799
835
|
dailyCallsUsed: number;
|
|
@@ -1265,4 +1301,4 @@ declare function decodeNotification(base64Payload: string): DecodedNotification;
|
|
|
1265
1301
|
*/
|
|
1266
1302
|
declare function formatNotification(notification: DecodedNotification): Record<string, unknown>;
|
|
1267
1303
|
|
|
1268
|
-
export { ApiError, type AppInfo, type AppStatus, type AuditEntry, type BatchSyncResult, type BundleAnalysis, type BundleComparison, type BundleEntry, type BundleSizeCheckResult, type BundleSizeConfig, type ChangelogEntry, type CommandContext, ConfigError, DEFAULT_LIMITS, DEFAULT_PREFLIGHT_CONFIG, type DecodedNotification, type DiffToken, type DiscoverPluginsOptions, type DryRunPublishResult, type DryRunResult, type DryRunUploadResult, type ExportImagesOptions, type ExportImagesSummary, type FastlaneDetection, type FastlaneLane, type FetchChangelogOptions, type FieldLintResult, type FileValidationResult, type FindingSeverity, GOOGLE_PLAY_LANGUAGES, type GetAppStatusOptions, type GitNotesOptions, type GitReleaseNotes, GpcError, type ImageValidationResult, type InitOptions, type InitResult, type InternalSharingUploadResult, type ListIapOptions, type ListSubscriptionsOptions, type ListUsersOptions, type ListVoidedOptions, type ListingDiff, type ListingFieldLimits, type ListingLintResult, type ListingsResult, type LoadedPlugin, type MigrationResult, NetworkError, type OneTimeProductDiff, PERMISSION_PROPAGATION_WARNING, type ParsedManifest, type ParsedMonth, PluginManager, type PreflightConfig, type PreflightFinding, type PreflightOptions, type PreflightResult, type PreflightScanner, type PublishOptions, type PublishResult, type PushResult, type QuotaUsage, type ReleaseDiff, type ReleaseNotesValidation, type ReleaseStatusResult, type ReviewAnalysis, type ReviewExportOptions, type ReviewsFilterOptions, type RtdnStatus, SENSITIVE_ARG_KEYS, SENSITIVE_KEYS, SEVERITY_ORDER, type ScaffoldOptions, type ScaffoldResult, type Spinner, type StatusDiff, type StatusRelease, type StatusReviews, type StatusVitalMetric, type SubscriptionAnalytics, type SubscriptionDiff, type SyncResult, type ThresholdResult, type TrainConfig, type TrainState, type UploadResult, type ValidateCheck, type ValidateOptions, type ValidateResult, type VersionVitalsComparison, type VersionVitalsRow, type VitalsOverview, type VitalsQueryOptions, type VitalsTrendComparison, type WatchOptions, type WatchVitalsOptions, type WebhookPayload, abortTrain, acknowledgeProductPurchase, activateBasePlan, activateOffer, addRecoveryTargeting, addTesters, advanceTrain, analyzeBundle, analyzeRemoteListings, analyzeReviews, batchGetOrders, batchSyncInAppProducts, cancelRecoveryAction, cancelSubscriptionPurchase, cancelSubscriptionV2, checkBundleSize, checkThreshold, clearAuditLog, compareBundles, compareVersionVitals, compareVitalsTrend, computeStatusDiff, consumeProductPurchase, convertRegionPrices, createAuditEntry, createDeviceTier, createEnterpriseApp, createExternalTransaction, createGrant, createInAppProduct, createOffer, createOneTimeOffer, createOneTimeProduct, createRecoveryAction, createSpinner, createSubscription, createTrack, deactivateBasePlan, deactivateOffer, decodeNotification, deferSubscriptionPurchase, deferSubscriptionV2, deleteBasePlan, deleteGrant, deleteImage, deleteInAppProduct, deleteListing, deleteOffer, deleteOneTimeOffer, deleteOneTimeProduct, deleteSubscription, deployRecoveryAction, detectFastlane, detectOutputFormat, diffListings, diffListingsCommand, diffListingsEnhanced, diffOneTimeProduct, diffReleases, diffSubscription, discoverPlugins, downloadGeneratedApk, downloadReport, exportDataSafety, exportImages, exportReviews, fetchChangelog, fetchReleaseNotes, formatChangelogEntry, formatCustomPayload, formatDiscordPayload, formatJunit, formatNotification, formatOutput, formatSlackPayload, formatStatusDiff, formatStatusSummary, formatStatusTable, formatWordDiff, generateMigrationPlan, generateNotesFromGit, getAllScannerNames, getAppInfo, getAppStatus, getCountryAvailability, getDataSafety, getDeviceTier, getExternalTransaction, getInAppProduct, getListings, getOffer, getOneTimeOffer, getOneTimeProduct, getOrderDetails, getProductPurchase, getProductPurchaseV2, getQuotaUsage, getReleasesStatus, getReview, getRtdnStatus, getSubscription, getSubscriptionAnalytics, getSubscriptionPurchase, getTrainStatus, getUser, getVitalsAnomalies, getVitalsAnr, getVitalsBattery, getVitalsCrashes, getVitalsLmk, getVitalsMemory, getVitalsOverview, getVitalsRendering, getVitalsStartup, importDataSafety, importTestersFromCsv, initAudit, initProject, inviteUser, isFinancialReportType, isStatsReportType, isValidBcp47, isValidReportType, isValidStatsDimension, lintListing, lintListings, lintLocalListings, listAchievements, listAuditEvents, listDeviceTiers,
|
|
1304
|
+
export { ApiError, type AppInfo, type AppStatus, type AuditEntry, type BatchSyncResult, type BundleAnalysis, type BundleComparison, type BundleEntry, type BundleSizeCheckResult, type BundleSizeConfig, type ChangelogEntry, type CommandContext, ConfigError, type CreateEnterpriseAppParams, DEFAULT_LIMITS, DEFAULT_PREFLIGHT_CONFIG, type DecodedNotification, type DiffToken, type DiscoverPluginsOptions, type DryRunPublishResult, type DryRunResult, type DryRunUploadResult, type ExportImagesOptions, type ExportImagesSummary, type FastlaneDetection, type FastlaneLane, type FetchChangelogOptions, type FieldLintResult, type FileValidationResult, type FindingSeverity, GOOGLE_PLAY_LANGUAGES, type GetAppStatusOptions, type GitNotesOptions, type GitReleaseNotes, GpcError, type ImageValidationResult, type InitOptions, type InitResult, type InternalSharingUploadResult, type ListIapOptions, type ListSubscriptionsOptions, type ListUsersOptions, type ListVoidedOptions, type ListingDiff, type ListingFieldLimits, type ListingLintResult, type ListingsResult, type LoadedPlugin, type MigrationResult, NetworkError, type OneTimeProductDiff, PERMISSION_PROPAGATION_WARNING, type ParsedManifest, type ParsedMonth, PluginManager, type PreflightConfig, type PreflightFinding, type PreflightOptions, type PreflightResult, type PreflightScanner, type PublishOptions, type PublishResult, type PushResult, type QuotaUsage, type ReleaseDiff, type ReleaseNotesValidation, type ReleaseStatusResult, type ReviewAnalysis, type ReviewExportOptions, type ReviewsFilterOptions, type RtdnStatus, SENSITIVE_ARG_KEYS, SENSITIVE_KEYS, SEVERITY_ORDER, type ScaffoldOptions, type ScaffoldResult, type Spinner, type StatusDiff, type StatusRelease, type StatusReviews, type StatusVitalMetric, type SubscriptionAnalytics, type SubscriptionDiff, type SyncResult, type ThresholdResult, type TrainConfig, type TrainState, type UploadResult, type ValidateCheck, type ValidateOptions, type ValidateResult, type VersionVitalsComparison, type VersionVitalsRow, type VitalsOverview, type VitalsQueryOptions, type VitalsTrendComparison, type WatchOptions, type WatchVitalsOptions, type WebhookPayload, abortTrain, acknowledgeProductPurchase, activateBasePlan, activateOffer, addRecoveryTargeting, addTesters, advanceTrain, analyzeBundle, analyzeRemoteListings, analyzeReviews, batchGetOrders, batchSyncInAppProducts, cancelRecoveryAction, cancelSubscriptionPurchase, cancelSubscriptionV2, checkBundleSize, checkThreshold, clearAuditLog, compareBundles, compareVersionVitals, compareVitalsTrend, computeStatusDiff, consumeProductPurchase, convertRegionPrices, createAuditEntry, createDeviceTier, createEnterpriseApp, createExternalTransaction, createGrant, createInAppProduct, createOffer, createOneTimeOffer, createOneTimeProduct, createRecoveryAction, createSpinner, createSubscription, createTrack, deactivateBasePlan, deactivateOffer, decodeNotification, deferSubscriptionPurchase, deferSubscriptionV2, deleteBasePlan, deleteGrant, deleteImage, deleteInAppProduct, deleteListing, deleteOffer, deleteOneTimeOffer, deleteOneTimeProduct, deleteSubscription, deployRecoveryAction, detectFastlane, detectOutputFormat, diffListings, diffListingsCommand, diffListingsEnhanced, diffOneTimeProduct, diffReleases, diffSubscription, discoverPlugins, downloadGeneratedApk, downloadReport, exportDataSafety, exportImages, exportReviews, fetchChangelog, fetchReleaseNotes, formatChangelogEntry, formatCustomPayload, formatDiscordPayload, formatJunit, formatNotification, formatOutput, formatSlackPayload, formatStatusDiff, formatStatusSummary, formatStatusTable, formatWordDiff, generateMigrationPlan, generateNotesFromGit, getAllScannerNames, getAppInfo, getAppStatus, getCountryAvailability, getDataSafety, getDeviceTier, getExternalTransaction, getInAppProduct, getListings, getOffer, getOneTimeOffer, getOneTimeProduct, getOrderDetails, getProductPurchase, getProductPurchaseV2, getQuotaUsage, getReleasesStatus, getReview, getRtdnStatus, getSubscription, getSubscriptionAnalytics, getSubscriptionPurchase, getTrainStatus, getUser, getVitalsAnomalies, getVitalsAnr, getVitalsBattery, getVitalsCrashes, getVitalsLmk, getVitalsMemory, getVitalsOverview, getVitalsRendering, getVitalsStartup, importDataSafety, importTestersFromCsv, initAudit, initProject, inviteUser, isFinancialReportType, isStatsReportType, isValidBcp47, isValidReportType, isValidStatsDimension, lintListing, lintListings, lintLocalListings, listAchievements, listAuditEvents, listDeviceTiers, listEvents, listGeneratedApks, listGrants, listImages, listInAppProducts, listLeaderboards, listOffers, listOneTimeOffers, listOneTimeProducts, listRecoveryActions, listReports, listReviews, listSubscriptions, listTesters, listTracks, listUsers, listVoidedPurchases, loadPreflightConfig, loadStatusCache, maybePaginate, migratePrices, parseAppfile, parseFastfile, parseGrantArg, parseMonth, pauseTrain, promoteRelease, publish, publishEnterpriseApp, pullListings, pushListings, readListingsFromDir, readReleaseNotesFromDir, redactAuditArgs, redactSensitive, refundExternalTransaction, refundOrder, relativeTime, removeTesters, removeUser, replyToReview, revokeSubscriptionPurchase, runPreflight, runWatchLoop, safePath, safePathWithin, saveStatusCache, scaffoldPlugin, searchAuditEvents, searchVitalsErrors, sendNotification, sendWebhook, sortResults, startTrain, statusHasBreach, syncInAppProducts, topFiles, trackBreachState, updateAppDetails, updateDataSafety, updateGrant, updateInAppProduct, updateListing, updateOffer, updateOneTimeOffer, updateOneTimeProduct, updateRollout, updateSubscription, updateTrackConfig, updateUser, uploadExternallyHosted, uploadImage, uploadInternalSharing, uploadRelease, validateImage, validateLanguageCode, validatePackageName, validatePreSubmission, validateReleaseNotes, validateSku, validateTrackName, validateUploadFile, validateVersionCode, watchVitalsWithAutoHalt, wordDiff, writeAuditLog, writeListingsToDir, writeMigrationOutput };
|
package/dist/index.js
CHANGED
|
@@ -4289,12 +4289,15 @@ async function listEvents(client, packageName) {
|
|
|
4289
4289
|
}
|
|
4290
4290
|
|
|
4291
4291
|
// src/commands/enterprise.ts
|
|
4292
|
-
async function
|
|
4293
|
-
|
|
4294
|
-
|
|
4292
|
+
async function createEnterpriseApp(client, params) {
|
|
4293
|
+
return client.apps.create(params.accountId, params.bundlePath, {
|
|
4294
|
+
title: params.title,
|
|
4295
|
+
languageCode: params.languageCode ?? "en_US",
|
|
4296
|
+
organizations: params.organizations
|
|
4297
|
+
});
|
|
4295
4298
|
}
|
|
4296
|
-
async function
|
|
4297
|
-
return client
|
|
4299
|
+
async function publishEnterpriseApp(client, params) {
|
|
4300
|
+
return createEnterpriseApp(client, params);
|
|
4298
4301
|
}
|
|
4299
4302
|
|
|
4300
4303
|
// src/audit.ts
|
|
@@ -7587,7 +7590,6 @@ export {
|
|
|
7587
7590
|
listAchievements,
|
|
7588
7591
|
listAuditEvents,
|
|
7589
7592
|
listDeviceTiers,
|
|
7590
|
-
listEnterpriseApps,
|
|
7591
7593
|
listEvents,
|
|
7592
7594
|
listGeneratedApks,
|
|
7593
7595
|
listGrants,
|
|
@@ -7616,6 +7618,7 @@ export {
|
|
|
7616
7618
|
pauseTrain,
|
|
7617
7619
|
promoteRelease,
|
|
7618
7620
|
publish,
|
|
7621
|
+
publishEnterpriseApp,
|
|
7619
7622
|
pullListings,
|
|
7620
7623
|
pushListings,
|
|
7621
7624
|
readListingsFromDir,
|