@gpc-cli/api 1.0.20 → 1.0.22

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/dist/index.d.ts CHANGED
@@ -183,7 +183,7 @@ interface ReviewsListOptions {
183
183
  translationLanguage?: string;
184
184
  }
185
185
  type VitalsMetricSet = "crashRateMetricSet" | "anrRateMetricSet" | "excessiveWakeupRateMetricSet" | "stuckBackgroundWakelockRateMetricSet" | "slowStartRateMetricSet" | "slowRenderingRateMetricSet" | "errorCountMetricSet";
186
- type ReportingDimension = "apiLevel" | "versionCode" | "deviceModel" | "deviceType" | "countryCode" | "deviceRamBucket" | "deviceSocName" | "deviceCpuMakeModel" | "deviceGlEsVersion" | "deviceVulkanVersion" | "deviceOpenGlVersion" | "deviceBrand";
186
+ type ReportingDimension = "apiLevel" | "versionCode" | "deviceModel" | "deviceType" | "countryCode" | "deviceRamBucket" | "deviceSocName" | "deviceCpuMakeModel" | "deviceGlEsVersion" | "deviceVulkanVersion" | "deviceOpenGlVersion" | "deviceBrand" | "startType";
187
187
  type ReportingAggregation = "DAILY" | "HOURLY";
