@expo/apple-utils 0.0.0-alpha.22 → 0.0.0-alpha.26
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/build/index.js +1 -1
- package/package.json +1 -1
- package/ts-declarations/expo__app-store/app-store.d.ts +1925 -1314
|
@@ -339,6 +339,12 @@ declare module "utils/error" {
|
|
|
339
339
|
export class SessionExpiredError extends AuthError {
|
|
340
340
|
}
|
|
341
341
|
export class UnauthorizedAccessError extends AuthError {
|
|
342
|
+
constructor(response: NetworkResponse, message?: string);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* 401 that more specifically is related to unauthenticated requests.
|
|
346
|
+
*/
|
|
347
|
+
export class UnauthenticatedError extends UnauthorizedAccessError {
|
|
342
348
|
constructor(response: NetworkResponse);
|
|
343
349
|
}
|
|
344
350
|
export class AppleTimeoutError extends NetworkError {
|
|
@@ -386,9 +392,9 @@ declare module "portal/PortalAPI" {
|
|
|
386
392
|
type?: DevPortalAppIDType;
|
|
387
393
|
}): string;
|
|
388
394
|
export function getValidName(name: string): string;
|
|
389
|
-
export function portalRequestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, { data, ...rest }: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
395
|
+
export function portalRequestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, { data, ...rest }: RequestProps, options?: Omit<ParsingOptions, 'supportedAuthType'>): Promise<R>;
|
|
390
396
|
export function parseValidationMessages(data: any): string[];
|
|
391
|
-
export function portalRequestWithParamsAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, { params, ...rest }: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
397
|
+
export function portalRequestWithParamsAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, { params, ...rest }: RequestProps, options?: Omit<ParsingOptions, 'supportedAuthType'>): Promise<R>;
|
|
392
398
|
export function parseAppStoreResponse<T extends ParsedResponseResults>(response: AxiosResponse<Record<string, any> | string>, targetDataKey?: string): T;
|
|
393
399
|
}
|
|
394
400
|
declare module "utils/retry" {
|
|
@@ -435,7 +441,12 @@ declare module "network/Request" {
|
|
|
435
441
|
headers?: RequestHeaders;
|
|
436
442
|
method: 'post' | 'get' | 'put' | 'patch' | 'delete';
|
|
437
443
|
};
|
|
444
|
+
export type AuthType = 'token' | 'cookies';
|
|
438
445
|
export interface ParsingOptions {
|
|
446
|
+
/**
|
|
447
|
+
* Used to dictate if an API cannot be used for a certain request.
|
|
448
|
+
*/
|
|
449
|
+
supportedAuthType?: AuthType;
|
|
439
450
|
dataKey?: string;
|
|
440
451
|
shouldParseDataForErrors?: boolean;
|
|
441
452
|
retries?: number;
|
|
@@ -443,6 +454,7 @@ declare module "network/Request" {
|
|
|
443
454
|
shouldRetryRequest?: (error: any) => boolean;
|
|
444
455
|
}
|
|
445
456
|
const axios: import("axios").AxiosInstance;
|
|
457
|
+
export function getSupportedContext(context: RequestContext, supportedAuthType?: AuthType): RequestContext | null;
|
|
446
458
|
export function setCookieJar(cookieJar?: CookieJar | string): void;
|
|
447
459
|
export function getCookieJar(): CookieJar;
|
|
448
460
|
export function getRetryDelay(): number;
|
|
@@ -978,7 +990,7 @@ declare module "connect/models/ConnectModel" {
|
|
|
978
990
|
* Represents a complex object type returned from the App Store Connect API.
|
|
979
991
|
*/
|
|
980
992
|
export class ConnectModel<T extends ConnectModelAttributes = ConnectModelAttributes> {
|
|
981
|
-
|
|
993
|
+
context: RequestContext;
|
|
982
994
|
id: string;
|
|
983
995
|
attributes: T;
|
|
984
996
|
constructor(context: RequestContext, id: string, attributes: T);
|
|
@@ -1019,6 +1031,7 @@ declare module "connect/ConnectAPI" {
|
|
|
1019
1031
|
}>;
|
|
1020
1032
|
export interface ConnectQueryParams<F extends Record<string, any> = Record<string, any>> {
|
|
1021
1033
|
filter?: F;
|
|
1034
|
+
fields?: F;
|
|
1022
1035
|
includes?: string[];
|
|
1023
1036
|
limit?: number;
|
|
1024
1037
|
sort?: string;
|
|
@@ -1042,6 +1055,7 @@ declare module "connect/ConnectAPI" {
|
|
|
1042
1055
|
export class ConnectClientAPI implements ClientAPI<ConnectResponse> {
|
|
1043
1056
|
getHostname(context: RequestContext): string;
|
|
1044
1057
|
requestFromAPIAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
1058
|
+
getSupportedContext(context: RequestContext, request: RequestProps, options: ParsingOptions): RequestContext;
|
|
1045
1059
|
requestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
1046
1060
|
fetchAllModelsAsync<M extends ConnectModel = ConnectModel, T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<M[]>;
|
|
1047
1061
|
fetchSingleModelAsync<M extends ConnectModel = ConnectModel, T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<M>;
|
|
@@ -1078,7 +1092,7 @@ declare module "connect/ConnectAPI" {
|
|
|
1078
1092
|
}
|
|
1079
1093
|
export const client: ConnectClientAPI;
|
|
1080
1094
|
export function filterQueryParamsWithDefaults(query?: ConnectQueryParams, defaultQuery?: ConnectQueryParams): Record<string, any>;
|
|
1081
|
-
export function filterQueryParams({ filter, includes, limit, sort, cursor, }?: ConnectQueryParams): Record<string, any>;
|
|
1095
|
+
export function filterQueryParams({ fields, filter, includes, limit, sort, cursor, }?: ConnectQueryParams): Record<string, any>;
|
|
1082
1096
|
export function parseConnectErrors(errors: AssociatedErrors[]): string;
|
|
1083
1097
|
}
|
|
1084
1098
|
declare module "connect/IrisAPI" {
|
|
@@ -1106,6 +1120,8 @@ declare module "connect/models/AgeRatingDeclaration" {
|
|
|
1106
1120
|
export interface AgeRatingDeclarationProps {
|
|
1107
1121
|
alcoholTobaccoOrDrugUseOrReferences: Rating | null;
|
|
1108
1122
|
gamblingSimulated: Rating | null;
|
|
1123
|
+
gambling: boolean | null;
|
|
1124
|
+
contests: Rating | null;
|
|
1109
1125
|
medicalOrTreatmentInformation: Rating | null;
|
|
1110
1126
|
profanityOrCrudeHumor: Rating | null;
|
|
1111
1127
|
sexualContentGraphicAndNudity: Rating | null;
|
|
@@ -1117,6 +1133,7 @@ declare module "connect/models/AgeRatingDeclaration" {
|
|
|
1117
1133
|
violenceRealistic: Rating | null;
|
|
1118
1134
|
gamblingAndContests: boolean | null;
|
|
1119
1135
|
unrestrictedWebAccess: boolean | null;
|
|
1136
|
+
seventeenPlus: boolean | null;
|
|
1120
1137
|
kidsAgeBand: KidsAge | null;
|
|
1121
1138
|
}
|
|
1122
1139
|
/**
|
|
@@ -1127,1444 +1144,1723 @@ declare module "connect/models/AgeRatingDeclaration" {
|
|
|
1127
1144
|
updateAsync(options: Partial<AgeRatingDeclarationProps>): Promise<AgeRatingDeclaration>;
|
|
1128
1145
|
}
|
|
1129
1146
|
}
|
|
1130
|
-
declare module "connect/
|
|
1131
|
-
import {
|
|
1132
|
-
|
|
1133
|
-
import { ConnectClientAPI } from "connect/ConnectAPI";
|
|
1134
|
-
class ProvisioningClientAPI extends ConnectClientAPI {
|
|
1135
|
-
getHostname(context: RequestContext): string;
|
|
1136
|
-
requestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
1147
|
+
declare module "connect/models/ContentProvider" {
|
|
1148
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1149
|
+
export interface ContentProviderProps {
|
|
1137
1150
|
/**
|
|
1138
|
-
*
|
|
1139
|
-
*
|
|
1140
|
-
* @param request
|
|
1141
|
-
* @param options
|
|
1151
|
+
* @example "Evan Bacon"
|
|
1142
1152
|
*/
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
DATA_PROTECTION = "DATA_PROTECTION",
|
|
1158
|
-
GAME_CENTER = "GAME_CENTER",
|
|
1159
|
-
HEALTH_KIT = "HEALTHKIT",
|
|
1160
|
-
HOME_KIT = "HOMEKIT",
|
|
1161
|
-
HOT_SPOT = "HOT_SPOT",
|
|
1162
|
-
ICLOUD = "ICLOUD",
|
|
1163
|
-
IN_APP_PURCHASE = "IN_APP_PURCHASE",
|
|
1164
|
-
INTER_APP_AUDIO = "INTER_APP_AUDIO",
|
|
1165
|
-
MULTIPATH = "MULTIPATH",
|
|
1166
|
-
NETWORK_EXTENSIONS = "NETWORK_EXTENSIONS",
|
|
1167
|
-
USER_MANAGEMENT = "USER_MANAGEMENT",
|
|
1168
|
-
NETWORK_CUSTOM_PROTOCOL = "NETWORK_CUSTOM_PROTOCOL",
|
|
1169
|
-
FILE_PROVIDER_TESTING_MODE = "FILEPROVIDER_TESTINGMODE",
|
|
1170
|
-
SYSTEM_EXTENSION_INSTALL = "SYSTEM_EXTENSION_INSTALL",
|
|
1171
|
-
MDM_MANAGED_ASSOCIATED_DOMAINS = "MDM_MANAGED_ASSOCIATED_DOMAINS",
|
|
1172
|
-
HLS_LOW_LATENCY = "COREMEDIA_HLS_LOW_LATENCY",
|
|
1173
|
-
HLS_INTERSTITIAL_PREVIEW = "HLS_INTERSTITIAL_PREVIEW",
|
|
1174
|
-
NFC_TAG_READING = "NFC_TAG_READING",
|
|
1175
|
-
PERSONAL_VPN = "PERSONAL_VPN",
|
|
1176
|
-
PUSH_NOTIFICATIONS = "PUSH_NOTIFICATIONS",
|
|
1177
|
-
SIRI_KIT = "SIRIKIT",
|
|
1178
|
-
WALLET = "WALLET",
|
|
1179
|
-
WIRELESS_ACCESSORY = "WIRELESS_ACCESSORY_CONFIGURATION",
|
|
1180
|
-
MAPS = "MAPS",
|
|
1181
|
-
APPLE_ID_AUTH = "APPLE_ID_AUTH",
|
|
1182
|
-
FONT_INSTALLATION = "FONT_INSTALLATION",
|
|
1183
|
-
EXTENDED_VIRTUAL_ADDRESSING = "EXTENDED_VIRTUAL_ADDRESSING",
|
|
1184
|
-
ENABLED_FOR_MAC = "ENABLED_FOR_MAC",
|
|
1185
|
-
MARZIPAN = "MARZIPAN"
|
|
1186
|
-
}
|
|
1187
|
-
export enum CapabilityTypeOption {
|
|
1188
|
-
ON = "ON",
|
|
1189
|
-
OFF = "OFF"
|
|
1190
|
-
}
|
|
1191
|
-
export enum CapabilityTypeDataProtectionOption {
|
|
1192
|
-
COMPLETE_PROTECTION = "COMPLETE_PROTECTION",
|
|
1193
|
-
PROTECTED_UNLESS_OPEN = "PROTECTED_UNLESS_OPEN",
|
|
1194
|
-
PROTECTED_UNTIL_FIRST_USER_AUTH = "PROTECTED_UNTIL_FIRST_USER_AUTH"
|
|
1195
|
-
}
|
|
1196
|
-
export enum CapabilityTypeAppleAuthOption {
|
|
1197
|
-
PRIMARY_APP_CONSENT = "PRIMARY_APP_CONSENT"
|
|
1198
|
-
}
|
|
1199
|
-
export enum CapabilityTypeICloudOption {
|
|
1200
|
-
XCODE_5 = "XCODE_5",
|
|
1201
|
-
XCODE_6 = "XCODE_6"
|
|
1153
|
+
name: string;
|
|
1154
|
+
/**
|
|
1155
|
+
* @example "PURPLESOFTWARE"
|
|
1156
|
+
*/
|
|
1157
|
+
contentType: string;
|
|
1158
|
+
/**
|
|
1159
|
+
* @example "ACTIVE"
|
|
1160
|
+
*/
|
|
1161
|
+
status: string;
|
|
1162
|
+
autoRenew: boolean;
|
|
1163
|
+
/**
|
|
1164
|
+
* @example "QQ57RJ5UTD" (Team ID)
|
|
1165
|
+
*/
|
|
1166
|
+
organizationId: string;
|
|
1202
1167
|
}
|
|
1203
|
-
export
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
[CapabilityType.APPLE_PAY]: CapabilityTypeOption;
|
|
1209
|
-
[CapabilityType.ASSOCIATED_DOMAINS]: CapabilityTypeOption;
|
|
1210
|
-
[CapabilityType.AUTO_FILL_CREDENTIAL]: CapabilityTypeOption;
|
|
1211
|
-
[CapabilityType.CLASS_KIT]: CapabilityTypeOption;
|
|
1212
|
-
[CapabilityType.DATA_PROTECTION]: CapabilityTypeOption | CapabilityTypeDataProtectionOption;
|
|
1213
|
-
[CapabilityType.ENABLED_FOR_MAC]: CapabilityTypeOption;
|
|
1214
|
-
[CapabilityType.EXTENDED_VIRTUAL_ADDRESSING]: CapabilityTypeOption;
|
|
1215
|
-
[CapabilityType.FILE_PROVIDER_TESTING_MODE]: CapabilityTypeOption;
|
|
1216
|
-
[CapabilityType.FONT_INSTALLATION]: CapabilityTypeOption;
|
|
1217
|
-
[CapabilityType.GAME_CENTER]: CapabilityTypeOption;
|
|
1218
|
-
[CapabilityType.HEALTH_KIT]: CapabilityTypeOption;
|
|
1219
|
-
[CapabilityType.HLS_INTERSTITIAL_PREVIEW]: CapabilityTypeOption;
|
|
1220
|
-
[CapabilityType.HLS_LOW_LATENCY]: CapabilityTypeOption;
|
|
1221
|
-
[CapabilityType.HOME_KIT]: CapabilityTypeOption;
|
|
1222
|
-
[CapabilityType.HOT_SPOT]: CapabilityTypeOption;
|
|
1223
|
-
[CapabilityType.ICLOUD]: CapabilityTypeOption | CapabilityTypeICloudOption;
|
|
1224
|
-
[CapabilityType.IN_APP_PURCHASE]: CapabilityTypeOption;
|
|
1225
|
-
[CapabilityType.INTER_APP_AUDIO]: CapabilityTypeOption;
|
|
1226
|
-
[CapabilityType.MDM_MANAGED_ASSOCIATED_DOMAINS]: CapabilityTypeOption;
|
|
1227
|
-
[CapabilityType.MULTIPATH]: CapabilityTypeOption;
|
|
1228
|
-
[CapabilityType.NETWORK_CUSTOM_PROTOCOL]: CapabilityTypeOption;
|
|
1229
|
-
[CapabilityType.NETWORK_EXTENSIONS]: CapabilityTypeOption;
|
|
1230
|
-
[CapabilityType.NFC_TAG_READING]: CapabilityTypeOption;
|
|
1231
|
-
[CapabilityType.PERSONAL_VPN]: CapabilityTypeOption;
|
|
1232
|
-
[CapabilityType.PUSH_NOTIFICATIONS]: CapabilityTypeOption;
|
|
1233
|
-
[CapabilityType.SIRI_KIT]: CapabilityTypeOption;
|
|
1234
|
-
[CapabilityType.SYSTEM_EXTENSION_INSTALL]: CapabilityTypeOption;
|
|
1235
|
-
[CapabilityType.WALLET]: CapabilityTypeOption;
|
|
1236
|
-
[CapabilityType.WIRELESS_ACCESSORY]: CapabilityTypeOption;
|
|
1237
|
-
[CapabilityType.MAPS]: CapabilityTypeOption;
|
|
1238
|
-
[CapabilityType.MARZIPAN]: CapabilityTypeOption;
|
|
1239
|
-
[CapabilityType.USER_MANAGEMENT]: CapabilityTypeOption;
|
|
1168
|
+
export class ContentProvider extends ConnectModel<ContentProviderProps> {
|
|
1169
|
+
static type: string;
|
|
1170
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1171
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1172
|
+
} | undefined) => Promise<ContentProvider[]>;
|
|
1240
1173
|
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1174
|
+
}
|
|
1175
|
+
declare module "connect/models/Territory" {
|
|
1176
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1177
|
+
export interface TerritoryProps {
|
|
1178
|
+
/**
|
|
1179
|
+
* @example 'USD'
|
|
1180
|
+
*/
|
|
1181
|
+
currency: string;
|
|
1245
1182
|
}
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
enabledByDefault?: boolean;
|
|
1252
|
-
visible?: boolean;
|
|
1253
|
-
allowedInstances?: 'ENTRY' | 'SINGLE' | 'MULTIPLE';
|
|
1254
|
-
minInstances?: number;
|
|
1183
|
+
export class Territory extends ConnectModel<TerritoryProps> {
|
|
1184
|
+
static type: string;
|
|
1185
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1186
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1187
|
+
} | undefined) => Promise<Territory[]>;
|
|
1255
1188
|
}
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1189
|
+
}
|
|
1190
|
+
declare module "connect/models/User" {
|
|
1191
|
+
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
1192
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1193
|
+
import { Territory } from "connect/models/Territory";
|
|
1194
|
+
export enum UserRole {
|
|
1195
|
+
ADMIN = "ADMIN",
|
|
1196
|
+
FINANCE = "FINANCE",
|
|
1197
|
+
TECHNICAL = "TECHNICAL",
|
|
1198
|
+
ACCOUNT_HOLDER = "ACCOUNT_HOLDER",
|
|
1199
|
+
READ_ONLY = "READ_ONLY",
|
|
1200
|
+
SALES = "SALES",
|
|
1201
|
+
MARKETING = "MARKETING",
|
|
1202
|
+
APP_MANAGER = "APP_MANAGER",
|
|
1203
|
+
DEVELOPER = "DEVELOPER",
|
|
1204
|
+
ACCESS_TO_REPORTS = "ACCESS_TO_REPORTS",
|
|
1205
|
+
CUSTOMER_SUPPORT = "CUSTOMER_SUPPORT",
|
|
1206
|
+
CREATE_APPS = "CREATE_APPS",
|
|
1207
|
+
CLOUD_MANAGED_DEVELOPER_ID = "CLOUD_MANAGED_DEVELOPER_ID",
|
|
1208
|
+
CLOUD_MANAGED_APP_DISTRIBUTION = "CLOUD_MANAGED_APP_DISTRIBUTION"
|
|
1263
1209
|
}
|
|
1264
|
-
interface
|
|
1265
|
-
|
|
1266
|
-
|
|
1210
|
+
export interface UserProps {
|
|
1211
|
+
username: string | null;
|
|
1212
|
+
firstName: string | null;
|
|
1213
|
+
lastName: string | null;
|
|
1214
|
+
email: string | null;
|
|
1215
|
+
preferredCurrencyTerritory: Territory | null;
|
|
1216
|
+
agreedToTerms: boolean | null;
|
|
1217
|
+
roles: UserRole | null;
|
|
1218
|
+
allAppsVisible: boolean;
|
|
1219
|
+
provisioningAllowed: boolean;
|
|
1220
|
+
emailVettingRequired: boolean;
|
|
1221
|
+
notifications: unknown | null;
|
|
1267
1222
|
}
|
|
1268
|
-
export
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1223
|
+
export type UserQueryFilter = ConnectQueryFilter<UserProps & {
|
|
1224
|
+
/**
|
|
1225
|
+
* `App` id
|
|
1226
|
+
*/
|
|
1227
|
+
visibleApps: string;
|
|
1228
|
+
}, 'roles' | 'username' | 'visibleApps'>;
|
|
1229
|
+
export class User extends ConnectModel<UserProps> {
|
|
1273
1230
|
static type: string;
|
|
1231
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1232
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
1233
|
+
username: string | (string | null)[] | null;
|
|
1234
|
+
roles: UserRole | (UserRole | null)[] | null;
|
|
1235
|
+
visibleApps: string | string[];
|
|
1236
|
+
} & {
|
|
1237
|
+
id?: string | undefined;
|
|
1238
|
+
}>> | undefined;
|
|
1239
|
+
} | undefined) => Promise<User[]>;
|
|
1274
1240
|
/**
|
|
1275
1241
|
*
|
|
1276
|
-
* @param id `
|
|
1242
|
+
* @param id `User` id (ex: UNHB5PT4MA)
|
|
1277
1243
|
*/
|
|
1244
|
+
static infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1245
|
+
id: string;
|
|
1246
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1247
|
+
}) => Promise<User>;
|
|
1278
1248
|
static deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1279
1249
|
id: string;
|
|
1280
1250
|
}) => Promise<void>;
|
|
1281
|
-
|
|
1251
|
+
updateAsync(attributes: Partial<UserProps>): Promise<User>;
|
|
1282
1252
|
}
|
|
1283
1253
|
}
|
|
1284
|
-
declare module "
|
|
1254
|
+
declare module "connect/models/ApiKey" {
|
|
1285
1255
|
import { RequestContext } from "network/Request";
|
|
1286
|
-
import {
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
AD_HOC = "adhoc",
|
|
1291
|
-
IN_HOUSE = "inhouse",
|
|
1256
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1257
|
+
import { ContentProvider } from "connect/models/ContentProvider";
|
|
1258
|
+
import { User, UserRole } from "connect/models/User";
|
|
1259
|
+
export enum ApiKeyType {
|
|
1292
1260
|
/**
|
|
1293
|
-
*
|
|
1261
|
+
* App Store Connect Token
|
|
1294
1262
|
*/
|
|
1295
|
-
|
|
1296
|
-
}
|
|
1297
|
-
type AppStoreProvisioningProfileType = 'iOS Distribution' | 'iOS Development';
|
|
1298
|
-
type AppStoreProvisioningProfilePlatform = 'ios' | 'mac' | string;
|
|
1299
|
-
type AppStoreProvisioningProfileSubPlatform = 'tvOS';
|
|
1300
|
-
type AppStoreProvisioningProfileStatus = 'Active' | 'Expired' | 'Invalid';
|
|
1301
|
-
export interface AppStoreProvisioningProfile {
|
|
1302
|
-
provisioningProfileId: string;
|
|
1303
|
-
name: string;
|
|
1304
|
-
status: AppStoreProvisioningProfileStatus;
|
|
1305
|
-
type: AppStoreProvisioningProfileType;
|
|
1306
|
-
distributionMethod: 'limited' | 'store' | 'adhoc' | 'inhouse' | 'direct';
|
|
1307
|
-
proProPlatform: AppStoreProvisioningProfilePlatform;
|
|
1308
|
-
proProSubPlatform: AppStoreProvisioningProfileSubPlatform | null;
|
|
1309
|
-
version: '2';
|
|
1310
|
-
dateExpire: string;
|
|
1311
|
-
managingApp: null | string;
|
|
1312
|
-
appIdId: string;
|
|
1313
|
-
deviceCount: number;
|
|
1314
|
-
certificates: unknown[];
|
|
1315
|
-
devices: unknown[];
|
|
1316
|
-
deviceIds: string[];
|
|
1317
|
-
certificateIds: string[];
|
|
1318
|
-
certificateCount: number;
|
|
1319
|
-
UUID: string;
|
|
1320
|
-
appId: unknown;
|
|
1263
|
+
PUBLIC_API = "PUBLIC_API"
|
|
1321
1264
|
}
|
|
1322
|
-
export
|
|
1323
|
-
allowManagedByXcode?: boolean;
|
|
1324
|
-
provisioningProfileKind?: AppStoreProvisioningProfileKind;
|
|
1325
|
-
platformType?: DevPortalAppIDType;
|
|
1326
|
-
}): Promise<AppStoreProvisioningProfile[]>;
|
|
1327
|
-
export function repairProvisioningProfileAsync(context: RequestContext, { provisioningProfileId, name, distributionMethod, appId, certificateIds, deviceIds, subPlatform, templateName, platformType, }: {
|
|
1328
|
-
provisioningProfileId: string;
|
|
1329
|
-
name: string;
|
|
1330
|
-
distributionMethod: string;
|
|
1331
|
-
appId: string;
|
|
1332
|
-
certificateIds: string[];
|
|
1333
|
-
deviceIds: string[];
|
|
1334
|
-
subPlatform?: string;
|
|
1335
|
-
templateName?: string;
|
|
1336
|
-
platformType?: DevPortalAppIDType;
|
|
1337
|
-
}): Promise<AppStoreProvisioningProfile>;
|
|
1338
|
-
}
|
|
1339
|
-
declare module "connect/models/Certificate" {
|
|
1340
|
-
import forge from 'node-forge';
|
|
1341
|
-
import { RequestContext } from "network/Request";
|
|
1342
|
-
import { BundleIdPlatform } from "connect/models/BundleId";
|
|
1343
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1344
|
-
export enum CertificateType {
|
|
1345
|
-
/**
|
|
1346
|
-
* A development code signing certificate used for development environment.
|
|
1347
|
-
*
|
|
1348
|
-
* @id 5QPB9NHCEI
|
|
1349
|
-
*/
|
|
1350
|
-
IOS_DEVELOPMENT = "IOS_DEVELOPMENT",
|
|
1351
|
-
/**
|
|
1352
|
-
* A production code signing certificate used for distribution environment. Can also be used for generating in-house certificates.
|
|
1353
|
-
*
|
|
1354
|
-
* @id R58UK2EWSO, 9RQEK7MSXA
|
|
1355
|
-
*/
|
|
1356
|
-
IOS_DISTRIBUTION = "IOS_DISTRIBUTION",
|
|
1357
|
-
MAC_APP_DEVELOPMENT = "MAC_APP_DEVELOPMENT",
|
|
1358
|
-
MAC_APP_DISTRIBUTION = "MAC_APP_DISTRIBUTION",
|
|
1359
|
-
MAC_INSTALLER_DISTRIBUTION = "MAC_INSTALLER_DISTRIBUTION",
|
|
1360
|
-
DEVELOPER_ID_KEXT = "DEVELOPER_ID_KEXT",
|
|
1361
|
-
DEVELOPER_ID_APPLICATION = "DEVELOPER_ID_APPLICATION",
|
|
1265
|
+
export interface ApiKeyProps {
|
|
1362
1266
|
/**
|
|
1363
|
-
*
|
|
1364
|
-
*
|
|
1365
|
-
* @id 83Q87W3TGH
|
|
1267
|
+
* If the token has been revoked or not.
|
|
1366
1268
|
*/
|
|
1367
|
-
|
|
1269
|
+
isActive: boolean;
|
|
1368
1270
|
/**
|
|
1369
|
-
*
|
|
1370
|
-
*
|
|
1371
|
-
* @id WXV89964HE
|
|
1271
|
+
* @example "ejb-apple-utils-admin"
|
|
1372
1272
|
*/
|
|
1373
|
-
|
|
1273
|
+
nickname: string;
|
|
1374
1274
|
/**
|
|
1375
|
-
*
|
|
1376
|
-
*
|
|
1377
|
-
* @id UPV3DW712I
|
|
1275
|
+
* @example "2021-06-28T12:30:41-07:00"
|
|
1378
1276
|
*/
|
|
1379
|
-
|
|
1380
|
-
}
|
|
1381
|
-
interface CertificateProps {
|
|
1277
|
+
lastUsed: string;
|
|
1382
1278
|
/**
|
|
1383
|
-
*
|
|
1279
|
+
* @example "2021-06-28T14:48:51.403-07:00"
|
|
1384
1280
|
*/
|
|
1385
|
-
|
|
1281
|
+
revokingDate: null | string;
|
|
1386
1282
|
/**
|
|
1387
|
-
*
|
|
1283
|
+
* A key can only be downloaded once, right after it's created.
|
|
1388
1284
|
*/
|
|
1389
|
-
|
|
1285
|
+
canDownload: boolean;
|
|
1390
1286
|
/**
|
|
1391
|
-
*
|
|
1287
|
+
* The contents of a private key, this can only be downloaded once.
|
|
1288
|
+
* @default "XXX="
|
|
1392
1289
|
*/
|
|
1393
|
-
|
|
1290
|
+
privateKey: null | string;
|
|
1394
1291
|
/**
|
|
1395
|
-
* @example
|
|
1292
|
+
* @example ["ADMIN"]
|
|
1396
1293
|
*/
|
|
1397
|
-
|
|
1294
|
+
roles: UserRole[];
|
|
1398
1295
|
/**
|
|
1399
|
-
*
|
|
1296
|
+
* If the key has access to all apps.
|
|
1400
1297
|
*/
|
|
1401
|
-
|
|
1298
|
+
allAppsVisible: boolean;
|
|
1402
1299
|
/**
|
|
1403
|
-
*
|
|
1300
|
+
* Unknown
|
|
1404
1301
|
*/
|
|
1405
|
-
|
|
1302
|
+
keyType: ApiKeyType;
|
|
1303
|
+
createdBy?: User;
|
|
1304
|
+
revokedBy?: User;
|
|
1305
|
+
provider?: ContentProvider;
|
|
1306
|
+
}
|
|
1307
|
+
export class ApiKey extends ConnectModel<ApiKeyProps> {
|
|
1308
|
+
static type: string;
|
|
1309
|
+
static DEFAULT_INCLUDES: string[];
|
|
1310
|
+
static getAsync: (context: RequestContext, props?: {
|
|
1311
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1312
|
+
} | undefined) => Promise<ApiKey[]>;
|
|
1313
|
+
static infoAsync: (context: RequestContext, props: {
|
|
1314
|
+
id: string;
|
|
1315
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1316
|
+
}) => Promise<ApiKey>;
|
|
1317
|
+
static createAsync(context: RequestContext, attributes: Pick<ApiKeyProps, 'nickname' | 'roles' | 'allAppsVisible' | 'keyType'>): Promise<ApiKey>;
|
|
1406
1318
|
/**
|
|
1407
|
-
*
|
|
1319
|
+
* Download the private key as a PEM string
|
|
1408
1320
|
*/
|
|
1409
|
-
|
|
1321
|
+
downloadAsync(): Promise<string | null>;
|
|
1410
1322
|
/**
|
|
1411
|
-
*
|
|
1323
|
+
* Make the token unusable forever.
|
|
1412
1324
|
*/
|
|
1413
|
-
|
|
1325
|
+
revokeAsync(): Promise<ApiKey>;
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
declare module "connect/models/AppDataUsageGrouping" {
|
|
1329
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1330
|
+
export interface AppDataUsageGroupingProps {
|
|
1331
|
+
deleted: boolean;
|
|
1332
|
+
}
|
|
1333
|
+
export class AppDataUsageGrouping extends ConnectModel<AppDataUsageGroupingProps> {
|
|
1334
|
+
static type: string;
|
|
1335
|
+
static deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1336
|
+
id: string;
|
|
1337
|
+
}) => Promise<void>;
|
|
1338
|
+
deleteAsync(): Promise<void>;
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
declare module "connect/models/AppDataUsageCategory" {
|
|
1342
|
+
import { AppDataUsageGrouping } from "connect/models/AppDataUsageGrouping";
|
|
1343
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1344
|
+
export interface AppDataUsageCategoryProps {
|
|
1345
|
+
deleted: boolean;
|
|
1346
|
+
grouping: AppDataUsageGrouping;
|
|
1347
|
+
}
|
|
1348
|
+
export enum AppDataUsageCategoryId {
|
|
1349
|
+
PAYMENT_INFORMATION = "PAYMENT_INFORMATION",
|
|
1350
|
+
CREDIT_AND_FRAUD = "CREDIT_AND_FRAUD",
|
|
1351
|
+
OTHER_FINANCIAL_INFO = "OTHER_FINANCIAL_INFO",
|
|
1352
|
+
PRECISE_LOCATION = "PRECISE_LOCATION",
|
|
1353
|
+
SENSITIVE_INFO = "SENSITIVE_INFO",
|
|
1354
|
+
PHYSICAL_ADDRESS = "PHYSICAL_ADDRESS",
|
|
1355
|
+
EMAIL_ADDRESS = "EMAIL_ADDRESS",
|
|
1356
|
+
NAME = "NAME",
|
|
1357
|
+
PHONE_NUMBER = "PHONE_NUMBER",
|
|
1358
|
+
OTHER_CONTACT_INFO = "OTHER_CONTACT_INFO",
|
|
1359
|
+
CONTACTS = "CONTACTS",
|
|
1360
|
+
EMAILS_OR_TEXT_MESSAGES = "EMAILS_OR_TEXT_MESSAGES",
|
|
1361
|
+
PHOTOS_OR_VIDEOS = "PHOTOS_OR_VIDEOS",
|
|
1362
|
+
AUDIO = "AUDIO",
|
|
1363
|
+
GAMEPLAY_CONTENT = "GAMEPLAY_CONTENT",
|
|
1364
|
+
CUSTOMER_SUPPORT = "CUSTOMER_SUPPORT",
|
|
1365
|
+
OTHER_USER_CONTENT = "OTHER_USER_CONTENT",
|
|
1366
|
+
BROWSING_HISTORY = "BROWSING_HISTORY",
|
|
1367
|
+
SEARCH_HISTORY = "SEARCH_HISTORY",
|
|
1368
|
+
USER_ID = "USER_ID",
|
|
1369
|
+
DEVICE_ID = "DEVICE_ID",
|
|
1370
|
+
PURCHASE_HISTORY = "PURCHASE_HISTORY",
|
|
1371
|
+
PRODUCT_INTERACTION = "PRODUCT_INTERACTION",
|
|
1372
|
+
ADVERTISING_DATA = "ADVERTISING_DATA",
|
|
1373
|
+
OTHER_USAGE_DATA = "OTHER_USAGE_DATA",
|
|
1374
|
+
CRASH_DATA = "CRASH_DATA",
|
|
1375
|
+
PERFORMANCE_DATA = "PERFORMANCE_DATA",
|
|
1376
|
+
OTHER_DIAGNOSTIC_DATA = "OTHER_DIAGNOSTIC_DATA",
|
|
1377
|
+
OTHER_DATA = "OTHER_DATA",
|
|
1378
|
+
HEALTH = "HEALTH",
|
|
1379
|
+
FITNESS = "FITNESS",
|
|
1380
|
+
COARSE_LOCATION = "COARSE_LOCATION"
|
|
1381
|
+
}
|
|
1382
|
+
export class AppDataUsageCategory extends ConnectModel<AppDataUsageCategoryProps> {
|
|
1383
|
+
static type: string;
|
|
1384
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1385
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1386
|
+
} | undefined) => Promise<AppDataUsageCategory[]>;
|
|
1387
|
+
static deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1388
|
+
id: string;
|
|
1389
|
+
}) => Promise<void>;
|
|
1390
|
+
deleteAsync(): Promise<void>;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
declare module "connect/models/AppDataUsageDataProtection" {
|
|
1394
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1395
|
+
export interface AppDataUsageDataProtectionProps {
|
|
1396
|
+
deleted: boolean;
|
|
1397
|
+
}
|
|
1398
|
+
export enum AppDataUsageDataProtectionId {
|
|
1399
|
+
DATA_USED_TO_TRACK_YOU = "DATA_USED_TO_TRACK_YOU",
|
|
1400
|
+
DATA_LINKED_TO_YOU = "DATA_LINKED_TO_YOU",
|
|
1401
|
+
DATA_NOT_LINKED_TO_YOU = "DATA_NOT_LINKED_TO_YOU",
|
|
1402
|
+
DATA_NOT_COLLECTED = "DATA_NOT_COLLECTED"
|
|
1403
|
+
}
|
|
1404
|
+
export class AppDataUsageDataProtection extends ConnectModel<AppDataUsageDataProtectionProps> {
|
|
1405
|
+
static type: string;
|
|
1406
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1407
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1408
|
+
} | undefined) => Promise<AppDataUsageDataProtection[]>;
|
|
1409
|
+
static deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1410
|
+
id: string;
|
|
1411
|
+
}) => Promise<void>;
|
|
1412
|
+
deleteAsync(): Promise<void>;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
declare module "connect/models/AppDataUsagePurpose" {
|
|
1416
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1417
|
+
export interface AppDataUsagePurposeProps {
|
|
1418
|
+
deleted: boolean;
|
|
1419
|
+
}
|
|
1420
|
+
export enum AppDataUsagePurposeId {
|
|
1421
|
+
THIRD_PARTY_ADVERTISING = "THIRD_PARTY_ADVERTISING",
|
|
1422
|
+
DEVELOPERS_ADVERTISING = "DEVELOPERS_ADVERTISING",
|
|
1423
|
+
ANALYTICS = "ANALYTICS",
|
|
1424
|
+
PRODUCT_PERSONALIZATION = "PRODUCT_PERSONALIZATION",
|
|
1425
|
+
APP_FUNCTIONALITY = "APP_FUNCTIONALITY",
|
|
1426
|
+
OTHER_PURPOSES = "OTHER_PURPOSES"
|
|
1427
|
+
}
|
|
1428
|
+
export class AppDataUsagePurpose extends ConnectModel<AppDataUsagePurposeProps> {
|
|
1429
|
+
static type: string;
|
|
1430
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1431
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1432
|
+
} | undefined) => Promise<AppDataUsagePurpose[]>;
|
|
1433
|
+
static deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1434
|
+
id: string;
|
|
1435
|
+
}) => Promise<void>;
|
|
1436
|
+
deleteAsync(): Promise<void>;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
declare module "connect/models/AppDataUsage" {
|
|
1440
|
+
import { RequestContext } from "network/Request";
|
|
1441
|
+
import { AppDataUsageCategory } from "connect/models/AppDataUsageCategory";
|
|
1442
|
+
import { AppDataUsageDataProtection } from "connect/models/AppDataUsageDataProtection";
|
|
1443
|
+
import { AppDataUsageGrouping } from "connect/models/AppDataUsageGrouping";
|
|
1444
|
+
import { AppDataUsagePurpose } from "connect/models/AppDataUsagePurpose";
|
|
1445
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1446
|
+
export interface AppDataUsageProps {
|
|
1447
|
+
category?: AppDataUsageCategory;
|
|
1448
|
+
grouping?: AppDataUsageGrouping;
|
|
1449
|
+
purpose?: AppDataUsagePurpose;
|
|
1450
|
+
dataProtection?: AppDataUsageDataProtection;
|
|
1451
|
+
}
|
|
1452
|
+
export class AppDataUsage extends ConnectModel<AppDataUsageProps> {
|
|
1453
|
+
static type: string;
|
|
1454
|
+
static DEFAULT_INCLUDES: string[];
|
|
1414
1455
|
/**
|
|
1415
|
-
*
|
|
1456
|
+
*
|
|
1457
|
+
* @param id `App` id
|
|
1458
|
+
* @param appDataUsageCategory `AppDataUsageCategory` id (`AppDataUsageCategoryId`)
|
|
1459
|
+
* @param appDataUsageProtection `AppDataUsageProtection` id (`AppDataUsageProtectionId`)
|
|
1460
|
+
* @param appDataUsagePurpose `AppDataUsagePurpose` id (`AppDataUsagePurposeId`)
|
|
1416
1461
|
*/
|
|
1417
|
-
|
|
1462
|
+
static createAsync(context: RequestContext, { id, appDataUsageCategory, appDataUsageProtection, appDataUsagePurpose, }: {
|
|
1463
|
+
id: string;
|
|
1464
|
+
appDataUsageCategory?: string;
|
|
1465
|
+
appDataUsageProtection?: string;
|
|
1466
|
+
appDataUsagePurpose?: string;
|
|
1467
|
+
}): Promise<AppDataUsage>;
|
|
1468
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
1469
|
+
id: string;
|
|
1470
|
+
}) => Promise<void>;
|
|
1471
|
+
deleteAsync(): Promise<void>;
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
declare module "connect/models/AppDataUsagesPublishState" {
|
|
1475
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1476
|
+
export interface AppDataUsagesPublishStateProps {
|
|
1477
|
+
published: boolean;
|
|
1418
1478
|
/**
|
|
1419
|
-
* @example
|
|
1479
|
+
* @example "2021-06-26T14:31:32.201-07:00"
|
|
1420
1480
|
*/
|
|
1421
|
-
|
|
1481
|
+
lastPublished: string;
|
|
1422
1482
|
/**
|
|
1423
|
-
* @example
|
|
1483
|
+
* @example "Evan Bacon"
|
|
1424
1484
|
*/
|
|
1425
|
-
|
|
1485
|
+
lastPublishedBy: string;
|
|
1486
|
+
}
|
|
1487
|
+
export class AppDataUsagesPublishState extends ConnectModel<AppDataUsagesPublishStateProps> {
|
|
1488
|
+
static type: string;
|
|
1489
|
+
updateAsync(options: Pick<AppDataUsagesPublishStateProps, 'published'>): Promise<AppDataUsagesPublishState>;
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
declare module "connect/ProvisioningAPI" {
|
|
1493
|
+
import { AxiosResponse } from 'axios';
|
|
1494
|
+
import { ParsingOptions, RequestContext, RequestProps } from "network/Request";
|
|
1495
|
+
import { ConnectClientAPI } from "connect/ConnectAPI";
|
|
1496
|
+
class ProvisioningClientAPI extends ConnectClientAPI {
|
|
1497
|
+
getHostname(context: RequestContext): string;
|
|
1498
|
+
requestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
1426
1499
|
/**
|
|
1427
|
-
*
|
|
1500
|
+
* Used for web session requests (username/password auth).
|
|
1501
|
+
*
|
|
1502
|
+
* @param request
|
|
1503
|
+
* @param options
|
|
1428
1504
|
*/
|
|
1429
|
-
|
|
1505
|
+
proxyRequestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
1506
|
+
}
|
|
1507
|
+
export const provisioningClient: ProvisioningClientAPI;
|
|
1508
|
+
}
|
|
1509
|
+
declare module "connect/models/CapabilityConnectModel" {
|
|
1510
|
+
import { RequestContext } from "network/Request";
|
|
1511
|
+
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
1512
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1513
|
+
export interface CapabilityConnectModelProps {
|
|
1430
1514
|
/**
|
|
1431
|
-
*
|
|
1515
|
+
* A string that's always prefixed with a set value like `merchant.`, `group.`, or `iCloud.`.
|
|
1516
|
+
*
|
|
1517
|
+
* @example 'merchant.com.example.development'
|
|
1432
1518
|
*/
|
|
1433
|
-
|
|
1519
|
+
identifier: string;
|
|
1434
1520
|
/**
|
|
1435
|
-
*
|
|
1521
|
+
* Apple Team ID.
|
|
1436
1522
|
*
|
|
1437
1523
|
* @example 'QQ57RJ5UTD'
|
|
1438
1524
|
*/
|
|
1439
|
-
|
|
1440
|
-
/**
|
|
1441
|
-
* @example `Evan’s MacBook Pro`
|
|
1442
|
-
*/
|
|
1443
|
-
machineName: string | null;
|
|
1444
|
-
/**
|
|
1445
|
-
* @example '8634717594444129300'
|
|
1446
|
-
*/
|
|
1447
|
-
serialNumDecimal: string;
|
|
1448
|
-
/**
|
|
1449
|
-
* @example 'iOS Distribution'
|
|
1450
|
-
*/
|
|
1451
|
-
certificateTypeName: string;
|
|
1525
|
+
prefix: string;
|
|
1452
1526
|
/**
|
|
1453
|
-
* @example
|
|
1527
|
+
* @example "Example Development ID"
|
|
1454
1528
|
*/
|
|
1455
|
-
|
|
1529
|
+
name: string;
|
|
1530
|
+
canEdit?: boolean;
|
|
1531
|
+
canDelete?: boolean;
|
|
1532
|
+
}
|
|
1533
|
+
export type CapabilityConnectQueryFilter<Props extends CapabilityConnectModelProps = CapabilityConnectModelProps> = ConnectQueryFilter<Props, 'identifier' | 'name'>;
|
|
1534
|
+
export function createCapabilityConnectModel<Props extends CapabilityConnectModelProps = CapabilityConnectModelProps>({ type, prefix }: {
|
|
1535
|
+
type: string;
|
|
1536
|
+
prefix: string;
|
|
1537
|
+
}): {
|
|
1538
|
+
new (context: RequestContext, id: string, attributes: Props): {
|
|
1539
|
+
deleteAsync(): Promise<void>;
|
|
1540
|
+
context: RequestContext;
|
|
1541
|
+
id: string;
|
|
1542
|
+
attributes: Props;
|
|
1543
|
+
updateAttributes(attributes: Partial<Props>): void;
|
|
1544
|
+
};
|
|
1545
|
+
type: string;
|
|
1546
|
+
getAsync: (context: RequestContext, props?: {
|
|
1547
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
1548
|
+
name: Props["name"] | Props["name"][];
|
|
1549
|
+
identifier: Props["identifier"] | Props["identifier"][];
|
|
1550
|
+
} & {
|
|
1551
|
+
id?: string | undefined;
|
|
1552
|
+
}>> | undefined;
|
|
1553
|
+
} | undefined) => Promise<(ConnectModel<Props> & {
|
|
1554
|
+
deleteAsync(): Promise<void>;
|
|
1555
|
+
context: RequestContext;
|
|
1556
|
+
id: string;
|
|
1557
|
+
attributes: Props;
|
|
1558
|
+
updateAttributes(attributes: Partial<Props>): void;
|
|
1559
|
+
})[]>;
|
|
1456
1560
|
/**
|
|
1457
|
-
*
|
|
1561
|
+
*
|
|
1562
|
+
* @param id `CapabilityConnectModel` id (ex: UNHB5PT4MA)
|
|
1458
1563
|
*/
|
|
1459
|
-
|
|
1564
|
+
infoAsync: (context: RequestContext, props: {
|
|
1565
|
+
id: string;
|
|
1566
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1567
|
+
}) => Promise<ConnectModel<Props> & {
|
|
1568
|
+
deleteAsync(): Promise<void>;
|
|
1569
|
+
context: RequestContext;
|
|
1570
|
+
id: string;
|
|
1571
|
+
attributes: Props;
|
|
1572
|
+
updateAttributes(attributes: Partial<Props>): void;
|
|
1573
|
+
}>;
|
|
1460
1574
|
/**
|
|
1461
|
-
*
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1575
|
+
* Create a new Capability Connect ID.
|
|
1576
|
+
* @param context
|
|
1577
|
+
* @param props.identifier The ID value. This must be prefixed with a set value like `merchant.`, `group.`, or `iCloud.`.
|
|
1578
|
+
* @param props.name If the name is undefined, a default value emulating Xcode's default will be used.
|
|
1579
|
+
* @returns
|
|
1580
|
+
*/
|
|
1581
|
+
createAsync(context: RequestContext, { name, identifier, }: {
|
|
1582
|
+
name?: string | undefined;
|
|
1583
|
+
identifier: CapabilityConnectModelProps['identifier'];
|
|
1584
|
+
}): Promise<ConnectModel<Props> & {
|
|
1585
|
+
deleteAsync(): Promise<void>;
|
|
1586
|
+
context: RequestContext;
|
|
1587
|
+
id: string;
|
|
1588
|
+
attributes: Props;
|
|
1589
|
+
updateAttributes(attributes: Partial<Props>): void;
|
|
1590
|
+
}>;
|
|
1591
|
+
deleteAsync: (context: RequestContext, props: {
|
|
1592
|
+
id: string;
|
|
1593
|
+
}) => Promise<void>;
|
|
1594
|
+
};
|
|
1595
|
+
export function createValidCapabilityName({ name, identifier, prefix, }: {
|
|
1596
|
+
name?: string;
|
|
1597
|
+
identifier: string;
|
|
1598
|
+
prefix: string;
|
|
1599
|
+
}): string;
|
|
1600
|
+
}
|
|
1601
|
+
declare module "connect/models/AppGroup" {
|
|
1602
|
+
import { CapabilityConnectModelProps, CapabilityConnectQueryFilter } from "connect/models/CapabilityConnectModel";
|
|
1603
|
+
export type AppGroupProps = CapabilityConnectModelProps;
|
|
1604
|
+
export type AppGroupQueryFilter = CapabilityConnectQueryFilter;
|
|
1605
|
+
const AppGroup_base: {
|
|
1606
|
+
new (context: import("AppStoreConnect").RequestContext, id: string, attributes: CapabilityConnectModelProps): {
|
|
1607
|
+
deleteAsync(): Promise<void>;
|
|
1608
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1609
|
+
id: string;
|
|
1610
|
+
attributes: CapabilityConnectModelProps;
|
|
1611
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1612
|
+
};
|
|
1613
|
+
type: string;
|
|
1614
|
+
getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1469
1615
|
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
serialNumber: string | string[];
|
|
1616
|
+
name: string | string[];
|
|
1617
|
+
identifier: string | string[];
|
|
1473
1618
|
} & {
|
|
1474
1619
|
id?: string | undefined;
|
|
1475
1620
|
}>> | undefined;
|
|
1476
|
-
} | undefined) => Promise<
|
|
1477
|
-
|
|
1621
|
+
} | undefined) => Promise<(import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1622
|
+
deleteAsync(): Promise<void>;
|
|
1623
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1624
|
+
id: string;
|
|
1625
|
+
attributes: CapabilityConnectModelProps;
|
|
1626
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1627
|
+
})[]>;
|
|
1628
|
+
infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1478
1629
|
id: string;
|
|
1479
1630
|
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1480
|
-
}) => Promise<
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
certificateType: CertificateType;
|
|
1484
|
-
}): Promise<Certificate>;
|
|
1485
|
-
static deleteAsync: (context: RequestContext, props: {
|
|
1631
|
+
}) => Promise<import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1632
|
+
deleteAsync(): Promise<void>;
|
|
1633
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1486
1634
|
id: string;
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1635
|
+
attributes: CapabilityConnectModelProps;
|
|
1636
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1637
|
+
}>;
|
|
1638
|
+
createAsync(context: import("AppStoreConnect").RequestContext, { name, identifier, }: {
|
|
1639
|
+
name?: string | undefined;
|
|
1640
|
+
identifier: string;
|
|
1641
|
+
}): Promise<import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1642
|
+
deleteAsync(): Promise<void>;
|
|
1643
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1644
|
+
id: string;
|
|
1645
|
+
attributes: CapabilityConnectModelProps;
|
|
1646
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1495
1647
|
}>;
|
|
1648
|
+
deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1649
|
+
id: string;
|
|
1650
|
+
}) => Promise<void>;
|
|
1651
|
+
};
|
|
1652
|
+
export class AppGroup extends AppGroup_base {
|
|
1496
1653
|
}
|
|
1497
|
-
/**
|
|
1498
|
-
* Create a certificate signing request, post it to apple dev portal, and download the contents.
|
|
1499
|
-
*
|
|
1500
|
-
* @returns
|
|
1501
|
-
* - `certificate` Generated certificate
|
|
1502
|
-
* - `certificateP12` p12 representation of the Apple-signed certificate. This will generate without new lines.
|
|
1503
|
-
* - `password` secure random password used to sign the certificate
|
|
1504
|
-
* - `privateSigningKey` forge generated key used to generate the certificate signing request in PEM format`
|
|
1505
|
-
*/
|
|
1506
|
-
export function createCertificateAndP12Async(context: RequestContext, { certificateType, }: {
|
|
1507
|
-
certificateType: CertificateType;
|
|
1508
|
-
}): Promise<{
|
|
1509
|
-
certificate: Certificate;
|
|
1510
|
-
certificateP12: string;
|
|
1511
|
-
password: string;
|
|
1512
|
-
privateSigningKey: string;
|
|
1513
|
-
}>;
|
|
1514
1654
|
}
|
|
1515
|
-
declare module "connect/models/
|
|
1516
|
-
import {
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
DISABLED = "DISABLED"
|
|
1530
|
-
}
|
|
1531
|
-
interface DeviceProps {
|
|
1532
|
-
deviceClass: DeviceClass;
|
|
1533
|
-
model: string;
|
|
1534
|
-
name: string;
|
|
1535
|
-
platform: BundleIdPlatform;
|
|
1536
|
-
status: DeviceStatus;
|
|
1537
|
-
udid: string;
|
|
1538
|
-
addedDate: string;
|
|
1539
|
-
}
|
|
1540
|
-
export class Device extends ConnectModel<DeviceProps> {
|
|
1541
|
-
static type: string;
|
|
1542
|
-
static getAsync: (context: RequestContext, props?: {
|
|
1655
|
+
declare module "connect/models/CloudContainer" {
|
|
1656
|
+
import { CapabilityConnectModelProps, CapabilityConnectQueryFilter } from "connect/models/CapabilityConnectModel";
|
|
1657
|
+
export type CloudContainerProps = CapabilityConnectModelProps;
|
|
1658
|
+
export type CloudContainerQueryFilter = CapabilityConnectQueryFilter;
|
|
1659
|
+
const CloudContainer_base: {
|
|
1660
|
+
new (context: import("AppStoreConnect").RequestContext, id: string, attributes: CapabilityConnectModelProps): {
|
|
1661
|
+
deleteAsync(): Promise<void>;
|
|
1662
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1663
|
+
id: string;
|
|
1664
|
+
attributes: CapabilityConnectModelProps;
|
|
1665
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1666
|
+
};
|
|
1667
|
+
type: string;
|
|
1668
|
+
getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1543
1669
|
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
1544
|
-
status: DeviceStatus | DeviceStatus[];
|
|
1545
1670
|
name: string | string[];
|
|
1546
|
-
|
|
1547
|
-
udid: string | string[];
|
|
1671
|
+
identifier: string | string[];
|
|
1548
1672
|
} & {
|
|
1549
1673
|
id?: string | undefined;
|
|
1550
1674
|
}>> | undefined;
|
|
1551
|
-
} | undefined) => Promise<
|
|
1552
|
-
|
|
1675
|
+
} | undefined) => Promise<(import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1676
|
+
deleteAsync(): Promise<void>;
|
|
1677
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1678
|
+
id: string;
|
|
1679
|
+
attributes: CapabilityConnectModelProps;
|
|
1680
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1681
|
+
})[]>;
|
|
1682
|
+
infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1553
1683
|
id: string;
|
|
1554
1684
|
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1555
|
-
}) => Promise<
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
udid: DeviceProps['udid'];
|
|
1559
|
-
platform?: DeviceProps['platform'];
|
|
1560
|
-
}): Promise<Device>;
|
|
1561
|
-
/**
|
|
1562
|
-
* Returns all devices that can be used for iOS profiles (all devices except TVs)
|
|
1563
|
-
*/
|
|
1564
|
-
static getAllIOSProfileDevicesAsync(context: RequestContext): Promise<Device[]>;
|
|
1565
|
-
updateAsync(options: Pick<Partial<DeviceProps>, 'status' | 'name'>): Promise<Device>;
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
declare module "connect/models/Profile" {
|
|
1569
|
-
import { RequestContext } from "network/Request";
|
|
1570
|
-
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
1571
|
-
import { BundleId, BundleIdPlatform } from "connect/models/BundleId";
|
|
1572
|
-
import { Certificate } from "connect/models/Certificate";
|
|
1573
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1574
|
-
import { Device } from "connect/models/Device";
|
|
1575
|
-
export enum ProfileState {
|
|
1576
|
-
ACTIVE = "ACTIVE",
|
|
1577
|
-
EXPIRED = "EXPIRED",
|
|
1578
|
-
INVALID = "INVALID"
|
|
1579
|
-
}
|
|
1580
|
-
export enum ProfileType {
|
|
1581
|
-
IOS_APP_DEVELOPMENT = "IOS_APP_DEVELOPMENT",
|
|
1582
|
-
IOS_APP_STORE = "IOS_APP_STORE",
|
|
1583
|
-
IOS_APP_ADHOC = "IOS_APP_ADHOC",
|
|
1584
|
-
IOS_APP_INHOUSE = "IOS_APP_INHOUSE",
|
|
1585
|
-
MAC_APP_DEVELOPMENT = "MAC_APP_DEVELOPMENT",
|
|
1586
|
-
MAC_APP_STORE = "MAC_APP_STORE",
|
|
1587
|
-
MAC_APP_DIRECT = "MAC_APP_DIRECT",
|
|
1588
|
-
TVOS_APP_DEVELOPMENT = "TVOS_APP_DEVELOPMENT",
|
|
1589
|
-
TVOS_APP_STORE = "TVOS_APP_STORE",
|
|
1590
|
-
TVOS_APP_ADHOC = "TVOS_APP_ADHOC",
|
|
1591
|
-
TVOS_APP_INHOUSE = "TVOS_APP_INHOUSE",
|
|
1592
|
-
MAC_CATALYST_APP_DEVELOPMENT = "MAC_CATALYST_APP_DEVELOPMENT",
|
|
1593
|
-
MAC_CATALYST_APP_STORE = "MAC_CATALYST_APP_STORE",
|
|
1594
|
-
MAC_CATALYST_APP_DIRECT = "MAC_CATALYST_APP_DIRECT"
|
|
1595
|
-
}
|
|
1596
|
-
interface ProfileProps {
|
|
1597
|
-
/**
|
|
1598
|
-
* @example 'N/A'
|
|
1599
|
-
*/
|
|
1600
|
-
configuration: string | null;
|
|
1601
|
-
/**
|
|
1602
|
-
* @example 'UNIVERSAL'
|
|
1603
|
-
*/
|
|
1604
|
-
bundlePlatform: BundleIdPlatform;
|
|
1605
|
-
/**
|
|
1606
|
-
* @example '*[expo] com.bacon.avocado AppStore 2020-08-24T05:21:07.826Z'
|
|
1607
|
-
*/
|
|
1608
|
-
name: string;
|
|
1609
|
-
platform: BundleIdPlatform;
|
|
1610
|
-
/**
|
|
1611
|
-
* @example 'App Store' 'Universal Distribution'
|
|
1612
|
-
*/
|
|
1613
|
-
profileTypeLabel: string;
|
|
1614
|
-
/**
|
|
1615
|
-
* Base 64 encoded buffer. `null` when `profileState` is `.EXPIRED`.
|
|
1616
|
-
*/
|
|
1617
|
-
profileContent: string | null;
|
|
1618
|
-
/**
|
|
1619
|
-
* @example '4d6f795d-734b-4988-85a8-ab9c2b7b02ba'
|
|
1620
|
-
*/
|
|
1621
|
-
uuid: string;
|
|
1622
|
-
/**
|
|
1623
|
-
* @example '2020-08-24T05:21:09.000+0000'
|
|
1624
|
-
*/
|
|
1625
|
-
createdDate: string;
|
|
1626
|
-
/**
|
|
1627
|
-
* @example 'INVALID'
|
|
1628
|
-
*/
|
|
1629
|
-
profileState: ProfileState;
|
|
1630
|
-
/**
|
|
1631
|
-
* @example 'IOS_APP_STORE'
|
|
1632
|
-
*/
|
|
1633
|
-
profileType: ProfileType;
|
|
1634
|
-
/**
|
|
1635
|
-
* @example '2020-12-08T19:26:53.000+0000'
|
|
1636
|
-
*/
|
|
1637
|
-
expirationDate: string;
|
|
1638
|
-
templateName: string | null;
|
|
1639
|
-
bundleId?: BundleId;
|
|
1640
|
-
certificates?: Certificate[];
|
|
1641
|
-
devices?: Device[];
|
|
1642
|
-
}
|
|
1643
|
-
export class Profile extends ConnectModel<ProfileProps> {
|
|
1644
|
-
static type: string;
|
|
1645
|
-
static DEFAULT_INCLUDES: string[];
|
|
1646
|
-
static getAsync: (context: RequestContext, props?: {
|
|
1647
|
-
query?: ConnectQueryParams<Partial<{
|
|
1648
|
-
name: string | string[];
|
|
1649
|
-
profileState: ProfileState | ProfileState[];
|
|
1650
|
-
profileType: ProfileType | ProfileType[];
|
|
1651
|
-
} & {
|
|
1652
|
-
id?: string | undefined;
|
|
1653
|
-
}>> | undefined;
|
|
1654
|
-
} | undefined) => Promise<Profile[]>;
|
|
1655
|
-
static infoAsync: (context: RequestContext, props: {
|
|
1685
|
+
}) => Promise<import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1686
|
+
deleteAsync(): Promise<void>;
|
|
1687
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1656
1688
|
id: string;
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
templateName?: string;
|
|
1672
|
-
}): Promise<Profile>;
|
|
1673
|
-
static deleteAsync: (context: RequestContext, props: {
|
|
1689
|
+
attributes: CapabilityConnectModelProps;
|
|
1690
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1691
|
+
}>;
|
|
1692
|
+
createAsync(context: import("AppStoreConnect").RequestContext, { name, identifier, }: {
|
|
1693
|
+
name?: string | undefined;
|
|
1694
|
+
identifier: string;
|
|
1695
|
+
}): Promise<import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1696
|
+
deleteAsync(): Promise<void>;
|
|
1697
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1698
|
+
id: string;
|
|
1699
|
+
attributes: CapabilityConnectModelProps;
|
|
1700
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1701
|
+
}>;
|
|
1702
|
+
deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1674
1703
|
id: string;
|
|
1675
1704
|
}) => Promise<void>;
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
1679
|
-
}): Promise<Device[]>;
|
|
1680
|
-
getCertificatesAsync({ query, }?: {
|
|
1681
|
-
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
1682
|
-
}): Promise<Certificate[]>;
|
|
1683
|
-
getBundleIdAsync({ query, }?: {
|
|
1684
|
-
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
1685
|
-
}): Promise<BundleId>;
|
|
1686
|
-
/**
|
|
1687
|
-
* A super dangerous method that uses the old API to repair a provisioning profile.
|
|
1688
|
-
*/
|
|
1689
|
-
regenerateAsync(): Promise<Profile>;
|
|
1705
|
+
};
|
|
1706
|
+
export class CloudContainer extends CloudContainer_base {
|
|
1690
1707
|
}
|
|
1691
1708
|
}
|
|
1692
|
-
declare module "connect/models/
|
|
1693
|
-
import {
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
dateModified: string;
|
|
1708
|
-
platform: BundleIdPlatform;
|
|
1709
|
-
bundleIdCapabilities?: BundleIdCapability[];
|
|
1710
|
-
/**
|
|
1711
|
-
* Seems to always be `bundle`.
|
|
1712
|
-
*/
|
|
1713
|
-
wildcard?: boolean;
|
|
1714
|
-
bundleType?: 'bundle' | 'onDemandInstallCapable' | string;
|
|
1715
|
-
}
|
|
1716
|
-
export type BundleIdQueryFilter = ConnectQueryFilter<BundleIdProps, 'identifier' | 'name' | 'platform' | 'seedId'>;
|
|
1717
|
-
interface UpdateCapabilityProps<T extends CapabilityType> {
|
|
1718
|
-
capabilityType: T;
|
|
1719
|
-
option: CapabilityOptionMap[T];
|
|
1720
|
-
}
|
|
1721
|
-
export class BundleId extends ConnectModel<BundleIdProps> {
|
|
1722
|
-
static type: string;
|
|
1723
|
-
static DEFAULT_INCLUDES: string[];
|
|
1724
|
-
static getAsync: (context: RequestContext, props?: {
|
|
1725
|
-
query?: ConnectQueryParams<Partial<{
|
|
1709
|
+
declare module "connect/models/MerchantId" {
|
|
1710
|
+
import { CapabilityConnectModelProps, CapabilityConnectQueryFilter } from "connect/models/CapabilityConnectModel";
|
|
1711
|
+
export type MerchantIdProps = CapabilityConnectModelProps;
|
|
1712
|
+
export type MerchantIdQueryFilter = CapabilityConnectQueryFilter;
|
|
1713
|
+
const MerchantId_base: {
|
|
1714
|
+
new (context: import("AppStoreConnect").RequestContext, id: string, attributes: CapabilityConnectModelProps): {
|
|
1715
|
+
deleteAsync(): Promise<void>;
|
|
1716
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1717
|
+
id: string;
|
|
1718
|
+
attributes: CapabilityConnectModelProps;
|
|
1719
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1720
|
+
};
|
|
1721
|
+
type: string;
|
|
1722
|
+
getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1723
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
1726
1724
|
name: string | string[];
|
|
1727
|
-
platform: BundleIdPlatform | BundleIdPlatform[];
|
|
1728
1725
|
identifier: string | string[];
|
|
1729
|
-
seedId: string | string[];
|
|
1730
1726
|
} & {
|
|
1731
1727
|
id?: string | undefined;
|
|
1732
1728
|
}>> | undefined;
|
|
1733
|
-
} | undefined) => Promise<
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
* @param id `BundleId` id (ex: UNHB5PT4MA)
|
|
1737
|
-
*/
|
|
1738
|
-
static infoAsync: (context: RequestContext, props: {
|
|
1729
|
+
} | undefined) => Promise<(import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1730
|
+
deleteAsync(): Promise<void>;
|
|
1731
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1739
1732
|
id: string;
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1733
|
+
attributes: CapabilityConnectModelProps;
|
|
1734
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1735
|
+
})[]>;
|
|
1736
|
+
infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1737
|
+
id: string;
|
|
1738
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1739
|
+
}) => Promise<import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1740
|
+
deleteAsync(): Promise<void>;
|
|
1741
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1742
|
+
id: string;
|
|
1743
|
+
attributes: CapabilityConnectModelProps;
|
|
1744
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1745
|
+
}>;
|
|
1746
|
+
createAsync(context: import("AppStoreConnect").RequestContext, { name, identifier, }: {
|
|
1747
|
+
name?: string | undefined;
|
|
1748
1748
|
identifier: string;
|
|
1749
|
-
}): Promise<
|
|
1750
|
-
|
|
1749
|
+
}): Promise<import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1750
|
+
deleteAsync(): Promise<void>;
|
|
1751
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1751
1752
|
id: string;
|
|
1752
|
-
|
|
1753
|
-
|
|
1753
|
+
attributes: CapabilityConnectModelProps;
|
|
1754
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1755
|
+
}>;
|
|
1756
|
+
deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1754
1757
|
id: string;
|
|
1755
|
-
})
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
capabilityType: CapabilityType;
|
|
1759
|
-
}): Promise<void>;
|
|
1760
|
-
getBundleIdCapabilitiesAsync({ query, }?: {
|
|
1761
|
-
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
1762
|
-
}): Promise<BundleIdCapability[]>;
|
|
1763
|
-
updateAsync(options: Partial<Omit<BundleIdProps, 'bundleIdCapabilities'>>): Promise<BundleId>;
|
|
1764
|
-
getProfilesAsync({ query, }?: {
|
|
1765
|
-
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
1766
|
-
}): Promise<Profile[]>;
|
|
1767
|
-
supportsCatalyst(): boolean;
|
|
1768
|
-
getCapabilityId(capabilityType: CapabilityType): string;
|
|
1769
|
-
private getOrFetchBundleIdCapabilitiesAsync;
|
|
1770
|
-
hasCapabilityAsync(capability: CapabilityType): Promise<BundleIdCapability | null>;
|
|
1758
|
+
}) => Promise<void>;
|
|
1759
|
+
};
|
|
1760
|
+
export class MerchantId extends MerchantId_base {
|
|
1771
1761
|
}
|
|
1772
1762
|
}
|
|
1773
|
-
declare module "connect/models/
|
|
1774
|
-
import {
|
|
1775
|
-
import {
|
|
1776
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1763
|
+
declare module "connect/models/BundleIdCapability" {
|
|
1764
|
+
import { AppGroup } from "connect/models/AppGroup";
|
|
1765
|
+
import { CloudContainer } from "connect/models/CloudContainer";
|
|
1766
|
+
import { ConnectModel, ConnectModelData } from "connect/models/ConnectModel";
|
|
1767
|
+
import { MerchantId } from "connect/models/MerchantId";
|
|
1768
|
+
export enum CapabilityType {
|
|
1769
|
+
ACCESS_WIFI = "ACCESS_WIFI_INFORMATION",
|
|
1770
|
+
APP_ATTEST = "APP_ATTEST",
|
|
1771
|
+
APP_GROUP = "APP_GROUPS",
|
|
1772
|
+
APPLE_PAY = "APPLE_PAY",
|
|
1773
|
+
ASSOCIATED_DOMAINS = "ASSOCIATED_DOMAINS",
|
|
1774
|
+
CLASS_KIT = "CLASSKIT",
|
|
1775
|
+
AUTO_FILL_CREDENTIAL = "AUTOFILL_CREDENTIAL_PROVIDER",
|
|
1776
|
+
DATA_PROTECTION = "DATA_PROTECTION",
|
|
1777
|
+
FAMILY_CONTROLS = "FAMILY_CONTROLS",
|
|
1778
|
+
GAME_CENTER = "GAME_CENTER",
|
|
1779
|
+
GROUP_ACTIVITIES = "GROUP_ACTIVITIES",
|
|
1780
|
+
HEALTH_KIT = "HEALTHKIT",
|
|
1781
|
+
HEALTH_KIT_RECALIBRATE_ESTIMATES = "HEALTHKIT_RECALIBRATE_ESTIMATES",
|
|
1782
|
+
HOME_KIT = "HOMEKIT",
|
|
1783
|
+
HOT_SPOT = "HOT_SPOT",
|
|
1784
|
+
ICLOUD = "ICLOUD",
|
|
1785
|
+
IN_APP_PURCHASE = "IN_APP_PURCHASE",
|
|
1786
|
+
INTER_APP_AUDIO = "INTER_APP_AUDIO",
|
|
1787
|
+
MULTIPATH = "MULTIPATH",
|
|
1788
|
+
NETWORK_EXTENSIONS = "NETWORK_EXTENSIONS",
|
|
1789
|
+
USER_MANAGEMENT = "USER_MANAGEMENT",
|
|
1790
|
+
NETWORK_CUSTOM_PROTOCOL = "NETWORK_CUSTOM_PROTOCOL",
|
|
1791
|
+
FILE_PROVIDER_TESTING_MODE = "FILEPROVIDER_TESTINGMODE",
|
|
1792
|
+
SYSTEM_EXTENSION_INSTALL = "SYSTEM_EXTENSION_INSTALL",
|
|
1793
|
+
MDM_MANAGED_ASSOCIATED_DOMAINS = "MDM_MANAGED_ASSOCIATED_DOMAINS",
|
|
1794
|
+
HLS_LOW_LATENCY = "COREMEDIA_HLS_LOW_LATENCY",
|
|
1795
|
+
HLS_INTERSTITIAL_PREVIEW = "HLS_INTERSTITIAL_PREVIEW",
|
|
1796
|
+
NFC_TAG_READING = "NFC_TAG_READING",
|
|
1797
|
+
PERSONAL_VPN = "PERSONAL_VPN",
|
|
1798
|
+
PUSH_NOTIFICATIONS = "PUSH_NOTIFICATIONS",
|
|
1799
|
+
USER_NOTIFICATIONS_TIME_SENSITIVE = "USERNOTIFICATIONS_TIMESENSITIVE",
|
|
1800
|
+
USER_NOTIFICATIONS_COMMUNICATION = "USERNOTIFICATIONS_COMMUNICATION",
|
|
1801
|
+
SIRI_KIT = "SIRIKIT",
|
|
1802
|
+
WALLET = "WALLET",
|
|
1803
|
+
WIRELESS_ACCESSORY = "WIRELESS_ACCESSORY_CONFIGURATION",
|
|
1804
|
+
MAPS = "MAPS",
|
|
1805
|
+
APPLE_ID_AUTH = "APPLE_ID_AUTH",
|
|
1806
|
+
FONT_INSTALLATION = "FONT_INSTALLATION",
|
|
1807
|
+
EXTENDED_VIRTUAL_ADDRESSING = "EXTENDED_VIRTUAL_ADDRESSING",
|
|
1808
|
+
ENABLED_FOR_MAC = "ENABLED_FOR_MAC",
|
|
1809
|
+
MARZIPAN = "MARZIPAN"
|
|
1804
1810
|
}
|
|
1805
|
-
export enum
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
STICKERS_CELEBRATIONS = "STICKERS_CELEBRATIONS",
|
|
1809
|
-
STICKERS_CELEBRITIES = "STICKERS_CELEBRITIES",
|
|
1810
|
-
STICKERS_MOVIES_AND_TV = "STICKERS_MOVIES_AND_TV",
|
|
1811
|
-
STICKERS_SPORTS_AND_ACTIVITIES = "STICKERS_SPORTS_AND_ACTIVITIES",
|
|
1812
|
-
STICKERS_EATING_AND_DRINKING = "STICKERS_EATING_AND_DRINKING",
|
|
1813
|
-
STICKERS_CHARACTERS = "STICKERS_CHARACTERS",
|
|
1814
|
-
STICKERS_ANIMALS = "STICKERS_ANIMALS",
|
|
1815
|
-
STICKERS_FASHION = "STICKERS_FASHION",
|
|
1816
|
-
STICKERS_ART = "STICKERS_ART",
|
|
1817
|
-
STICKERS_GAMING = "STICKERS_GAMING",
|
|
1818
|
-
STICKERS_KIDS_AND_FAMILY = "STICKERS_KIDS_AND_FAMILY",
|
|
1819
|
-
STICKERS_PEOPLE = "STICKERS_PEOPLE",
|
|
1820
|
-
STICKERS_MUSIC = "STICKERS_MUSIC",
|
|
1821
|
-
GAMES_SPORTS = "GAMES_SPORTS",
|
|
1822
|
-
GAMES_WORD = "GAMES_WORD",
|
|
1823
|
-
GAMES_MUSIC = "GAMES_MUSIC",
|
|
1824
|
-
GAMES_ADVENTURE = "GAMES_ADVENTURE",
|
|
1825
|
-
GAMES_ACTION = "GAMES_ACTION",
|
|
1826
|
-
GAMES_ROLE_PLAYING = "GAMES_ROLE_PLAYING",
|
|
1827
|
-
GAMES_CASUAL = "GAMES_CASUAL",
|
|
1828
|
-
GAMES_BOARD = "GAMES_BOARD",
|
|
1829
|
-
GAMES_TRIVIA = "GAMES_TRIVIA",
|
|
1830
|
-
GAMES_CARD = "GAMES_CARD",
|
|
1831
|
-
GAMES_PUZZLE = "GAMES_PUZZLE",
|
|
1832
|
-
GAMES_CASINO = "GAMES_CASINO",
|
|
1833
|
-
GAMES_STRATEGY = "GAMES_STRATEGY",
|
|
1834
|
-
GAMES_SIMULATION = "GAMES_SIMULATION",
|
|
1835
|
-
GAMES_RACING = "GAMES_RACING",
|
|
1836
|
-
GAMES_FAMILY = "GAMES_FAMILY"
|
|
1811
|
+
export enum CapabilityTypeOption {
|
|
1812
|
+
ON = "ON",
|
|
1813
|
+
OFF = "OFF"
|
|
1837
1814
|
}
|
|
1838
|
-
|
|
1839
|
-
|
|
1815
|
+
export enum CapabilityTypeDataProtectionOption {
|
|
1816
|
+
COMPLETE_PROTECTION = "COMPLETE_PROTECTION",
|
|
1817
|
+
PROTECTED_UNLESS_OPEN = "PROTECTED_UNLESS_OPEN",
|
|
1818
|
+
PROTECTED_UNTIL_FIRST_USER_AUTH = "PROTECTED_UNTIL_FIRST_USER_AUTH"
|
|
1840
1819
|
}
|
|
1841
|
-
export
|
|
1842
|
-
|
|
1820
|
+
export enum CapabilityTypeAppleAuthOption {
|
|
1821
|
+
PRIMARY_APP_CONSENT = "PRIMARY_APP_CONSENT"
|
|
1822
|
+
}
|
|
1823
|
+
export enum CapabilityTypeICloudOption {
|
|
1824
|
+
XCODE_5 = "XCODE_5",
|
|
1825
|
+
XCODE_6 = "XCODE_6"
|
|
1826
|
+
}
|
|
1827
|
+
export interface UpdateCapabilityRelationshipProps {
|
|
1828
|
+
/**
|
|
1829
|
+
* A list of opaque IDs for MerchantIds.
|
|
1830
|
+
*/
|
|
1831
|
+
merchantIds?: string[];
|
|
1832
|
+
/**
|
|
1833
|
+
* A list of opaque IDs for AppGroups.
|
|
1834
|
+
*/
|
|
1835
|
+
appGroups?: string[];
|
|
1836
|
+
/**
|
|
1837
|
+
* A list of opaque IDs for CloudContainers.
|
|
1838
|
+
*/
|
|
1839
|
+
cloudContainers?: string[];
|
|
1840
|
+
}
|
|
1841
|
+
export interface CapabilityOptionMap {
|
|
1842
|
+
[CapabilityType.ACCESS_WIFI]: CapabilityTypeOption;
|
|
1843
|
+
[CapabilityType.APP_ATTEST]: CapabilityTypeOption;
|
|
1844
|
+
[CapabilityType.APP_GROUP]: CapabilityTypeOption;
|
|
1845
|
+
[CapabilityType.APPLE_ID_AUTH]: CapabilityTypeOption | CapabilityTypeAppleAuthOption;
|
|
1846
|
+
[CapabilityType.APPLE_PAY]: CapabilityTypeOption;
|
|
1847
|
+
[CapabilityType.ASSOCIATED_DOMAINS]: CapabilityTypeOption;
|
|
1848
|
+
[CapabilityType.AUTO_FILL_CREDENTIAL]: CapabilityTypeOption;
|
|
1849
|
+
[CapabilityType.CLASS_KIT]: CapabilityTypeOption;
|
|
1850
|
+
[CapabilityType.DATA_PROTECTION]: CapabilityTypeOption | CapabilityTypeDataProtectionOption;
|
|
1851
|
+
[CapabilityType.ENABLED_FOR_MAC]: CapabilityTypeOption;
|
|
1852
|
+
[CapabilityType.EXTENDED_VIRTUAL_ADDRESSING]: CapabilityTypeOption;
|
|
1853
|
+
[CapabilityType.FAMILY_CONTROLS]: CapabilityTypeOption;
|
|
1854
|
+
[CapabilityType.FILE_PROVIDER_TESTING_MODE]: CapabilityTypeOption;
|
|
1855
|
+
[CapabilityType.FONT_INSTALLATION]: CapabilityTypeOption;
|
|
1856
|
+
[CapabilityType.GAME_CENTER]: CapabilityTypeOption;
|
|
1857
|
+
[CapabilityType.GROUP_ACTIVITIES]: CapabilityTypeOption;
|
|
1858
|
+
[CapabilityType.HEALTH_KIT]: CapabilityTypeOption;
|
|
1859
|
+
[CapabilityType.HEALTH_KIT_RECALIBRATE_ESTIMATES]: CapabilityTypeOption;
|
|
1860
|
+
[CapabilityType.HLS_INTERSTITIAL_PREVIEW]: CapabilityTypeOption;
|
|
1861
|
+
[CapabilityType.HLS_LOW_LATENCY]: CapabilityTypeOption;
|
|
1862
|
+
[CapabilityType.HOME_KIT]: CapabilityTypeOption;
|
|
1863
|
+
[CapabilityType.HOT_SPOT]: CapabilityTypeOption;
|
|
1864
|
+
[CapabilityType.ICLOUD]: CapabilityTypeOption | CapabilityTypeICloudOption;
|
|
1865
|
+
[CapabilityType.IN_APP_PURCHASE]: CapabilityTypeOption;
|
|
1866
|
+
[CapabilityType.INTER_APP_AUDIO]: CapabilityTypeOption;
|
|
1867
|
+
[CapabilityType.MDM_MANAGED_ASSOCIATED_DOMAINS]: CapabilityTypeOption;
|
|
1868
|
+
[CapabilityType.MULTIPATH]: CapabilityTypeOption;
|
|
1869
|
+
[CapabilityType.NETWORK_CUSTOM_PROTOCOL]: CapabilityTypeOption;
|
|
1870
|
+
[CapabilityType.NETWORK_EXTENSIONS]: CapabilityTypeOption;
|
|
1871
|
+
[CapabilityType.NFC_TAG_READING]: CapabilityTypeOption;
|
|
1872
|
+
[CapabilityType.PERSONAL_VPN]: CapabilityTypeOption;
|
|
1873
|
+
[CapabilityType.PUSH_NOTIFICATIONS]: CapabilityTypeOption;
|
|
1874
|
+
[CapabilityType.SIRI_KIT]: CapabilityTypeOption;
|
|
1875
|
+
[CapabilityType.SYSTEM_EXTENSION_INSTALL]: CapabilityTypeOption;
|
|
1876
|
+
[CapabilityType.USER_NOTIFICATIONS_COMMUNICATION]: CapabilityTypeOption;
|
|
1877
|
+
[CapabilityType.USER_NOTIFICATIONS_TIME_SENSITIVE]: CapabilityTypeOption;
|
|
1878
|
+
[CapabilityType.WALLET]: CapabilityTypeOption;
|
|
1879
|
+
[CapabilityType.WIRELESS_ACCESSORY]: CapabilityTypeOption;
|
|
1880
|
+
[CapabilityType.MAPS]: CapabilityTypeOption;
|
|
1881
|
+
[CapabilityType.MARZIPAN]: CapabilityTypeOption;
|
|
1882
|
+
[CapabilityType.USER_MANAGEMENT]: CapabilityTypeOption;
|
|
1883
|
+
}
|
|
1884
|
+
enum CapabilitySettingKey {
|
|
1885
|
+
ICLOUD_VERSION = "ICLOUD_VERSION",
|
|
1886
|
+
DATA_PROTECTION_PERMISSION_LEVEL = "DATA_PROTECTION_PERMISSION_LEVEL",
|
|
1887
|
+
APPLE_ID_AUTH_APP_CONSENT = "TIBURON_APP_CONSENT"
|
|
1888
|
+
}
|
|
1889
|
+
interface CapabilitySetting {
|
|
1890
|
+
key: CapabilitySettingKey;
|
|
1891
|
+
options: CapabilityOption[];
|
|
1892
|
+
name?: string;
|
|
1893
|
+
description?: string;
|
|
1894
|
+
enabledByDefault?: boolean;
|
|
1895
|
+
visible?: boolean;
|
|
1896
|
+
allowedInstances?: 'ENTRY' | 'SINGLE' | 'MULTIPLE';
|
|
1897
|
+
minInstances?: number;
|
|
1898
|
+
}
|
|
1899
|
+
interface CapabilityOption {
|
|
1900
|
+
key: CapabilityTypeOption | CapabilityTypeDataProtectionOption | CapabilityTypeICloudOption | CapabilityTypeAppleAuthOption;
|
|
1901
|
+
enabled: boolean;
|
|
1902
|
+
name?: string;
|
|
1903
|
+
description?: string;
|
|
1904
|
+
enabledByDefault?: boolean;
|
|
1905
|
+
supportsWildcard?: boolean;
|
|
1906
|
+
}
|
|
1907
|
+
interface BundleIdCapabilityProps {
|
|
1908
|
+
capabilityType?: CapabilityType;
|
|
1909
|
+
settings: CapabilitySetting[] | null;
|
|
1910
|
+
appGroups?: AppGroup[];
|
|
1911
|
+
cloudContainers?: CloudContainer[];
|
|
1912
|
+
merchantIds?: MerchantId[];
|
|
1913
|
+
certificates?: unknown[];
|
|
1914
|
+
relatedAppConsentBundleIds?: unknown[];
|
|
1915
|
+
}
|
|
1916
|
+
export function createCapabilityRelationship<T extends CapabilityType>({ capabilityType, option, relationships, }: {
|
|
1917
|
+
capabilityType: T;
|
|
1918
|
+
option: CapabilityOptionMap[T];
|
|
1919
|
+
relationships?: UpdateCapabilityRelationshipProps;
|
|
1920
|
+
}): Partial<ConnectModelData>;
|
|
1921
|
+
export class BundleIdCapability extends ConnectModel<BundleIdCapabilityProps> {
|
|
1843
1922
|
static type: string;
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
}
|
|
1923
|
+
/**
|
|
1924
|
+
*
|
|
1925
|
+
* @param id `BundleIdCapability` id (formatted like bundleIdId_BundleIdCapabilityType)
|
|
1926
|
+
*/
|
|
1927
|
+
static deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1928
|
+
id: string;
|
|
1929
|
+
}) => Promise<void>;
|
|
1930
|
+
isType(type: CapabilityType): boolean;
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
declare module "portal/Profiles" {
|
|
1934
|
+
import { RequestContext } from "network/Request";
|
|
1935
|
+
import { DevPortalAppIDType } from "portal/PortalAPI";
|
|
1936
|
+
export enum AppStoreProvisioningProfileKind {
|
|
1937
|
+
DEVELOPMENT = "limited",
|
|
1938
|
+
APP_STORE = "store",
|
|
1939
|
+
AD_HOC = "adhoc",
|
|
1940
|
+
IN_HOUSE = "inhouse",
|
|
1941
|
+
/**
|
|
1942
|
+
* Mac-only
|
|
1943
|
+
*/
|
|
1944
|
+
DIRECT = "direct"
|
|
1945
|
+
}
|
|
1946
|
+
type AppStoreProvisioningProfileType = 'iOS Distribution' | 'iOS Development';
|
|
1947
|
+
type AppStoreProvisioningProfilePlatform = 'ios' | 'mac' | string;
|
|
1948
|
+
type AppStoreProvisioningProfileSubPlatform = 'tvOS';
|
|
1949
|
+
type AppStoreProvisioningProfileStatus = 'Active' | 'Expired' | 'Invalid';
|
|
1950
|
+
export interface AppStoreProvisioningProfile {
|
|
1951
|
+
provisioningProfileId: string;
|
|
1952
|
+
name: string;
|
|
1953
|
+
status: AppStoreProvisioningProfileStatus;
|
|
1954
|
+
type: AppStoreProvisioningProfileType;
|
|
1955
|
+
distributionMethod: 'limited' | 'store' | 'adhoc' | 'inhouse' | 'direct';
|
|
1956
|
+
proProPlatform: AppStoreProvisioningProfilePlatform;
|
|
1957
|
+
proProSubPlatform: AppStoreProvisioningProfileSubPlatform | null;
|
|
1958
|
+
version: '2';
|
|
1959
|
+
dateExpire: string;
|
|
1960
|
+
managingApp: null | string;
|
|
1961
|
+
appIdId: string;
|
|
1962
|
+
deviceCount: number;
|
|
1963
|
+
certificates: unknown[];
|
|
1964
|
+
devices: unknown[];
|
|
1965
|
+
deviceIds: string[];
|
|
1966
|
+
certificateIds: string[];
|
|
1967
|
+
certificateCount: number;
|
|
1968
|
+
UUID: string;
|
|
1969
|
+
appId: unknown;
|
|
1970
|
+
}
|
|
1971
|
+
export function getProvisioningProfilesAsync(context: RequestContext, { platformType, provisioningProfileKind, allowManagedByXcode, }: {
|
|
1972
|
+
allowManagedByXcode?: boolean;
|
|
1973
|
+
provisioningProfileKind?: AppStoreProvisioningProfileKind;
|
|
1974
|
+
platformType?: DevPortalAppIDType;
|
|
1975
|
+
}): Promise<AppStoreProvisioningProfile[]>;
|
|
1976
|
+
export function repairProvisioningProfileAsync(context: RequestContext, { provisioningProfileId, name, distributionMethod, appId, certificateIds, deviceIds, subPlatform, templateName, platformType, }: {
|
|
1977
|
+
provisioningProfileId: string;
|
|
1978
|
+
name: string;
|
|
1979
|
+
distributionMethod: string;
|
|
1980
|
+
appId: string;
|
|
1981
|
+
certificateIds: string[];
|
|
1982
|
+
deviceIds: string[];
|
|
1983
|
+
subPlatform?: string;
|
|
1984
|
+
templateName?: string;
|
|
1985
|
+
platformType?: DevPortalAppIDType;
|
|
1986
|
+
}): Promise<AppStoreProvisioningProfile>;
|
|
1987
|
+
}
|
|
1988
|
+
declare module "connect/models/Certificate" {
|
|
1989
|
+
import forge from 'node-forge';
|
|
1990
|
+
import { RequestContext } from "network/Request";
|
|
1991
|
+
import { BundleIdPlatform } from "connect/models/BundleId";
|
|
1992
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1993
|
+
export enum CertificateType {
|
|
1994
|
+
/**
|
|
1995
|
+
* A development code signing certificate used for development environment.
|
|
1996
|
+
*
|
|
1997
|
+
* @id 5QPB9NHCEI
|
|
1998
|
+
*/
|
|
1999
|
+
IOS_DEVELOPMENT = "IOS_DEVELOPMENT",
|
|
2000
|
+
/**
|
|
2001
|
+
* A production code signing certificate used for distribution environment. Can also be used for generating in-house certificates.
|
|
2002
|
+
*
|
|
2003
|
+
* @id R58UK2EWSO, 9RQEK7MSXA
|
|
2004
|
+
*/
|
|
2005
|
+
IOS_DISTRIBUTION = "IOS_DISTRIBUTION",
|
|
2006
|
+
MAC_APP_DEVELOPMENT = "MAC_APP_DEVELOPMENT",
|
|
2007
|
+
MAC_APP_DISTRIBUTION = "MAC_APP_DISTRIBUTION",
|
|
2008
|
+
MAC_INSTALLER_DISTRIBUTION = "MAC_INSTALLER_DISTRIBUTION",
|
|
2009
|
+
DEVELOPER_ID_KEXT = "DEVELOPER_ID_KEXT",
|
|
2010
|
+
DEVELOPER_ID_APPLICATION = "DEVELOPER_ID_APPLICATION",
|
|
2011
|
+
/**
|
|
2012
|
+
* An Apple development code signing certificate used for development environment.
|
|
2013
|
+
*
|
|
2014
|
+
* @id 83Q87W3TGH
|
|
2015
|
+
*/
|
|
2016
|
+
DEVELOPMENT = "DEVELOPMENT",
|
|
2017
|
+
/**
|
|
2018
|
+
* An Apple distribution code signing certificate used for distribution environment.
|
|
2019
|
+
*
|
|
2020
|
+
* @id WXV89964HE
|
|
2021
|
+
*/
|
|
2022
|
+
DISTRIBUTION = "DISTRIBUTION",
|
|
2023
|
+
/**
|
|
2024
|
+
* A push notification certificate for production environment.
|
|
2025
|
+
*
|
|
2026
|
+
* @id UPV3DW712I
|
|
2027
|
+
*/
|
|
2028
|
+
APPLE_PUSH_SERVICES = "APPLE_PUSH_SERVICES"
|
|
1851
2029
|
}
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
2030
|
+
interface CertificateProps {
|
|
2031
|
+
/**
|
|
2032
|
+
* Base 64 encoded DER representation of the certificate.
|
|
2033
|
+
*/
|
|
2034
|
+
certificateContent: string;
|
|
2035
|
+
/**
|
|
2036
|
+
* @example 'Evan Bacon'
|
|
2037
|
+
*/
|
|
2038
|
+
displayName: string;
|
|
2039
|
+
/**
|
|
2040
|
+
* @example '2021-10-27T19:21:49.000+0000'
|
|
2041
|
+
*/
|
|
2042
|
+
expirationDate: string;
|
|
2043
|
+
/**
|
|
2044
|
+
* @example 'iOS Distribution: Evan Bacon'
|
|
2045
|
+
*/
|
|
1858
2046
|
name: string;
|
|
1859
|
-
value: string;
|
|
1860
|
-
}
|
|
1861
|
-
export interface UploadOperation {
|
|
1862
|
-
method: string;
|
|
1863
|
-
url: string;
|
|
1864
|
-
length: number;
|
|
1865
|
-
offset: number;
|
|
1866
|
-
requestHeaders: UploadOperationHeader[];
|
|
1867
|
-
}
|
|
1868
|
-
export enum AppMediaAssetStateState {
|
|
1869
|
-
AWAITING_UPLOAD = "AWAITING_UPLOAD",
|
|
1870
|
-
UPLOAD_COMPLETE = "UPLOAD_COMPLETE",
|
|
1871
|
-
COMPLETE = "COMPLETE",
|
|
1872
|
-
FAILED = "FAILED"
|
|
1873
|
-
}
|
|
1874
|
-
export interface AppMediaStateError {
|
|
1875
|
-
code: string;
|
|
1876
|
-
description: string;
|
|
1877
|
-
}
|
|
1878
|
-
export interface AppMediaAssetState {
|
|
1879
|
-
errors: AppMediaStateError[];
|
|
1880
|
-
warnings: AppMediaStateError[];
|
|
1881
|
-
state: AppMediaAssetStateState;
|
|
1882
|
-
}
|
|
1883
|
-
export interface ImageAsset {
|
|
1884
2047
|
/**
|
|
1885
|
-
* @example '
|
|
2048
|
+
* @example 'IOS'
|
|
1886
2049
|
*/
|
|
1887
|
-
|
|
2050
|
+
platform: BundleIdPlatform;
|
|
1888
2051
|
/**
|
|
1889
|
-
* @example
|
|
2052
|
+
* @example '77D4ADE748A86417'
|
|
1890
2053
|
*/
|
|
1891
|
-
|
|
2054
|
+
serialNumber: string;
|
|
1892
2055
|
/**
|
|
1893
|
-
* @example
|
|
2056
|
+
* @example 'IOS_DISTRIBUTION'
|
|
1894
2057
|
*/
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
uploadOperations: UploadOperation[];
|
|
1921
|
-
assetDeliveryState: AppMediaAssetState;
|
|
1922
|
-
uploaded: boolean | null;
|
|
1923
|
-
}
|
|
1924
|
-
/**
|
|
1925
|
-
* Used for updating basic metadata.
|
|
1926
|
-
*/
|
|
1927
|
-
export class AppStoreReviewAttachment extends ConnectModel<AppStoreReviewAttachmentProps> {
|
|
1928
|
-
static type: string;
|
|
2058
|
+
certificateType: CertificateType;
|
|
2059
|
+
/**
|
|
2060
|
+
* @example 'myemail@gmail.com'
|
|
2061
|
+
*/
|
|
2062
|
+
requesterEmail: string;
|
|
2063
|
+
/**
|
|
2064
|
+
* @example 'Evan'
|
|
2065
|
+
*/
|
|
2066
|
+
requesterFirstName: string;
|
|
2067
|
+
/**
|
|
2068
|
+
* @example 'Bacon'
|
|
2069
|
+
*/
|
|
2070
|
+
requesterLastName: string;
|
|
2071
|
+
/**
|
|
2072
|
+
* @example 'Issued'
|
|
2073
|
+
*/
|
|
2074
|
+
status: 'Issued' | string;
|
|
2075
|
+
/**
|
|
2076
|
+
* @example 'Evan Bacon'
|
|
2077
|
+
*/
|
|
2078
|
+
ownerName: string;
|
|
2079
|
+
/**
|
|
2080
|
+
* @example 'R58UK2EWSO'
|
|
2081
|
+
*/
|
|
2082
|
+
certificateTypeId: string;
|
|
1929
2083
|
/**
|
|
2084
|
+
* Often the portal team id.
|
|
1930
2085
|
*
|
|
1931
|
-
* @
|
|
2086
|
+
* @example 'QQ57RJ5UTD'
|
|
1932
2087
|
*/
|
|
1933
|
-
|
|
2088
|
+
ownerId: string;
|
|
2089
|
+
/**
|
|
2090
|
+
* @example `Evan’s MacBook Pro`
|
|
2091
|
+
*/
|
|
2092
|
+
machineName: string | null;
|
|
2093
|
+
/**
|
|
2094
|
+
* @example '8634717594444129300'
|
|
2095
|
+
*/
|
|
2096
|
+
serialNumDecimal: string;
|
|
2097
|
+
/**
|
|
2098
|
+
* @example 'iOS Distribution'
|
|
2099
|
+
*/
|
|
2100
|
+
certificateTypeName: string;
|
|
2101
|
+
/**
|
|
2102
|
+
* @example '6666666A-E3BC-5555-9FC6-FA1111A1F99A'
|
|
2103
|
+
*/
|
|
2104
|
+
machineId: string | null;
|
|
2105
|
+
/**
|
|
2106
|
+
* @example '2020-10-27T19:31:49.000+0000'
|
|
2107
|
+
*/
|
|
2108
|
+
requestedDate: string;
|
|
2109
|
+
/**
|
|
2110
|
+
* @example 'iOS'
|
|
2111
|
+
*/
|
|
2112
|
+
platformName: 'iOS' | string;
|
|
2113
|
+
csrContent: string | null;
|
|
2114
|
+
}
|
|
2115
|
+
export class Certificate extends ConnectModel<CertificateProps> {
|
|
2116
|
+
static type: string;
|
|
2117
|
+
static getAsync: (context: RequestContext, props?: {
|
|
2118
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
2119
|
+
certificateType: CertificateType | CertificateType[];
|
|
2120
|
+
displayName: string | string[];
|
|
2121
|
+
serialNumber: string | string[];
|
|
2122
|
+
} & {
|
|
2123
|
+
id?: string | undefined;
|
|
2124
|
+
}>> | undefined;
|
|
2125
|
+
} | undefined) => Promise<Certificate[]>;
|
|
2126
|
+
static infoAsync: (context: RequestContext, props: {
|
|
1934
2127
|
id: string;
|
|
1935
|
-
|
|
1936
|
-
})
|
|
2128
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
2129
|
+
}) => Promise<Certificate>;
|
|
2130
|
+
static createAsync(context: RequestContext, { csrContent, certificateType, }: {
|
|
2131
|
+
csrContent: string;
|
|
2132
|
+
certificateType: CertificateType;
|
|
2133
|
+
}): Promise<Certificate>;
|
|
1937
2134
|
static deleteAsync: (context: RequestContext, props: {
|
|
1938
2135
|
id: string;
|
|
1939
2136
|
}) => Promise<void>;
|
|
1940
|
-
deleteAsync(): Promise<void>;
|
|
1941
2137
|
/**
|
|
1942
|
-
*
|
|
1943
|
-
* @param id `AppStoreReviewDetail` id
|
|
2138
|
+
* Create a csr for the Apple dev portal.
|
|
1944
2139
|
*/
|
|
1945
|
-
static
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
2140
|
+
static createCertificateSigningRequestAsync(): Promise<{
|
|
2141
|
+
pem: string;
|
|
2142
|
+
csr: forge.pki.Certificate;
|
|
2143
|
+
keyPair: forge.pki.rsa.KeyPair;
|
|
2144
|
+
}>;
|
|
1950
2145
|
}
|
|
2146
|
+
/**
|
|
2147
|
+
* Create a certificate signing request, post it to apple dev portal, and download the contents.
|
|
2148
|
+
*
|
|
2149
|
+
* @returns
|
|
2150
|
+
* - `certificate` Generated certificate
|
|
2151
|
+
* - `certificateP12` p12 representation of the Apple-signed certificate. This will generate without new lines.
|
|
2152
|
+
* - `password` secure random password used to sign the certificate
|
|
2153
|
+
* - `privateSigningKey` forge generated key used to generate the certificate signing request in PEM format`
|
|
2154
|
+
*/
|
|
2155
|
+
export function createCertificateAndP12Async(context: RequestContext, { certificateType, }: {
|
|
2156
|
+
certificateType: CertificateType;
|
|
2157
|
+
}): Promise<{
|
|
2158
|
+
certificate: Certificate;
|
|
2159
|
+
certificateP12: string;
|
|
2160
|
+
password: string;
|
|
2161
|
+
privateSigningKey: string;
|
|
2162
|
+
}>;
|
|
1951
2163
|
}
|
|
1952
|
-
declare module "connect/models/
|
|
2164
|
+
declare module "connect/models/Device" {
|
|
1953
2165
|
import { RequestContext } from "network/Request";
|
|
1954
|
-
import {
|
|
2166
|
+
import { BundleIdPlatform } from "connect/models/BundleId";
|
|
1955
2167
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1956
|
-
export
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
demoAccountRequired: boolean | null;
|
|
1964
|
-
notes: string | null;
|
|
1965
|
-
appStoreReviewAttachments?: AppStoreReviewAttachment[] | null;
|
|
1966
|
-
}
|
|
1967
|
-
/**
|
|
1968
|
-
* Used for updating basic metadata.
|
|
1969
|
-
*/
|
|
1970
|
-
export class AppStoreReviewDetail extends ConnectModel<AppStoreReviewDetailProps> {
|
|
1971
|
-
static type: string;
|
|
1972
|
-
static createAsync(context: RequestContext, { id, attributes, }: {
|
|
1973
|
-
id: string;
|
|
1974
|
-
attributes: Partial<AppStoreReviewDetailProps>;
|
|
1975
|
-
}): Promise<AppStoreReviewDetail>;
|
|
1976
|
-
static deleteAsync: (context: RequestContext, props: {
|
|
1977
|
-
id: string;
|
|
1978
|
-
}) => Promise<void>;
|
|
1979
|
-
updateAsync(options: Partial<AppStoreReviewDetailProps>): Promise<AppStoreReviewDetail>;
|
|
1980
|
-
uploadAttachmentAsync(filePath: string): Promise<AppStoreReviewAttachment>;
|
|
2168
|
+
export enum DeviceClass {
|
|
2169
|
+
APPLE_WATCH = "APPLE_WATCH",
|
|
2170
|
+
IPAD = "IPAD",
|
|
2171
|
+
IPHONE = "IPHONE",
|
|
2172
|
+
IPOD = "IPOD",
|
|
2173
|
+
APPLE_TV = "APPLE_TV",
|
|
2174
|
+
MAC = "MAC"
|
|
1981
2175
|
}
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
import { AppMediaAssetState, ImageAsset, UploadOperation } from "connect/AssetAPI";
|
|
1986
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1987
|
-
export interface AppScreenshotProps {
|
|
1988
|
-
fileSize: number;
|
|
1989
|
-
fileName: string;
|
|
1990
|
-
sourceFileChecksum: string;
|
|
1991
|
-
imageAsset: ImageAsset;
|
|
1992
|
-
assetToken: string;
|
|
1993
|
-
assetType: string;
|
|
1994
|
-
uploadOperations: UploadOperation[];
|
|
1995
|
-
assetDeliveryState: AppMediaAssetState;
|
|
2176
|
+
export enum DeviceStatus {
|
|
2177
|
+
ENABLED = "ENABLED",
|
|
2178
|
+
DISABLED = "DISABLED"
|
|
1996
2179
|
}
|
|
1997
|
-
|
|
2180
|
+
interface DeviceProps {
|
|
2181
|
+
deviceClass: DeviceClass;
|
|
2182
|
+
model: string;
|
|
2183
|
+
name: string;
|
|
2184
|
+
platform: BundleIdPlatform;
|
|
2185
|
+
status: DeviceStatus;
|
|
2186
|
+
udid: string;
|
|
2187
|
+
addedDate: string;
|
|
2188
|
+
}
|
|
2189
|
+
export class Device extends ConnectModel<DeviceProps> {
|
|
1998
2190
|
static type: string;
|
|
2191
|
+
static getAsync: (context: RequestContext, props?: {
|
|
2192
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
2193
|
+
status: DeviceStatus | DeviceStatus[];
|
|
2194
|
+
name: string | string[];
|
|
2195
|
+
platform: BundleIdPlatform | BundleIdPlatform[];
|
|
2196
|
+
udid: string | string[];
|
|
2197
|
+
} & {
|
|
2198
|
+
id?: string | undefined;
|
|
2199
|
+
}>> | undefined;
|
|
2200
|
+
} | undefined) => Promise<Device[]>;
|
|
1999
2201
|
static infoAsync: (context: RequestContext, props: {
|
|
2000
2202
|
id: string;
|
|
2001
2203
|
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
2002
|
-
}) => Promise<
|
|
2003
|
-
static createAsync(context: RequestContext, {
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2204
|
+
}) => Promise<Device>;
|
|
2205
|
+
static createAsync(context: RequestContext, { name, udid, platform, }: {
|
|
2206
|
+
name: DeviceProps['name'];
|
|
2207
|
+
udid: DeviceProps['udid'];
|
|
2208
|
+
platform?: DeviceProps['platform'];
|
|
2209
|
+
}): Promise<Device>;
|
|
2007
2210
|
/**
|
|
2008
|
-
*
|
|
2009
|
-
* @param id `AppScreenshotSet` id
|
|
2211
|
+
* Returns all devices that can be used for iOS profiles (all devices except TVs)
|
|
2010
2212
|
*/
|
|
2011
|
-
static
|
|
2012
|
-
|
|
2013
|
-
filePath: string;
|
|
2014
|
-
waitForProcessing?: boolean;
|
|
2015
|
-
}): Promise<AppScreenshot>;
|
|
2016
|
-
static deleteAsync: (context: RequestContext, props: {
|
|
2017
|
-
id: string;
|
|
2018
|
-
}) => Promise<void>;
|
|
2019
|
-
deleteAsync(): Promise<void>;
|
|
2020
|
-
updateAsync(options: Partial<AppScreenshotProps>): Promise<AppScreenshot>;
|
|
2021
|
-
isAwaitingUpload(): boolean;
|
|
2022
|
-
isComplete(): boolean;
|
|
2023
|
-
isFailed(): boolean;
|
|
2024
|
-
getErrorMessages(): string[];
|
|
2025
|
-
getImageAssetUrl({ width, height, type, }: {
|
|
2026
|
-
width?: number;
|
|
2027
|
-
height?: number;
|
|
2028
|
-
type?: string | 'png';
|
|
2029
|
-
}): string | null;
|
|
2213
|
+
static getAllIOSProfileDevicesAsync(context: RequestContext): Promise<Device[]>;
|
|
2214
|
+
updateAsync(options: Pick<Partial<DeviceProps>, 'status' | 'name'>): Promise<Device>;
|
|
2030
2215
|
}
|
|
2031
2216
|
}
|
|
2032
|
-
declare module "connect/models/
|
|
2217
|
+
declare module "connect/models/Profile" {
|
|
2033
2218
|
import { RequestContext } from "network/Request";
|
|
2034
2219
|
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
2035
|
-
import {
|
|
2220
|
+
import { BundleId, BundleIdPlatform } from "connect/models/BundleId";
|
|
2221
|
+
import { Certificate } from "connect/models/Certificate";
|
|
2036
2222
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2223
|
+
import { Device } from "connect/models/Device";
|
|
2224
|
+
export enum ProfileState {
|
|
2225
|
+
ACTIVE = "ACTIVE",
|
|
2226
|
+
EXPIRED = "EXPIRED",
|
|
2227
|
+
INVALID = "INVALID"
|
|
2040
2228
|
}
|
|
2041
|
-
export enum
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
IMESSAGE_APP_IPHONE_58 = "IMESSAGE_APP_IPHONE_58",
|
|
2057
|
-
IMESSAGE_APP_IPHONE_65 = "IMESSAGE_APP_IPHONE_65",
|
|
2058
|
-
IMESSAGE_APP_IPAD_97 = "IMESSAGE_APP_IPAD_97",
|
|
2059
|
-
IMESSAGE_APP_IPAD_105 = "IMESSAGE_APP_IPAD_105",
|
|
2060
|
-
IMESSAGE_APP_IPAD_PRO_129 = "IMESSAGE_APP_IPAD_PRO_129",
|
|
2061
|
-
IMESSAGE_APP_IPAD_PRO_3GEN_11 = "IMESSAGE_APP_IPAD_PRO_3GEN_11",
|
|
2062
|
-
IMESSAGE_APP_IPAD_PRO_3GEN_129 = "IMESSAGE_APP_IPAD_PRO_3GEN_129",
|
|
2063
|
-
APP_WATCH_SERIES_3 = "APP_WATCH_SERIES_3",
|
|
2064
|
-
APP_WATCH_SERIES_4 = "APP_WATCH_SERIES_4",
|
|
2065
|
-
APP_APPLE_TV = "APP_APPLE_TV",
|
|
2066
|
-
APP_DESKTOP = "APP_DESKTOP"
|
|
2229
|
+
export enum ProfileType {
|
|
2230
|
+
IOS_APP_DEVELOPMENT = "IOS_APP_DEVELOPMENT",
|
|
2231
|
+
IOS_APP_STORE = "IOS_APP_STORE",
|
|
2232
|
+
IOS_APP_ADHOC = "IOS_APP_ADHOC",
|
|
2233
|
+
IOS_APP_INHOUSE = "IOS_APP_INHOUSE",
|
|
2234
|
+
MAC_APP_DEVELOPMENT = "MAC_APP_DEVELOPMENT",
|
|
2235
|
+
MAC_APP_STORE = "MAC_APP_STORE",
|
|
2236
|
+
MAC_APP_DIRECT = "MAC_APP_DIRECT",
|
|
2237
|
+
TVOS_APP_DEVELOPMENT = "TVOS_APP_DEVELOPMENT",
|
|
2238
|
+
TVOS_APP_STORE = "TVOS_APP_STORE",
|
|
2239
|
+
TVOS_APP_ADHOC = "TVOS_APP_ADHOC",
|
|
2240
|
+
TVOS_APP_INHOUSE = "TVOS_APP_INHOUSE",
|
|
2241
|
+
MAC_CATALYST_APP_DEVELOPMENT = "MAC_CATALYST_APP_DEVELOPMENT",
|
|
2242
|
+
MAC_CATALYST_APP_STORE = "MAC_CATALYST_APP_STORE",
|
|
2243
|
+
MAC_CATALYST_APP_DIRECT = "MAC_CATALYST_APP_DIRECT"
|
|
2067
2244
|
}
|
|
2068
|
-
|
|
2069
|
-
export class AppScreenshotSet extends ConnectModel<AppScreenshotSetProps> {
|
|
2070
|
-
static type: string;
|
|
2245
|
+
interface ProfileProps {
|
|
2071
2246
|
/**
|
|
2072
|
-
*
|
|
2073
|
-
* @param id `AppScreenshotSet` id (ex: UNHB5PT4MA)
|
|
2247
|
+
* @example 'N/A'
|
|
2074
2248
|
*/
|
|
2075
|
-
|
|
2076
|
-
id: string;
|
|
2077
|
-
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
2078
|
-
}) => Promise<AppScreenshotSet>;
|
|
2249
|
+
configuration: string | null;
|
|
2079
2250
|
/**
|
|
2080
|
-
*
|
|
2081
|
-
* @param id `AppStoreVersionLocalization` id
|
|
2251
|
+
* @example 'UNIVERSAL'
|
|
2082
2252
|
*/
|
|
2083
|
-
|
|
2084
|
-
id: string;
|
|
2085
|
-
attributes: Partial<AppScreenshotSetProps>;
|
|
2086
|
-
}): Promise<AppScreenshotSet>;
|
|
2087
|
-
updateAsync({ appScreenshots, }: {
|
|
2088
|
-
appScreenshots: string[];
|
|
2089
|
-
}): Promise<AppScreenshotSet>;
|
|
2090
|
-
isImessage(): boolean;
|
|
2091
|
-
isAppleTv(): boolean;
|
|
2092
|
-
uploadScreenshot({ filePath, waitForProcessing, position, }: {
|
|
2093
|
-
filePath: string;
|
|
2094
|
-
waitForProcessing?: boolean;
|
|
2095
|
-
position?: number;
|
|
2096
|
-
}): Promise<AppScreenshot>;
|
|
2097
|
-
reorderScreenshotsAsync({ appScreenshots, query, }: {
|
|
2098
|
-
appScreenshots: string[];
|
|
2099
|
-
query?: ConnectQueryParams;
|
|
2100
|
-
}): Promise<AppScreenshotSet[]>;
|
|
2101
|
-
}
|
|
2102
|
-
}
|
|
2103
|
-
declare module "connect/models/AppStoreVersionLocalization" {
|
|
2104
|
-
import { RequestContext } from "network/Request";
|
|
2105
|
-
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
2106
|
-
import { AppScreenshotSet, AppScreenshotSetProps } from "connect/models/AppScreenshotSet";
|
|
2107
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2108
|
-
export interface AppStoreVersionLocalizationProps {
|
|
2109
|
-
description: string | null;
|
|
2253
|
+
bundlePlatform: BundleIdPlatform;
|
|
2110
2254
|
/**
|
|
2111
|
-
* @example '
|
|
2255
|
+
* @example '*[expo] com.bacon.avocado AppStore 2020-08-24T05:21:07.826Z'
|
|
2112
2256
|
*/
|
|
2113
|
-
|
|
2257
|
+
name: string;
|
|
2258
|
+
platform: BundleIdPlatform;
|
|
2114
2259
|
/**
|
|
2115
|
-
* @example '
|
|
2260
|
+
* @example 'App Store' 'Universal Distribution'
|
|
2116
2261
|
*/
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2262
|
+
profileTypeLabel: string;
|
|
2263
|
+
/**
|
|
2264
|
+
* Base 64 encoded buffer. `null` when `profileState` is `.EXPIRED`.
|
|
2265
|
+
*/
|
|
2266
|
+
profileContent: string | null;
|
|
2267
|
+
/**
|
|
2268
|
+
* @example '4d6f795d-734b-4988-85a8-ab9c2b7b02ba'
|
|
2269
|
+
*/
|
|
2270
|
+
uuid: string;
|
|
2271
|
+
/**
|
|
2272
|
+
* @example '2020-08-24T05:21:09.000+0000'
|
|
2273
|
+
*/
|
|
2274
|
+
createdDate: string;
|
|
2275
|
+
/**
|
|
2276
|
+
* @example 'INVALID'
|
|
2277
|
+
*/
|
|
2278
|
+
profileState: ProfileState;
|
|
2279
|
+
/**
|
|
2280
|
+
* @example 'IOS_APP_STORE'
|
|
2281
|
+
*/
|
|
2282
|
+
profileType: ProfileType;
|
|
2283
|
+
/**
|
|
2284
|
+
* @example '2020-12-08T19:26:53.000+0000'
|
|
2285
|
+
*/
|
|
2286
|
+
expirationDate: string;
|
|
2287
|
+
templateName: string | null;
|
|
2288
|
+
bundleId?: BundleId;
|
|
2289
|
+
certificates?: Certificate[];
|
|
2290
|
+
devices?: Device[];
|
|
2123
2291
|
}
|
|
2124
|
-
|
|
2125
|
-
* Used for updating basic metadata.
|
|
2126
|
-
*/
|
|
2127
|
-
export class AppStoreVersionLocalization extends ConnectModel<AppStoreVersionLocalizationProps> {
|
|
2292
|
+
export class Profile extends ConnectModel<ProfileProps> {
|
|
2128
2293
|
static type: string;
|
|
2129
|
-
static
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2294
|
+
static DEFAULT_INCLUDES: string[];
|
|
2295
|
+
static getAsync: (context: RequestContext, props?: {
|
|
2296
|
+
query?: ConnectQueryParams<Partial<{
|
|
2297
|
+
name: string | string[];
|
|
2298
|
+
profileState: ProfileState | ProfileState[];
|
|
2299
|
+
profileType: ProfileType | ProfileType[];
|
|
2300
|
+
} & {
|
|
2301
|
+
id?: string | undefined;
|
|
2302
|
+
}>> | undefined;
|
|
2303
|
+
} | undefined) => Promise<Profile[]>;
|
|
2304
|
+
static infoAsync: (context: RequestContext, props: {
|
|
2134
2305
|
id: string;
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2306
|
+
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
2307
|
+
}) => Promise<Profile>;
|
|
2308
|
+
/**
|
|
2309
|
+
*
|
|
2310
|
+
* @param bundleId `BundleId` id (Opaque ID)
|
|
2311
|
+
* @param certificates `Certificate` id array (Opaque ID)
|
|
2312
|
+
* @param devices `Device` id array (Opaque ID)
|
|
2313
|
+
*/
|
|
2314
|
+
static createAsync(context: RequestContext, { bundleId, certificates, devices, name, profileType, templateName, }: {
|
|
2315
|
+
bundleId: string;
|
|
2316
|
+
certificates: string[];
|
|
2317
|
+
devices: string[];
|
|
2318
|
+
name: string;
|
|
2319
|
+
profileType: ProfileType;
|
|
2320
|
+
templateName?: string;
|
|
2321
|
+
}): Promise<Profile>;
|
|
2322
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
2323
|
+
id: string;
|
|
2324
|
+
}) => Promise<void>;
|
|
2325
|
+
isValid(): boolean;
|
|
2326
|
+
getDevicesAsync({ query, }?: {
|
|
2327
|
+
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
2328
|
+
}): Promise<Device[]>;
|
|
2329
|
+
getCertificatesAsync({ query, }?: {
|
|
2330
|
+
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
2331
|
+
}): Promise<Certificate[]>;
|
|
2332
|
+
getBundleIdAsync({ query, }?: {
|
|
2333
|
+
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
2334
|
+
}): Promise<BundleId>;
|
|
2335
|
+
/**
|
|
2336
|
+
* A super dangerous method that uses the old API to repair a provisioning profile.
|
|
2337
|
+
*/
|
|
2338
|
+
regenerateAsync(): Promise<Profile>;
|
|
2141
2339
|
}
|
|
2142
2340
|
}
|
|
2143
|
-
declare module "connect/models/
|
|
2341
|
+
declare module "connect/models/BundleId" {
|
|
2144
2342
|
import { RequestContext } from "network/Request";
|
|
2343
|
+
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
2344
|
+
import { BundleIdCapability, CapabilityOptionMap, CapabilityType, UpdateCapabilityRelationshipProps } from "connect/models/BundleIdCapability";
|
|
2145
2345
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2346
|
+
import { Profile } from "connect/models/Profile";
|
|
2347
|
+
export enum BundleIdPlatform {
|
|
2348
|
+
IOS = "IOS",
|
|
2349
|
+
MAC_OS = "MAC_OS",
|
|
2350
|
+
UNIVERSAL = "UNIVERSAL"
|
|
2151
2351
|
}
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2352
|
+
interface BundleIdProps {
|
|
2353
|
+
identifier: string;
|
|
2354
|
+
name: string;
|
|
2355
|
+
seedId: string;
|
|
2356
|
+
dateModified: string;
|
|
2357
|
+
platform: BundleIdPlatform;
|
|
2358
|
+
bundleIdCapabilities?: BundleIdCapability[];
|
|
2359
|
+
/**
|
|
2360
|
+
* Seems to always be `bundle`.
|
|
2361
|
+
*/
|
|
2362
|
+
wildcard?: boolean;
|
|
2363
|
+
bundleType?: 'bundle' | 'onDemandInstallCapable' | string;
|
|
2157
2364
|
}
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2365
|
+
export type BundleIdQueryFilter = ConnectQueryFilter<BundleIdProps, 'identifier' | 'name' | 'platform' | 'seedId'>;
|
|
2366
|
+
interface UpdateCapabilityProps<T extends CapabilityType> {
|
|
2367
|
+
capabilityType: T;
|
|
2368
|
+
option: CapabilityOptionMap[T];
|
|
2369
|
+
relationships?: UpdateCapabilityRelationshipProps;
|
|
2370
|
+
}
|
|
2371
|
+
export class BundleId extends ConnectModel<BundleIdProps> {
|
|
2162
2372
|
static type: string;
|
|
2373
|
+
static DEFAULT_INCLUDES: string[];
|
|
2374
|
+
static getAsync: (context: RequestContext, props?: {
|
|
2375
|
+
query?: ConnectQueryParams<Partial<{
|
|
2376
|
+
name: string | string[];
|
|
2377
|
+
identifier: string | string[];
|
|
2378
|
+
platform: BundleIdPlatform | BundleIdPlatform[];
|
|
2379
|
+
seedId: string | string[];
|
|
2380
|
+
} & {
|
|
2381
|
+
id?: string | undefined;
|
|
2382
|
+
}>> | undefined;
|
|
2383
|
+
} | undefined) => Promise<BundleId[]>;
|
|
2163
2384
|
/**
|
|
2164
2385
|
*
|
|
2165
|
-
* @param id `
|
|
2386
|
+
* @param id `BundleId` id (ex: UNHB5PT4MA)
|
|
2166
2387
|
*/
|
|
2167
|
-
static
|
|
2388
|
+
static infoAsync: (context: RequestContext, props: {
|
|
2168
2389
|
id: string;
|
|
2169
|
-
|
|
2170
|
-
})
|
|
2390
|
+
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
2391
|
+
}) => Promise<BundleId>;
|
|
2392
|
+
static findAsync(context: RequestContext, { identifier, }: {
|
|
2393
|
+
identifier: string;
|
|
2394
|
+
}): Promise<BundleId | null>;
|
|
2395
|
+
static createAsync(context: RequestContext, { name, platform, identifier, }: {
|
|
2396
|
+
name: string;
|
|
2397
|
+
platform?: BundleIdProps['platform'];
|
|
2398
|
+
identifier: string;
|
|
2399
|
+
}): Promise<BundleId>;
|
|
2171
2400
|
static deleteAsync: (context: RequestContext, props: {
|
|
2172
2401
|
id: string;
|
|
2173
2402
|
}) => Promise<void>;
|
|
2174
|
-
deleteAsync(
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2403
|
+
deleteAsync({ id }: {
|
|
2404
|
+
id: string;
|
|
2405
|
+
}): Promise<void>;
|
|
2406
|
+
updateBundleIdCapabilityAsync<T extends CapabilityType>(options: UpdateCapabilityProps<T> | UpdateCapabilityProps<T>[]): Promise<BundleId>;
|
|
2407
|
+
deleteBundleIdCapabilityAsync({ capabilityType, }: {
|
|
2408
|
+
capabilityType: CapabilityType;
|
|
2409
|
+
}): Promise<void>;
|
|
2410
|
+
getBundleIdCapabilitiesAsync({ query, }?: {
|
|
2411
|
+
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
2412
|
+
}): Promise<BundleIdCapability[]>;
|
|
2413
|
+
updateAsync(options: Partial<Omit<BundleIdProps, 'bundleIdCapabilities'>>): Promise<BundleId>;
|
|
2414
|
+
getProfilesAsync({ query, }?: {
|
|
2415
|
+
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
2416
|
+
}): Promise<Profile[]>;
|
|
2417
|
+
supportsCatalyst(): boolean;
|
|
2418
|
+
getCapabilityId(capabilityType: CapabilityType): string;
|
|
2419
|
+
private getOrFetchBundleIdCapabilitiesAsync;
|
|
2420
|
+
hasCapabilityAsync(capability: CapabilityType): Promise<BundleIdCapability | null>;
|
|
2179
2421
|
}
|
|
2180
2422
|
}
|
|
2181
|
-
declare module "connect/models/
|
|
2182
|
-
import {
|
|
2423
|
+
declare module "connect/models/AppCategory" {
|
|
2424
|
+
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
2425
|
+
import { BundleIdPlatform } from "connect/models/BundleId";
|
|
2183
2426
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2184
|
-
export
|
|
2427
|
+
export enum AppCategoryId {
|
|
2428
|
+
FOOD_AND_DRINK = "FOOD_AND_DRINK",
|
|
2429
|
+
BUSINESS = "BUSINESS",
|
|
2430
|
+
EDUCATION = "EDUCATION",
|
|
2431
|
+
SOCIAL_NETWORKING = "SOCIAL_NETWORKING",
|
|
2432
|
+
BOOKS = "BOOKS",
|
|
2433
|
+
SPORTS = "SPORTS",
|
|
2434
|
+
FINANCE = "FINANCE",
|
|
2435
|
+
REFERENCE = "REFERENCE",
|
|
2436
|
+
GRAPHICS_AND_DESIGN = "GRAPHICS_AND_DESIGN",
|
|
2437
|
+
DEVELOPER_TOOLS = "DEVELOPER_TOOLS",
|
|
2438
|
+
HEALTH_AND_FITNESS = "HEALTH_AND_FITNESS",
|
|
2439
|
+
MUSIC = "MUSIC",
|
|
2440
|
+
WEATHER = "WEATHER",
|
|
2441
|
+
TRAVEL = "TRAVEL",
|
|
2442
|
+
ENTERTAINMENT = "ENTERTAINMENT",
|
|
2443
|
+
STICKERS = "STICKERS",
|
|
2444
|
+
GAMES = "GAMES",
|
|
2445
|
+
LIFESTYLE = "LIFESTYLE",
|
|
2446
|
+
MEDICAL = "MEDICAL",
|
|
2447
|
+
MAGAZINES_AND_NEWSPAPERS = "MAGAZINES_AND_NEWSPAPERS",
|
|
2448
|
+
UTILITIES = "UTILITIES",
|
|
2449
|
+
SHOPPING = "SHOPPING",
|
|
2450
|
+
PRODUCTIVITY = "PRODUCTIVITY",
|
|
2451
|
+
NEWS = "NEWS",
|
|
2452
|
+
PHOTO_AND_VIDEO = "PHOTO_AND_VIDEO",
|
|
2453
|
+
NAVIGATION = "NAVIGATION"
|
|
2454
|
+
}
|
|
2455
|
+
export enum AppSubcategoryId {
|
|
2456
|
+
STICKERS_PLACES_AND_OBJECTS = "STICKERS_PLACES_AND_OBJECTS",
|
|
2457
|
+
STICKERS_EMOJI_AND_EXPRESSIONS = "STICKERS_EMOJI_AND_EXPRESSIONS",
|
|
2458
|
+
STICKERS_CELEBRATIONS = "STICKERS_CELEBRATIONS",
|
|
2459
|
+
STICKERS_CELEBRITIES = "STICKERS_CELEBRITIES",
|
|
2460
|
+
STICKERS_MOVIES_AND_TV = "STICKERS_MOVIES_AND_TV",
|
|
2461
|
+
STICKERS_SPORTS_AND_ACTIVITIES = "STICKERS_SPORTS_AND_ACTIVITIES",
|
|
2462
|
+
STICKERS_EATING_AND_DRINKING = "STICKERS_EATING_AND_DRINKING",
|
|
2463
|
+
STICKERS_CHARACTERS = "STICKERS_CHARACTERS",
|
|
2464
|
+
STICKERS_ANIMALS = "STICKERS_ANIMALS",
|
|
2465
|
+
STICKERS_FASHION = "STICKERS_FASHION",
|
|
2466
|
+
STICKERS_ART = "STICKERS_ART",
|
|
2467
|
+
STICKERS_GAMING = "STICKERS_GAMING",
|
|
2468
|
+
STICKERS_KIDS_AND_FAMILY = "STICKERS_KIDS_AND_FAMILY",
|
|
2469
|
+
STICKERS_PEOPLE = "STICKERS_PEOPLE",
|
|
2470
|
+
STICKERS_MUSIC = "STICKERS_MUSIC",
|
|
2471
|
+
GAMES_SPORTS = "GAMES_SPORTS",
|
|
2472
|
+
GAMES_WORD = "GAMES_WORD",
|
|
2473
|
+
GAMES_MUSIC = "GAMES_MUSIC",
|
|
2474
|
+
GAMES_ADVENTURE = "GAMES_ADVENTURE",
|
|
2475
|
+
GAMES_ACTION = "GAMES_ACTION",
|
|
2476
|
+
GAMES_ROLE_PLAYING = "GAMES_ROLE_PLAYING",
|
|
2477
|
+
GAMES_CASUAL = "GAMES_CASUAL",
|
|
2478
|
+
GAMES_BOARD = "GAMES_BOARD",
|
|
2479
|
+
GAMES_TRIVIA = "GAMES_TRIVIA",
|
|
2480
|
+
GAMES_CARD = "GAMES_CARD",
|
|
2481
|
+
GAMES_PUZZLE = "GAMES_PUZZLE",
|
|
2482
|
+
GAMES_CASINO = "GAMES_CASINO",
|
|
2483
|
+
GAMES_STRATEGY = "GAMES_STRATEGY",
|
|
2484
|
+
GAMES_SIMULATION = "GAMES_SIMULATION",
|
|
2485
|
+
GAMES_RACING = "GAMES_RACING",
|
|
2486
|
+
GAMES_FAMILY = "GAMES_FAMILY"
|
|
2487
|
+
}
|
|
2488
|
+
interface AppCategoryProps {
|
|
2489
|
+
platforms: BundleIdPlatform[];
|
|
2490
|
+
}
|
|
2491
|
+
export type AppCategoryQueryFilter = ConnectQueryFilter<AppCategoryProps, 'platforms'>;
|
|
2492
|
+
export class AppCategory extends ConnectModel<AppCategoryProps> {
|
|
2185
2493
|
static type: string;
|
|
2494
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
2495
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
2496
|
+
platforms: BundleIdPlatform[] | BundleIdPlatform[][];
|
|
2497
|
+
} & {
|
|
2498
|
+
id?: string | undefined;
|
|
2499
|
+
}>> | undefined;
|
|
2500
|
+
} | undefined) => Promise<AppCategory[]>;
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
declare module "connect/AssetAPI" {
|
|
2504
|
+
import { AxiosResponse } from 'axios';
|
|
2505
|
+
import { ParsingOptions, RequestContext, RequestProps } from "network/Request";
|
|
2506
|
+
import { ConnectClientAPI } from "connect/ConnectAPI";
|
|
2507
|
+
export interface UploadOperationHeader {
|
|
2508
|
+
name: string;
|
|
2509
|
+
value: string;
|
|
2510
|
+
}
|
|
2511
|
+
export interface UploadOperation {
|
|
2512
|
+
method: string;
|
|
2513
|
+
url: string;
|
|
2514
|
+
length: number;
|
|
2515
|
+
offset: number;
|
|
2516
|
+
requestHeaders: UploadOperationHeader[];
|
|
2517
|
+
}
|
|
2518
|
+
export enum AppMediaAssetStateState {
|
|
2519
|
+
AWAITING_UPLOAD = "AWAITING_UPLOAD",
|
|
2520
|
+
UPLOAD_COMPLETE = "UPLOAD_COMPLETE",
|
|
2521
|
+
COMPLETE = "COMPLETE",
|
|
2522
|
+
FAILED = "FAILED"
|
|
2523
|
+
}
|
|
2524
|
+
export interface AppMediaStateError {
|
|
2525
|
+
code: string;
|
|
2526
|
+
description: string;
|
|
2527
|
+
}
|
|
2528
|
+
export interface AppMediaAssetState {
|
|
2529
|
+
errors: AppMediaStateError[];
|
|
2530
|
+
warnings: AppMediaStateError[];
|
|
2531
|
+
state: AppMediaAssetStateState;
|
|
2532
|
+
}
|
|
2533
|
+
export interface ImageAsset {
|
|
2186
2534
|
/**
|
|
2187
|
-
*
|
|
2188
|
-
* @param id `AppStoreVersion` id
|
|
2535
|
+
* @example 'https://is3-ssl.mzstatic.com/image/thumb/Purple118/v4/0c/26/16/0c261675-72c5-7e10-3fdc-c8a20ccebd77/AppIcon-1x_U007emarketing-85-220-0-6.png/{w}x{h}bb.{f}'
|
|
2189
2536
|
*/
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2537
|
+
templateUrl: string;
|
|
2538
|
+
/**
|
|
2539
|
+
* @example 1024
|
|
2540
|
+
*/
|
|
2541
|
+
width: number;
|
|
2542
|
+
/**
|
|
2543
|
+
* @example 1024
|
|
2544
|
+
*/
|
|
2545
|
+
height: number;
|
|
2546
|
+
}
|
|
2547
|
+
class AssetAPI extends ConnectClientAPI {
|
|
2548
|
+
get hostname(): string;
|
|
2549
|
+
requestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
2550
|
+
uploadAsync(context: RequestContext, { uploadOperations, bytes, }: {
|
|
2551
|
+
uploadOperations: UploadOperation[];
|
|
2552
|
+
bytes: Buffer;
|
|
2553
|
+
}): Promise<void>;
|
|
2193
2554
|
}
|
|
2555
|
+
export const assetClient: AssetAPI;
|
|
2194
2556
|
}
|
|
2195
|
-
declare module "
|
|
2557
|
+
declare module "utils/crypto" {
|
|
2558
|
+
import * as crypto from 'crypto';
|
|
2559
|
+
export function getChecksum(value: crypto.BinaryLike): string;
|
|
2560
|
+
export function getChecksumForFilePath(value: string): string;
|
|
2561
|
+
}
|
|
2562
|
+
declare module "connect/models/AppStoreReviewAttachment" {
|
|
2196
2563
|
import { RequestContext } from "network/Request";
|
|
2564
|
+
import { AppMediaAssetState, UploadOperation } from "connect/AssetAPI";
|
|
2197
2565
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2198
|
-
export interface
|
|
2199
|
-
|
|
2566
|
+
export interface AppStoreReviewAttachmentProps {
|
|
2567
|
+
fileName: string;
|
|
2568
|
+
fileSize: number;
|
|
2569
|
+
sourceFileChecksum: string;
|
|
2570
|
+
uploadOperations: UploadOperation[];
|
|
2571
|
+
assetDeliveryState: AppMediaAssetState;
|
|
2572
|
+
uploaded: boolean | null;
|
|
2200
2573
|
}
|
|
2201
|
-
|
|
2574
|
+
/**
|
|
2575
|
+
* Used for updating basic metadata.
|
|
2576
|
+
*/
|
|
2577
|
+
export class AppStoreReviewAttachment extends ConnectModel<AppStoreReviewAttachmentProps> {
|
|
2202
2578
|
static type: string;
|
|
2203
2579
|
/**
|
|
2204
2580
|
*
|
|
2205
|
-
* @param id `
|
|
2581
|
+
* @param id `AppStoreReviewDetail` id
|
|
2206
2582
|
*/
|
|
2207
2583
|
static createAsync(context: RequestContext, { id, attributes, }: {
|
|
2208
2584
|
id: string;
|
|
2209
|
-
attributes:
|
|
2210
|
-
}): Promise<
|
|
2585
|
+
attributes: Pick<AppStoreReviewAttachmentProps, 'fileName' | 'fileSize'>;
|
|
2586
|
+
}): Promise<AppStoreReviewAttachment>;
|
|
2211
2587
|
static deleteAsync: (context: RequestContext, props: {
|
|
2212
2588
|
id: string;
|
|
2213
2589
|
}) => Promise<void>;
|
|
2590
|
+
deleteAsync(): Promise<void>;
|
|
2591
|
+
/**
|
|
2592
|
+
*
|
|
2593
|
+
* @param id `AppStoreReviewDetail` id
|
|
2594
|
+
*/
|
|
2595
|
+
static uploadAsync(context: RequestContext, { id, filePath, }: {
|
|
2596
|
+
id: string;
|
|
2597
|
+
filePath: string;
|
|
2598
|
+
}): Promise<AppStoreReviewAttachment>;
|
|
2599
|
+
updateAsync(attributes: Pick<AppStoreReviewAttachmentProps, 'uploaded' | 'sourceFileChecksum'>): Promise<AppStoreReviewAttachment>;
|
|
2214
2600
|
}
|
|
2215
2601
|
}
|
|
2216
|
-
declare module "connect/models/
|
|
2602
|
+
declare module "connect/models/AppStoreReviewDetail" {
|
|
2217
2603
|
import { RequestContext } from "network/Request";
|
|
2604
|
+
import { AppStoreReviewAttachment } from "connect/models/AppStoreReviewAttachment";
|
|
2218
2605
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2219
|
-
export interface
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2606
|
+
export interface AppStoreReviewDetailProps {
|
|
2607
|
+
contactFirstName: string | null;
|
|
2608
|
+
contactLastName: string | null;
|
|
2609
|
+
contactPhone: string | null;
|
|
2610
|
+
contactEmail: string | null;
|
|
2611
|
+
demoAccountName: string | null;
|
|
2612
|
+
demoAccountPassword: string | null;
|
|
2613
|
+
demoAccountRequired: boolean | null;
|
|
2614
|
+
notes: string | null;
|
|
2615
|
+
appStoreReviewAttachments?: AppStoreReviewAttachment[] | null;
|
|
2224
2616
|
}
|
|
2225
|
-
|
|
2617
|
+
/**
|
|
2618
|
+
* Used for updating basic metadata.
|
|
2619
|
+
*/
|
|
2620
|
+
export class AppStoreReviewDetail extends ConnectModel<AppStoreReviewDetailProps> {
|
|
2226
2621
|
static type: string;
|
|
2227
|
-
/**
|
|
2228
|
-
*
|
|
2229
|
-
* @param id `AppStoreVersion` id
|
|
2230
|
-
*/
|
|
2231
2622
|
static createAsync(context: RequestContext, { id, attributes, }: {
|
|
2232
2623
|
id: string;
|
|
2233
|
-
attributes: Partial<
|
|
2234
|
-
}): Promise<
|
|
2624
|
+
attributes: Partial<AppStoreReviewDetailProps>;
|
|
2625
|
+
}): Promise<AppStoreReviewDetail>;
|
|
2235
2626
|
static deleteAsync: (context: RequestContext, props: {
|
|
2236
2627
|
id: string;
|
|
2237
2628
|
}) => Promise<void>;
|
|
2238
|
-
|
|
2239
|
-
|
|
2629
|
+
updateAsync(options: Partial<AppStoreReviewDetailProps>): Promise<AppStoreReviewDetail>;
|
|
2630
|
+
uploadAttachmentAsync(filePath: string): Promise<AppStoreReviewAttachment>;
|
|
2240
2631
|
}
|
|
2241
2632
|
}
|
|
2242
|
-
declare module "connect/models/
|
|
2243
|
-
import {
|
|
2633
|
+
declare module "connect/models/AppScreenshot" {
|
|
2634
|
+
import { RequestContext } from "network/Request";
|
|
2635
|
+
import { AppMediaAssetState, ImageAsset, UploadOperation } from "connect/AssetAPI";
|
|
2244
2636
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2245
|
-
export interface
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
}
|
|
2255
|
-
export enum Platform {
|
|
2256
|
-
IOS = "IOS",
|
|
2257
|
-
MAC_OS = "MAC_OS",
|
|
2258
|
-
TV_OS = "TV_OS"
|
|
2637
|
+
export interface AppScreenshotProps {
|
|
2638
|
+
fileSize: number;
|
|
2639
|
+
fileName: string;
|
|
2640
|
+
sourceFileChecksum: string;
|
|
2641
|
+
imageAsset: ImageAsset;
|
|
2642
|
+
assetToken: string;
|
|
2643
|
+
assetType: string;
|
|
2644
|
+
uploadOperations: UploadOperation[];
|
|
2645
|
+
assetDeliveryState: AppMediaAssetState;
|
|
2259
2646
|
}
|
|
2260
|
-
export
|
|
2261
|
-
export class PreReleaseVersion extends ConnectModel<PreReleaseVersionProps> {
|
|
2647
|
+
export class AppScreenshot extends ConnectModel<AppScreenshotProps> {
|
|
2262
2648
|
static type: string;
|
|
2263
|
-
static
|
|
2264
|
-
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
2265
|
-
platform: Platform | Platform[];
|
|
2266
|
-
version: string | string[];
|
|
2267
|
-
} & {
|
|
2268
|
-
id?: string | undefined;
|
|
2269
|
-
}>> | undefined;
|
|
2270
|
-
} | undefined) => Promise<PreReleaseVersion[]>;
|
|
2271
|
-
/**
|
|
2272
|
-
*
|
|
2273
|
-
* @param id `PreReleaseVersion` id (ex: UNHB5PT4MA)
|
|
2274
|
-
*/
|
|
2275
|
-
static infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
2649
|
+
static infoAsync: (context: RequestContext, props: {
|
|
2276
2650
|
id: string;
|
|
2277
2651
|
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
2278
|
-
}) => Promise<
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2284
|
-
export interface ResetRatingsRequestProps {
|
|
2285
|
-
resetDate: string | null;
|
|
2286
|
-
}
|
|
2287
|
-
export class ResetRatingsRequest extends ConnectModel<ResetRatingsRequestProps> {
|
|
2288
|
-
static type: string;
|
|
2652
|
+
}) => Promise<AppScreenshot>;
|
|
2653
|
+
static createAsync(context: RequestContext, { id, attributes, }: {
|
|
2654
|
+
id: string;
|
|
2655
|
+
attributes: Pick<AppScreenshotProps, 'fileName' | 'fileSize'>;
|
|
2656
|
+
}): Promise<AppScreenshot>;
|
|
2289
2657
|
/**
|
|
2290
2658
|
*
|
|
2291
|
-
* @param id `
|
|
2659
|
+
* @param id `AppScreenshotSet` id
|
|
2292
2660
|
*/
|
|
2293
|
-
static
|
|
2661
|
+
static uploadAsync(context: RequestContext, { id, filePath, waitForProcessing, }: {
|
|
2294
2662
|
id: string;
|
|
2295
|
-
|
|
2663
|
+
filePath: string;
|
|
2664
|
+
waitForProcessing?: boolean;
|
|
2665
|
+
}): Promise<AppScreenshot>;
|
|
2296
2666
|
static deleteAsync: (context: RequestContext, props: {
|
|
2297
2667
|
id: string;
|
|
2298
2668
|
}) => Promise<void>;
|
|
2299
2669
|
deleteAsync(): Promise<void>;
|
|
2670
|
+
updateAsync(options: Partial<AppScreenshotProps>): Promise<AppScreenshot>;
|
|
2671
|
+
isAwaitingUpload(): boolean;
|
|
2672
|
+
isComplete(): boolean;
|
|
2673
|
+
isFailed(): boolean;
|
|
2674
|
+
getErrorMessages(): string[];
|
|
2675
|
+
getImageAssetUrl({ width, height, type, }: {
|
|
2676
|
+
width?: number;
|
|
2677
|
+
height?: number;
|
|
2678
|
+
type?: string | 'png';
|
|
2679
|
+
}): string | null;
|
|
2300
2680
|
}
|
|
2301
2681
|
}
|
|
2302
|
-
declare module "connect/models/
|
|
2682
|
+
declare module "connect/models/AppScreenshotSet" {
|
|
2303
2683
|
import { RequestContext } from "network/Request";
|
|
2304
|
-
import { ImageAsset } from "connect/AssetAPI";
|
|
2305
2684
|
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
2306
|
-
import {
|
|
2307
|
-
import { AppStoreState } from "connect/models/AppInfo";
|
|
2308
|
-
import { AppStoreReviewDetail, AppStoreReviewDetailProps } from "connect/models/AppStoreReviewDetail";
|
|
2309
|
-
import { AppStoreVersionLocalization, AppStoreVersionLocalizationProps } from "connect/models/AppStoreVersionLocalization";
|
|
2310
|
-
import { AppStoreVersionPhasedRelease, AppStoreVersionPhasedReleaseProps } from "connect/models/AppStoreVersionPhasedRelease";
|
|
2311
|
-
import { AppStoreVersionReleaseRequest } from "connect/models/AppStoreVersionReleaseRequest";
|
|
2312
|
-
import { AppStoreVersionSubmission } from "connect/models/AppStoreVersionSubmission";
|
|
2685
|
+
import { AppScreenshot } from "connect/models/AppScreenshot";
|
|
2313
2686
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
export enum ReleaseType {
|
|
2318
|
-
AFTER_APPROVAL = "AFTER_APPROVAL",
|
|
2319
|
-
MANUAL = "MANUAL",
|
|
2320
|
-
SCHEDULED = "SCHEDULED"
|
|
2687
|
+
export interface AppScreenshotSetProps {
|
|
2688
|
+
screenshotDisplayType: ScreenshotDisplayType;
|
|
2689
|
+
appScreenshots: AppScreenshot[];
|
|
2321
2690
|
}
|
|
2322
|
-
export
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
downloadable: boolean;
|
|
2349
|
-
/**
|
|
2350
|
-
* @example '2020-10-29T09:03:06-07:00'
|
|
2351
|
-
*/
|
|
2352
|
-
createdDate: string;
|
|
2353
|
-
appStoreVersionSubmission?: AppStoreVersionSubmission;
|
|
2691
|
+
export enum ScreenshotDisplayType {
|
|
2692
|
+
APP_IPHONE_35 = "APP_IPHONE_35",
|
|
2693
|
+
APP_IPHONE_40 = "APP_IPHONE_40",
|
|
2694
|
+
APP_IPHONE_47 = "APP_IPHONE_47",
|
|
2695
|
+
APP_IPHONE_55 = "APP_IPHONE_55",
|
|
2696
|
+
APP_IPHONE_58 = "APP_IPHONE_58",
|
|
2697
|
+
APP_IPHONE_65 = "APP_IPHONE_65",
|
|
2698
|
+
APP_IPAD_97 = "APP_IPAD_97",
|
|
2699
|
+
APP_IPAD_105 = "APP_IPAD_105",
|
|
2700
|
+
APP_IPAD_PRO_3GEN_11 = "APP_IPAD_PRO_3GEN_11",
|
|
2701
|
+
APP_IPAD_PRO_129 = "APP_IPAD_PRO_129",
|
|
2702
|
+
APP_IPAD_PRO_3GEN_129 = "APP_IPAD_PRO_3GEN_129",
|
|
2703
|
+
IMESSAGE_APP_IPHONE_40 = "IMESSAGE_APP_IPHONE_40",
|
|
2704
|
+
IMESSAGE_APP_IPHONE_47 = "IMESSAGE_APP_IPHONE_47",
|
|
2705
|
+
IMESSAGE_APP_IPHONE_55 = "IMESSAGE_APP_IPHONE_55",
|
|
2706
|
+
IMESSAGE_APP_IPHONE_58 = "IMESSAGE_APP_IPHONE_58",
|
|
2707
|
+
IMESSAGE_APP_IPHONE_65 = "IMESSAGE_APP_IPHONE_65",
|
|
2708
|
+
IMESSAGE_APP_IPAD_97 = "IMESSAGE_APP_IPAD_97",
|
|
2709
|
+
IMESSAGE_APP_IPAD_105 = "IMESSAGE_APP_IPAD_105",
|
|
2710
|
+
IMESSAGE_APP_IPAD_PRO_129 = "IMESSAGE_APP_IPAD_PRO_129",
|
|
2711
|
+
IMESSAGE_APP_IPAD_PRO_3GEN_11 = "IMESSAGE_APP_IPAD_PRO_3GEN_11",
|
|
2712
|
+
IMESSAGE_APP_IPAD_PRO_3GEN_129 = "IMESSAGE_APP_IPAD_PRO_3GEN_129",
|
|
2713
|
+
APP_WATCH_SERIES_3 = "APP_WATCH_SERIES_3",
|
|
2714
|
+
APP_WATCH_SERIES_4 = "APP_WATCH_SERIES_4",
|
|
2715
|
+
APP_APPLE_TV = "APP_APPLE_TV",
|
|
2716
|
+
APP_DESKTOP = "APP_DESKTOP"
|
|
2354
2717
|
}
|
|
2355
|
-
export
|
|
2356
|
-
|
|
2357
|
-
static
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
})
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
}): Promise<
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
}): Promise<
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
}
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
createIdfaDeclarationAsync(attributes: Partial<IdfaDeclarationProps>): Promise<IdfaDeclaration>;
|
|
2387
|
-
createLocalizationAsync({ locale, }: Pick<AppStoreVersionLocalizationProps, 'locale'>): Promise<AppStoreVersionLocalization>;
|
|
2388
|
-
createReviewDetailAsync(attributes: Partial<Omit<AppStoreReviewDetailProps, 'demoAccountRequired'>>): Promise<AppStoreReviewDetail>;
|
|
2389
|
-
createReleaseRequestAsync(): Promise<AppStoreVersionReleaseRequest>;
|
|
2390
|
-
getResetRatingsRequestAsync({ query, }?: {
|
|
2391
|
-
query?: ConnectQueryParams;
|
|
2392
|
-
}): Promise<ResetRatingsRequest | null>;
|
|
2393
|
-
getLocalizationsAsync({ query, }?: {
|
|
2718
|
+
export const ALL: ScreenshotDisplayType[];
|
|
2719
|
+
export class AppScreenshotSet extends ConnectModel<AppScreenshotSetProps> {
|
|
2720
|
+
static type: string;
|
|
2721
|
+
/**
|
|
2722
|
+
*
|
|
2723
|
+
* @param id `AppScreenshotSet` id (ex: UNHB5PT4MA)
|
|
2724
|
+
*/
|
|
2725
|
+
static infoAsync: (context: RequestContext, props: {
|
|
2726
|
+
id: string;
|
|
2727
|
+
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
2728
|
+
}) => Promise<AppScreenshotSet>;
|
|
2729
|
+
/**
|
|
2730
|
+
*
|
|
2731
|
+
* @param id `AppStoreVersionLocalization` id
|
|
2732
|
+
*/
|
|
2733
|
+
static createAsync(context: RequestContext, { id, attributes, }: {
|
|
2734
|
+
id: string;
|
|
2735
|
+
attributes: Partial<AppScreenshotSetProps>;
|
|
2736
|
+
}): Promise<AppScreenshotSet>;
|
|
2737
|
+
updateAsync({ appScreenshots, }: {
|
|
2738
|
+
appScreenshots: string[];
|
|
2739
|
+
}): Promise<AppScreenshotSet>;
|
|
2740
|
+
isImessage(): boolean;
|
|
2741
|
+
isAppleTv(): boolean;
|
|
2742
|
+
uploadScreenshot({ filePath, waitForProcessing, position, }: {
|
|
2743
|
+
filePath: string;
|
|
2744
|
+
waitForProcessing?: boolean;
|
|
2745
|
+
position?: number;
|
|
2746
|
+
}): Promise<AppScreenshot>;
|
|
2747
|
+
reorderScreenshotsAsync({ appScreenshots, query, }: {
|
|
2748
|
+
appScreenshots: string[];
|
|
2394
2749
|
query?: ConnectQueryParams;
|
|
2395
|
-
}): Promise<
|
|
2396
|
-
canReject(): boolean;
|
|
2397
|
-
rejectAsync(): Promise<boolean>;
|
|
2750
|
+
}): Promise<AppScreenshotSet[]>;
|
|
2398
2751
|
}
|
|
2399
2752
|
}
|
|
2400
|
-
declare module "connect/models/
|
|
2753
|
+
declare module "connect/models/AppStoreVersionLocalization" {
|
|
2401
2754
|
import { RequestContext } from "network/Request";
|
|
2755
|
+
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
2756
|
+
import { AppScreenshotSet, AppScreenshotSetProps } from "connect/models/AppScreenshotSet";
|
|
2402
2757
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2403
|
-
export interface
|
|
2758
|
+
export interface AppStoreVersionLocalizationProps {
|
|
2759
|
+
description: string | null;
|
|
2760
|
+
/**
|
|
2761
|
+
* @example 'en-US'
|
|
2762
|
+
*/
|
|
2404
2763
|
locale: string;
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2764
|
+
/**
|
|
2765
|
+
* @example 'Dating, Food, Books,'
|
|
2766
|
+
*/
|
|
2767
|
+
keywords: string | null;
|
|
2768
|
+
marketingUrl: string | null;
|
|
2769
|
+
promotionalText: string | null;
|
|
2770
|
+
supportUrl: string | null;
|
|
2771
|
+
whatsNew: string | null;
|
|
2772
|
+
appScreenshotSets?: AppScreenshotSet[];
|
|
2409
2773
|
}
|
|
2410
2774
|
/**
|
|
2411
2775
|
* Used for updating basic metadata.
|
|
2412
2776
|
*/
|
|
2413
|
-
export class
|
|
2777
|
+
export class AppStoreVersionLocalization extends ConnectModel<AppStoreVersionLocalizationProps> {
|
|
2414
2778
|
static type: string;
|
|
2415
|
-
/**
|
|
2416
|
-
*
|
|
2417
|
-
* @param id `AppInfo` id
|
|
2418
|
-
*/
|
|
2419
2779
|
static createAsync(context: RequestContext, { id, locale, }: {
|
|
2420
2780
|
id: string;
|
|
2421
2781
|
locale: string;
|
|
2422
|
-
}): Promise<
|
|
2782
|
+
}): Promise<AppStoreVersionLocalization>;
|
|
2423
2783
|
static deleteAsync: (context: RequestContext, props: {
|
|
2424
2784
|
id: string;
|
|
2425
2785
|
}) => Promise<void>;
|
|
2426
|
-
updateAsync(
|
|
2786
|
+
updateAsync(options: Partial<Omit<AppStoreVersionLocalizationProps, 'locale' | 'appScreenshotSets' | 'appPreviewSets'>>): Promise<AppStoreVersionLocalization>;
|
|
2787
|
+
getAppScreenshotSetsAsync({ query, }?: {
|
|
2788
|
+
query?: ConnectQueryParams<ConnectQueryFilter<AppScreenshotSetProps, 'screenshotDisplayType'>>;
|
|
2789
|
+
}): Promise<AppScreenshotSet[]>;
|
|
2790
|
+
createAppScreenshotSetAsync(attributes: Pick<AppScreenshotSetProps, 'screenshotDisplayType'>): Promise<AppScreenshotSet>;
|
|
2427
2791
|
}
|
|
2428
2792
|
}
|
|
2429
|
-
declare module "connect/models/
|
|
2793
|
+
declare module "connect/models/AppStoreVersionPhasedRelease" {
|
|
2430
2794
|
import { RequestContext } from "network/Request";
|
|
2431
|
-
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
2432
|
-
import { AppCategory, AppCategoryId, AppSubcategoryId } from "connect/models/AppCategory";
|
|
2433
|
-
import { AppInfoLocalization, AppInfoLocalizationProps } from "connect/models/AppInfoLocalization";
|
|
2434
|
-
import { BundleIdPlatform } from "connect/models/BundleId";
|
|
2435
2795
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2436
|
-
export enum
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
IN_REVIEW = "IN_REVIEW",
|
|
2442
|
-
WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW",
|
|
2443
|
-
DEVELOPER_REJECTED = "DEVELOPER_REJECTED",
|
|
2444
|
-
REJECTED = "REJECTED",
|
|
2445
|
-
PREPARE_FOR_SUBMISSION = "PREPARE_FOR_SUBMISSION",
|
|
2446
|
-
METADATA_REJECTED = "METADATA_REJECTED",
|
|
2447
|
-
INVALID_BINARY = "INVALID_BINARY"
|
|
2448
|
-
}
|
|
2449
|
-
export enum BrazilAgeRating {
|
|
2450
|
-
L = "L",
|
|
2451
|
-
TEN = "TEN",
|
|
2452
|
-
TWELVE = "TWELVE",
|
|
2453
|
-
FOURTEEN = "FOURTEEN",
|
|
2454
|
-
SIXTEEN = "SIXTEEN",
|
|
2455
|
-
EIGHTEEN = "EIGHTEEN"
|
|
2456
|
-
}
|
|
2457
|
-
export enum AppStoreAgeRating {
|
|
2458
|
-
FOUR_PLUS = "FOUR_PLUS"
|
|
2459
|
-
}
|
|
2460
|
-
export enum KidsAgeBand {
|
|
2461
|
-
FIVE_AND_UNDER = "FIVE_AND_UNDER",
|
|
2462
|
-
SIX_TO_EIGHT = "SIX_TO_EIGHT",
|
|
2463
|
-
NINE_TO_ELEVEN = "NINE_TO_ELEVEN"
|
|
2464
|
-
}
|
|
2465
|
-
export interface AppInfoProps {
|
|
2466
|
-
appStoreState: AppStoreState;
|
|
2467
|
-
appStoreAgeRating: null | AppStoreAgeRating;
|
|
2468
|
-
brazilAgeRating: null | BrazilAgeRating;
|
|
2469
|
-
kidsAgeBand: null | KidsAgeBand;
|
|
2470
|
-
primaryCategory?: AppCategory;
|
|
2471
|
-
primarySubcategoryOne?: AppCategory;
|
|
2472
|
-
primarySubcategoryTwo?: AppCategory;
|
|
2473
|
-
secondaryCategory?: AppCategory;
|
|
2474
|
-
secondarySubcategoryOne?: AppCategory;
|
|
2475
|
-
secondarySubcategoryTwo?: AppCategory;
|
|
2796
|
+
export enum PhasedReleaseState {
|
|
2797
|
+
INACTIVE = "INACTIVE",
|
|
2798
|
+
ACTIVE = "ACTIVE",
|
|
2799
|
+
PAUSED = "PAUSED",
|
|
2800
|
+
COMPLETE = "COMPLETE"
|
|
2476
2801
|
}
|
|
2477
|
-
export interface
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
secondarySubcategoryOne?: AppSubcategoryId;
|
|
2483
|
-
secondarySubcategoryTwo?: AppSubcategoryId;
|
|
2802
|
+
export interface AppStoreVersionPhasedReleaseProps {
|
|
2803
|
+
phasedReleaseState: PhasedReleaseState | null;
|
|
2804
|
+
startDate: string | null;
|
|
2805
|
+
totalPauseDuration: number | null;
|
|
2806
|
+
currentDayNumber: number | null;
|
|
2484
2807
|
}
|
|
2485
|
-
|
|
2808
|
+
/**
|
|
2809
|
+
* Used for updating basic metadata.
|
|
2810
|
+
*/
|
|
2811
|
+
export class AppStoreVersionPhasedRelease extends ConnectModel<AppStoreVersionPhasedReleaseProps> {
|
|
2486
2812
|
static type: string;
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
}): Promise<AppInfo>;
|
|
2493
|
-
static infoAsync: (context: RequestContext, props: {
|
|
2813
|
+
/**
|
|
2814
|
+
*
|
|
2815
|
+
* @param id `AppStoreVersion` id
|
|
2816
|
+
*/
|
|
2817
|
+
static createAsync(context: RequestContext, { id, phasedReleaseState, }: {
|
|
2494
2818
|
id: string;
|
|
2495
|
-
|
|
2496
|
-
})
|
|
2819
|
+
phasedReleaseState: AppStoreVersionPhasedReleaseProps['phasedReleaseState'];
|
|
2820
|
+
}): Promise<AppStoreVersionPhasedRelease>;
|
|
2497
2821
|
static deleteAsync: (context: RequestContext, props: {
|
|
2498
2822
|
id: string;
|
|
2499
2823
|
}) => Promise<void>;
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
}
|
|
2506
|
-
}
|
|
2507
|
-
declare module "connect/models/AppPriceTier" {
|
|
2508
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2509
|
-
export class AppPriceTier extends ConnectModel<object> {
|
|
2510
|
-
static type: string;
|
|
2824
|
+
deleteAsync(): Promise<void>;
|
|
2825
|
+
pauseAsync(): Promise<AppStoreVersionPhasedRelease>;
|
|
2826
|
+
resumeAsync(): Promise<AppStoreVersionPhasedRelease>;
|
|
2827
|
+
completeAsync(): Promise<AppStoreVersionPhasedRelease>;
|
|
2828
|
+
updateAsync({ phasedReleaseState, }: Pick<AppStoreVersionPhasedReleaseProps, 'phasedReleaseState'>): Promise<AppStoreVersionPhasedRelease>;
|
|
2511
2829
|
}
|
|
2512
2830
|
}
|
|
2513
|
-
declare module "connect/models/
|
|
2514
|
-
import {
|
|
2831
|
+
declare module "connect/models/AppStoreVersionReleaseRequest" {
|
|
2832
|
+
import { RequestContext } from "network/Request";
|
|
2515
2833
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2516
|
-
export
|
|
2517
|
-
startDate: string;
|
|
2518
|
-
priceTier: AppPriceTier;
|
|
2519
|
-
}
|
|
2520
|
-
export class AppPrice extends ConnectModel<AppPriceProps> {
|
|
2834
|
+
export class AppStoreVersionReleaseRequest extends ConnectModel<object> {
|
|
2521
2835
|
static type: string;
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2836
|
+
/**
|
|
2837
|
+
*
|
|
2838
|
+
* @param id `AppStoreVersion` id
|
|
2839
|
+
*/
|
|
2840
|
+
static createAsync(context: RequestContext, { id, }: {
|
|
2526
2841
|
id: string;
|
|
2527
|
-
|
|
2528
|
-
}) => Promise<AppPrice>;
|
|
2842
|
+
}): Promise<AppStoreVersionReleaseRequest>;
|
|
2529
2843
|
}
|
|
2530
2844
|
}
|
|
2531
|
-
declare module "connect/models/
|
|
2845
|
+
declare module "connect/models/AppStoreVersionSubmission" {
|
|
2532
2846
|
import { RequestContext } from "network/Request";
|
|
2533
2847
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2534
|
-
interface
|
|
2535
|
-
|
|
2536
|
-
* @example 'App Store Connect Users'
|
|
2537
|
-
*/
|
|
2538
|
-
name: string;
|
|
2539
|
-
/**
|
|
2540
|
-
* @example '2017-08-07T18:06:37.632Z'
|
|
2541
|
-
*/
|
|
2542
|
-
createdDate: string;
|
|
2543
|
-
isInternalGroup: boolean;
|
|
2544
|
-
publicLinkEnabled: boolean;
|
|
2545
|
-
publicLinkId: string;
|
|
2546
|
-
publicLinkLimitEnabled: boolean;
|
|
2547
|
-
publicLinkLimit: number;
|
|
2548
|
-
publicLink: string | null;
|
|
2549
|
-
feedbackEnabled: boolean;
|
|
2848
|
+
export interface AppStoreVersionSubmissionProps {
|
|
2849
|
+
canReject: boolean;
|
|
2550
2850
|
}
|
|
2551
|
-
export class
|
|
2851
|
+
export class AppStoreVersionSubmission extends ConnectModel<AppStoreVersionSubmissionProps> {
|
|
2552
2852
|
static type: string;
|
|
2553
|
-
static getAsync: (context: RequestContext, props?: {
|
|
2554
|
-
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
2555
|
-
} | undefined) => Promise<BetaGroup[]>;
|
|
2556
2853
|
/**
|
|
2557
2854
|
*
|
|
2558
|
-
* @param id `
|
|
2855
|
+
* @param id `AppStoreVersion` id
|
|
2559
2856
|
*/
|
|
2560
|
-
static createAsync(context: RequestContext, { id,
|
|
2857
|
+
static createAsync(context: RequestContext, { id, attributes, }: {
|
|
2561
2858
|
id: string;
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
}[]): Promise<unknown>;
|
|
2859
|
+
attributes?: Partial<AppStoreVersionSubmissionProps>;
|
|
2860
|
+
}): Promise<AppStoreVersionSubmission>;
|
|
2861
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
2862
|
+
id: string;
|
|
2863
|
+
}) => Promise<void>;
|
|
2568
2864
|
}
|
|
2569
2865
|
}
|
|
2570
2866
|
declare module "connect/models/BetaAppReviewSubmission" {
|
|
@@ -2649,6 +2945,45 @@ declare module "connect/models/BetaBuildMetric" {
|
|
|
2649
2945
|
static type: string;
|
|
2650
2946
|
}
|
|
2651
2947
|
}
|
|
2948
|
+
declare module "connect/models/BetaGroup" {
|
|
2949
|
+
import { RequestContext } from "network/Request";
|
|
2950
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2951
|
+
interface BetaGroupProps {
|
|
2952
|
+
/**
|
|
2953
|
+
* @example 'App Store Connect Users'
|
|
2954
|
+
*/
|
|
2955
|
+
name: string;
|
|
2956
|
+
/**
|
|
2957
|
+
* @example '2017-08-07T18:06:37.632Z'
|
|
2958
|
+
*/
|
|
2959
|
+
createdDate: string;
|
|
2960
|
+
isInternalGroup: boolean;
|
|
2961
|
+
publicLinkEnabled: boolean;
|
|
2962
|
+
publicLinkId: string;
|
|
2963
|
+
publicLinkLimitEnabled: boolean;
|
|
2964
|
+
publicLinkLimit: number;
|
|
2965
|
+
publicLink: string | null;
|
|
2966
|
+
feedbackEnabled: boolean;
|
|
2967
|
+
}
|
|
2968
|
+
export class BetaGroup extends ConnectModel<BetaGroupProps> {
|
|
2969
|
+
static type: string;
|
|
2970
|
+
static getAsync: (context: RequestContext, props?: {
|
|
2971
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
2972
|
+
} | undefined) => Promise<BetaGroup[]>;
|
|
2973
|
+
/**
|
|
2974
|
+
*
|
|
2975
|
+
* @param id `App` id
|
|
2976
|
+
*/
|
|
2977
|
+
static createAsync(context: RequestContext, { id, name, publicLinkEnabled, publicLinkLimit, publicLinkLimitEnabled, }: {
|
|
2978
|
+
id: string;
|
|
2979
|
+
} & Pick<BetaGroupProps, 'name' | 'publicLinkEnabled' | 'publicLinkLimit' | 'publicLinkLimitEnabled'>): Promise<BetaGroup>;
|
|
2980
|
+
createBulkBetaTesterAssignmentsAsync(betaTesters: {
|
|
2981
|
+
email: string;
|
|
2982
|
+
firstName: string;
|
|
2983
|
+
lastName: string;
|
|
2984
|
+
}[]): Promise<unknown>;
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2652
2987
|
declare module "connect/models/BuildBetaDetail" {
|
|
2653
2988
|
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
2654
2989
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
@@ -2709,6 +3044,45 @@ declare module "connect/models/BuildBetaDetail" {
|
|
|
2709
3044
|
isReadyForBetaSubmission(): boolean;
|
|
2710
3045
|
}
|
|
2711
3046
|
}
|
|
3047
|
+
declare module "connect/models/PreReleaseVersion" {
|
|
3048
|
+
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
3049
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3050
|
+
export interface PreReleaseVersionProps {
|
|
3051
|
+
/**
|
|
3052
|
+
* @example '1.0.1'
|
|
3053
|
+
*/
|
|
3054
|
+
version: string;
|
|
3055
|
+
/**
|
|
3056
|
+
* @example 'IOS'
|
|
3057
|
+
*/
|
|
3058
|
+
platform: Platform;
|
|
3059
|
+
}
|
|
3060
|
+
export enum Platform {
|
|
3061
|
+
IOS = "IOS",
|
|
3062
|
+
MAC_OS = "MAC_OS",
|
|
3063
|
+
TV_OS = "TV_OS"
|
|
3064
|
+
}
|
|
3065
|
+
export type PreReleaseVersionQueryFilter = ConnectQueryFilter<PreReleaseVersionProps, 'platform' | 'version'>;
|
|
3066
|
+
export class PreReleaseVersion extends ConnectModel<PreReleaseVersionProps> {
|
|
3067
|
+
static type: string;
|
|
3068
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
3069
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
3070
|
+
platform: Platform | Platform[];
|
|
3071
|
+
version: string | string[];
|
|
3072
|
+
} & {
|
|
3073
|
+
id?: string | undefined;
|
|
3074
|
+
}>> | undefined;
|
|
3075
|
+
} | undefined) => Promise<PreReleaseVersion[]>;
|
|
3076
|
+
/**
|
|
3077
|
+
*
|
|
3078
|
+
* @param id `PreReleaseVersion` id (ex: UNHB5PT4MA)
|
|
3079
|
+
*/
|
|
3080
|
+
static infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
3081
|
+
id: string;
|
|
3082
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
3083
|
+
}) => Promise<PreReleaseVersion>;
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
2712
3086
|
declare module "connect/models/Build" {
|
|
2713
3087
|
import { RequestContext } from "network/Request";
|
|
2714
3088
|
import { ImageAsset } from "connect/AssetAPI";
|
|
@@ -2754,69 +3128,351 @@ declare module "connect/models/Build" {
|
|
|
2754
3128
|
buildBetaDetail?: BuildBetaDetail;
|
|
2755
3129
|
preReleaseVersion?: PreReleaseVersion;
|
|
2756
3130
|
}
|
|
2757
|
-
export enum ProcessingState {
|
|
2758
|
-
PROCESSING = "PROCESSING",
|
|
2759
|
-
FAILED = "FAILED",
|
|
2760
|
-
INVALID = "INVALID",
|
|
2761
|
-
VALID = "VALID"
|
|
3131
|
+
export enum ProcessingState {
|
|
3132
|
+
PROCESSING = "PROCESSING",
|
|
3133
|
+
FAILED = "FAILED",
|
|
3134
|
+
INVALID = "INVALID",
|
|
3135
|
+
VALID = "VALID"
|
|
3136
|
+
}
|
|
3137
|
+
export type BuildQueryFilter = ConnectQueryFilter<Omit<BuildProps, 'app'> & {
|
|
3138
|
+
/**
|
|
3139
|
+
* `App` id
|
|
3140
|
+
*/
|
|
3141
|
+
app: string;
|
|
3142
|
+
'preReleaseVersion.version': string;
|
|
3143
|
+
}, 'app' | 'version' | 'preReleaseVersion.version' | 'processingState'>;
|
|
3144
|
+
export class Build extends ConnectModel<BuildProps> {
|
|
3145
|
+
static type: string;
|
|
3146
|
+
static DEFAULT_INCLUDES: string[];
|
|
3147
|
+
static getAsync(context: RequestContext, { query, }?: {
|
|
3148
|
+
query?: ConnectQueryParams<BuildQueryFilter>;
|
|
3149
|
+
}): Promise<Build[]>;
|
|
3150
|
+
/**
|
|
3151
|
+
*
|
|
3152
|
+
* @param id `Build` id (ex: UNHB5PT4MA)
|
|
3153
|
+
*/
|
|
3154
|
+
static infoAsync: (context: RequestContext, props: {
|
|
3155
|
+
id: string;
|
|
3156
|
+
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
3157
|
+
}) => Promise<Build>;
|
|
3158
|
+
/**
|
|
3159
|
+
*
|
|
3160
|
+
* @param id `Build` id
|
|
3161
|
+
*/
|
|
3162
|
+
static createAsync(context: RequestContext, { id, locale, }: {
|
|
3163
|
+
id: string;
|
|
3164
|
+
locale: string;
|
|
3165
|
+
}): Promise<Build>;
|
|
3166
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
3167
|
+
id: string;
|
|
3168
|
+
}) => Promise<void>;
|
|
3169
|
+
updateAsync(attributes: Partial<BuildProps>): Promise<Build>;
|
|
3170
|
+
addBetaGroupsAsync({ betaGroups }: {
|
|
3171
|
+
betaGroups: string[];
|
|
3172
|
+
}): Promise<void>;
|
|
3173
|
+
getBetaBuildLocalizationsAsync({ query, }?: {
|
|
3174
|
+
query?: ConnectQueryParams;
|
|
3175
|
+
}): Promise<BetaBuildLocalization[]>;
|
|
3176
|
+
getBuildBetaDetailsAsync({ query, }?: {
|
|
3177
|
+
query?: ConnectQueryParams;
|
|
3178
|
+
}): Promise<BuildBetaDetail[]>;
|
|
3179
|
+
/**
|
|
3180
|
+
* Submit for beta app review.
|
|
3181
|
+
*/
|
|
3182
|
+
createBetaAppReviewSubmissionAsync(): Promise<BetaAppReviewSubmission>;
|
|
3183
|
+
/**
|
|
3184
|
+
* Expire the build to prevent further usage or submit a new build.
|
|
3185
|
+
*/
|
|
3186
|
+
expireAsync(): Promise<Build>;
|
|
3187
|
+
getAppVersion(): string;
|
|
3188
|
+
getPlatform(): Platform;
|
|
3189
|
+
getAppId(): string;
|
|
3190
|
+
getBundleId(): string;
|
|
3191
|
+
isReadyForBetaSubmission(): boolean;
|
|
3192
|
+
isProcessed(): boolean;
|
|
3193
|
+
isReadyForInternalTesting(): boolean;
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
declare module "connect/models/IdfaDeclaration" {
|
|
3197
|
+
import { RequestContext } from "network/Request";
|
|
3198
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3199
|
+
export interface IdfaDeclarationProps {
|
|
3200
|
+
servesAds: boolean;
|
|
3201
|
+
attributesAppInstallationToPreviousAd: boolean;
|
|
3202
|
+
attributesActionWithPreviousAd: boolean;
|
|
3203
|
+
honorsLimitedAdTracking: boolean;
|
|
3204
|
+
}
|
|
3205
|
+
export class IdfaDeclaration extends ConnectModel<IdfaDeclarationProps> {
|
|
3206
|
+
static type: string;
|
|
3207
|
+
/**
|
|
3208
|
+
*
|
|
3209
|
+
* @param id `AppStoreVersion` id
|
|
3210
|
+
*/
|
|
3211
|
+
static createAsync(context: RequestContext, { id, attributes, }: {
|
|
3212
|
+
id: string;
|
|
3213
|
+
attributes: Partial<IdfaDeclarationProps>;
|
|
3214
|
+
}): Promise<IdfaDeclaration>;
|
|
3215
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
3216
|
+
id: string;
|
|
3217
|
+
}) => Promise<void>;
|
|
3218
|
+
deleteAsync(): Promise<void>;
|
|
3219
|
+
updateAsync(options: Partial<IdfaDeclarationProps>): Promise<IdfaDeclaration>;
|
|
3220
|
+
}
|
|
3221
|
+
}
|
|
3222
|
+
declare module "connect/models/ResetRatingsRequest" {
|
|
3223
|
+
import { RequestContext } from "network/Request";
|
|
3224
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3225
|
+
export interface ResetRatingsRequestProps {
|
|
3226
|
+
resetDate: string | null;
|
|
3227
|
+
}
|
|
3228
|
+
export class ResetRatingsRequest extends ConnectModel<ResetRatingsRequestProps> {
|
|
3229
|
+
static type: string;
|
|
3230
|
+
/**
|
|
3231
|
+
*
|
|
3232
|
+
* @param id `AppStoreVersion` id
|
|
3233
|
+
*/
|
|
3234
|
+
static createAsync(context: RequestContext, { id, }: {
|
|
3235
|
+
id: string;
|
|
3236
|
+
}): Promise<ResetRatingsRequest>;
|
|
3237
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
3238
|
+
id: string;
|
|
3239
|
+
}) => Promise<void>;
|
|
3240
|
+
deleteAsync(): Promise<void>;
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3243
|
+
declare module "connect/models/AppStoreVersion" {
|
|
3244
|
+
import { RequestContext } from "network/Request";
|
|
3245
|
+
import { ImageAsset } from "connect/AssetAPI";
|
|
3246
|
+
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
3247
|
+
import { AgeRatingDeclaration } from "connect/models/AgeRatingDeclaration";
|
|
3248
|
+
import { AppStoreState } from "connect/models/AppInfo";
|
|
3249
|
+
import { AppStoreReviewDetail, AppStoreReviewDetailProps } from "connect/models/AppStoreReviewDetail";
|
|
3250
|
+
import { AppStoreVersionLocalization, AppStoreVersionLocalizationProps } from "connect/models/AppStoreVersionLocalization";
|
|
3251
|
+
import { AppStoreVersionPhasedRelease, AppStoreVersionPhasedReleaseProps } from "connect/models/AppStoreVersionPhasedRelease";
|
|
3252
|
+
import { AppStoreVersionReleaseRequest } from "connect/models/AppStoreVersionReleaseRequest";
|
|
3253
|
+
import { AppStoreVersionSubmission } from "connect/models/AppStoreVersionSubmission";
|
|
3254
|
+
import { Build } from "connect/models/Build";
|
|
3255
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3256
|
+
import { IdfaDeclaration, IdfaDeclarationProps } from "connect/models/IdfaDeclaration";
|
|
3257
|
+
import { Platform } from "connect/models/PreReleaseVersion";
|
|
3258
|
+
import { ResetRatingsRequest } from "connect/models/ResetRatingsRequest";
|
|
3259
|
+
export enum ReleaseType {
|
|
3260
|
+
AFTER_APPROVAL = "AFTER_APPROVAL",
|
|
3261
|
+
MANUAL = "MANUAL",
|
|
3262
|
+
SCHEDULED = "SCHEDULED"
|
|
3263
|
+
}
|
|
3264
|
+
export interface AppStoreVersionProps {
|
|
3265
|
+
/**
|
|
3266
|
+
* @example 'IOS'
|
|
3267
|
+
*/
|
|
3268
|
+
platform: Platform;
|
|
3269
|
+
/**
|
|
3270
|
+
* @example '1.0'
|
|
3271
|
+
*/
|
|
3272
|
+
versionString: string;
|
|
3273
|
+
/**
|
|
3274
|
+
* @example 'PREPARE_FOR_SUBMISSION'
|
|
3275
|
+
*/
|
|
3276
|
+
appStoreState: AppStoreState;
|
|
3277
|
+
storeIcon: ImageAsset | null;
|
|
3278
|
+
watchStoreIcon: ImageAsset | null;
|
|
3279
|
+
/**
|
|
3280
|
+
* @example '2020 Expo'
|
|
3281
|
+
*/
|
|
3282
|
+
copyright: string | null;
|
|
3283
|
+
/**
|
|
3284
|
+
* @example 'AFTER_APPROVAL'
|
|
3285
|
+
*/
|
|
3286
|
+
releaseType: ReleaseType | null;
|
|
3287
|
+
earliestReleaseDate: string | null;
|
|
3288
|
+
usesIdfa: boolean | null;
|
|
3289
|
+
isWatchOnly: boolean;
|
|
3290
|
+
downloadable: boolean;
|
|
3291
|
+
/**
|
|
3292
|
+
* @example '2020-10-29T09:03:06-07:00'
|
|
3293
|
+
*/
|
|
3294
|
+
createdDate: string;
|
|
3295
|
+
appStoreVersionSubmission?: AppStoreVersionSubmission;
|
|
3296
|
+
}
|
|
3297
|
+
export class AppStoreVersion extends ConnectModel<AppStoreVersionProps> {
|
|
3298
|
+
static type: string;
|
|
3299
|
+
static DEFAULT_INCLUDES: string[];
|
|
3300
|
+
static createAsync(context: RequestContext, { id, versionString, platform, }: {
|
|
3301
|
+
id: string;
|
|
3302
|
+
versionString: string;
|
|
3303
|
+
platform: Platform;
|
|
3304
|
+
}): Promise<AppStoreVersion>;
|
|
3305
|
+
getBuildAsync({ query, }?: {
|
|
3306
|
+
query?: ConnectQueryParams;
|
|
3307
|
+
}): Promise<Build | null>;
|
|
3308
|
+
updateBuildAsync({ buildId }?: {
|
|
3309
|
+
buildId?: string;
|
|
3310
|
+
}): Promise<AppStoreVersion>;
|
|
3311
|
+
updateAsync(options: Partial<Omit<AppStoreVersionProps, 'watchStoreIcon' | 'platform' | 'isWatchOnly' | 'storeIcon' | 'createdDate' | 'build' | 'appStoreVersionSubmission' | 'appStoreState'>>): Promise<AppStoreVersion>;
|
|
3312
|
+
getAgeRatingDeclarationAsync({ query, }?: {
|
|
3313
|
+
query?: ConnectQueryParams;
|
|
3314
|
+
}): Promise<AgeRatingDeclaration | null>;
|
|
3315
|
+
createResetRatingsRequestAsync(): Promise<ResetRatingsRequest>;
|
|
3316
|
+
createPhasedReleaseAsync({ state, }?: {
|
|
3317
|
+
state?: AppStoreVersionPhasedReleaseProps['phasedReleaseState'];
|
|
3318
|
+
}): Promise<AppStoreVersionPhasedRelease>;
|
|
3319
|
+
getPhasedReleaseAsync({ query, }?: {
|
|
3320
|
+
query?: ConnectQueryParams;
|
|
3321
|
+
}): Promise<AppStoreVersionPhasedRelease | null>;
|
|
3322
|
+
getAppStoreReviewDetailAsync({ query, }?: {
|
|
3323
|
+
query?: ConnectQueryParams;
|
|
3324
|
+
}): Promise<AppStoreReviewDetail | null>;
|
|
3325
|
+
createSubmissionAsync(): Promise<AppStoreVersionSubmission>;
|
|
3326
|
+
getSubmissionAsync({ query, }?: {
|
|
3327
|
+
query?: ConnectQueryParams;
|
|
3328
|
+
}): Promise<AppStoreVersionSubmission | null>;
|
|
3329
|
+
getIdfaDeclarationAsync({ query, }?: {
|
|
3330
|
+
query?: ConnectQueryParams;
|
|
3331
|
+
}): Promise<IdfaDeclaration | null>;
|
|
3332
|
+
createIdfaDeclarationAsync(attributes: Partial<IdfaDeclarationProps>): Promise<IdfaDeclaration>;
|
|
3333
|
+
createLocalizationAsync({ locale, }: Pick<AppStoreVersionLocalizationProps, 'locale'>): Promise<AppStoreVersionLocalization>;
|
|
3334
|
+
createReviewDetailAsync(attributes: Partial<Omit<AppStoreReviewDetailProps, 'demoAccountRequired'>>): Promise<AppStoreReviewDetail>;
|
|
3335
|
+
createReleaseRequestAsync(): Promise<AppStoreVersionReleaseRequest>;
|
|
3336
|
+
getResetRatingsRequestAsync({ query, }?: {
|
|
3337
|
+
query?: ConnectQueryParams;
|
|
3338
|
+
}): Promise<ResetRatingsRequest | null>;
|
|
3339
|
+
getLocalizationsAsync({ query, }?: {
|
|
3340
|
+
query?: ConnectQueryParams;
|
|
3341
|
+
}): Promise<AppStoreVersionLocalization[]>;
|
|
3342
|
+
canReject(): boolean;
|
|
3343
|
+
rejectAsync(): Promise<boolean>;
|
|
3344
|
+
}
|
|
3345
|
+
}
|
|
3346
|
+
declare module "connect/models/AppInfoLocalization" {
|
|
3347
|
+
import { RequestContext } from "network/Request";
|
|
3348
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3349
|
+
export interface AppInfoLocalizationProps {
|
|
3350
|
+
locale: string;
|
|
3351
|
+
name: string | null;
|
|
3352
|
+
subtitle: string | null;
|
|
3353
|
+
privacyPolicyUrl: string | null;
|
|
3354
|
+
privacyChoicesUrl: string | null;
|
|
3355
|
+
privacyPolicyText: string | null;
|
|
2762
3356
|
}
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
app: string;
|
|
2768
|
-
'preReleaseVersion.version': string;
|
|
2769
|
-
}, 'app' | 'version' | 'preReleaseVersion.version' | 'processingState'>;
|
|
2770
|
-
export class Build extends ConnectModel<BuildProps> {
|
|
3357
|
+
/**
|
|
3358
|
+
* Used for updating basic metadata.
|
|
3359
|
+
*/
|
|
3360
|
+
export class AppInfoLocalization extends ConnectModel<AppInfoLocalizationProps> {
|
|
2771
3361
|
static type: string;
|
|
2772
|
-
static DEFAULT_INCLUDES: string[];
|
|
2773
|
-
static getAsync(context: RequestContext, { query, }?: {
|
|
2774
|
-
query?: ConnectQueryParams<BuildQueryFilter>;
|
|
2775
|
-
}): Promise<Build[]>;
|
|
2776
|
-
/**
|
|
2777
|
-
*
|
|
2778
|
-
* @param id `Build` id (ex: UNHB5PT4MA)
|
|
2779
|
-
*/
|
|
2780
|
-
static infoAsync: (context: RequestContext, props: {
|
|
2781
|
-
id: string;
|
|
2782
|
-
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
2783
|
-
}) => Promise<Build>;
|
|
2784
3362
|
/**
|
|
2785
3363
|
*
|
|
2786
|
-
* @param id `
|
|
3364
|
+
* @param id `AppInfo` id
|
|
2787
3365
|
*/
|
|
2788
3366
|
static createAsync(context: RequestContext, { id, locale, }: {
|
|
2789
3367
|
id: string;
|
|
2790
3368
|
locale: string;
|
|
2791
|
-
}): Promise<
|
|
3369
|
+
}): Promise<AppInfoLocalization>;
|
|
2792
3370
|
static deleteAsync: (context: RequestContext, props: {
|
|
2793
3371
|
id: string;
|
|
2794
3372
|
}) => Promise<void>;
|
|
2795
|
-
updateAsync(attributes: Partial<
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
3373
|
+
updateAsync(attributes: Partial<AppInfoLocalizationProps>): Promise<AppInfoLocalization>;
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
declare module "connect/models/AppInfo" {
|
|
3377
|
+
import { RequestContext } from "network/Request";
|
|
3378
|
+
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
3379
|
+
import { AppCategory, AppCategoryId, AppSubcategoryId } from "connect/models/AppCategory";
|
|
3380
|
+
import { AppInfoLocalization, AppInfoLocalizationProps } from "connect/models/AppInfoLocalization";
|
|
3381
|
+
import { BundleIdPlatform } from "connect/models/BundleId";
|
|
3382
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3383
|
+
export enum AppStoreState {
|
|
3384
|
+
READY_FOR_SALE = "READY_FOR_SALE",
|
|
3385
|
+
PROCESSING_FOR_APP_STORE = "PROCESSING_FOR_APP_STORE",
|
|
3386
|
+
PENDING_DEVELOPER_RELEASE = "PENDING_DEVELOPER_RELEASE",
|
|
3387
|
+
PENDING_APPLE_RELEASE = "PENDING_APPLE_RELEASE",
|
|
3388
|
+
IN_REVIEW = "IN_REVIEW",
|
|
3389
|
+
WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW",
|
|
3390
|
+
DEVELOPER_REJECTED = "DEVELOPER_REJECTED",
|
|
3391
|
+
REJECTED = "REJECTED",
|
|
3392
|
+
PREPARE_FOR_SUBMISSION = "PREPARE_FOR_SUBMISSION",
|
|
3393
|
+
METADATA_REJECTED = "METADATA_REJECTED",
|
|
3394
|
+
INVALID_BINARY = "INVALID_BINARY"
|
|
3395
|
+
}
|
|
3396
|
+
export enum BrazilAgeRating {
|
|
3397
|
+
L = "L",
|
|
3398
|
+
TEN = "TEN",
|
|
3399
|
+
TWELVE = "TWELVE",
|
|
3400
|
+
FOURTEEN = "FOURTEEN",
|
|
3401
|
+
SIXTEEN = "SIXTEEN",
|
|
3402
|
+
EIGHTEEN = "EIGHTEEN"
|
|
3403
|
+
}
|
|
3404
|
+
export enum AppStoreAgeRating {
|
|
3405
|
+
FOUR_PLUS = "FOUR_PLUS"
|
|
3406
|
+
}
|
|
3407
|
+
export enum KidsAgeBand {
|
|
3408
|
+
FIVE_AND_UNDER = "FIVE_AND_UNDER",
|
|
3409
|
+
SIX_TO_EIGHT = "SIX_TO_EIGHT",
|
|
3410
|
+
NINE_TO_ELEVEN = "NINE_TO_ELEVEN"
|
|
3411
|
+
}
|
|
3412
|
+
export interface AppInfoProps {
|
|
3413
|
+
appStoreState: AppStoreState;
|
|
3414
|
+
appStoreAgeRating: null | AppStoreAgeRating;
|
|
3415
|
+
brazilAgeRating: null | BrazilAgeRating;
|
|
3416
|
+
kidsAgeBand: null | KidsAgeBand;
|
|
3417
|
+
primaryCategory?: AppCategory;
|
|
3418
|
+
primarySubcategoryOne?: AppCategory;
|
|
3419
|
+
primarySubcategoryTwo?: AppCategory;
|
|
3420
|
+
secondaryCategory?: AppCategory;
|
|
3421
|
+
secondarySubcategoryOne?: AppCategory;
|
|
3422
|
+
secondarySubcategoryTwo?: AppCategory;
|
|
3423
|
+
}
|
|
3424
|
+
export interface CategoryIds {
|
|
3425
|
+
primaryCategory?: AppCategoryId;
|
|
3426
|
+
primarySubcategoryOne?: AppSubcategoryId;
|
|
3427
|
+
primarySubcategoryTwo?: AppSubcategoryId;
|
|
3428
|
+
secondaryCategory?: AppCategoryId;
|
|
3429
|
+
secondarySubcategoryOne?: AppSubcategoryId;
|
|
3430
|
+
secondarySubcategoryTwo?: AppSubcategoryId;
|
|
3431
|
+
}
|
|
3432
|
+
export class AppInfo extends ConnectModel<AppInfoProps> {
|
|
3433
|
+
static type: string;
|
|
3434
|
+
static DEFAULT_INCLUDES: string[];
|
|
3435
|
+
static createAsync(context: RequestContext, { id, versionString, platform, }: {
|
|
3436
|
+
id: string;
|
|
3437
|
+
versionString: string;
|
|
3438
|
+
platform: BundleIdPlatform;
|
|
3439
|
+
}): Promise<AppInfo>;
|
|
3440
|
+
static infoAsync: (context: RequestContext, props: {
|
|
3441
|
+
id: string;
|
|
3442
|
+
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
3443
|
+
}) => Promise<AppInfo>;
|
|
3444
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
3445
|
+
id: string;
|
|
3446
|
+
}) => Promise<void>;
|
|
3447
|
+
updateCategoriesAsync(categories?: CategoryIds): Promise<AppInfo>;
|
|
3448
|
+
getLocalizationsAsync({ query, }?: {
|
|
2803
3449
|
query?: ConnectQueryParams;
|
|
2804
|
-
}): Promise<
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
3450
|
+
}): Promise<AppInfoLocalization[]>;
|
|
3451
|
+
createLocalizationAsync({ locale, }: Pick<AppInfoLocalizationProps, 'locale'>): Promise<AppInfoLocalization>;
|
|
3452
|
+
}
|
|
3453
|
+
}
|
|
3454
|
+
declare module "connect/models/AppPriceTier" {
|
|
3455
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3456
|
+
export class AppPriceTier extends ConnectModel<object> {
|
|
3457
|
+
static type: string;
|
|
3458
|
+
}
|
|
3459
|
+
}
|
|
3460
|
+
declare module "connect/models/AppPrice" {
|
|
3461
|
+
import { AppPriceTier } from "connect/models/AppPriceTier";
|
|
3462
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3463
|
+
export interface AppPriceProps {
|
|
3464
|
+
startDate: string;
|
|
3465
|
+
priceTier: AppPriceTier;
|
|
3466
|
+
}
|
|
3467
|
+
export class AppPrice extends ConnectModel<AppPriceProps> {
|
|
3468
|
+
static type: string;
|
|
3469
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
3470
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
3471
|
+
} | undefined) => Promise<AppPrice[]>;
|
|
3472
|
+
static infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
3473
|
+
id: string;
|
|
3474
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
3475
|
+
}) => Promise<AppPrice>;
|
|
2820
3476
|
}
|
|
2821
3477
|
}
|
|
2822
3478
|
declare module "connect/models/InAppPurchase" {
|
|
@@ -2876,24 +3532,14 @@ declare module "connect/models/InAppPurchase" {
|
|
|
2876
3532
|
}) => Promise<InAppPurchase>;
|
|
2877
3533
|
}
|
|
2878
3534
|
}
|
|
2879
|
-
declare module "connect/models/Territory" {
|
|
2880
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2881
|
-
export interface TerritoryProps {
|
|
2882
|
-
/**
|
|
2883
|
-
* @example 'USD'
|
|
2884
|
-
*/
|
|
2885
|
-
currency: string;
|
|
2886
|
-
}
|
|
2887
|
-
export class Territory extends ConnectModel<TerritoryProps> {
|
|
2888
|
-
static type: string;
|
|
2889
|
-
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
2890
|
-
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
2891
|
-
} | undefined) => Promise<Territory[]>;
|
|
2892
|
-
}
|
|
2893
|
-
}
|
|
2894
3535
|
declare module "connect/models/App" {
|
|
2895
3536
|
import { RequestContext } from "network/Request";
|
|
2896
3537
|
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
3538
|
+
import { AppDataUsage } from "connect/models/AppDataUsage";
|
|
3539
|
+
import { AppDataUsageCategoryId } from "connect/models/AppDataUsageCategory";
|
|
3540
|
+
import { AppDataUsageDataProtectionId } from "connect/models/AppDataUsageDataProtection";
|
|
3541
|
+
import { AppDataUsagePurposeId } from "connect/models/AppDataUsagePurpose";
|
|
3542
|
+
import { AppDataUsagesPublishState } from "connect/models/AppDataUsagesPublishState";
|
|
2897
3543
|
import { AppInfo, AppStoreState } from "connect/models/AppInfo";
|
|
2898
3544
|
import { AppPrice } from "connect/models/AppPrice";
|
|
2899
3545
|
import { AppStoreVersion, AppStoreVersionProps } from "connect/models/AppStoreVersion";
|
|
@@ -2976,6 +3622,9 @@ declare module "connect/models/App" {
|
|
|
2976
3622
|
appPriceTier?: string;
|
|
2977
3623
|
territories?: string[];
|
|
2978
3624
|
}): Promise<App>;
|
|
3625
|
+
getAppDataUsagesAsync({ query, }?: {
|
|
3626
|
+
query?: ConnectQueryParams;
|
|
3627
|
+
}): Promise<AppDataUsage[]>;
|
|
2979
3628
|
getAppStoreVersionsAsync({ query, }?: {
|
|
2980
3629
|
query?: ConnectQueryParams;
|
|
2981
3630
|
}): Promise<AppStoreVersion[]>;
|
|
@@ -3012,6 +3661,9 @@ declare module "connect/models/App" {
|
|
|
3012
3661
|
getEditAppInfoAsync({ includes, }?: {
|
|
3013
3662
|
includes?: string[];
|
|
3014
3663
|
}): Promise<AppInfo | null>;
|
|
3664
|
+
getRejectableAppStoreVersionAsync({ platform, }?: {
|
|
3665
|
+
platform?: Platform;
|
|
3666
|
+
}): Promise<AppStoreVersion | null>;
|
|
3015
3667
|
getLiveAppStoreVersionAsync({ platform, includes, }?: {
|
|
3016
3668
|
platform?: Platform;
|
|
3017
3669
|
includes?: string[];
|
|
@@ -3020,7 +3672,7 @@ declare module "connect/models/App" {
|
|
|
3020
3672
|
platform?: Platform;
|
|
3021
3673
|
includes?: string[];
|
|
3022
3674
|
}): Promise<AppStoreVersion | null>;
|
|
3023
|
-
getPendingReleaseAppStoreVersionAsync({ platform, includes, }
|
|
3675
|
+
getPendingReleaseAppStoreVersionAsync({ platform, includes, }?: {
|
|
3024
3676
|
platform?: Platform;
|
|
3025
3677
|
includes?: string[];
|
|
3026
3678
|
}): Promise<AppStoreVersion | null>;
|
|
@@ -3048,12 +3700,20 @@ declare module "connect/models/App" {
|
|
|
3048
3700
|
getBetaGroupsAsync({ query, }?: {
|
|
3049
3701
|
query?: ConnectQueryParams;
|
|
3050
3702
|
}): Promise<BetaGroup[]>;
|
|
3703
|
+
getAppDataUsagesPublishStateAsync({ query, }?: {
|
|
3704
|
+
query?: ConnectQueryParams;
|
|
3705
|
+
}): Promise<AppDataUsagesPublishState[]>;
|
|
3051
3706
|
createBetaGroupAsync({ name, publicLinkEnabled, publicLinkLimit, publicLinkLimitEnabled, }: {
|
|
3052
3707
|
name: string;
|
|
3053
3708
|
publicLinkEnabled?: boolean;
|
|
3054
3709
|
publicLinkLimit?: number;
|
|
3055
3710
|
publicLinkLimitEnabled?: boolean;
|
|
3056
3711
|
}): Promise<BetaGroup>;
|
|
3712
|
+
createAppDataUsageAsync({ appDataUsageCategory, appDataUsageProtection, appDataUsagePurpose, }: {
|
|
3713
|
+
appDataUsageCategory?: AppDataUsageCategoryId;
|
|
3714
|
+
appDataUsageProtection?: AppDataUsageDataProtectionId;
|
|
3715
|
+
appDataUsagePurpose?: AppDataUsagePurposeId;
|
|
3716
|
+
}): Promise<AppDataUsage>;
|
|
3057
3717
|
createVersionAsync({ versionString, platform, }: Pick<AppStoreVersionProps, 'versionString' | 'platform'>): Promise<AppStoreVersion>;
|
|
3058
3718
|
}
|
|
3059
3719
|
}
|
|
@@ -3121,71 +3781,18 @@ declare module "connect/models/SandboxTester" {
|
|
|
3121
3781
|
}) => Promise<void>;
|
|
3122
3782
|
}
|
|
3123
3783
|
}
|
|
3124
|
-
declare module "connect/models/User" {
|
|
3125
|
-
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
3126
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3127
|
-
import { Territory } from "connect/models/Territory";
|
|
3128
|
-
export enum UserRole {
|
|
3129
|
-
ADMIN = "ADMIN",
|
|
3130
|
-
FINANCE = "FINANCE",
|
|
3131
|
-
TECHNICAL = "TECHNICAL",
|
|
3132
|
-
ACCOUNT_HOLDER = "ACCOUNT_HOLDER",
|
|
3133
|
-
READ_ONLY = "READ_ONLY",
|
|
3134
|
-
SALES = "SALES",
|
|
3135
|
-
MARKETING = "MARKETING",
|
|
3136
|
-
APP_MANAGER = "APP_MANAGER",
|
|
3137
|
-
DEVELOPER = "DEVELOPER",
|
|
3138
|
-
ACCESS_TO_REPORTS = "ACCESS_TO_REPORTS",
|
|
3139
|
-
CUSTOMER_SUPPORT = "CUSTOMER_SUPPORT"
|
|
3140
|
-
}
|
|
3141
|
-
export interface UserProps {
|
|
3142
|
-
username: string | null;
|
|
3143
|
-
firstName: string | null;
|
|
3144
|
-
lastName: string | null;
|
|
3145
|
-
email: string | null;
|
|
3146
|
-
preferredCurrencyTerritory: Territory | null;
|
|
3147
|
-
agreedToTerms: boolean | null;
|
|
3148
|
-
roles: UserRole | null;
|
|
3149
|
-
allAppsVisible: boolean;
|
|
3150
|
-
provisioningAllowed: boolean;
|
|
3151
|
-
emailVettingRequired: boolean;
|
|
3152
|
-
notifications: unknown | null;
|
|
3153
|
-
}
|
|
3154
|
-
export type UserQueryFilter = ConnectQueryFilter<UserProps & {
|
|
3155
|
-
/**
|
|
3156
|
-
* `App` id
|
|
3157
|
-
*/
|
|
3158
|
-
visibleApps: string;
|
|
3159
|
-
}, 'roles' | 'username' | 'visibleApps'>;
|
|
3160
|
-
export class User extends ConnectModel<UserProps> {
|
|
3161
|
-
static type: string;
|
|
3162
|
-
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
3163
|
-
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
3164
|
-
username: string | (string | null)[] | null;
|
|
3165
|
-
roles: UserRole | (UserRole | null)[] | null;
|
|
3166
|
-
visibleApps: string | string[];
|
|
3167
|
-
} & {
|
|
3168
|
-
id?: string | undefined;
|
|
3169
|
-
}>> | undefined;
|
|
3170
|
-
} | undefined) => Promise<User[]>;
|
|
3171
|
-
/**
|
|
3172
|
-
*
|
|
3173
|
-
* @param id `User` id (ex: UNHB5PT4MA)
|
|
3174
|
-
*/
|
|
3175
|
-
static infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
3176
|
-
id: string;
|
|
3177
|
-
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
3178
|
-
}) => Promise<User>;
|
|
3179
|
-
static deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
3180
|
-
id: string;
|
|
3181
|
-
}) => Promise<void>;
|
|
3182
|
-
updateAsync(attributes: Partial<UserProps>): Promise<User>;
|
|
3183
|
-
}
|
|
3184
|
-
}
|
|
3185
3784
|
declare module "connect/index" {
|
|
3186
3785
|
export * from "connect/models/AgeRatingDeclaration";
|
|
3786
|
+
export * from "connect/models/ApiKey";
|
|
3187
3787
|
export * from "connect/models/App";
|
|
3788
|
+
export * from "connect/models/AppDataUsage";
|
|
3789
|
+
export * from "connect/models/AppDataUsageCategory";
|
|
3790
|
+
export * from "connect/models/AppDataUsageDataProtection";
|
|
3791
|
+
export * from "connect/models/AppDataUsageGrouping";
|
|
3792
|
+
export * from "connect/models/AppDataUsagePurpose";
|
|
3793
|
+
export * from "connect/models/AppDataUsagesPublishState";
|
|
3188
3794
|
export * from "connect/models/AppCategory";
|
|
3795
|
+
export * from "connect/models/AppGroup";
|
|
3189
3796
|
export * from "connect/models/AppInfo";
|
|
3190
3797
|
export * from "connect/models/AppInfoLocalization";
|
|
3191
3798
|
export * from "connect/models/AppPrice";
|
|
@@ -3211,13 +3818,17 @@ declare module "connect/index" {
|
|
|
3211
3818
|
export * from "connect/models/ResetRatingsRequest";
|
|
3212
3819
|
export * from "connect/models/SandboxTester";
|
|
3213
3820
|
export * from "connect/models/Territory";
|
|
3821
|
+
export * from "connect/models/MerchantId";
|
|
3214
3822
|
export * from "connect/models/BundleId";
|
|
3215
3823
|
export * from "connect/models/BundleIdCapability";
|
|
3824
|
+
export * from "connect/models/ContentProvider";
|
|
3216
3825
|
export * from "connect/models/Certificate";
|
|
3217
3826
|
export * from "connect/models/Device";
|
|
3218
3827
|
export * from "connect/models/Profile";
|
|
3219
3828
|
export * from "connect/models/InAppPurchase";
|
|
3220
3829
|
export * from "connect/models/User";
|
|
3830
|
+
export * from "connect/models/CloudContainer";
|
|
3831
|
+
export { ConnectModel } from "connect/models/ConnectModel";
|
|
3221
3832
|
}
|
|
3222
3833
|
declare module "AppStoreConnect" {
|
|
3223
3834
|
import * as Auth from "auth/Auth";
|