@maxim_mazurok/gapi.client.androidpublisher-v3 0.3.20260316 → 0.3.20260608
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/index.d.ts +33 -11
- package/package.json +1 -1
- package/readme.md +17 -0
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://androidpublisher.googleapis.com/$discovery/rest?version=v3
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260608
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -230,7 +230,7 @@ declare namespace gapi.client {
|
|
|
230
230
|
}
|
|
231
231
|
interface ArchiveSubscriptionRequest {}
|
|
232
232
|
interface ArtifactSummary {
|
|
233
|
-
/**
|
|
233
|
+
/** Artifact's version code */
|
|
234
234
|
versionCode?: number;
|
|
235
235
|
}
|
|
236
236
|
interface AssetModuleMetadata {
|
|
@@ -280,7 +280,7 @@ declare namespace gapi.client {
|
|
|
280
280
|
priceChangeDetails?: SubscriptionItemPriceChangeDetails;
|
|
281
281
|
/** The information of the latest price step-up consent. */
|
|
282
282
|
priceStepUpConsentDetails?: PriceStepUpConsentDetails;
|
|
283
|
-
/** The current recurring price of the auto renewing plan. Note that the price does not take into account discounts and does not include taxes
|
|
283
|
+
/** The current recurring price of the auto renewing plan. Note that the price does not take into account discounts and does not include taxes. For tax-exclusive pricing, please call orders.get API instead if transaction details are needed. */
|
|
284
284
|
recurringPrice?: Money;
|
|
285
285
|
}
|
|
286
286
|
interface BaseDetails {}
|
|
@@ -912,6 +912,10 @@ declare namespace gapi.client {
|
|
|
912
912
|
generatedUniversalApk?: GeneratedUniversalApk;
|
|
913
913
|
/** Contains targeting information about the generated apks. */
|
|
914
914
|
targetingInfo?: TargetingInfo;
|
|
915
|
+
/** List of generated split APKs without automatic protection, signed with a key corresponding to certificate_sha256_hash. This field is only present if the app uses automatic protection. In this case, `generated_split_apks` contains APKs with automatic protection enabled, whereas this field contains APKs without automatic protection. */
|
|
916
|
+
unprotectedGeneratedSplitApks?: GeneratedSplitApk[];
|
|
917
|
+
/** List of generated standalone APKs without automatic protection, signed with a key corresponding to certificate_sha256_hash. This field is only present if the app uses automatic protection. In this case, `generated_standalone_apks` contains APKs with automatic protection enabled, whereas this field contains APKs without automatic protection. */
|
|
918
|
+
unprotectedGeneratedStandaloneApks?: GeneratedStandaloneApk[];
|
|
915
919
|
}
|
|
916
920
|
interface GeneratedAssetPackSlice {
|
|
917
921
|
/** Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method. */
|
|
@@ -1114,6 +1118,10 @@ declare namespace gapi.client {
|
|
|
1114
1118
|
/** Unique identifier for the in-app product. */
|
|
1115
1119
|
sku?: string;
|
|
1116
1120
|
}
|
|
1121
|
+
interface InGracePeriodStateContext {
|
|
1122
|
+
/** Optional. The payment for the renewal was declined. */
|
|
1123
|
+
renewalDeclined?: RenewalDeclinedContext;
|
|
1124
|
+
}
|
|
1117
1125
|
interface InstallmentPlan {
|
|
1118
1126
|
/** Total number of payments the user is initially committed for. */
|
|
1119
1127
|
initialCommittedPaymentsCount?: number;
|
|
@@ -1257,7 +1265,7 @@ declare namespace gapi.client {
|
|
|
1257
1265
|
oneTimeProducts?: OneTimeProduct[];
|
|
1258
1266
|
}
|
|
1259
1267
|
interface ListReleaseSummariesResponse {
|
|
1260
|
-
/** List of releases for this track.
|
|
1268
|
+
/** List of releases for this track. A maximum of 20 releases can be returned. */
|
|
1261
1269
|
releases?: ReleaseSummary[];
|
|
1262
1270
|
}
|
|
1263
1271
|
interface ListSubscriptionOffersResponse {
|
|
@@ -1567,6 +1575,10 @@ declare namespace gapi.client {
|
|
|
1567
1575
|
/** The details of a rent purchase. Only set if it is a rent purchase. */
|
|
1568
1576
|
rentalDetails?: any;
|
|
1569
1577
|
}
|
|
1578
|
+
interface OnHoldStateContext {
|
|
1579
|
+
/** Optional. The payment for the renewal was declined. */
|
|
1580
|
+
renewalDeclined?: RenewalDeclinedContext;
|
|
1581
|
+
}
|
|
1570
1582
|
interface Order {
|
|
1571
1583
|
/** Address information for the customer, for use in tax computation. When Google is the Merchant of Record for the order, only country is shown. */
|
|
1572
1584
|
buyerAddress?: BuyerAddress;
|
|
@@ -2000,7 +2012,7 @@ declare namespace gapi.client {
|
|
|
2000
2012
|
version?: string;
|
|
2001
2013
|
}
|
|
2002
2014
|
interface ReleaseSummary {
|
|
2003
|
-
/** List of active artifacts on this release
|
|
2015
|
+
/** List of active artifacts on this release */
|
|
2004
2016
|
activeArtifacts?: ArtifactSummary[];
|
|
2005
2017
|
/** The lifecycle state of a release. */
|
|
2006
2018
|
releaseLifecycleState?:
|
|
@@ -2013,7 +2025,7 @@ declare namespace gapi.client {
|
|
|
2013
2025
|
| 'RELEASE_LIFECYCLE_STATE_PUBLISHED';
|
|
2014
2026
|
/** Name of the release. */
|
|
2015
2027
|
releaseName?: string;
|
|
2016
|
-
/** Identifier
|
|
2028
|
+
/** Identifier for the track. [Learn more about track names.](https://developers.google.com/android-publisher/tracks). */
|
|
2017
2029
|
track?: string;
|
|
2018
2030
|
}
|
|
2019
2031
|
interface RemoteInAppUpdate {
|
|
@@ -2032,6 +2044,10 @@ declare namespace gapi.client {
|
|
|
2032
2044
|
/** Version Code corresponding to the target bundle. */
|
|
2033
2045
|
versionCode?: string;
|
|
2034
2046
|
}
|
|
2047
|
+
interface RenewalDeclinedContext {
|
|
2048
|
+
/** Required. The ID of the pending or failed order causing the state. */
|
|
2049
|
+
pendingOrderId?: string;
|
|
2050
|
+
}
|
|
2035
2051
|
interface RentalDetails {}
|
|
2036
2052
|
interface RentOfferDetails {}
|
|
2037
2053
|
interface ReplacementCancellation {}
|
|
@@ -2193,7 +2209,7 @@ declare namespace gapi.client {
|
|
|
2193
2209
|
basePlanId?: string;
|
|
2194
2210
|
/** The offer ID for the current subscription offer. */
|
|
2195
2211
|
offerId?: string;
|
|
2196
|
-
/** The pricing phase for the billing period funded by this order.
|
|
2212
|
+
/** Deprecated: Use offer_phase_details instead. The pricing phase for the billing period funded by this order. */
|
|
2197
2213
|
offerPhase?:
|
|
2198
2214
|
| 'OFFER_PHASE_UNSPECIFIED'
|
|
2199
2215
|
| 'BASE'
|
|
@@ -2228,7 +2244,7 @@ declare namespace gapi.client {
|
|
|
2228
2244
|
interface SubscriptionListing {
|
|
2229
2245
|
/** A list of benefits shown to the user on platforms such as the Play Store and in restoration flows in the language of this listing. Plain text. Ordered list of at most four benefits. */
|
|
2230
2246
|
benefits?: string[];
|
|
2231
|
-
/** The description of this subscription in the language of this listing. Maximum length -
|
|
2247
|
+
/** The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text. */
|
|
2232
2248
|
description?: string;
|
|
2233
2249
|
/** Required. The language of this listing, as defined by BCP-47, e.g. "en-US". */
|
|
2234
2250
|
languageCode?: string;
|
|
@@ -2389,6 +2405,8 @@ declare namespace gapi.client {
|
|
|
2389
2405
|
etag?: string;
|
|
2390
2406
|
/** User account identifier in the third-party service. */
|
|
2391
2407
|
externalAccountIdentifiers?: ExternalAccountIdentifiers;
|
|
2408
|
+
/** Optional. Additional context around subscriptions in IN_GRACE_PERIOD state. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_IN_GRACE_PERIOD. */
|
|
2409
|
+
inGracePeriodStateContext?: InGracePeriodStateContext;
|
|
2392
2410
|
/** This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service. */
|
|
2393
2411
|
kind?: string;
|
|
2394
2412
|
/** Deprecated: Use line_items.latest_successful_order_id instead. The order id of the latest order associated with the purchase of the subscription. For autoRenewing subscription, this is the order id of signup order if it is not renewed yet, or the last recurring order id (success, pending, or declined order). For prepaid subscription, this is the order id associated with the queried purchase token. */
|
|
@@ -2397,6 +2415,8 @@ declare namespace gapi.client {
|
|
|
2397
2415
|
lineItems?: SubscriptionPurchaseLineItem[];
|
|
2398
2416
|
/** The purchase token of the old subscription if this subscription is one of the following: * Re-signup of a canceled but non-lapsed subscription * Upgrade/downgrade from a previous subscription. * Convert from prepaid to auto renewing subscription. * Convert from an auto renewing subscription to prepaid. * Topup a prepaid subscription. */
|
|
2399
2417
|
linkedPurchaseToken?: string;
|
|
2418
|
+
/** Optional. Additional context around subscriptions in ON_HOLD state. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_ON_HOLD. */
|
|
2419
|
+
onHoldStateContext?: OnHoldStateContext;
|
|
2400
2420
|
/** Additional context for out of app purchases. This information is only present for re-subscription purchases (subscription purchases made after the previous subscription of the same product has expired) made through the Google Play subscriptions center. This field will be removed after you acknowledge the subscription. */
|
|
2401
2421
|
outOfAppPurchaseContext?: OutOfAppPurchaseContext;
|
|
2402
2422
|
/** Additional context around paused subscriptions. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_PAUSED. */
|
|
@@ -2717,7 +2737,9 @@ declare namespace gapi.client {
|
|
|
2717
2737
|
| 'CAN_MANAGE_APP_CONTENT_GLOBAL'
|
|
2718
2738
|
| 'CAN_VIEW_NON_FINANCIAL_DATA_GLOBAL'
|
|
2719
2739
|
| 'CAN_VIEW_APP_QUALITY_GLOBAL'
|
|
2720
|
-
| 'CAN_MANAGE_DEEPLINKS_GLOBAL'
|
|
2740
|
+
| 'CAN_MANAGE_DEEPLINKS_GLOBAL'
|
|
2741
|
+
| 'CAN_VIEW_CONNECTED_APPS_GLOBAL'
|
|
2742
|
+
| 'CAN_EDIT_CONNECTED_APPS_GLOBAL'[];
|
|
2721
2743
|
/** Immutable. The user's email address. */
|
|
2722
2744
|
email?: string;
|
|
2723
2745
|
/** The time at which the user's access expires, if set. When setting this value, it must always be in the future. */
|
|
@@ -8559,7 +8581,7 @@ declare namespace gapi.client {
|
|
|
8559
8581
|
},
|
|
8560
8582
|
body: SubscriptionPurchasesAcknowledgeRequest,
|
|
8561
8583
|
): Request<void>;
|
|
8562
|
-
/** Cancels a user's subscription purchase. The subscription remains valid until its expiration time. Newer version is available at purchases.subscriptionsv2.cancel for better client library support. */
|
|
8584
|
+
/** Deprecated: Use purchases.subscriptionsv2.cancel instead. Cancels a user's subscription purchase. The subscription remains valid until its expiration time. Newer version is available at purchases.subscriptionsv2.cancel for better client library support. */
|
|
8563
8585
|
cancel(request?: {
|
|
8564
8586
|
/** V1 error format. */
|
|
8565
8587
|
'$.xgafv'?: '1' | '2';
|
|
@@ -8590,7 +8612,7 @@ declare namespace gapi.client {
|
|
|
8590
8612
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8591
8613
|
uploadType?: string;
|
|
8592
8614
|
}): Request<void>;
|
|
8593
|
-
/** Defers a user's subscription purchase until a specified future expiration time. */
|
|
8615
|
+
/** Deprecated: Use purchases.subscriptionsv2.defer instead. Defers a user's subscription purchase until a specified future expiration time. */
|
|
8594
8616
|
defer(request: {
|
|
8595
8617
|
/** V1 error format. */
|
|
8596
8618
|
'$.xgafv'?: '1' | '2';
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Google Play Android Developer API:
|
|
|
11
11
|
npm install @types/gapi.client.androidpublisher-v3 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.androidpublisher-v3"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|