188
188
  interface MetricSetQuery {
189
189
  metrics: string[];
@@ -752,6 +752,28 @@ interface InAppProductsBatchGetRequest {
752
752
  packageName: string;
753
753
  sku: string[];
754
754
  }
755
+ interface UploadProgressEvent {
756
+ /** Bytes uploaded so far */
757
+ bytesUploaded: number;
758
+ /** Total file size in bytes */
759
+ totalBytes: number;
760
+ /** Percentage 0-100 */
761
+ percent: number;
762
+ /** Bytes per second throughput */
763
+ bytesPerSecond: number;
764
+ /** Estimated seconds remaining */
765
+ etaSeconds: number;
766
+ }
767
+ interface ResumableUploadOptions {
768
+ /** Chunk size in bytes. Must be a multiple of 256 KB. Default: 8 MB */
769
+ chunkSize?: number;
770
+ /** Progress callback fired after each chunk */
771
+ onProgress?: (event: UploadProgressEvent) => void;
772
+ /** Existing session URI to resume a previous upload */
773
+ resumeSessionUri?: string;
774
+ /** Maximum resume attempts per chunk before giving up. Default: 5 */
775
+ maxResumeAttempts?: number;
776
+ }
755
777
 
756
778
  interface PlayApiClient {
757
779
  edits: {
@@ -768,7 +790,7 @@ interface PlayApiClient {
768
790
  };
769
791
  bundles: {
770
792
  list(packageName: string, editId: string): Promise<Bundle[]>;
771
- upload(packageName: string, editId: string, filePath: string): Promise<Bundle>;
793
+ upload(packageName: string, editId: string, filePath: string, uploadOptions?: ResumableUploadOptions): Promise<Bundle>;
772
794
  };
773
795
  tracks: {
774
796
  list(packageName: string, editId: string): Promise<Track[]>;
@@ -1044,6 +1066,7 @@ interface HttpClient {
1044
1066
  patch<T>(path: string, body?: unknown): Promise<ApiResponse<T>>;
1045
1067
  delete<T>(path: string): Promise<ApiResponse<T>>;
1046
1068
  upload<T>(path: string, filePath: string, contentType: string): Promise<ApiResponse<T>>;
1069
+ uploadResumable<T>(path: string, filePath: string, contentType: string, options?: ResumableUploadOptions): Promise<ApiResponse<T>>;
1047
1070
  uploadInternal<T>(path: string, filePath: string, contentType: string): Promise<ApiResponse<T>>;
1048
1071
  download(path: string): Promise<ArrayBuffer>;
1049
1072
  }
@@ -1097,4 +1120,7 @@ declare class PlayApiError extends Error {
1097
1120
  };
1098
1121
  }
1099
1122
 
1100
- export { type Achievement, type Anomaly, type AnomalyDetectionResponse, type ApiClientOptions, type ApiResponse, type ApkInfo, type AppDetails, type AppEdit, type AppRecoveriesListResponse, type AppRecoveryAction, type AppRecoveryTargeting, type BasePlan, type BasePlanMigratePricesRequest, type Bundle, type BundleListResponse, type ConvertRegionPricesRequest, type ConvertRegionPricesResponse, type ConvertedRegionPrice, type CountryAvailability, type CreateAppRecoveryActionRequest, type CustomApp, type CustomAppsListResponse, type DataSafety, type DataSafetyDataType, type DataSafetyPurpose, type DeobfuscationFile, type DeobfuscationUploadResponse, type DeveloperComment, type DeveloperPermission, type DeviceGroup, type DeviceSelector, type DeviceTier, type DeviceTierConfig, type DeviceTierConfigsListResponse, type EnterpriseApiClient, type ErrorIssue, type ErrorIssuesResponse, type ErrorReport, type ErrorReportsResponse, type ExternalTransaction, type ExternalTransactionAmount, type ExternalTransactionRefund, type ExternallyHostedApk, type ExternallyHostedApkResponse, type GameEvent, type GamesApiClient, type GeneratedApk, type GeneratedApksPerVersion, type Grant, type GrantsListResponse, type HttpClient, type Image, type ImageType, type ImageUploadResponse, type ImagesDeleteAllResponse, type ImagesListResponse, type InAppProduct, type InAppProductListing, type InAppProductsBatchGetRequest, type InAppProductsBatchUpdateRequest, type InAppProductsBatchUpdateResponse, type InAppProductsListResponse, type InternalAppSharingArtifact, type Leaderboard, type LeaderboardScore, type Listing, type ListingsListResponse, type MetricRow, type MetricSetQuery, type MetricSetResponse, type Money, type OffersListResponse, type OneTimeOffer, type OneTimeOfferRegionalConfig, type OneTimeOffersListResponse, type OneTimeProduct, type OneTimeProductListing, type OneTimeProductsListResponse, type PagedResponse, type PaginateOptions, type PlayApiClient, PlayApiError, type ProductPurchase, type PurchaseOption, type PurchaseOptionsListResponse, RATE_LIMIT_BUCKETS, type RateLimitBucket, type RateLimiter, type RegionalBasePlanConfig, type Release, type ReleaseNote, type ReleaseStatus, type ReportBucket, type ReportType, type ReportingAggregation, type ReportingApiClient, type ReportingDimension, type ReportsListResponse, type RetryLogEntry, type Review, type ReviewComment, type ReviewReplyRequest, type ReviewReplyResponse, type ReviewsListOptions, type ReviewsListResponse, type StatsDimension, type Subscription, type SubscriptionDeferRequest, type SubscriptionDeferResponse, type SubscriptionListing, type SubscriptionOffer, type SubscriptionOfferPhase, type SubscriptionPurchase, type SubscriptionPurchaseLineItem, type SubscriptionPurchaseV2, type SubscriptionsListResponse, type TaxAndComplianceSettings, type Testers, type TokenPagination, type Track, type TrackListResponse, type UploadResponse, type User, type UserComment, type UsersApiClient, type UsersListResponse, type VitalsMetricSet, type VoidedPurchase, type VoidedPurchasesListResponse, createApiClient, createEnterpriseClient, createGamesClient, createHttpClient, createRateLimiter, createReportingClient, createUsersClient, paginate, paginateAll, paginateParallel };
1123
+ /** Files below this threshold use simple upload instead. */
1124
+ declare const RESUMABLE_THRESHOLD: number;
1125
+
1126
+ export { type Achievement, type Anomaly, type AnomalyDetectionResponse, type ApiClientOptions, type ApiResponse, type ApkInfo, type AppDetails, type AppEdit, type AppRecoveriesListResponse, type AppRecoveryAction, type AppRecoveryTargeting, type BasePlan, type BasePlanMigratePricesRequest, type Bundle, type BundleListResponse, type ConvertRegionPricesRequest, type ConvertRegionPricesResponse, type ConvertedRegionPrice, type CountryAvailability, type CreateAppRecoveryActionRequest, type CustomApp, type CustomAppsListResponse, type DataSafety, type DataSafetyDataType, type DataSafetyPurpose, type DeobfuscationFile, type DeobfuscationUploadResponse, type DeveloperComment, type DeveloperPermission, type DeviceGroup, type DeviceSelector, type DeviceTier, type DeviceTierConfig, type DeviceTierConfigsListResponse, type EnterpriseApiClient, type ErrorIssue, type ErrorIssuesResponse, type ErrorReport, type ErrorReportsResponse, type ExternalTransaction, type ExternalTransactionAmount, type ExternalTransactionRefund, type ExternallyHostedApk, type ExternallyHostedApkResponse, type GameEvent, type GamesApiClient, type GeneratedApk, type GeneratedApksPerVersion, type Grant, type GrantsListResponse, type HttpClient, type Image, type ImageType, type ImageUploadResponse, type ImagesDeleteAllResponse, type ImagesListResponse, type InAppProduct, type InAppProductListing, type InAppProductsBatchGetRequest, type InAppProductsBatchUpdateRequest, type InAppProductsBatchUpdateResponse, type InAppProductsListResponse, type InternalAppSharingArtifact, type Leaderboard, type LeaderboardScore, type Listing, type ListingsListResponse, type MetricRow, type MetricSetQuery, type MetricSetResponse, type Money, type OffersListResponse, type OneTimeOffer, type OneTimeOfferRegionalConfig, type OneTimeOffersListResponse, type OneTimeProduct, type OneTimeProductListing, type OneTimeProductsListResponse, type PagedResponse, type PaginateOptions, type PlayApiClient, PlayApiError, type ProductPurchase, type PurchaseOption, type PurchaseOptionsListResponse, RATE_LIMIT_BUCKETS, RESUMABLE_THRESHOLD, type RateLimitBucket, type RateLimiter, type RegionalBasePlanConfig, type Release, type ReleaseNote, type ReleaseStatus, type ReportBucket, type ReportType, type ReportingAggregation, type ReportingApiClient, type ReportingDimension, type ReportsListResponse, type ResumableUploadOptions, type RetryLogEntry, type Review, type ReviewComment, type ReviewReplyRequest, type ReviewReplyResponse, type ReviewsListOptions, type ReviewsListResponse, type StatsDimension, type Subscription, type SubscriptionDeferRequest, type SubscriptionDeferResponse, type SubscriptionListing, type SubscriptionOffer, type SubscriptionOfferPhase, type SubscriptionPurchase, type SubscriptionPurchaseLineItem, type SubscriptionPurchaseV2, type SubscriptionsListResponse, type TaxAndComplianceSettings, type Testers, type TokenPagination, type Track, type TrackListResponse, type UploadProgressEvent, type UploadResponse, type User, type UserComment, type UsersApiClient, type UsersListResponse, type VitalsMetricSet, type VoidedPurchase, type VoidedPurchasesListResponse, createApiClient, createEnterpriseClient, createGamesClient, createHttpClient, createRateLimiter, createReportingClient, createUsersClient, paginate, paginateAll, paginateParallel };