@maxim_mazurok/gapi.client.androidpublisher-v3 0.0.20231213 → 0.0.20240109
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 +385 -1
- package/package.json +1 -1
- package/readme.md +38 -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: 20240109
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -64,6 +64,19 @@ declare namespace gapi.client {
|
|
|
64
64
|
/** Required. The parent subscription (ID) of the offer to activate. */
|
|
65
65
|
productId?: string;
|
|
66
66
|
}
|
|
67
|
+
interface AddTargetingRequest {
|
|
68
|
+
/** Specifies targeting updates such as regions, android sdk versions etc. */
|
|
69
|
+
targetingUpdate?: TargetingUpdate;
|
|
70
|
+
}
|
|
71
|
+
interface AddTargetingResponse {}
|
|
72
|
+
interface AllUsers {
|
|
73
|
+
/** Required. Set to true if all set of users are needed. */
|
|
74
|
+
isAllUsersRequested?: boolean;
|
|
75
|
+
}
|
|
76
|
+
interface AndroidSdks {
|
|
77
|
+
/** Android api levels of devices targeted by recovery action. See https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels for different api levels in android. */
|
|
78
|
+
sdkLevels?: string[];
|
|
79
|
+
}
|
|
67
80
|
interface Apk {
|
|
68
81
|
/** Information about the binary payload of this APK. */
|
|
69
82
|
binary?: ApkBinary;
|
|
@@ -140,6 +153,34 @@ declare namespace gapi.client {
|
|
|
140
153
|
/** Output only. Identifier of the edit. Can be used in subsequent API calls. */
|
|
141
154
|
id?: string;
|
|
142
155
|
}
|
|
156
|
+
interface AppRecoveryAction {
|
|
157
|
+
/** ID corresponding to the app recovery action. */
|
|
158
|
+
appRecoveryId?: string;
|
|
159
|
+
/** Timestamp of when the app recovery action is canceled by the developer. Only set if the recovery action has been canceled. */
|
|
160
|
+
cancelTime?: string;
|
|
161
|
+
/** Timestamp of when the app recovery action is created by the developer. It is always set after creation of the recovery action. */
|
|
162
|
+
createTime?: string;
|
|
163
|
+
/** Timestamp of when the app recovery action is deployed to the users. Only set if the recovery action has been deployed. */
|
|
164
|
+
deployTime?: string;
|
|
165
|
+
/** Timestamp of when the developer last updated recovery action. In case the action is cancelled, it corresponds to cancellation time. It is always set after creation of the recovery action. */
|
|
166
|
+
lastUpdateTime?: string;
|
|
167
|
+
/** Data about the remote in-app update action such as such as recovered user base, recoverable user base etc. Set only if the recovery action type is Remote In-App Update. */
|
|
168
|
+
remoteInAppUpdateData?: RemoteInAppUpdateData;
|
|
169
|
+
/** The status of the recovery action. */
|
|
170
|
+
status?: string;
|
|
171
|
+
/** Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions etc. */
|
|
172
|
+
targeting?: Targeting;
|
|
173
|
+
}
|
|
174
|
+
interface AppVersionList {
|
|
175
|
+
/** List of app version codes. */
|
|
176
|
+
versionCodes?: string[];
|
|
177
|
+
}
|
|
178
|
+
interface AppVersionRange {
|
|
179
|
+
/** Highest app version in the range, inclusive. */
|
|
180
|
+
versionCodeEnd?: string;
|
|
181
|
+
/** Lowest app version in the range, inclusive. */
|
|
182
|
+
versionCodeStart?: string;
|
|
183
|
+
}
|
|
143
184
|
interface ArchiveSubscriptionRequest {}
|
|
144
185
|
interface AssetModuleMetadata {
|
|
145
186
|
/** Indicates the delivery type for persistent install. */
|
|
@@ -254,6 +295,8 @@ declare namespace gapi.client {
|
|
|
254
295
|
/** The kind of this response ("androidpublisher#bundlesListResponse"). */
|
|
255
296
|
kind?: string;
|
|
256
297
|
}
|
|
298
|
+
interface CancelAppRecoveryRequest {}
|
|
299
|
+
interface CancelAppRecoveryResponse {}
|
|
257
300
|
interface CanceledStateContext {
|
|
258
301
|
/** Subscription was canceled by the developer. */
|
|
259
302
|
developerInitiatedCancellation?: any;
|
|
@@ -306,6 +349,12 @@ declare namespace gapi.client {
|
|
|
306
349
|
/** Include "rest of world" as well as explicitly targeted countries. */
|
|
307
350
|
includeRestOfWorld?: boolean;
|
|
308
351
|
}
|
|
352
|
+
interface CreateDraftAppRecoveryRequest {
|
|
353
|
+
/** Action type is remote in-app update. As a consequence of this action, a downloadable recovery module is also created for testing purposes. */
|
|
354
|
+
remoteInAppUpdate?: RemoteInAppUpdate;
|
|
355
|
+
/** Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions etc. */
|
|
356
|
+
targeting?: Targeting;
|
|
357
|
+
}
|
|
309
358
|
interface DeactivateBasePlanRequest {
|
|
310
359
|
/** Required. The unique base plan ID of the base plan to deactivate. */
|
|
311
360
|
basePlanId?: string;
|
|
@@ -340,6 +389,8 @@ declare namespace gapi.client {
|
|
|
340
389
|
/** The uploaded Deobfuscation File configuration. */
|
|
341
390
|
deobfuscationFile?: DeobfuscationFile;
|
|
342
391
|
}
|
|
392
|
+
interface DeployAppRecoveryRequest {}
|
|
393
|
+
interface DeployAppRecoveryResponse {}
|
|
343
394
|
interface DeveloperComment {
|
|
344
395
|
/** The last time at which this comment was updated. */
|
|
345
396
|
lastModified?: Timestamp;
|
|
@@ -538,6 +589,8 @@ declare namespace gapi.client {
|
|
|
538
589
|
certificateSha256Hash?: string;
|
|
539
590
|
/** List of asset pack slices which will be served for this app bundle, signed with a key corresponding to certificate_sha256_hash. */
|
|
540
591
|
generatedAssetPackSlices?: GeneratedAssetPackSlice[];
|
|
592
|
+
/** Generated recovery apks for recovery actions signed with a key corresponding to certificate_sha256_hash. This includes all generated recovery APKs, also those in draft or cancelled state. This field is not set if no recovery actions were created for this signing key. */
|
|
593
|
+
generatedRecoveryModules?: GeneratedRecoveryApk[];
|
|
541
594
|
/** List of generated split APKs, signed with a key corresponding to certificate_sha256_hash. */
|
|
542
595
|
generatedSplitApks?: GeneratedSplitApk[];
|
|
543
596
|
/** List of generated standalone APKs, signed with a key corresponding to certificate_sha256_hash. */
|
|
@@ -557,6 +610,16 @@ declare namespace gapi.client {
|
|
|
557
610
|
/** Asset module version. */
|
|
558
611
|
version?: string;
|
|
559
612
|
}
|
|
613
|
+
interface GeneratedRecoveryApk {
|
|
614
|
+
/** Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method. */
|
|
615
|
+
downloadId?: string;
|
|
616
|
+
/** Name of the module which recovery apk belongs to. */
|
|
617
|
+
moduleName?: string;
|
|
618
|
+
/** ID of the recovery action. */
|
|
619
|
+
recoveryId?: string;
|
|
620
|
+
/** The status of the recovery action corresponding to the recovery apk. */
|
|
621
|
+
recoveryStatus?: string;
|
|
622
|
+
}
|
|
560
623
|
interface GeneratedSplitApk {
|
|
561
624
|
/** Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method. */
|
|
562
625
|
downloadId?: string;
|
|
@@ -725,6 +788,10 @@ declare namespace gapi.client {
|
|
|
725
788
|
/** ISO-639: 2 or 3 letter language code. */
|
|
726
789
|
value?: string[];
|
|
727
790
|
}
|
|
791
|
+
interface ListAppRecoveriesResponse {
|
|
792
|
+
/** List of recovery actions associated with the requested package name. */
|
|
793
|
+
recoveryActions?: AppRecoveryAction[];
|
|
794
|
+
}
|
|
728
795
|
interface ListDeviceTierConfigsResponse {
|
|
729
796
|
/** Device tier configs created by the developer. */
|
|
730
797
|
deviceTierConfigs?: DeviceTierConfig[];
|
|
@@ -1002,10 +1069,30 @@ declare namespace gapi.client {
|
|
|
1002
1069
|
/** Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498). */
|
|
1003
1070
|
taxTier?: string;
|
|
1004
1071
|
}
|
|
1072
|
+
interface Regions {
|
|
1073
|
+
/** Regions targeted by the recovery action. Region codes are ISO 3166 Alpha-2 country codes. For example, US stands for United States of America. See https://www.iso.org/iso-3166-country-codes.html for the complete list of country codes. */
|
|
1074
|
+
regionCode?: string[];
|
|
1075
|
+
}
|
|
1005
1076
|
interface RegionsVersion {
|
|
1006
1077
|
/** Required. A string representing the version of available regions being used for the specified resource. Regional prices for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available. The latest version is 2022/02. */
|
|
1007
1078
|
version?: string;
|
|
1008
1079
|
}
|
|
1080
|
+
interface RemoteInAppUpdate {
|
|
1081
|
+
/** Required. Set to true if Remote In-App Update action type is needed. */
|
|
1082
|
+
isRemoteInAppUpdateRequested?: boolean;
|
|
1083
|
+
}
|
|
1084
|
+
interface RemoteInAppUpdateData {
|
|
1085
|
+
/** Data related to the recovery action at bundle level. */
|
|
1086
|
+
remoteAppUpdateDataPerBundle?: RemoteInAppUpdateDataPerBundle[];
|
|
1087
|
+
}
|
|
1088
|
+
interface RemoteInAppUpdateDataPerBundle {
|
|
1089
|
+
/** Total number of devices which have been rescued. */
|
|
1090
|
+
recoveredDeviceCount?: string;
|
|
1091
|
+
/** Total number of devices affected by this recovery action associated with bundle of the app. */
|
|
1092
|
+
totalDeviceCount?: string;
|
|
1093
|
+
/** Version Code corresponding to the target bundle. */
|
|
1094
|
+
versionCode?: string;
|
|
1095
|
+
}
|
|
1009
1096
|
interface ReplacementCancellation {}
|
|
1010
1097
|
interface Review {
|
|
1011
1098
|
/** The name of the user who wrote the review. */
|
|
@@ -1318,6 +1405,18 @@ declare namespace gapi.client {
|
|
|
1318
1405
|
name?: string;
|
|
1319
1406
|
}
|
|
1320
1407
|
interface SystemInitiatedCancellation {}
|
|
1408
|
+
interface Targeting {
|
|
1409
|
+
/** All users are targeted. */
|
|
1410
|
+
allUsers?: AllUsers;
|
|
1411
|
+
/** Targeting is based on android api levels of devices. */
|
|
1412
|
+
androidSdks?: AndroidSdks;
|
|
1413
|
+
/** Targeting is based on the user account region. */
|
|
1414
|
+
regions?: Regions;
|
|
1415
|
+
/** Target version codes as a list. */
|
|
1416
|
+
versionList?: AppVersionList;
|
|
1417
|
+
/** Target version codes as a range. */
|
|
1418
|
+
versionRange?: AppVersionRange;
|
|
1419
|
+
}
|
|
1321
1420
|
interface TargetingInfo {
|
|
1322
1421
|
/** List of created asset slices. */
|
|
1323
1422
|
assetSliceSet?: AssetSliceSet[];
|
|
@@ -1330,6 +1429,14 @@ declare namespace gapi.client {
|
|
|
1330
1429
|
/** The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app. */
|
|
1331
1430
|
specificSubscriptionInApp?: string;
|
|
1332
1431
|
}
|
|
1432
|
+
interface TargetingUpdate {
|
|
1433
|
+
/** All users are targeted. */
|
|
1434
|
+
allUsers?: AllUsers;
|
|
1435
|
+
/** Additional android sdk levels are targeted by the recovery action. */
|
|
1436
|
+
androidSdks?: AndroidSdks;
|
|
1437
|
+
/** Additional regions are targeted by the recovery action. */
|
|
1438
|
+
regions?: Regions;
|
|
1439
|
+
}
|
|
1333
1440
|
interface Testers {
|
|
1334
1441
|
/** All testing Google Groups, as email addresses. */
|
|
1335
1442
|
googleGroups?: string[];
|
|
@@ -1684,6 +1791,281 @@ declare namespace gapi.client {
|
|
|
1684
1791
|
interface ApplicationsResource {
|
|
1685
1792
|
deviceTierConfigs: DeviceTierConfigsResource;
|
|
1686
1793
|
}
|
|
1794
|
+
interface ApprecoveryResource {
|
|
1795
|
+
/** Incrementally update targeting for a recovery action. Note that only the criteria selected during the creation of recovery action can be expanded. */
|
|
1796
|
+
addTargeting(request: {
|
|
1797
|
+
/** V1 error format. */
|
|
1798
|
+
'$.xgafv'?: string;
|
|
1799
|
+
/** OAuth access token. */
|
|
1800
|
+
access_token?: string;
|
|
1801
|
+
/** Data format for response. */
|
|
1802
|
+
alt?: string;
|
|
1803
|
+
/** Required. ID corresponding to the app recovery action. */
|
|
1804
|
+
appRecoveryId: string;
|
|
1805
|
+
/** JSONP */
|
|
1806
|
+
callback?: string;
|
|
1807
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1808
|
+
fields?: string;
|
|
1809
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1810
|
+
key?: string;
|
|
1811
|
+
/** OAuth 2.0 token for the current user. */
|
|
1812
|
+
oauth_token?: string;
|
|
1813
|
+
/** Required. Package name of the app for which recovery action is to be updated. */
|
|
1814
|
+
packageName: string;
|
|
1815
|
+
/** Returns response with indentations and line breaks. */
|
|
1816
|
+
prettyPrint?: boolean;
|
|
1817
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1818
|
+
quotaUser?: string;
|
|
1819
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1820
|
+
upload_protocol?: string;
|
|
1821
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1822
|
+
uploadType?: string;
|
|
1823
|
+
/** Request body */
|
|
1824
|
+
resource: AddTargetingRequest;
|
|
1825
|
+
}): Request<{}>;
|
|
1826
|
+
addTargeting(
|
|
1827
|
+
request: {
|
|
1828
|
+
/** V1 error format. */
|
|
1829
|
+
'$.xgafv'?: string;
|
|
1830
|
+
/** OAuth access token. */
|
|
1831
|
+
access_token?: string;
|
|
1832
|
+
/** Data format for response. */
|
|
1833
|
+
alt?: string;
|
|
1834
|
+
/** Required. ID corresponding to the app recovery action. */
|
|
1835
|
+
appRecoveryId: string;
|
|
1836
|
+
/** JSONP */
|
|
1837
|
+
callback?: string;
|
|
1838
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1839
|
+
fields?: string;
|
|
1840
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1841
|
+
key?: string;
|
|
1842
|
+
/** OAuth 2.0 token for the current user. */
|
|
1843
|
+
oauth_token?: string;
|
|
1844
|
+
/** Required. Package name of the app for which recovery action is to be updated. */
|
|
1845
|
+
packageName: string;
|
|
1846
|
+
/** Returns response with indentations and line breaks. */
|
|
1847
|
+
prettyPrint?: boolean;
|
|
1848
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1849
|
+
quotaUser?: string;
|
|
1850
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1851
|
+
upload_protocol?: string;
|
|
1852
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1853
|
+
uploadType?: string;
|
|
1854
|
+
},
|
|
1855
|
+
body: AddTargetingRequest
|
|
1856
|
+
): Request<{}>;
|
|
1857
|
+
/** List all app recovery action resources associated with a particular package name and app version. */
|
|
1858
|
+
appRecoveries(request?: {
|
|
1859
|
+
/** V1 error format. */
|
|
1860
|
+
'$.xgafv'?: string;
|
|
1861
|
+
/** OAuth access token. */
|
|
1862
|
+
access_token?: string;
|
|
1863
|
+
/** Data format for response. */
|
|
1864
|
+
alt?: string;
|
|
1865
|
+
/** JSONP */
|
|
1866
|
+
callback?: string;
|
|
1867
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1868
|
+
fields?: string;
|
|
1869
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1870
|
+
key?: string;
|
|
1871
|
+
/** OAuth 2.0 token for the current user. */
|
|
1872
|
+
oauth_token?: string;
|
|
1873
|
+
/** Required. Package name of the app for which list of recovery actions is requested. */
|
|
1874
|
+
packageName: string;
|
|
1875
|
+
/** Returns response with indentations and line breaks. */
|
|
1876
|
+
prettyPrint?: boolean;
|
|
1877
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1878
|
+
quotaUser?: string;
|
|
1879
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1880
|
+
upload_protocol?: string;
|
|
1881
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1882
|
+
uploadType?: string;
|
|
1883
|
+
/** Required. Version code targeted by the list of recovery actions. */
|
|
1884
|
+
versionCode?: string;
|
|
1885
|
+
}): Request<ListAppRecoveriesResponse>;
|
|
1886
|
+
/** Cancel an already executing app recovery action. Note that this action changes status of the recovery action to CANCELED. */
|
|
1887
|
+
cancel(request: {
|
|
1888
|
+
/** V1 error format. */
|
|
1889
|
+
'$.xgafv'?: string;
|
|
1890
|
+
/** OAuth access token. */
|
|
1891
|
+
access_token?: string;
|
|
1892
|
+
/** Data format for response. */
|
|
1893
|
+
alt?: string;
|
|
1894
|
+
/** Required. ID corresponding to the app recovery action. */
|
|
1895
|
+
appRecoveryId: string;
|
|
1896
|
+
/** JSONP */
|
|
1897
|
+
callback?: string;
|
|
1898
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1899
|
+
fields?: string;
|
|
1900
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1901
|
+
key?: string;
|
|
1902
|
+
/** OAuth 2.0 token for the current user. */
|
|
1903
|
+
oauth_token?: string;
|
|
1904
|
+
/** Required. Package name of the app for which recovery action cancellation is requested. */
|
|
1905
|
+
packageName: string;
|
|
1906
|
+
/** Returns response with indentations and line breaks. */
|
|
1907
|
+
prettyPrint?: boolean;
|
|
1908
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1909
|
+
quotaUser?: string;
|
|
1910
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1911
|
+
upload_protocol?: string;
|
|
1912
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1913
|
+
uploadType?: string;
|
|
1914
|
+
/** Request body */
|
|
1915
|
+
resource: CancelAppRecoveryRequest;
|
|
1916
|
+
}): Request<{}>;
|
|
1917
|
+
cancel(
|
|
1918
|
+
request: {
|
|
1919
|
+
/** V1 error format. */
|
|
1920
|
+
'$.xgafv'?: string;
|
|
1921
|
+
/** OAuth access token. */
|
|
1922
|
+
access_token?: string;
|
|
1923
|
+
/** Data format for response. */
|
|
1924
|
+
alt?: string;
|
|
1925
|
+
/** Required. ID corresponding to the app recovery action. */
|
|
1926
|
+
appRecoveryId: string;
|
|
1927
|
+
/** JSONP */
|
|
1928
|
+
callback?: string;
|
|
1929
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1930
|
+
fields?: string;
|
|
1931
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1932
|
+
key?: string;
|
|
1933
|
+
/** OAuth 2.0 token for the current user. */
|
|
1934
|
+
oauth_token?: string;
|
|
1935
|
+
/** Required. Package name of the app for which recovery action cancellation is requested. */
|
|
1936
|
+
packageName: string;
|
|
1937
|
+
/** Returns response with indentations and line breaks. */
|
|
1938
|
+
prettyPrint?: boolean;
|
|
1939
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1940
|
+
quotaUser?: string;
|
|
1941
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1942
|
+
upload_protocol?: string;
|
|
1943
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1944
|
+
uploadType?: string;
|
|
1945
|
+
},
|
|
1946
|
+
body: CancelAppRecoveryRequest
|
|
1947
|
+
): Request<{}>;
|
|
1948
|
+
/** Create an app recovery action with recovery status as DRAFT. Note that this action does not execute the recovery action. */
|
|
1949
|
+
create(request: {
|
|
1950
|
+
/** V1 error format. */
|
|
1951
|
+
'$.xgafv'?: string;
|
|
1952
|
+
/** OAuth access token. */
|
|
1953
|
+
access_token?: string;
|
|
1954
|
+
/** Data format for response. */
|
|
1955
|
+
alt?: string;
|
|
1956
|
+
/** JSONP */
|
|
1957
|
+
callback?: string;
|
|
1958
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1959
|
+
fields?: string;
|
|
1960
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1961
|
+
key?: string;
|
|
1962
|
+
/** OAuth 2.0 token for the current user. */
|
|
1963
|
+
oauth_token?: string;
|
|
1964
|
+
/** Required. Package name of the app on which recovery action is performed. */
|
|
1965
|
+
packageName: string;
|
|
1966
|
+
/** Returns response with indentations and line breaks. */
|
|
1967
|
+
prettyPrint?: boolean;
|
|
1968
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1969
|
+
quotaUser?: string;
|
|
1970
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1971
|
+
upload_protocol?: string;
|
|
1972
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1973
|
+
uploadType?: string;
|
|
1974
|
+
/** Request body */
|
|
1975
|
+
resource: CreateDraftAppRecoveryRequest;
|
|
1976
|
+
}): Request<AppRecoveryAction>;
|
|
1977
|
+
create(
|
|
1978
|
+
request: {
|
|
1979
|
+
/** V1 error format. */
|
|
1980
|
+
'$.xgafv'?: string;
|
|
1981
|
+
/** OAuth access token. */
|
|
1982
|
+
access_token?: string;
|
|
1983
|
+
/** Data format for response. */
|
|
1984
|
+
alt?: string;
|
|
1985
|
+
/** JSONP */
|
|
1986
|
+
callback?: string;
|
|
1987
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1988
|
+
fields?: string;
|
|
1989
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1990
|
+
key?: string;
|
|
1991
|
+
/** OAuth 2.0 token for the current user. */
|
|
1992
|
+
oauth_token?: string;
|
|
1993
|
+
/** Required. Package name of the app on which recovery action is performed. */
|
|
1994
|
+
packageName: string;
|
|
1995
|
+
/** Returns response with indentations and line breaks. */
|
|
1996
|
+
prettyPrint?: boolean;
|
|
1997
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1998
|
+
quotaUser?: string;
|
|
1999
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2000
|
+
upload_protocol?: string;
|
|
2001
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2002
|
+
uploadType?: string;
|
|
2003
|
+
},
|
|
2004
|
+
body: CreateDraftAppRecoveryRequest
|
|
2005
|
+
): Request<AppRecoveryAction>;
|
|
2006
|
+
/** Deploy an already created app recovery action with recovery status DRAFT. Note that this action activates the recovery action for all targeted users and changes its status to ACTIVE. */
|
|
2007
|
+
deploy(request: {
|
|
2008
|
+
/** V1 error format. */
|
|
2009
|
+
'$.xgafv'?: string;
|
|
2010
|
+
/** OAuth access token. */
|
|
2011
|
+
access_token?: string;
|
|
2012
|
+
/** Data format for response. */
|
|
2013
|
+
alt?: string;
|
|
2014
|
+
/** Required. ID corresponding to the app recovery action to deploy. */
|
|
2015
|
+
appRecoveryId: string;
|
|
2016
|
+
/** JSONP */
|
|
2017
|
+
callback?: string;
|
|
2018
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2019
|
+
fields?: string;
|
|
2020
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2021
|
+
key?: string;
|
|
2022
|
+
/** OAuth 2.0 token for the current user. */
|
|
2023
|
+
oauth_token?: string;
|
|
2024
|
+
/** Required. Package name of the app for which recovery action is deployed. */
|
|
2025
|
+
packageName: string;
|
|
2026
|
+
/** Returns response with indentations and line breaks. */
|
|
2027
|
+
prettyPrint?: boolean;
|
|
2028
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2029
|
+
quotaUser?: string;
|
|
2030
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2031
|
+
upload_protocol?: string;
|
|
2032
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2033
|
+
uploadType?: string;
|
|
2034
|
+
/** Request body */
|
|
2035
|
+
resource: DeployAppRecoveryRequest;
|
|
2036
|
+
}): Request<{}>;
|
|
2037
|
+
deploy(
|
|
2038
|
+
request: {
|
|
2039
|
+
/** V1 error format. */
|
|
2040
|
+
'$.xgafv'?: string;
|
|
2041
|
+
/** OAuth access token. */
|
|
2042
|
+
access_token?: string;
|
|
2043
|
+
/** Data format for response. */
|
|
2044
|
+
alt?: string;
|
|
2045
|
+
/** Required. ID corresponding to the app recovery action to deploy. */
|
|
2046
|
+
appRecoveryId: string;
|
|
2047
|
+
/** JSONP */
|
|
2048
|
+
callback?: string;
|
|
2049
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2050
|
+
fields?: string;
|
|
2051
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2052
|
+
key?: string;
|
|
2053
|
+
/** OAuth 2.0 token for the current user. */
|
|
2054
|
+
oauth_token?: string;
|
|
2055
|
+
/** Required. Package name of the app for which recovery action is deployed. */
|
|
2056
|
+
packageName: string;
|
|
2057
|
+
/** Returns response with indentations and line breaks. */
|
|
2058
|
+
prettyPrint?: boolean;
|
|
2059
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2060
|
+
quotaUser?: string;
|
|
2061
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2062
|
+
upload_protocol?: string;
|
|
2063
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2064
|
+
uploadType?: string;
|
|
2065
|
+
},
|
|
2066
|
+
body: DeployAppRecoveryRequest
|
|
2067
|
+
): Request<{}>;
|
|
2068
|
+
}
|
|
1687
2069
|
interface ApksResource {
|
|
1688
2070
|
/** Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a specified URL. This function is only available to organizations using Managed Play whose application is configured to restrict distribution to the organizations. */
|
|
1689
2071
|
addexternallyhosted(request: {
|
|
@@ -6537,6 +6919,8 @@ declare namespace gapi.client {
|
|
|
6537
6919
|
|
|
6538
6920
|
const applications: ApplicationsResource;
|
|
6539
6921
|
|
|
6922
|
+
const apprecovery: ApprecoveryResource;
|
|
6923
|
+
|
|
6540
6924
|
const edits: EditsResource;
|
|
6541
6925
|
|
|
6542
6926
|
const externaltransactions: ExternaltransactionsResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -69,6 +69,44 @@ gapi.auth.authorize(
|
|
|
69
69
|
After that you can use Google Play Android Developer API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
|
+
/*
|
|
73
|
+
Incrementally update targeting for a recovery action. Note that only the criteria selected during the creation of recovery action can be expanded.
|
|
74
|
+
*/
|
|
75
|
+
await gapi.client.androidpublisher.apprecovery.addTargeting({
|
|
76
|
+
appRecoveryId: 'appRecoveryId',
|
|
77
|
+
packageName: 'packageName',
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
/*
|
|
81
|
+
List all app recovery action resources associated with a particular package name and app version.
|
|
82
|
+
*/
|
|
83
|
+
await gapi.client.androidpublisher.apprecovery.appRecoveries({
|
|
84
|
+
packageName: 'packageName',
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
/*
|
|
88
|
+
Cancel an already executing app recovery action. Note that this action changes status of the recovery action to CANCELED.
|
|
89
|
+
*/
|
|
90
|
+
await gapi.client.androidpublisher.apprecovery.cancel({
|
|
91
|
+
appRecoveryId: 'appRecoveryId',
|
|
92
|
+
packageName: 'packageName',
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
/*
|
|
96
|
+
Create an app recovery action with recovery status as DRAFT. Note that this action does not execute the recovery action.
|
|
97
|
+
*/
|
|
98
|
+
await gapi.client.androidpublisher.apprecovery.create({
|
|
99
|
+
packageName: 'packageName',
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
/*
|
|
103
|
+
Deploy an already created app recovery action with recovery status DRAFT. Note that this action activates the recovery action for all targeted users and changes its status to ACTIVE.
|
|
104
|
+
*/
|
|
105
|
+
await gapi.client.androidpublisher.apprecovery.deploy({
|
|
106
|
+
appRecoveryId: 'appRecoveryId',
|
|
107
|
+
packageName: 'packageName',
|
|
108
|
+
});
|
|
109
|
+
|
|
72
110
|
/*
|
|
73
111
|
Commits an app edit.
|
|
74
112
|
*/
|