@expo/apple-utils 0.0.0-alpha.9 → 1.1.0
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/LICENSE +21 -0
- package/build/index.js +1 -1
- package/package.json +6 -4
- package/ts-declarations/expo__app-store/app-store.d.ts +1758 -704
|
@@ -27,6 +27,7 @@ declare module "utils/log" {
|
|
|
27
27
|
namespace log {
|
|
28
28
|
var error: (...args: any[]) => void;
|
|
29
29
|
var newLine: () => void;
|
|
30
|
+
var wrapped: (txt: string) => void;
|
|
30
31
|
var addNewLineIfNone: () => void;
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
@@ -103,11 +104,113 @@ declare module "utils/files" {
|
|
|
103
104
|
export function isDirectory(path: string): boolean;
|
|
104
105
|
export function fileExists(path: string): boolean;
|
|
105
106
|
}
|
|
107
|
+
declare module "connect/Token" {
|
|
108
|
+
import jwt from 'jsonwebtoken';
|
|
109
|
+
/**
|
|
110
|
+
* Used to Sign the .p8 private key that can only be downloaded once from Apple.
|
|
111
|
+
*
|
|
112
|
+
* [Learn more](https://developer-mdn.apple.com/documentation/appstoreconnectapi/generating_tokens_for_api_requests).
|
|
113
|
+
*/
|
|
114
|
+
export interface TokenProps {
|
|
115
|
+
/**
|
|
116
|
+
* p8 file contents:
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* -----BEGIN PRIVATE KEY-----
|
|
120
|
+
* xxxxxxxx/xxxx
|
|
121
|
+
* xxxxxxxxxxxxx
|
|
122
|
+
* xxxxxxxxxxx+x
|
|
123
|
+
* xxxxxxxx
|
|
124
|
+
* -----END PRIVATE KEY-----
|
|
125
|
+
*/
|
|
126
|
+
key: jwt.Secret;
|
|
127
|
+
/**
|
|
128
|
+
* Issuer ID from ASC: Users and Access > Keys | https://appstoreconnect.apple.com/access/api
|
|
129
|
+
*/
|
|
130
|
+
issuerId: string;
|
|
131
|
+
/**
|
|
132
|
+
* Key ID from ASC: Users and Access > Keys | https://appstoreconnect.apple.com/access/api
|
|
133
|
+
*/
|
|
134
|
+
keyId: string;
|
|
135
|
+
/**
|
|
136
|
+
* Duration (seconds) key should last before it needs to be signed again. Max time is 20 minutes (1200).
|
|
137
|
+
*/
|
|
138
|
+
duration?: number;
|
|
139
|
+
}
|
|
140
|
+
export class Token {
|
|
141
|
+
options: TokenProps;
|
|
142
|
+
static sign({ key, issuerId, keyId, duration }: TokenProps): string;
|
|
143
|
+
private token;
|
|
144
|
+
expiration: number;
|
|
145
|
+
constructor(options: TokenProps);
|
|
146
|
+
getToken(): string;
|
|
147
|
+
getDurationMilliseconds(): number;
|
|
148
|
+
refresh(): string;
|
|
149
|
+
/**
|
|
150
|
+
* Returns true if the token has expired and needs to be refreshed.
|
|
151
|
+
*/
|
|
152
|
+
hasExpired(): boolean;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
106
155
|
declare module "utils/array" {
|
|
107
156
|
export function uniqueItems<T = any>(items: T[]): T[];
|
|
108
157
|
export function flat(array: any[], depth?: number): any[];
|
|
109
158
|
export function groupBy<T>(arr: T[], block: (v: T) => any): Record<string, T[]>;
|
|
110
159
|
}
|
|
160
|
+
declare module "portal/Teams" {
|
|
161
|
+
type AppStoreTeamStatus = string | 'active';
|
|
162
|
+
interface AppStoreTeamAgent {
|
|
163
|
+
personId: null | number;
|
|
164
|
+
firstName: null | string;
|
|
165
|
+
lastName: null | string;
|
|
166
|
+
email: null | string;
|
|
167
|
+
developerStatus: null | AppStoreTeamStatus;
|
|
168
|
+
teamMemberId: string;
|
|
169
|
+
}
|
|
170
|
+
interface AppStoreTeamMembership {
|
|
171
|
+
membershipId: string;
|
|
172
|
+
membershipProductId: string;
|
|
173
|
+
status: AppStoreTeamStatus;
|
|
174
|
+
inDeviceResetWindow: boolean;
|
|
175
|
+
inRenewalWindow: boolean;
|
|
176
|
+
dateStart: string;
|
|
177
|
+
dateExpire: string;
|
|
178
|
+
platform: string | 'ios';
|
|
179
|
+
availableDeviceSlots: number;
|
|
180
|
+
name: string;
|
|
181
|
+
}
|
|
182
|
+
interface AppStoreTeamCurrentTeamMember extends AppStoreTeamAgent {
|
|
183
|
+
privileges: Record<string, unknown>;
|
|
184
|
+
roles: string[];
|
|
185
|
+
}
|
|
186
|
+
export interface AppStoreTeam {
|
|
187
|
+
status: AppStoreTeamStatus;
|
|
188
|
+
teamId: string;
|
|
189
|
+
type: 'In-House' | 'Company/Organization' | 'Individual' | string;
|
|
190
|
+
extendedTeamAttributes: Record<string, unknown>;
|
|
191
|
+
teamAgent: AppStoreTeamAgent;
|
|
192
|
+
memberships: AppStoreTeamMembership[];
|
|
193
|
+
currentTeamMember: AppStoreTeamCurrentTeamMember;
|
|
194
|
+
name: string;
|
|
195
|
+
}
|
|
196
|
+
export function getTeamsAsync(): Promise<AppStoreTeam[]>;
|
|
197
|
+
export function selectTeamAsync({ teamId }?: {
|
|
198
|
+
teamId?: string;
|
|
199
|
+
}): Promise<AppStoreTeam>;
|
|
200
|
+
}
|
|
201
|
+
declare module "auth/utils/validate-session" {
|
|
202
|
+
import { AppStoreTeam } from "portal/Teams";
|
|
203
|
+
import { LoginOptions } from "auth/Auth";
|
|
204
|
+
import { UserCredentials } from "auth/Credentials";
|
|
205
|
+
import { AuthState, SessionProvider } from "auth/Session";
|
|
206
|
+
export function getProviderMatchingTeam(providers: SessionProvider[], team?: AppStoreTeam): SessionProvider | null;
|
|
207
|
+
export function logSelectedProvider(provider: SessionProvider): void;
|
|
208
|
+
/**
|
|
209
|
+
* Check if the global cookies are valid, if so, cache the cookies and return the auth state.
|
|
210
|
+
* Will throw if the cookies are expired.
|
|
211
|
+
*/
|
|
212
|
+
export function validateSessionAsync({ providerId, teamId }: Pick<UserCredentials, 'providerId' | 'teamId'>, { autoResolveProvider }: LoginOptions): Promise<AuthState | null>;
|
|
213
|
+
}
|
|
111
214
|
declare module "utils/fastlane-session" {
|
|
112
215
|
import { CookieJar } from 'tough-cookie';
|
|
113
216
|
/**
|
|
@@ -121,6 +224,7 @@ declare module "auth/Session" {
|
|
|
121
224
|
import { CookieJar } from 'tough-cookie';
|
|
122
225
|
import { CookiesJSON } from "network/CookieFileCache";
|
|
123
226
|
import { RequestContext } from "network/Request";
|
|
227
|
+
import { AppStoreTeam } from "portal/Teams";
|
|
124
228
|
export type AuthState = {
|
|
125
229
|
username: string;
|
|
126
230
|
password?: string;
|
|
@@ -184,6 +288,7 @@ declare module "auth/Session" {
|
|
|
184
288
|
*/
|
|
185
289
|
export function fetchCurrentSessionInfoAsync(): Promise<SessionInfo | null>;
|
|
186
290
|
export function getSessionForProviderIdAsync(providerId: number): Promise<SessionInfo>;
|
|
291
|
+
export function getAvailableSessionProviders(): SessionProvider[];
|
|
187
292
|
/**
|
|
188
293
|
* Used to specify which team the user should make requests for.
|
|
189
294
|
* After posting successfully, the returned cookies indicate the team to the App Store Connect API.
|
|
@@ -193,11 +298,35 @@ declare module "auth/Session" {
|
|
|
193
298
|
*/
|
|
194
299
|
export function setSessionProviderIdAsync(id: number): Promise<SessionInfo | null>;
|
|
195
300
|
export function selectSessionProviderAsync(): Promise<SessionProvider>;
|
|
196
|
-
export function promptForSessionProviderAsync(
|
|
301
|
+
export function promptForSessionProviderAsync({ team, }?: {
|
|
302
|
+
team?: AppStoreTeam;
|
|
303
|
+
}): Promise<SessionProvider>;
|
|
197
304
|
export * from "utils/fastlane-session";
|
|
198
305
|
}
|
|
306
|
+
declare module "connect/ConnectAPIErrors" {
|
|
307
|
+
interface AssociatedErrorData {
|
|
308
|
+
id: string;
|
|
309
|
+
status: string;
|
|
310
|
+
code: string;
|
|
311
|
+
title: string;
|
|
312
|
+
detail?: string;
|
|
313
|
+
source?: {
|
|
314
|
+
pointer: string;
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
export interface AssociatedErrors extends AssociatedErrorData {
|
|
318
|
+
meta: {
|
|
319
|
+
associatedErrors: Record<string, AssociatedErrorData[]>;
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
export function parseConnectErrors(errors: AssociatedErrors[]): string;
|
|
323
|
+
}
|
|
324
|
+
declare module "utils/env" {
|
|
325
|
+
export const EXPO_APP_STORE_DEBUG: boolean;
|
|
326
|
+
}
|
|
199
327
|
declare module "utils/error" {
|
|
200
328
|
import assert from 'assert';
|
|
329
|
+
import { AssociatedErrors } from "connect/ConnectAPIErrors";
|
|
201
330
|
export { assert };
|
|
202
331
|
export class ITunesConnectError extends Error {
|
|
203
332
|
}
|
|
@@ -214,6 +343,8 @@ declare module "utils/error" {
|
|
|
214
343
|
export class NetworkError extends Error {
|
|
215
344
|
response: NetworkResponse;
|
|
216
345
|
constructor(message: string, response: NetworkResponse);
|
|
346
|
+
/** Errors thrown from the App Store Connect API have an `errors` array in the response data, these errors are very useful. */
|
|
347
|
+
appStoreConnectErrors(): AssociatedErrors | null;
|
|
217
348
|
}
|
|
218
349
|
export class InternalServerError extends NetworkError {
|
|
219
350
|
constructor(response: NetworkResponse);
|
|
@@ -232,6 +363,12 @@ declare module "utils/error" {
|
|
|
232
363
|
export class SessionExpiredError extends AuthError {
|
|
233
364
|
}
|
|
234
365
|
export class UnauthorizedAccessError extends AuthError {
|
|
366
|
+
constructor(response: NetworkResponse, message?: string);
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* 401 that more specifically is related to unauthenticated requests.
|
|
370
|
+
*/
|
|
371
|
+
export class UnauthenticatedError extends UnauthorizedAccessError {
|
|
235
372
|
constructor(response: NetworkResponse);
|
|
236
373
|
}
|
|
237
374
|
export class AppleTimeoutError extends NetworkError {
|
|
@@ -246,12 +383,24 @@ declare module "utils/error" {
|
|
|
246
383
|
export class AccessForbiddenError extends NetworkError {
|
|
247
384
|
constructor(response: NetworkResponse);
|
|
248
385
|
}
|
|
386
|
+
export type ServiceErrorInfo = {
|
|
387
|
+
code: string;
|
|
388
|
+
title: string;
|
|
389
|
+
message: string;
|
|
390
|
+
suppressDismissal: boolean;
|
|
391
|
+
};
|
|
392
|
+
export class ServiceError extends NetworkError {
|
|
393
|
+
info: ServiceErrorInfo;
|
|
394
|
+
constructor(info: ServiceErrorInfo, response: NetworkResponse);
|
|
395
|
+
}
|
|
249
396
|
export class InsufficientPermissions extends Error {
|
|
250
397
|
constructor(message?: string);
|
|
251
398
|
}
|
|
252
399
|
export class UnexpectedResponse extends Error {
|
|
253
400
|
errorInfo: string | Record<string, any>;
|
|
254
|
-
|
|
401
|
+
data?: any;
|
|
402
|
+
readonly name = "UnexpectedAppleResponse";
|
|
403
|
+
constructor(errorInfo: string | Record<string, any>, data?: any);
|
|
255
404
|
preferredErrorInfo(): string | null;
|
|
256
405
|
}
|
|
257
406
|
export function sanitizeResultStringErrors(errorInfo: any): null | string;
|
|
@@ -268,9 +417,9 @@ declare module "portal/PortalAPI" {
|
|
|
268
417
|
type?: DevPortalAppIDType;
|
|
269
418
|
}): string;
|
|
270
419
|
export function getValidName(name: string): string;
|
|
271
|
-
export function portalRequestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, { data, ...rest }: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
420
|
+
export function portalRequestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, { data, ...rest }: RequestProps, options?: Omit<ParsingOptions, 'supportedAuthType'>): Promise<R>;
|
|
272
421
|
export function parseValidationMessages(data: any): string[];
|
|
273
|
-
export function portalRequestWithParamsAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, { params, ...rest }: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
422
|
+
export function portalRequestWithParamsAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, { params, ...rest }: RequestProps, options?: Omit<ParsingOptions, 'supportedAuthType'>): Promise<R>;
|
|
274
423
|
export function parseAppStoreResponse<T extends ParsedResponseResults>(response: AxiosResponse<Record<string, any> | string>, targetDataKey?: string): T;
|
|
275
424
|
}
|
|
276
425
|
declare module "utils/retry" {
|
|
@@ -294,8 +443,9 @@ declare module "network/AxiosLogger" {
|
|
|
294
443
|
export function applyLoggingMiddleware({ interceptors }: AxiosInstance): void;
|
|
295
444
|
}
|
|
296
445
|
declare module "network/Request" {
|
|
297
|
-
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
446
|
+
import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
298
447
|
import { CookieJar } from 'tough-cookie';
|
|
448
|
+
import { Token } from "connect/Token";
|
|
299
449
|
export type RequestContext = {
|
|
300
450
|
/**
|
|
301
451
|
* Indicates which team to use with the iris API
|
|
@@ -306,9 +456,9 @@ declare module "network/Request" {
|
|
|
306
456
|
*/
|
|
307
457
|
teamId?: string;
|
|
308
458
|
/**
|
|
309
|
-
*
|
|
459
|
+
* Signed JWT API token or API key instance used to generate signed tokens automatically.
|
|
310
460
|
*/
|
|
311
|
-
token?:
|
|
461
|
+
token?: string | Token;
|
|
312
462
|
};
|
|
313
463
|
export type RequestHeaders = Record<string, string>;
|
|
314
464
|
export type RequestProps = Pick<AxiosRequestConfig, 'timeout' | 'params' | 'responseType' | 'paramsSerializer' | 'url' | 'data' | 'baseURL'> & {
|
|
@@ -316,14 +466,25 @@ declare module "network/Request" {
|
|
|
316
466
|
headers?: RequestHeaders;
|
|
317
467
|
method: 'post' | 'get' | 'put' | 'patch' | 'delete';
|
|
318
468
|
};
|
|
469
|
+
export type AuthType = 'token' | 'cookies';
|
|
319
470
|
export interface ParsingOptions {
|
|
471
|
+
/**
|
|
472
|
+
* Used to dictate if an API cannot be used for a certain request.
|
|
473
|
+
*/
|
|
474
|
+
supportedAuthType?: AuthType;
|
|
320
475
|
dataKey?: string;
|
|
321
476
|
shouldParseDataForErrors?: boolean;
|
|
322
477
|
retries?: number;
|
|
323
478
|
autoPaginate?: boolean;
|
|
324
479
|
shouldRetryRequest?: (error: any) => boolean;
|
|
325
480
|
}
|
|
326
|
-
const axios:
|
|
481
|
+
const axios: AxiosInstance;
|
|
482
|
+
/**
|
|
483
|
+
* The Axios instance is exposed to allow `eas-cli` attach analytics and debug loggers.
|
|
484
|
+
* The instance itself is singleton, but externally attaching a new request interceptor allows for added functionality.
|
|
485
|
+
*/
|
|
486
|
+
export function getRequestClient(): AxiosInstance;
|
|
487
|
+
export function getSupportedContext(context: RequestContext, supportedAuthType?: AuthType): RequestContext | null;
|
|
327
488
|
export function setCookieJar(cookieJar?: CookieJar | string): void;
|
|
328
489
|
export function getCookieJar(): CookieJar;
|
|
329
490
|
export function getRetryDelay(): number;
|
|
@@ -366,6 +527,25 @@ declare module "network/CookieFileCache" {
|
|
|
366
527
|
username: string;
|
|
367
528
|
}): Promise<void>;
|
|
368
529
|
}
|
|
530
|
+
declare module "auth/Auth.types" {
|
|
531
|
+
export type LoginOptions = {
|
|
532
|
+
/**
|
|
533
|
+
* Should attempt to choose a provider that matches the team name.
|
|
534
|
+
*
|
|
535
|
+
* @default false
|
|
536
|
+
*/
|
|
537
|
+
autoResolveProvider?: boolean;
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
declare module "auth/Hashcash" {
|
|
541
|
+
export function getDateString(): string;
|
|
542
|
+
export function makeHashcash({ bits, challenge, date, }: {
|
|
543
|
+
bits: number;
|
|
544
|
+
challenge: string;
|
|
545
|
+
date?: string;
|
|
546
|
+
}): string;
|
|
547
|
+
export function mostSignificantBitFirst(s: string): string;
|
|
548
|
+
}
|
|
369
549
|
declare module "auth/ServiceKey" {
|
|
370
550
|
export interface ItunesServiceKey {
|
|
371
551
|
authServiceUrl: string;
|
|
@@ -438,10 +618,15 @@ declare module "auth/TwoFactorAuthPrompts" {
|
|
|
438
618
|
message?: string;
|
|
439
619
|
}): Promise<string>;
|
|
440
620
|
}
|
|
621
|
+
declare module "auth/utils/provider-request" {
|
|
622
|
+
import { AxiosResponse } from 'axios';
|
|
623
|
+
import { ParsingOptions, RequestContext, RequestProps } from "network/Request";
|
|
624
|
+
export function providerRequestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
625
|
+
}
|
|
441
626
|
declare module "itunes/ItunesAPI" {
|
|
442
627
|
import { AxiosResponse } from 'axios';
|
|
443
|
-
import { ParsingOptions, RequestProps } from "network/Request";
|
|
444
|
-
export function itunesRequestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
628
|
+
import { ParsingOptions, RequestContext, RequestProps } from "network/Request";
|
|
629
|
+
export function itunesRequestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
445
630
|
/**
|
|
446
631
|
* Parses and asserts errors for all of the deeply nested error messages that are returned from the iTunes Connect API.
|
|
447
632
|
*
|
|
@@ -546,77 +731,190 @@ declare module "auth/utils/load-session" {
|
|
|
546
731
|
username: string;
|
|
547
732
|
}): Promise<boolean>;
|
|
548
733
|
}
|
|
549
|
-
declare module "portal/Teams" {
|
|
550
|
-
type AppStoreTeamStatus = string | 'active';
|
|
551
|
-
interface AppStoreTeamAgent {
|
|
552
|
-
personId: null | number;
|
|
553
|
-
firstName: null | string;
|
|
554
|
-
lastName: null | string;
|
|
555
|
-
email: null | string;
|
|
556
|
-
developerStatus: null | AppStoreTeamStatus;
|
|
557
|
-
teamMemberId: string;
|
|
558
|
-
}
|
|
559
|
-
interface AppStoreTeamMembership {
|
|
560
|
-
membershipId: string;
|
|
561
|
-
membershipProductId: string;
|
|
562
|
-
status: AppStoreTeamStatus;
|
|
563
|
-
inDeviceResetWindow: boolean;
|
|
564
|
-
inRenewalWindow: boolean;
|
|
565
|
-
dateStart: string;
|
|
566
|
-
dateExpire: string;
|
|
567
|
-
platform: string | 'ios';
|
|
568
|
-
availableDeviceSlots: number;
|
|
569
|
-
name: string;
|
|
570
|
-
}
|
|
571
|
-
interface AppStoreTeamCurrentTeamMember extends AppStoreTeamAgent {
|
|
572
|
-
privileges: Record<string, unknown>;
|
|
573
|
-
roles: string[];
|
|
574
|
-
}
|
|
575
|
-
export interface AppStoreTeam {
|
|
576
|
-
status: AppStoreTeamStatus;
|
|
577
|
-
teamId: string;
|
|
578
|
-
type: 'In-House' | 'Company/Organization' | 'Individual' | string;
|
|
579
|
-
extendedTeamAttributes: Record<string, unknown>;
|
|
580
|
-
teamAgent: AppStoreTeamAgent;
|
|
581
|
-
memberships: AppStoreTeamMembership[];
|
|
582
|
-
currentTeamMember: AppStoreTeamCurrentTeamMember;
|
|
583
|
-
name: string;
|
|
584
|
-
}
|
|
585
|
-
export function getTeamsAsync(): Promise<AppStoreTeam[]>;
|
|
586
|
-
export function selectTeamAsync(): Promise<AppStoreTeam>;
|
|
587
|
-
}
|
|
588
|
-
declare module "auth/utils/validate-session" {
|
|
589
|
-
import { UserCredentials } from "auth/Credentials";
|
|
590
|
-
import { AuthState } from "auth/Session";
|
|
591
|
-
/**
|
|
592
|
-
* Check if the global cookies are valid, if so, cache the cookies and return the auth state.
|
|
593
|
-
* Will throw if the cookies are expired.
|
|
594
|
-
*/
|
|
595
|
-
export function validateSessionAsync({ providerId, teamId, }: Pick<UserCredentials, 'providerId' | 'teamId'>): Promise<AuthState | null>;
|
|
596
|
-
}
|
|
597
734
|
declare module "auth/utils/restore-session" {
|
|
735
|
+
import { LoginOptions } from "auth/Auth.types";
|
|
598
736
|
import { UserCredentials } from "auth/Credentials";
|
|
599
737
|
import { AuthState } from "auth/Session";
|
|
600
|
-
export function tryRestoringAuthStateFromCookiesFileAsync({ username, providerId, teamId, }: Partial<Pick<UserCredentials, 'username' | 'providerId' | 'teamId'
|
|
601
|
-
export function tryRestoringAuthStateFromCookiesEnvironmentVariableAsync({ providerId, teamId
|
|
602
|
-
export function tryRestoringAuthStateFromCookiesJSONAsync({ cookies, providerId, teamId
|
|
603
|
-
export function tryRestoringAuthStateFromUserCredentialsAsync(userCredentials: Partial<Pick<UserCredentials, 'username' | 'cookies' | 'providerId' | 'teamId'
|
|
738
|
+
export function tryRestoringAuthStateFromCookiesFileAsync({ username, providerId, teamId, }: Partial<Pick<UserCredentials, 'username' | 'providerId' | 'teamId'>>, options: LoginOptions): Promise<AuthState | null>;
|
|
739
|
+
export function tryRestoringAuthStateFromCookiesEnvironmentVariableAsync({ providerId, teamId }: Partial<Pick<UserCredentials, 'username' | 'providerId' | 'teamId'>>, options: LoginOptions): Promise<AuthState | null>;
|
|
740
|
+
export function tryRestoringAuthStateFromCookiesJSONAsync({ cookies, providerId, teamId }: Pick<UserCredentials, 'cookies' | 'providerId' | 'teamId'>, options: LoginOptions): Promise<AuthState | null>;
|
|
741
|
+
export function tryRestoringAuthStateFromUserCredentialsAsync(userCredentials: Partial<Pick<UserCredentials, 'username' | 'cookies' | 'providerId' | 'teamId'>>, options: LoginOptions): Promise<AuthState | null>;
|
|
604
742
|
}
|
|
605
743
|
declare module "auth/Auth" {
|
|
744
|
+
import { LoginOptions } from "auth/Auth.types";
|
|
606
745
|
import { UserCredentials } from "auth/Credentials";
|
|
607
746
|
import { ItunesServiceKey } from "auth/ServiceKey";
|
|
608
747
|
import { AuthState } from "auth/Session";
|
|
748
|
+
import { tryRestoringAuthStateFromUserCredentialsAsync } from "auth/utils/restore-session";
|
|
609
749
|
interface AppStoreConnectLoginInfo {
|
|
610
750
|
scnt: string;
|
|
611
751
|
sessionId: string;
|
|
612
752
|
isTFAEnabled: boolean;
|
|
613
753
|
}
|
|
754
|
+
export function resetInMemoryData(): void;
|
|
614
755
|
export function logoutAsync(userCredentials?: Partial<Pick<UserCredentials, 'username'>>): Promise<void>;
|
|
615
|
-
export function loginWithCookiesAsync(userCredentials: Pick<UserCredentials, 'cookies'
|
|
616
|
-
export function loginAsync(userCredentials?: Partial<UserCredentials
|
|
756
|
+
export function loginWithCookiesAsync(userCredentials: Pick<UserCredentials, 'cookies'>, options?: LoginOptions): Promise<AuthState | null>;
|
|
757
|
+
export function loginAsync(userCredentials?: Partial<UserCredentials>, options?: LoginOptions): Promise<AuthState>;
|
|
758
|
+
export function loginWithUserCredentialsAsync(userCredentials: UserCredentials, options?: LoginOptions): Promise<AuthState | null>;
|
|
617
759
|
export function attemptLoginRequestAsync(credentials: UserCredentials, serviceKey: ItunesServiceKey): Promise<AppStoreConnectLoginInfo | {
|
|
618
760
|
isTFAEnabled: false;
|
|
619
761
|
}>;
|
|
762
|
+
export { tryRestoringAuthStateFromUserCredentialsAsync, UserCredentials, LoginOptions };
|
|
763
|
+
}
|
|
764
|
+
declare module "itunes/Agreements" {
|
|
765
|
+
import { SessionProvider } from "auth/Session";
|
|
766
|
+
import { RequestContext } from "network/Request";
|
|
767
|
+
type ITCAgreementStatus = 'ActivePendingUserInfo' | 'Active' | string;
|
|
768
|
+
type ITCAgreementContractContentTypes = 'contractContentTypeDisplay.iOSFreeApps' | 'contractContentTypeDisplay.MacOSXFreeApplications' | string;
|
|
769
|
+
/**
|
|
770
|
+
* A value like AUS, BRA, USA, AUS
|
|
771
|
+
*/
|
|
772
|
+
type ITCAgreementISOCode = string;
|
|
773
|
+
export type ITCContractStatus = 'FREE_APP_AGREEMENT_OUTDATED' | 'PAID_APP_AGREEMENT_OUTDATED' | 'FREE_APP_AGREEMENT_ACTIVE' | 'PAID_APP_AGREEMENT_ACTIVE' | 'EXPIRED_MEMBERSHIP';
|
|
774
|
+
export interface ITCAgreement {
|
|
775
|
+
/**
|
|
776
|
+
* @example 'a1234bcd-6767-4c9e-b5d7-35a4a66206f7'
|
|
777
|
+
*/
|
|
778
|
+
contractId: string;
|
|
779
|
+
/**
|
|
780
|
+
* @example 'a1234bcd-00d9-4605-bd6b-637bfeb90550'
|
|
781
|
+
*/
|
|
782
|
+
configId: string;
|
|
783
|
+
/**
|
|
784
|
+
* @example 5014 | 116
|
|
785
|
+
*/
|
|
786
|
+
configVersion: number;
|
|
787
|
+
/**
|
|
788
|
+
* `false` if the contract needs to be updated.
|
|
789
|
+
*/
|
|
790
|
+
configIsLatestVersion: boolean;
|
|
791
|
+
/**
|
|
792
|
+
* @example '2020-12-18T12:00:00Z' | ''
|
|
793
|
+
*/
|
|
794
|
+
configValidUntilDate: string;
|
|
795
|
+
/**
|
|
796
|
+
* A string ID indicating the new contract agreement. `null` when the contract is up to date.
|
|
797
|
+
*
|
|
798
|
+
* @example 'a1234bcd-00d9-4605-bd6b-637bfeb90550'
|
|
799
|
+
*/
|
|
800
|
+
availableNewContractConfigId: string | null;
|
|
801
|
+
/**
|
|
802
|
+
* @example 'MS123098050'
|
|
803
|
+
*/
|
|
804
|
+
msNumber: string;
|
|
805
|
+
/**
|
|
806
|
+
* @example 'PurpleSoftware'
|
|
807
|
+
*/
|
|
808
|
+
providerType: string;
|
|
809
|
+
contractContentTypes: ITCAgreementContractContentTypes[];
|
|
810
|
+
/**
|
|
811
|
+
* @example 'contractConfigDisplay.FreeApplications' | 'contractConfigDisplay.PaidApplications'
|
|
812
|
+
*/
|
|
813
|
+
contractType: string;
|
|
814
|
+
countries: string[];
|
|
815
|
+
contractTerritories: string[];
|
|
816
|
+
status: ITCAgreementStatus;
|
|
817
|
+
legalEntity: {
|
|
818
|
+
/**
|
|
819
|
+
* @example 'Evan Bacon'
|
|
820
|
+
*/
|
|
821
|
+
legalEntityName: string;
|
|
822
|
+
isOrganization: null | boolean;
|
|
823
|
+
};
|
|
824
|
+
applicableActions: {
|
|
825
|
+
view: string[];
|
|
826
|
+
edit: string[];
|
|
827
|
+
setup: string[];
|
|
828
|
+
extLink: string[];
|
|
829
|
+
};
|
|
830
|
+
isInEffect: boolean;
|
|
831
|
+
isFreeContract: boolean;
|
|
832
|
+
editLegalEntity: boolean;
|
|
833
|
+
legalEntityErrors: unknown[];
|
|
834
|
+
locale: null | string;
|
|
835
|
+
agreementRequiresLegalEntity: boolean;
|
|
836
|
+
/**
|
|
837
|
+
* @example '2020-08-08T12:00:00Z'
|
|
838
|
+
*/
|
|
839
|
+
effectiveDate: string;
|
|
840
|
+
/**
|
|
841
|
+
* @example '2021-02-22T03:59:59Z'
|
|
842
|
+
*/
|
|
843
|
+
expirationDate: string;
|
|
844
|
+
/**
|
|
845
|
+
* A map of ISO codes to arrays.
|
|
846
|
+
*
|
|
847
|
+
* @example `{ BRA: [Array], USA: [Array], AUS: [Array] }`
|
|
848
|
+
*/
|
|
849
|
+
countryTaxFormMap: Record<ITCAgreementISOCode, unknown[]>;
|
|
850
|
+
selectedTaxCountries: ITCAgreementISOCode[];
|
|
851
|
+
paidBookApplicationRevertable: boolean;
|
|
852
|
+
hideBankSection: boolean;
|
|
853
|
+
hideEditTaxFormSelection: boolean;
|
|
854
|
+
hideTermsSection: boolean;
|
|
855
|
+
isPreGracePeriod: boolean;
|
|
856
|
+
isPostGracePeriod: boolean;
|
|
857
|
+
canShowRoyalties: boolean;
|
|
858
|
+
forAllLegalEntities: boolean;
|
|
859
|
+
/**
|
|
860
|
+
* @example 5014 | 116
|
|
861
|
+
*/
|
|
862
|
+
version: number;
|
|
863
|
+
/**
|
|
864
|
+
* @example 1596937920000
|
|
865
|
+
*/
|
|
866
|
+
created: number;
|
|
867
|
+
disableTaxBankOperations: boolean;
|
|
868
|
+
}
|
|
869
|
+
export interface ITCContractMessage {
|
|
870
|
+
id: 'contract_message' | 'returned_payment';
|
|
871
|
+
group: string | 'Alert';
|
|
872
|
+
/**
|
|
873
|
+
* @example 'Developer Program Membership Expired'
|
|
874
|
+
*/
|
|
875
|
+
subject: string;
|
|
876
|
+
/**
|
|
877
|
+
* @example `<b>Review the updated Paid Applications Schedule.</b><br />In order to update your existing apps, create new in-app purchases, and submit new apps to the App Store, the user with the Legal role (Account Holder) must review and accept the Paid Applications Schedule (Schedule 2 to the Apple Developer Program License Agreement) in the <a href="/agreements/#" target="_self">Agreements, Tax, and Banking</a> module.<br /><br /> To accept this agreement, they must have already accepted the latest version of the Apple Developer Program License Agreement in their <a href="http://developer-mdn.apple.com/membercenter/index.action">account on the developer website<a/>.<br />`
|
|
878
|
+
*/
|
|
879
|
+
message: string;
|
|
880
|
+
priority: unknown | null;
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
*
|
|
884
|
+
* @param publicProviderId a string indicating the provider like `12a3bc45-1234-12a3-a123-1a2b3c45d6e7`
|
|
885
|
+
*/
|
|
886
|
+
export function getAgreementsForPublicProviderAsync(context: RequestContext, { publicProviderId }: Pick<SessionProvider, 'publicProviderId'>): Promise<{
|
|
887
|
+
agreements: ITCAgreement[];
|
|
888
|
+
} | null>;
|
|
889
|
+
/**
|
|
890
|
+
* Query the agreements that are shown in ASC on the [agreements](https://appstoreconnect.apple.com/agreements/) page.
|
|
891
|
+
*
|
|
892
|
+
* @param publicProviderId a string indicating the provider like `12a3bc45-1234-12a3-a123-1a2b3c45d6e7`
|
|
893
|
+
*/
|
|
894
|
+
export function getAgreementsAsync(context: Pick<RequestContext, 'providerId'>): Promise<{
|
|
895
|
+
agreements: ITCAgreement[];
|
|
896
|
+
} | null>;
|
|
897
|
+
/**
|
|
898
|
+
* Determine what the ITC user is capable of doing.
|
|
899
|
+
* This is invoked in ASC when the user lands on the [apps](https://appstoreconnect.apple.com/apps) page.
|
|
900
|
+
* The results are then used to warn the user that creating an app is not possible yet.
|
|
901
|
+
*/
|
|
902
|
+
export function getCapabilitiesAsync(context: Pick<RequestContext, 'providerId'>): Promise<{
|
|
903
|
+
contractStatus: ITCContractStatus;
|
|
904
|
+
} | null>;
|
|
905
|
+
/**
|
|
906
|
+
* Return the messages provided by Apple for fixing contract issues,
|
|
907
|
+
* This is invoked in ASC on the initial [home page](https://appstoreconnect.apple.com/) after authenticating.
|
|
908
|
+
* The results are used to populate the alert boxes.
|
|
909
|
+
*
|
|
910
|
+
* When a user has admin status, and a contract needs to be renewed, the message will have links in it.
|
|
911
|
+
* Otherwise the same message will be returned without links.
|
|
912
|
+
*
|
|
913
|
+
* Having messages doesn't mean the user cannot create apps, sometimes messages can be related to outages or other Apple developer news.
|
|
914
|
+
*
|
|
915
|
+
* @param context
|
|
916
|
+
*/
|
|
917
|
+
export function getContractMessagesAsync(context: RequestContext): Promise<ITCContractMessage[] | null>;
|
|
620
918
|
}
|
|
621
919
|
declare module "utils/pagination" {
|
|
622
920
|
export enum PaginationSort {
|
|
@@ -712,7 +1010,7 @@ declare module "connect/ClientAPI" {
|
|
|
712
1010
|
import { AxiosResponse } from 'axios';
|
|
713
1011
|
import { ParsingOptions, RequestContext, RequestProps } from "network/Request";
|
|
714
1012
|
export interface ClientAPI<Response, Props extends RequestProps = RequestProps> {
|
|
715
|
-
|
|
1013
|
+
getHostname(context: RequestContext): string;
|
|
716
1014
|
requestAsync: <T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: Props, options?: ParsingOptions) => Promise<R>;
|
|
717
1015
|
requestAndParseAsync: <T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: Props, options?: ParsingOptions) => Promise<Response | null>;
|
|
718
1016
|
parseResponse: <T>(context: RequestContext, response: AxiosResponse<T>) => Response | null;
|
|
@@ -731,7 +1029,7 @@ declare module "connect/models/ConnectModel" {
|
|
|
731
1029
|
* Represents a complex object type returned from the App Store Connect API.
|
|
732
1030
|
*/
|
|
733
1031
|
export class ConnectModel<T extends ConnectModelAttributes = ConnectModelAttributes> {
|
|
734
|
-
|
|
1032
|
+
context: RequestContext;
|
|
735
1033
|
id: string;
|
|
736
1034
|
attributes: T;
|
|
737
1035
|
constructor(context: RequestContext, id: string, attributes: T);
|
|
@@ -772,29 +1070,16 @@ declare module "connect/ConnectAPI" {
|
|
|
772
1070
|
}>;
|
|
773
1071
|
export interface ConnectQueryParams<F extends Record<string, any> = Record<string, any>> {
|
|
774
1072
|
filter?: F;
|
|
1073
|
+
fields?: F;
|
|
775
1074
|
includes?: string[];
|
|
776
1075
|
limit?: number;
|
|
777
1076
|
sort?: string;
|
|
778
1077
|
cursor?: string;
|
|
779
1078
|
}
|
|
780
|
-
interface AssociatedErrorData {
|
|
781
|
-
id: string;
|
|
782
|
-
status: string;
|
|
783
|
-
code: string;
|
|
784
|
-
title: string;
|
|
785
|
-
detail?: string;
|
|
786
|
-
source?: {
|
|
787
|
-
pointer: string;
|
|
788
|
-
};
|
|
789
|
-
}
|
|
790
|
-
interface AssociatedErrors extends AssociatedErrorData {
|
|
791
|
-
meta: {
|
|
792
|
-
associatedErrors: Record<string, AssociatedErrorData[]>;
|
|
793
|
-
};
|
|
794
|
-
}
|
|
795
1079
|
export class ConnectClientAPI implements ClientAPI<ConnectResponse> {
|
|
796
|
-
|
|
1080
|
+
getHostname(context: RequestContext): string;
|
|
797
1081
|
requestFromAPIAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
1082
|
+
getSupportedContext(context: RequestContext, request: RequestProps, options: ParsingOptions): RequestContext;
|
|
798
1083
|
requestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
799
1084
|
fetchAllModelsAsync<M extends ConnectModel = ConnectModel, T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<M[]>;
|
|
800
1085
|
fetchSingleModelAsync<M extends ConnectModel = ConnectModel, T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<M>;
|
|
@@ -808,21 +1093,37 @@ declare module "connect/ConnectAPI" {
|
|
|
808
1093
|
type: string;
|
|
809
1094
|
id: string;
|
|
810
1095
|
}): Promise<void>;
|
|
1096
|
+
createDeleteMethod(type: string): (context: RequestContext, props: {
|
|
1097
|
+
id: string;
|
|
1098
|
+
}) => Promise<void>;
|
|
1099
|
+
createInfoMethod<T extends ConnectModel>({ type, defaultQuery, }: {
|
|
1100
|
+
type: string;
|
|
1101
|
+
defaultQuery?: ConnectQueryParams;
|
|
1102
|
+
}): (context: RequestContext, props: {
|
|
1103
|
+
id: string;
|
|
1104
|
+
query?: ConnectQueryParams;
|
|
1105
|
+
}) => Promise<T>;
|
|
1106
|
+
createGetMethod<T extends ConnectModel, Filter extends Record<string, any> = Record<string, any>>({ type, defaultQuery, }: {
|
|
1107
|
+
type: string;
|
|
1108
|
+
defaultQuery?: ConnectQueryParams<Filter>;
|
|
1109
|
+
}): (context: RequestContext, props?: {
|
|
1110
|
+
query?: ConnectQueryParams<Filter>;
|
|
1111
|
+
}) => Promise<T[]>;
|
|
811
1112
|
createModelAsync<T>(context: RequestContext, { included, ...data }: Omit<ConnectModelData, 'id'> & {
|
|
812
1113
|
included?: ConnectModelData[];
|
|
813
1114
|
}, options?: ParsingOptions): Promise<T>;
|
|
814
1115
|
parseResponse<T>(context: RequestContext, response: AxiosResponse<T>): ConnectResponse;
|
|
815
1116
|
}
|
|
816
1117
|
export const client: ConnectClientAPI;
|
|
817
|
-
export function
|
|
818
|
-
export function
|
|
1118
|
+
export function filterQueryParamsWithDefaults(query?: ConnectQueryParams, defaultQuery?: ConnectQueryParams): Record<string, any>;
|
|
1119
|
+
export function filterQueryParams({ fields, filter, includes, limit, sort, cursor, }?: ConnectQueryParams): Record<string, any>;
|
|
819
1120
|
}
|
|
820
1121
|
declare module "connect/IrisAPI" {
|
|
821
1122
|
import { AxiosResponse } from 'axios';
|
|
822
1123
|
import { ParsingOptions, RequestContext, RequestProps } from "network/Request";
|
|
823
1124
|
import { ConnectClientAPI } from "connect/ConnectAPI";
|
|
824
1125
|
class IrisClientAPI extends ConnectClientAPI {
|
|
825
|
-
|
|
1126
|
+
getHostname(context: RequestContext): string;
|
|
826
1127
|
requestFromAPIAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
827
1128
|
}
|
|
828
1129
|
export const irisClient: IrisClientAPI;
|
|
@@ -842,6 +1143,8 @@ declare module "connect/models/AgeRatingDeclaration" {
|
|
|
842
1143
|
export interface AgeRatingDeclarationProps {
|
|
843
1144
|
alcoholTobaccoOrDrugUseOrReferences: Rating | null;
|
|
844
1145
|
gamblingSimulated: Rating | null;
|
|
1146
|
+
gambling: boolean | null;
|
|
1147
|
+
contests: Rating | null;
|
|
845
1148
|
medicalOrTreatmentInformation: Rating | null;
|
|
846
1149
|
profanityOrCrudeHumor: Rating | null;
|
|
847
1150
|
sexualContentGraphicAndNudity: Rating | null;
|
|
@@ -851,9 +1154,11 @@ declare module "connect/models/AgeRatingDeclaration" {
|
|
|
851
1154
|
violenceCartoonOrFantasy: Rating | null;
|
|
852
1155
|
violenceRealisticProlongedGraphicOrSadistic: Rating | null;
|
|
853
1156
|
violenceRealistic: Rating | null;
|
|
854
|
-
gamblingAndContests: boolean | null;
|
|
855
1157
|
unrestrictedWebAccess: boolean | null;
|
|
1158
|
+
seventeenPlus: boolean | null;
|
|
856
1159
|
kidsAgeBand: KidsAge | null;
|
|
1160
|
+
/** @deprecated 1.6 */
|
|
1161
|
+
gamblingAndContests: boolean | null;
|
|
857
1162
|
}
|
|
858
1163
|
/**
|
|
859
1164
|
* Used for updating basic metadata.
|
|
@@ -863,36 +1168,641 @@ declare module "connect/models/AgeRatingDeclaration" {
|
|
|
863
1168
|
updateAsync(options: Partial<AgeRatingDeclarationProps>): Promise<AgeRatingDeclaration>;
|
|
864
1169
|
}
|
|
865
1170
|
}
|
|
866
|
-
declare module "connect/
|
|
867
|
-
import {
|
|
868
|
-
|
|
869
|
-
import { ConnectClientAPI } from "connect/ConnectAPI";
|
|
870
|
-
class ProvisioningClientAPI extends ConnectClientAPI {
|
|
871
|
-
get hostname(): string;
|
|
872
|
-
requestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
1171
|
+
declare module "connect/models/ContentProvider" {
|
|
1172
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1173
|
+
export interface ContentProviderProps {
|
|
873
1174
|
/**
|
|
874
|
-
*
|
|
875
|
-
*
|
|
876
|
-
* @param request
|
|
877
|
-
* @param options
|
|
1175
|
+
* @example "Evan Bacon"
|
|
878
1176
|
*/
|
|
879
|
-
|
|
1177
|
+
name: string;
|
|
1178
|
+
/**
|
|
1179
|
+
* @example "PURPLESOFTWARE"
|
|
1180
|
+
*/
|
|
1181
|
+
contentType: string;
|
|
1182
|
+
/**
|
|
1183
|
+
* @example "ACTIVE"
|
|
1184
|
+
*/
|
|
1185
|
+
status: string;
|
|
1186
|
+
autoRenew: boolean;
|
|
1187
|
+
/**
|
|
1188
|
+
* @example "QQ57RJ5UTD" (Team ID)
|
|
1189
|
+
*/
|
|
1190
|
+
organizationId: string;
|
|
1191
|
+
}
|
|
1192
|
+
export class ContentProvider extends ConnectModel<ContentProviderProps> {
|
|
1193
|
+
static type: string;
|
|
1194
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1195
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1196
|
+
} | undefined) => Promise<ContentProvider[]>;
|
|
880
1197
|
}
|
|
881
|
-
export const provisioningClient: ProvisioningClientAPI;
|
|
882
1198
|
}
|
|
883
|
-
declare module "connect/models/
|
|
1199
|
+
declare module "connect/models/Territory" {
|
|
1200
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1201
|
+
export interface TerritoryProps {
|
|
1202
|
+
/**
|
|
1203
|
+
* @example 'USD'
|
|
1204
|
+
*/
|
|
1205
|
+
currency: string;
|
|
1206
|
+
}
|
|
1207
|
+
export class Territory extends ConnectModel<TerritoryProps> {
|
|
1208
|
+
static type: string;
|
|
1209
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1210
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1211
|
+
} | undefined) => Promise<Territory[]>;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
declare module "connect/models/User" {
|
|
1215
|
+
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
1216
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1217
|
+
import { Territory } from "connect/models/Territory";
|
|
1218
|
+
export enum UserRole {
|
|
1219
|
+
ADMIN = "ADMIN",
|
|
1220
|
+
FINANCE = "FINANCE",
|
|
1221
|
+
TECHNICAL = "TECHNICAL",
|
|
1222
|
+
ACCOUNT_HOLDER = "ACCOUNT_HOLDER",
|
|
1223
|
+
READ_ONLY = "READ_ONLY",
|
|
1224
|
+
SALES = "SALES",
|
|
1225
|
+
MARKETING = "MARKETING",
|
|
1226
|
+
APP_MANAGER = "APP_MANAGER",
|
|
1227
|
+
DEVELOPER = "DEVELOPER",
|
|
1228
|
+
ACCESS_TO_REPORTS = "ACCESS_TO_REPORTS",
|
|
1229
|
+
CUSTOMER_SUPPORT = "CUSTOMER_SUPPORT",
|
|
1230
|
+
CREATE_APPS = "CREATE_APPS",
|
|
1231
|
+
CLOUD_MANAGED_DEVELOPER_ID = "CLOUD_MANAGED_DEVELOPER_ID",
|
|
1232
|
+
CLOUD_MANAGED_APP_DISTRIBUTION = "CLOUD_MANAGED_APP_DISTRIBUTION"
|
|
1233
|
+
}
|
|
1234
|
+
export interface UserProps {
|
|
1235
|
+
username: string | null;
|
|
1236
|
+
firstName: string | null;
|
|
1237
|
+
lastName: string | null;
|
|
1238
|
+
email: string | null;
|
|
1239
|
+
preferredCurrencyTerritory: Territory | null;
|
|
1240
|
+
agreedToTerms: boolean | null;
|
|
1241
|
+
roles: UserRole | null;
|
|
1242
|
+
allAppsVisible: boolean;
|
|
1243
|
+
provisioningAllowed: boolean;
|
|
1244
|
+
emailVettingRequired: boolean;
|
|
1245
|
+
notifications: unknown | null;
|
|
1246
|
+
}
|
|
1247
|
+
export type UserQueryFilter = ConnectQueryFilter<UserProps & {
|
|
1248
|
+
/**
|
|
1249
|
+
* `App` id
|
|
1250
|
+
*/
|
|
1251
|
+
visibleApps: string;
|
|
1252
|
+
}, 'roles' | 'username' | 'visibleApps'>;
|
|
1253
|
+
export class User extends ConnectModel<UserProps> {
|
|
1254
|
+
static type: string;
|
|
1255
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1256
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
1257
|
+
username: string | (string | null)[] | null;
|
|
1258
|
+
roles: UserRole | (UserRole | null)[] | null;
|
|
1259
|
+
visibleApps: string | string[];
|
|
1260
|
+
} & {
|
|
1261
|
+
id?: string | undefined;
|
|
1262
|
+
}>> | undefined;
|
|
1263
|
+
} | undefined) => Promise<User[]>;
|
|
1264
|
+
/**
|
|
1265
|
+
*
|
|
1266
|
+
* @param id `User` id (ex: UNHB5PT4MA)
|
|
1267
|
+
*/
|
|
1268
|
+
static infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1269
|
+
id: string;
|
|
1270
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1271
|
+
}) => Promise<User>;
|
|
1272
|
+
static deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1273
|
+
id: string;
|
|
1274
|
+
}) => Promise<void>;
|
|
1275
|
+
updateAsync(attributes: Partial<UserProps>): Promise<User>;
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
declare module "connect/models/ApiKey" {
|
|
1279
|
+
import { RequestContext } from "network/Request";
|
|
1280
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1281
|
+
import { ContentProvider } from "connect/models/ContentProvider";
|
|
1282
|
+
import { User, UserRole } from "connect/models/User";
|
|
1283
|
+
export enum ApiKeyType {
|
|
1284
|
+
/**
|
|
1285
|
+
* App Store Connect Token
|
|
1286
|
+
*/
|
|
1287
|
+
PUBLIC_API = "PUBLIC_API"
|
|
1288
|
+
}
|
|
1289
|
+
export interface ApiKeyProps {
|
|
1290
|
+
/**
|
|
1291
|
+
* If the token has been revoked or not.
|
|
1292
|
+
*/
|
|
1293
|
+
isActive: boolean;
|
|
1294
|
+
/**
|
|
1295
|
+
* @example "ejb-apple-utils-admin"
|
|
1296
|
+
*/
|
|
1297
|
+
nickname: string;
|
|
1298
|
+
/**
|
|
1299
|
+
* @example "2021-06-28T12:30:41-07:00"
|
|
1300
|
+
*/
|
|
1301
|
+
lastUsed: string;
|
|
1302
|
+
/**
|
|
1303
|
+
* @example "2021-06-28T14:48:51.403-07:00"
|
|
1304
|
+
*/
|
|
1305
|
+
revokingDate: null | string;
|
|
1306
|
+
/**
|
|
1307
|
+
* A key can only be downloaded once, right after it's created.
|
|
1308
|
+
*/
|
|
1309
|
+
canDownload: boolean;
|
|
1310
|
+
/**
|
|
1311
|
+
* The contents of a private key, this can only be downloaded once.
|
|
1312
|
+
* @default "XXX="
|
|
1313
|
+
*/
|
|
1314
|
+
privateKey: null | string;
|
|
1315
|
+
/**
|
|
1316
|
+
* @example ["ADMIN"]
|
|
1317
|
+
*/
|
|
1318
|
+
roles: UserRole[];
|
|
1319
|
+
/**
|
|
1320
|
+
* If the key has access to all apps.
|
|
1321
|
+
*/
|
|
1322
|
+
allAppsVisible: boolean;
|
|
1323
|
+
/**
|
|
1324
|
+
* Unknown
|
|
1325
|
+
*/
|
|
1326
|
+
keyType: ApiKeyType;
|
|
1327
|
+
createdBy?: User;
|
|
1328
|
+
revokedBy?: User;
|
|
1329
|
+
provider?: ContentProvider;
|
|
1330
|
+
}
|
|
1331
|
+
export class ApiKey extends ConnectModel<ApiKeyProps> {
|
|
1332
|
+
static type: string;
|
|
1333
|
+
static DEFAULT_INCLUDES: string[];
|
|
1334
|
+
static getAsync: (context: RequestContext, props?: {
|
|
1335
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1336
|
+
} | undefined) => Promise<ApiKey[]>;
|
|
1337
|
+
static infoAsync: (context: RequestContext, props: {
|
|
1338
|
+
id: string;
|
|
1339
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1340
|
+
}) => Promise<ApiKey>;
|
|
1341
|
+
static createAsync(context: RequestContext, attributes: Pick<ApiKeyProps, 'nickname' | 'roles' | 'allAppsVisible' | 'keyType'>): Promise<ApiKey>;
|
|
1342
|
+
/**
|
|
1343
|
+
* Download the private key as a PEM string
|
|
1344
|
+
*/
|
|
1345
|
+
downloadAsync(): Promise<string | null>;
|
|
1346
|
+
/**
|
|
1347
|
+
* Make the token unusable forever.
|
|
1348
|
+
*/
|
|
1349
|
+
revokeAsync(): Promise<ApiKey>;
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
declare module "connect/models/AppDataUsageGrouping" {
|
|
1353
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1354
|
+
export interface AppDataUsageGroupingProps {
|
|
1355
|
+
deleted: boolean;
|
|
1356
|
+
}
|
|
1357
|
+
export class AppDataUsageGrouping extends ConnectModel<AppDataUsageGroupingProps> {
|
|
1358
|
+
static type: string;
|
|
1359
|
+
static deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1360
|
+
id: string;
|
|
1361
|
+
}) => Promise<void>;
|
|
1362
|
+
deleteAsync(): Promise<void>;
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
declare module "connect/models/AppDataUsageCategory" {
|
|
1366
|
+
import { AppDataUsageGrouping } from "connect/models/AppDataUsageGrouping";
|
|
1367
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1368
|
+
export interface AppDataUsageCategoryProps {
|
|
1369
|
+
deleted: boolean;
|
|
1370
|
+
grouping: AppDataUsageGrouping;
|
|
1371
|
+
}
|
|
1372
|
+
export enum AppDataUsageCategoryId {
|
|
1373
|
+
PAYMENT_INFORMATION = "PAYMENT_INFORMATION",
|
|
1374
|
+
CREDIT_AND_FRAUD = "CREDIT_AND_FRAUD",
|
|
1375
|
+
OTHER_FINANCIAL_INFO = "OTHER_FINANCIAL_INFO",
|
|
1376
|
+
PRECISE_LOCATION = "PRECISE_LOCATION",
|
|
1377
|
+
SENSITIVE_INFO = "SENSITIVE_INFO",
|
|
1378
|
+
PHYSICAL_ADDRESS = "PHYSICAL_ADDRESS",
|
|
1379
|
+
EMAIL_ADDRESS = "EMAIL_ADDRESS",
|
|
1380
|
+
NAME = "NAME",
|
|
1381
|
+
PHONE_NUMBER = "PHONE_NUMBER",
|
|
1382
|
+
OTHER_CONTACT_INFO = "OTHER_CONTACT_INFO",
|
|
1383
|
+
CONTACTS = "CONTACTS",
|
|
1384
|
+
EMAILS_OR_TEXT_MESSAGES = "EMAILS_OR_TEXT_MESSAGES",
|
|
1385
|
+
PHOTOS_OR_VIDEOS = "PHOTOS_OR_VIDEOS",
|
|
1386
|
+
AUDIO = "AUDIO",
|
|
1387
|
+
GAMEPLAY_CONTENT = "GAMEPLAY_CONTENT",
|
|
1388
|
+
CUSTOMER_SUPPORT = "CUSTOMER_SUPPORT",
|
|
1389
|
+
OTHER_USER_CONTENT = "OTHER_USER_CONTENT",
|
|
1390
|
+
BROWSING_HISTORY = "BROWSING_HISTORY",
|
|
1391
|
+
SEARCH_HISTORY = "SEARCH_HISTORY",
|
|
1392
|
+
USER_ID = "USER_ID",
|
|
1393
|
+
DEVICE_ID = "DEVICE_ID",
|
|
1394
|
+
PURCHASE_HISTORY = "PURCHASE_HISTORY",
|
|
1395
|
+
PRODUCT_INTERACTION = "PRODUCT_INTERACTION",
|
|
1396
|
+
ADVERTISING_DATA = "ADVERTISING_DATA",
|
|
1397
|
+
OTHER_USAGE_DATA = "OTHER_USAGE_DATA",
|
|
1398
|
+
CRASH_DATA = "CRASH_DATA",
|
|
1399
|
+
PERFORMANCE_DATA = "PERFORMANCE_DATA",
|
|
1400
|
+
OTHER_DIAGNOSTIC_DATA = "OTHER_DIAGNOSTIC_DATA",
|
|
1401
|
+
OTHER_DATA = "OTHER_DATA",
|
|
1402
|
+
HEALTH = "HEALTH",
|
|
1403
|
+
FITNESS = "FITNESS",
|
|
1404
|
+
COARSE_LOCATION = "COARSE_LOCATION"
|
|
1405
|
+
}
|
|
1406
|
+
export class AppDataUsageCategory extends ConnectModel<AppDataUsageCategoryProps> {
|
|
1407
|
+
static type: string;
|
|
1408
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1409
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1410
|
+
} | undefined) => Promise<AppDataUsageCategory[]>;
|
|
1411
|
+
static deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1412
|
+
id: string;
|
|
1413
|
+
}) => Promise<void>;
|
|
1414
|
+
deleteAsync(): Promise<void>;
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
declare module "connect/models/AppDataUsageDataProtection" {
|
|
1418
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1419
|
+
export interface AppDataUsageDataProtectionProps {
|
|
1420
|
+
deleted: boolean;
|
|
1421
|
+
}
|
|
1422
|
+
export enum AppDataUsageDataProtectionId {
|
|
1423
|
+
DATA_USED_TO_TRACK_YOU = "DATA_USED_TO_TRACK_YOU",
|
|
1424
|
+
DATA_LINKED_TO_YOU = "DATA_LINKED_TO_YOU",
|
|
1425
|
+
DATA_NOT_LINKED_TO_YOU = "DATA_NOT_LINKED_TO_YOU",
|
|
1426
|
+
DATA_NOT_COLLECTED = "DATA_NOT_COLLECTED"
|
|
1427
|
+
}
|
|
1428
|
+
export class AppDataUsageDataProtection extends ConnectModel<AppDataUsageDataProtectionProps> {
|
|
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<AppDataUsageDataProtection[]>;
|
|
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/AppDataUsagePurpose" {
|
|
1440
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1441
|
+
export interface AppDataUsagePurposeProps {
|
|
1442
|
+
deleted: boolean;
|
|
1443
|
+
}
|
|
1444
|
+
export enum AppDataUsagePurposeId {
|
|
1445
|
+
THIRD_PARTY_ADVERTISING = "THIRD_PARTY_ADVERTISING",
|
|
1446
|
+
DEVELOPERS_ADVERTISING = "DEVELOPERS_ADVERTISING",
|
|
1447
|
+
ANALYTICS = "ANALYTICS",
|
|
1448
|
+
PRODUCT_PERSONALIZATION = "PRODUCT_PERSONALIZATION",
|
|
1449
|
+
APP_FUNCTIONALITY = "APP_FUNCTIONALITY",
|
|
1450
|
+
OTHER_PURPOSES = "OTHER_PURPOSES"
|
|
1451
|
+
}
|
|
1452
|
+
export class AppDataUsagePurpose extends ConnectModel<AppDataUsagePurposeProps> {
|
|
1453
|
+
static type: string;
|
|
1454
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1455
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1456
|
+
} | undefined) => Promise<AppDataUsagePurpose[]>;
|
|
1457
|
+
static deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1458
|
+
id: string;
|
|
1459
|
+
}) => Promise<void>;
|
|
1460
|
+
deleteAsync(): Promise<void>;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
declare module "connect/models/AppDataUsage" {
|
|
1464
|
+
import { RequestContext } from "network/Request";
|
|
1465
|
+
import { AppDataUsageCategory } from "connect/models/AppDataUsageCategory";
|
|
1466
|
+
import { AppDataUsageDataProtection } from "connect/models/AppDataUsageDataProtection";
|
|
1467
|
+
import { AppDataUsageGrouping } from "connect/models/AppDataUsageGrouping";
|
|
1468
|
+
import { AppDataUsagePurpose } from "connect/models/AppDataUsagePurpose";
|
|
1469
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1470
|
+
export interface AppDataUsageProps {
|
|
1471
|
+
category?: AppDataUsageCategory;
|
|
1472
|
+
grouping?: AppDataUsageGrouping;
|
|
1473
|
+
purpose?: AppDataUsagePurpose;
|
|
1474
|
+
dataProtection?: AppDataUsageDataProtection;
|
|
1475
|
+
}
|
|
1476
|
+
export class AppDataUsage extends ConnectModel<AppDataUsageProps> {
|
|
1477
|
+
static type: string;
|
|
1478
|
+
static DEFAULT_INCLUDES: string[];
|
|
1479
|
+
/**
|
|
1480
|
+
*
|
|
1481
|
+
* @param id `App` id
|
|
1482
|
+
* @param appDataUsageCategory `AppDataUsageCategory` id (`AppDataUsageCategoryId`)
|
|
1483
|
+
* @param appDataUsageProtection `AppDataUsageProtection` id (`AppDataUsageProtectionId`)
|
|
1484
|
+
* @param appDataUsagePurpose `AppDataUsagePurpose` id (`AppDataUsagePurposeId`)
|
|
1485
|
+
*/
|
|
1486
|
+
static createAsync(context: RequestContext, { id, appDataUsageCategory, appDataUsageProtection, appDataUsagePurpose, }: {
|
|
1487
|
+
id: string;
|
|
1488
|
+
appDataUsageCategory?: string;
|
|
1489
|
+
appDataUsageProtection?: string;
|
|
1490
|
+
appDataUsagePurpose?: string;
|
|
1491
|
+
}): Promise<AppDataUsage>;
|
|
1492
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
1493
|
+
id: string;
|
|
1494
|
+
}) => Promise<void>;
|
|
1495
|
+
deleteAsync(): Promise<void>;
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
declare module "connect/models/AppDataUsagesPublishState" {
|
|
1499
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1500
|
+
export interface AppDataUsagesPublishStateProps {
|
|
1501
|
+
published: boolean;
|
|
1502
|
+
/**
|
|
1503
|
+
* @example "2021-06-26T14:31:32.201-07:00"
|
|
1504
|
+
*/
|
|
1505
|
+
lastPublished: string;
|
|
1506
|
+
/**
|
|
1507
|
+
* @example "Evan Bacon"
|
|
1508
|
+
*/
|
|
1509
|
+
lastPublishedBy: string;
|
|
1510
|
+
}
|
|
1511
|
+
export class AppDataUsagesPublishState extends ConnectModel<AppDataUsagesPublishStateProps> {
|
|
1512
|
+
static type: string;
|
|
1513
|
+
updateAsync(options: Pick<AppDataUsagesPublishStateProps, 'published'>): Promise<AppDataUsagesPublishState>;
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
declare module "connect/ProvisioningAPI" {
|
|
1517
|
+
import { AxiosResponse } from 'axios';
|
|
1518
|
+
import { ParsingOptions, RequestContext, RequestProps } from "network/Request";
|
|
1519
|
+
import { ConnectClientAPI } from "connect/ConnectAPI";
|
|
1520
|
+
class ProvisioningClientAPI extends ConnectClientAPI {
|
|
1521
|
+
getHostname(context: RequestContext): string;
|
|
1522
|
+
requestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
1523
|
+
/**
|
|
1524
|
+
* Used for web session requests (username/password auth).
|
|
1525
|
+
*
|
|
1526
|
+
* @param request
|
|
1527
|
+
* @param options
|
|
1528
|
+
*/
|
|
1529
|
+
proxyRequestAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
|
|
1530
|
+
}
|
|
1531
|
+
export const provisioningClient: ProvisioningClientAPI;
|
|
1532
|
+
}
|
|
1533
|
+
declare module "connect/models/CapabilityConnectModel" {
|
|
884
1534
|
import { RequestContext } from "network/Request";
|
|
1535
|
+
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
1536
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1537
|
+
export interface CapabilityConnectModelProps {
|
|
1538
|
+
/**
|
|
1539
|
+
* A string that's always prefixed with a set value like `merchant.`, `group.`, or `iCloud.`.
|
|
1540
|
+
*
|
|
1541
|
+
* @example 'merchant.com.example.development'
|
|
1542
|
+
*/
|
|
1543
|
+
identifier: string;
|
|
1544
|
+
/**
|
|
1545
|
+
* Apple Team ID.
|
|
1546
|
+
*
|
|
1547
|
+
* @example 'QQ57RJ5UTD'
|
|
1548
|
+
*/
|
|
1549
|
+
prefix: string;
|
|
1550
|
+
/**
|
|
1551
|
+
* @example "Example Development ID"
|
|
1552
|
+
*/
|
|
1553
|
+
name: string;
|
|
1554
|
+
canEdit?: boolean;
|
|
1555
|
+
canDelete?: boolean;
|
|
1556
|
+
}
|
|
1557
|
+
export type CapabilityConnectQueryFilter<Props extends CapabilityConnectModelProps = CapabilityConnectModelProps> = ConnectQueryFilter<Props, 'identifier' | 'name'>;
|
|
1558
|
+
export function createCapabilityConnectModel<Props extends CapabilityConnectModelProps = CapabilityConnectModelProps>({ type, prefix }: {
|
|
1559
|
+
type: string;
|
|
1560
|
+
prefix: string;
|
|
1561
|
+
}): {
|
|
1562
|
+
new (context: RequestContext, id: string, attributes: Props): {
|
|
1563
|
+
deleteAsync(): Promise<void>;
|
|
1564
|
+
context: RequestContext;
|
|
1565
|
+
id: string;
|
|
1566
|
+
attributes: Props;
|
|
1567
|
+
updateAttributes(attributes: Partial<Props>): void;
|
|
1568
|
+
};
|
|
1569
|
+
type: string;
|
|
1570
|
+
getAsync: (context: RequestContext, props?: {
|
|
1571
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
1572
|
+
name: Props["name"] | Props["name"][];
|
|
1573
|
+
identifier: Props["identifier"] | Props["identifier"][];
|
|
1574
|
+
} & {
|
|
1575
|
+
id?: string | undefined;
|
|
1576
|
+
}>> | undefined;
|
|
1577
|
+
} | undefined) => Promise<(ConnectModel<Props> & {
|
|
1578
|
+
deleteAsync(): Promise<void>;
|
|
1579
|
+
context: RequestContext;
|
|
1580
|
+
id: string;
|
|
1581
|
+
attributes: Props;
|
|
1582
|
+
updateAttributes(attributes: Partial<Props>): void;
|
|
1583
|
+
})[]>;
|
|
1584
|
+
/**
|
|
1585
|
+
*
|
|
1586
|
+
* @param id `CapabilityConnectModel` id (ex: UNHB5PT4MA)
|
|
1587
|
+
*/
|
|
1588
|
+
infoAsync: (context: RequestContext, props: {
|
|
1589
|
+
id: string;
|
|
1590
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1591
|
+
}) => Promise<ConnectModel<Props> & {
|
|
1592
|
+
deleteAsync(): Promise<void>;
|
|
1593
|
+
context: RequestContext;
|
|
1594
|
+
id: string;
|
|
1595
|
+
attributes: Props;
|
|
1596
|
+
updateAttributes(attributes: Partial<Props>): void;
|
|
1597
|
+
}>;
|
|
1598
|
+
/**
|
|
1599
|
+
* Create a new Capability Connect ID.
|
|
1600
|
+
* @param context
|
|
1601
|
+
* @param props.identifier The ID value. This must be prefixed with a set value like `merchant.`, `group.`, or `iCloud.`.
|
|
1602
|
+
* @param props.name If the name is undefined, a default value emulating Xcode's default will be used.
|
|
1603
|
+
* @returns
|
|
1604
|
+
*/
|
|
1605
|
+
createAsync(context: RequestContext, { name, identifier, }: {
|
|
1606
|
+
name?: string | undefined;
|
|
1607
|
+
identifier: CapabilityConnectModelProps['identifier'];
|
|
1608
|
+
}): Promise<ConnectModel<Props> & {
|
|
1609
|
+
deleteAsync(): Promise<void>;
|
|
1610
|
+
context: RequestContext;
|
|
1611
|
+
id: string;
|
|
1612
|
+
attributes: Props;
|
|
1613
|
+
updateAttributes(attributes: Partial<Props>): void;
|
|
1614
|
+
}>;
|
|
1615
|
+
deleteAsync: (context: RequestContext, props: {
|
|
1616
|
+
id: string;
|
|
1617
|
+
}) => Promise<void>;
|
|
1618
|
+
};
|
|
1619
|
+
export function createValidCapabilityName({ name, identifier, prefix, }: {
|
|
1620
|
+
name?: string;
|
|
1621
|
+
identifier: string;
|
|
1622
|
+
prefix: string;
|
|
1623
|
+
}): string;
|
|
1624
|
+
}
|
|
1625
|
+
declare module "connect/models/AppGroup" {
|
|
1626
|
+
import { CapabilityConnectModelProps, CapabilityConnectQueryFilter } from "connect/models/CapabilityConnectModel";
|
|
1627
|
+
export type AppGroupProps = CapabilityConnectModelProps;
|
|
1628
|
+
export type AppGroupQueryFilter = CapabilityConnectQueryFilter;
|
|
1629
|
+
const AppGroup_base: {
|
|
1630
|
+
new (context: import("AppStoreConnect").RequestContext, id: string, attributes: CapabilityConnectModelProps): {
|
|
1631
|
+
deleteAsync(): Promise<void>;
|
|
1632
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1633
|
+
id: string;
|
|
1634
|
+
attributes: CapabilityConnectModelProps;
|
|
1635
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1636
|
+
};
|
|
1637
|
+
type: string;
|
|
1638
|
+
getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1639
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
1640
|
+
name: string | string[];
|
|
1641
|
+
identifier: string | string[];
|
|
1642
|
+
} & {
|
|
1643
|
+
id?: string | undefined;
|
|
1644
|
+
}>> | undefined;
|
|
1645
|
+
} | undefined) => Promise<(import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1646
|
+
deleteAsync(): Promise<void>;
|
|
1647
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1648
|
+
id: string;
|
|
1649
|
+
attributes: CapabilityConnectModelProps;
|
|
1650
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1651
|
+
})[]>;
|
|
1652
|
+
infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1653
|
+
id: string;
|
|
1654
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1655
|
+
}) => Promise<import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1656
|
+
deleteAsync(): Promise<void>;
|
|
1657
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1658
|
+
id: string;
|
|
1659
|
+
attributes: CapabilityConnectModelProps;
|
|
1660
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1661
|
+
}>;
|
|
1662
|
+
createAsync(context: import("AppStoreConnect").RequestContext, { name, identifier, }: {
|
|
1663
|
+
name?: string | undefined;
|
|
1664
|
+
identifier: string;
|
|
1665
|
+
}): Promise<import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1666
|
+
deleteAsync(): Promise<void>;
|
|
1667
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1668
|
+
id: string;
|
|
1669
|
+
attributes: CapabilityConnectModelProps;
|
|
1670
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1671
|
+
}>;
|
|
1672
|
+
deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1673
|
+
id: string;
|
|
1674
|
+
}) => Promise<void>;
|
|
1675
|
+
};
|
|
1676
|
+
export class AppGroup extends AppGroup_base {
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
declare module "connect/models/CloudContainer" {
|
|
1680
|
+
import { CapabilityConnectModelProps, CapabilityConnectQueryFilter } from "connect/models/CapabilityConnectModel";
|
|
1681
|
+
export type CloudContainerProps = CapabilityConnectModelProps;
|
|
1682
|
+
export type CloudContainerQueryFilter = CapabilityConnectQueryFilter;
|
|
1683
|
+
const CloudContainer_base: {
|
|
1684
|
+
new (context: import("AppStoreConnect").RequestContext, id: string, attributes: CapabilityConnectModelProps): {
|
|
1685
|
+
deleteAsync(): Promise<void>;
|
|
1686
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1687
|
+
id: string;
|
|
1688
|
+
attributes: CapabilityConnectModelProps;
|
|
1689
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1690
|
+
};
|
|
1691
|
+
type: string;
|
|
1692
|
+
getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1693
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
1694
|
+
name: string | string[];
|
|
1695
|
+
identifier: string | string[];
|
|
1696
|
+
} & {
|
|
1697
|
+
id?: string | undefined;
|
|
1698
|
+
}>> | undefined;
|
|
1699
|
+
} | undefined) => Promise<(import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1700
|
+
deleteAsync(): Promise<void>;
|
|
1701
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1702
|
+
id: string;
|
|
1703
|
+
attributes: CapabilityConnectModelProps;
|
|
1704
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1705
|
+
})[]>;
|
|
1706
|
+
infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1707
|
+
id: string;
|
|
1708
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1709
|
+
}) => Promise<import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1710
|
+
deleteAsync(): Promise<void>;
|
|
1711
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1712
|
+
id: string;
|
|
1713
|
+
attributes: CapabilityConnectModelProps;
|
|
1714
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1715
|
+
}>;
|
|
1716
|
+
createAsync(context: import("AppStoreConnect").RequestContext, { name, identifier, }: {
|
|
1717
|
+
name?: string | undefined;
|
|
1718
|
+
identifier: string;
|
|
1719
|
+
}): Promise<import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1720
|
+
deleteAsync(): Promise<void>;
|
|
1721
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1722
|
+
id: string;
|
|
1723
|
+
attributes: CapabilityConnectModelProps;
|
|
1724
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1725
|
+
}>;
|
|
1726
|
+
deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1727
|
+
id: string;
|
|
1728
|
+
}) => Promise<void>;
|
|
1729
|
+
};
|
|
1730
|
+
export class CloudContainer extends CloudContainer_base {
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
declare module "connect/models/MerchantId" {
|
|
1734
|
+
import { CapabilityConnectModelProps, CapabilityConnectQueryFilter } from "connect/models/CapabilityConnectModel";
|
|
1735
|
+
export type MerchantIdProps = CapabilityConnectModelProps;
|
|
1736
|
+
export type MerchantIdQueryFilter = CapabilityConnectQueryFilter;
|
|
1737
|
+
const MerchantId_base: {
|
|
1738
|
+
new (context: import("AppStoreConnect").RequestContext, id: string, attributes: CapabilityConnectModelProps): {
|
|
1739
|
+
deleteAsync(): Promise<void>;
|
|
1740
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1741
|
+
id: string;
|
|
1742
|
+
attributes: CapabilityConnectModelProps;
|
|
1743
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1744
|
+
};
|
|
1745
|
+
type: string;
|
|
1746
|
+
getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
1747
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
1748
|
+
name: string | string[];
|
|
1749
|
+
identifier: string | string[];
|
|
1750
|
+
} & {
|
|
1751
|
+
id?: string | undefined;
|
|
1752
|
+
}>> | undefined;
|
|
1753
|
+
} | undefined) => Promise<(import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1754
|
+
deleteAsync(): Promise<void>;
|
|
1755
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1756
|
+
id: string;
|
|
1757
|
+
attributes: CapabilityConnectModelProps;
|
|
1758
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1759
|
+
})[]>;
|
|
1760
|
+
infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1761
|
+
id: string;
|
|
1762
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
1763
|
+
}) => Promise<import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1764
|
+
deleteAsync(): Promise<void>;
|
|
1765
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1766
|
+
id: string;
|
|
1767
|
+
attributes: CapabilityConnectModelProps;
|
|
1768
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1769
|
+
}>;
|
|
1770
|
+
createAsync(context: import("AppStoreConnect").RequestContext, { name, identifier, }: {
|
|
1771
|
+
name?: string | undefined;
|
|
1772
|
+
identifier: string;
|
|
1773
|
+
}): Promise<import("connect/models/ConnectModel").ConnectModel<CapabilityConnectModelProps> & {
|
|
1774
|
+
deleteAsync(): Promise<void>;
|
|
1775
|
+
context: import("AppStoreConnect").RequestContext;
|
|
1776
|
+
id: string;
|
|
1777
|
+
attributes: CapabilityConnectModelProps;
|
|
1778
|
+
updateAttributes(attributes: Partial<CapabilityConnectModelProps>): void;
|
|
1779
|
+
}>;
|
|
1780
|
+
deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1781
|
+
id: string;
|
|
1782
|
+
}) => Promise<void>;
|
|
1783
|
+
};
|
|
1784
|
+
export class MerchantId extends MerchantId_base {
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
declare module "connect/models/BundleIdCapability" {
|
|
1788
|
+
import { AppGroup } from "connect/models/AppGroup";
|
|
1789
|
+
import { CloudContainer } from "connect/models/CloudContainer";
|
|
885
1790
|
import { ConnectModel, ConnectModelData } from "connect/models/ConnectModel";
|
|
1791
|
+
import { MerchantId } from "connect/models/MerchantId";
|
|
886
1792
|
export enum CapabilityType {
|
|
887
1793
|
ACCESS_WIFI = "ACCESS_WIFI_INFORMATION",
|
|
1794
|
+
APP_ATTEST = "APP_ATTEST",
|
|
888
1795
|
APP_GROUP = "APP_GROUPS",
|
|
889
1796
|
APPLE_PAY = "APPLE_PAY",
|
|
890
1797
|
ASSOCIATED_DOMAINS = "ASSOCIATED_DOMAINS",
|
|
891
|
-
CLASS_KIT = "CLASSKIT",
|
|
892
1798
|
AUTO_FILL_CREDENTIAL = "AUTOFILL_CREDENTIAL_PROVIDER",
|
|
1799
|
+
CLASS_KIT = "CLASSKIT",
|
|
893
1800
|
DATA_PROTECTION = "DATA_PROTECTION",
|
|
1801
|
+
FAMILY_CONTROLS = "FAMILY_CONTROLS",
|
|
894
1802
|
GAME_CENTER = "GAME_CENTER",
|
|
1803
|
+
GROUP_ACTIVITIES = "GROUP_ACTIVITIES",
|
|
895
1804
|
HEALTH_KIT = "HEALTHKIT",
|
|
1805
|
+
HEALTH_KIT_RECALIBRATE_ESTIMATES = "HEALTHKIT_RECALIBRATE_ESTIMATES",
|
|
896
1806
|
HOME_KIT = "HOMEKIT",
|
|
897
1807
|
HOT_SPOT = "HOT_SPOT",
|
|
898
1808
|
ICLOUD = "ICLOUD",
|
|
@@ -900,14 +1810,45 @@ declare module "connect/models/BundleIdCapability" {
|
|
|
900
1810
|
INTER_APP_AUDIO = "INTER_APP_AUDIO",
|
|
901
1811
|
MULTIPATH = "MULTIPATH",
|
|
902
1812
|
NETWORK_EXTENSIONS = "NETWORK_EXTENSIONS",
|
|
1813
|
+
USER_MANAGEMENT = "USER_MANAGEMENT",
|
|
1814
|
+
NETWORK_CUSTOM_PROTOCOL = "NETWORK_CUSTOM_PROTOCOL",
|
|
1815
|
+
FILE_PROVIDER_TESTING_MODE = "FILEPROVIDER_TESTINGMODE",
|
|
1816
|
+
SYSTEM_EXTENSION_INSTALL = "SYSTEM_EXTENSION_INSTALL",
|
|
1817
|
+
MDM_MANAGED_ASSOCIATED_DOMAINS = "MDM_MANAGED_ASSOCIATED_DOMAINS",
|
|
1818
|
+
HLS_LOW_LATENCY = "COREMEDIA_HLS_LOW_LATENCY",
|
|
1819
|
+
HLS_INTERSTITIAL_PREVIEW = "HLS_INTERSTITIAL_PREVIEW",
|
|
903
1820
|
NFC_TAG_READING = "NFC_TAG_READING",
|
|
904
1821
|
PERSONAL_VPN = "PERSONAL_VPN",
|
|
905
1822
|
PUSH_NOTIFICATIONS = "PUSH_NOTIFICATIONS",
|
|
1823
|
+
USER_NOTIFICATIONS_TIME_SENSITIVE = "USERNOTIFICATIONS_TIMESENSITIVE",
|
|
1824
|
+
USER_NOTIFICATIONS_COMMUNICATION = "USERNOTIFICATIONS_COMMUNICATION",
|
|
906
1825
|
SIRI_KIT = "SIRIKIT",
|
|
907
1826
|
WALLET = "WALLET",
|
|
908
1827
|
WIRELESS_ACCESSORY = "WIRELESS_ACCESSORY_CONFIGURATION",
|
|
909
1828
|
MAPS = "MAPS",
|
|
910
1829
|
APPLE_ID_AUTH = "APPLE_ID_AUTH",
|
|
1830
|
+
FONT_INSTALLATION = "FONT_INSTALLATION",
|
|
1831
|
+
EXTENDED_VIRTUAL_ADDRESSING = "EXTENDED_VIRTUAL_ADDRESSING",
|
|
1832
|
+
ENABLED_FOR_MAC = "ENABLED_FOR_MAC",
|
|
1833
|
+
MUSIC_KIT = "MUSIC_KIT",
|
|
1834
|
+
SHAZAM_KIT = "SHAZAM_KIT",
|
|
1835
|
+
DRIVER_KIT_ALLOW_THIRD_PARTY_USER_CLIENTS = "DRIVERKIT_ALLOWTHIRDPARTY_USERCLIENTS",
|
|
1836
|
+
DRIVER_KIT_COMMUNICATES_WITH_DRIVERS = "DRIVERKIT_COMMUNICATESWITHDRIVERS",
|
|
1837
|
+
DRIVER_KIT_FAMILY_AUDIO_PUB = "DRIVERKIT_FAMILY_AUDIO_PUB",
|
|
1838
|
+
DRIVER_KIT_FAMILY_HID_DEVICE_PUB = "DRIVERKIT_FAMILY_HIDDEVICE_PUB",
|
|
1839
|
+
DRIVER_KIT_FAMILY_HID_EVENT_SERVICE_PUB = "DRIVERKIT_FAMILY_HIDEVENTSERVICE_PUB",
|
|
1840
|
+
DRIVER_KIT_FAMILY_NETWORKING_PUB = "DRIVERKIT_FAMILY_NETWORKING_PUB",
|
|
1841
|
+
DRIVER_KIT_FAMILY_SCSI_CONTROLLER_PUB = "DRIVERKIT_FAMILY_SCSICONTROLLER_PUB",
|
|
1842
|
+
DRIVER_KIT_FAMILY_SERIAL_PUB = "DRIVERKIT_FAMILY_SERIAL_PUB",
|
|
1843
|
+
DRIVER_KIT_PUBLIC = "DRIVERKIT_PUBLIC",
|
|
1844
|
+
DRIVER_KIT_TRANSPORT_HID_PUB = "DRIVERKIT_TRANSPORT_HID_PUB",
|
|
1845
|
+
DRIVER_KIT_USB_TRANSPORT_PUB = "DRIVERKIT_USBTRANSPORT_PUB",
|
|
1846
|
+
INCREASED_MEMORY_LIMIT = "INCREASED_MEMORY_LIMIT",
|
|
1847
|
+
MEDIA_DEVICE_DISCOVERY = "MEDIA_DEVICE_DISCOVERY",
|
|
1848
|
+
ON_DEMAND_INSTALL_EXTENSIONS = "ONDEMANDINSTALL_EXTENSIONS",
|
|
1849
|
+
PUSH_TO_TALK = "PUSH_TO_TALK",
|
|
1850
|
+
SHARED_WITH_YOU = "SHARED_WITH_YOU",
|
|
1851
|
+
WEATHER_KIT = "WEATHERKIT",
|
|
911
1852
|
MARZIPAN = "MARZIPAN"
|
|
912
1853
|
}
|
|
913
1854
|
export enum CapabilityTypeOption {
|
|
@@ -926,32 +1867,81 @@ declare module "connect/models/BundleIdCapability" {
|
|
|
926
1867
|
XCODE_5 = "XCODE_5",
|
|
927
1868
|
XCODE_6 = "XCODE_6"
|
|
928
1869
|
}
|
|
1870
|
+
export interface UpdateCapabilityRelationshipProps {
|
|
1871
|
+
/**
|
|
1872
|
+
* A list of opaque IDs for MerchantIds.
|
|
1873
|
+
*/
|
|
1874
|
+
merchantIds?: string[];
|
|
1875
|
+
/**
|
|
1876
|
+
* A list of opaque IDs for AppGroups.
|
|
1877
|
+
*/
|
|
1878
|
+
appGroups?: string[];
|
|
1879
|
+
/**
|
|
1880
|
+
* A list of opaque IDs for CloudContainers.
|
|
1881
|
+
*/
|
|
1882
|
+
cloudContainers?: string[];
|
|
1883
|
+
}
|
|
929
1884
|
export interface CapabilityOptionMap {
|
|
930
1885
|
[CapabilityType.ACCESS_WIFI]: CapabilityTypeOption;
|
|
1886
|
+
[CapabilityType.APP_ATTEST]: CapabilityTypeOption;
|
|
931
1887
|
[CapabilityType.APP_GROUP]: CapabilityTypeOption;
|
|
1888
|
+
[CapabilityType.APPLE_ID_AUTH]: CapabilityTypeOption | CapabilityTypeAppleAuthOption;
|
|
932
1889
|
[CapabilityType.APPLE_PAY]: CapabilityTypeOption;
|
|
933
1890
|
[CapabilityType.ASSOCIATED_DOMAINS]: CapabilityTypeOption;
|
|
934
|
-
[CapabilityType.CLASS_KIT]: CapabilityTypeOption;
|
|
935
1891
|
[CapabilityType.AUTO_FILL_CREDENTIAL]: CapabilityTypeOption;
|
|
1892
|
+
[CapabilityType.CLASS_KIT]: CapabilityTypeOption;
|
|
936
1893
|
[CapabilityType.DATA_PROTECTION]: CapabilityTypeOption | CapabilityTypeDataProtectionOption;
|
|
1894
|
+
[CapabilityType.ENABLED_FOR_MAC]: CapabilityTypeOption;
|
|
1895
|
+
[CapabilityType.EXTENDED_VIRTUAL_ADDRESSING]: CapabilityTypeOption;
|
|
1896
|
+
[CapabilityType.FAMILY_CONTROLS]: CapabilityTypeOption;
|
|
1897
|
+
[CapabilityType.FILE_PROVIDER_TESTING_MODE]: CapabilityTypeOption;
|
|
1898
|
+
[CapabilityType.FONT_INSTALLATION]: CapabilityTypeOption;
|
|
937
1899
|
[CapabilityType.GAME_CENTER]: CapabilityTypeOption;
|
|
1900
|
+
[CapabilityType.GROUP_ACTIVITIES]: CapabilityTypeOption;
|
|
938
1901
|
[CapabilityType.HEALTH_KIT]: CapabilityTypeOption;
|
|
1902
|
+
[CapabilityType.HEALTH_KIT_RECALIBRATE_ESTIMATES]: CapabilityTypeOption;
|
|
1903
|
+
[CapabilityType.HLS_INTERSTITIAL_PREVIEW]: CapabilityTypeOption;
|
|
1904
|
+
[CapabilityType.HLS_LOW_LATENCY]: CapabilityTypeOption;
|
|
939
1905
|
[CapabilityType.HOME_KIT]: CapabilityTypeOption;
|
|
940
1906
|
[CapabilityType.HOT_SPOT]: CapabilityTypeOption;
|
|
941
1907
|
[CapabilityType.ICLOUD]: CapabilityTypeOption | CapabilityTypeICloudOption;
|
|
942
1908
|
[CapabilityType.IN_APP_PURCHASE]: CapabilityTypeOption;
|
|
943
1909
|
[CapabilityType.INTER_APP_AUDIO]: CapabilityTypeOption;
|
|
1910
|
+
[CapabilityType.MDM_MANAGED_ASSOCIATED_DOMAINS]: CapabilityTypeOption;
|
|
944
1911
|
[CapabilityType.MULTIPATH]: CapabilityTypeOption;
|
|
1912
|
+
[CapabilityType.NETWORK_CUSTOM_PROTOCOL]: CapabilityTypeOption;
|
|
945
1913
|
[CapabilityType.NETWORK_EXTENSIONS]: CapabilityTypeOption;
|
|
946
1914
|
[CapabilityType.NFC_TAG_READING]: CapabilityTypeOption;
|
|
947
1915
|
[CapabilityType.PERSONAL_VPN]: CapabilityTypeOption;
|
|
948
1916
|
[CapabilityType.PUSH_NOTIFICATIONS]: CapabilityTypeOption;
|
|
949
1917
|
[CapabilityType.SIRI_KIT]: CapabilityTypeOption;
|
|
1918
|
+
[CapabilityType.SYSTEM_EXTENSION_INSTALL]: CapabilityTypeOption;
|
|
1919
|
+
[CapabilityType.USER_NOTIFICATIONS_COMMUNICATION]: CapabilityTypeOption;
|
|
1920
|
+
[CapabilityType.USER_NOTIFICATIONS_TIME_SENSITIVE]: CapabilityTypeOption;
|
|
950
1921
|
[CapabilityType.WALLET]: CapabilityTypeOption;
|
|
951
1922
|
[CapabilityType.WIRELESS_ACCESSORY]: CapabilityTypeOption;
|
|
952
1923
|
[CapabilityType.MAPS]: CapabilityTypeOption;
|
|
953
|
-
[CapabilityType.APPLE_ID_AUTH]: CapabilityTypeOption | CapabilityTypeAppleAuthOption;
|
|
954
1924
|
[CapabilityType.MARZIPAN]: CapabilityTypeOption;
|
|
1925
|
+
[CapabilityType.USER_MANAGEMENT]: CapabilityTypeOption;
|
|
1926
|
+
[CapabilityType.MUSIC_KIT]: CapabilityTypeOption;
|
|
1927
|
+
[CapabilityType.SHAZAM_KIT]: CapabilityTypeOption;
|
|
1928
|
+
[CapabilityType.DRIVER_KIT_ALLOW_THIRD_PARTY_USER_CLIENTS]: CapabilityTypeOption;
|
|
1929
|
+
[CapabilityType.DRIVER_KIT_COMMUNICATES_WITH_DRIVERS]: CapabilityTypeOption;
|
|
1930
|
+
[CapabilityType.DRIVER_KIT_FAMILY_AUDIO_PUB]: CapabilityTypeOption;
|
|
1931
|
+
[CapabilityType.DRIVER_KIT_FAMILY_HID_DEVICE_PUB]: CapabilityTypeOption;
|
|
1932
|
+
[CapabilityType.DRIVER_KIT_FAMILY_HID_EVENT_SERVICE_PUB]: CapabilityTypeOption;
|
|
1933
|
+
[CapabilityType.DRIVER_KIT_FAMILY_SCSI_CONTROLLER_PUB]: CapabilityTypeOption;
|
|
1934
|
+
[CapabilityType.DRIVER_KIT_FAMILY_SERIAL_PUB]: CapabilityTypeOption;
|
|
1935
|
+
[CapabilityType.DRIVER_KIT_FAMILY_NETWORKING_PUB]: CapabilityTypeOption;
|
|
1936
|
+
[CapabilityType.DRIVER_KIT_USB_TRANSPORT_PUB]: CapabilityTypeOption;
|
|
1937
|
+
[CapabilityType.DRIVER_KIT_PUBLIC]: CapabilityTypeOption;
|
|
1938
|
+
[CapabilityType.DRIVER_KIT_TRANSPORT_HID_PUB]: CapabilityTypeOption;
|
|
1939
|
+
[CapabilityType.INCREASED_MEMORY_LIMIT]: CapabilityTypeOption;
|
|
1940
|
+
[CapabilityType.MEDIA_DEVICE_DISCOVERY]: CapabilityTypeOption;
|
|
1941
|
+
[CapabilityType.ON_DEMAND_INSTALL_EXTENSIONS]: CapabilityTypeOption;
|
|
1942
|
+
[CapabilityType.PUSH_TO_TALK]: CapabilityTypeOption;
|
|
1943
|
+
[CapabilityType.SHARED_WITH_YOU]: CapabilityTypeOption;
|
|
1944
|
+
[CapabilityType.WEATHER_KIT]: CapabilityTypeOption;
|
|
955
1945
|
}
|
|
956
1946
|
enum CapabilitySettingKey {
|
|
957
1947
|
ICLOUD_VERSION = "ICLOUD_VERSION",
|
|
@@ -979,20 +1969,26 @@ declare module "connect/models/BundleIdCapability" {
|
|
|
979
1969
|
interface BundleIdCapabilityProps {
|
|
980
1970
|
capabilityType?: CapabilityType;
|
|
981
1971
|
settings: CapabilitySetting[] | null;
|
|
1972
|
+
appGroups?: AppGroup[];
|
|
1973
|
+
cloudContainers?: CloudContainer[];
|
|
1974
|
+
merchantIds?: MerchantId[];
|
|
1975
|
+
certificates?: unknown[];
|
|
1976
|
+
relatedAppConsentBundleIds?: unknown[];
|
|
982
1977
|
}
|
|
983
|
-
export function createCapabilityRelationship<T extends CapabilityType>({ capabilityType, option, }: {
|
|
1978
|
+
export function createCapabilityRelationship<T extends CapabilityType>({ capabilityType, option, relationships, }: {
|
|
984
1979
|
capabilityType: T;
|
|
985
1980
|
option: CapabilityOptionMap[T];
|
|
1981
|
+
relationships?: UpdateCapabilityRelationshipProps;
|
|
986
1982
|
}): Partial<ConnectModelData>;
|
|
987
1983
|
export class BundleIdCapability extends ConnectModel<BundleIdCapabilityProps> {
|
|
988
1984
|
static type: string;
|
|
989
1985
|
/**
|
|
990
1986
|
*
|
|
991
|
-
* @param id `BundleIdCapability` id (formatted like
|
|
1987
|
+
* @param id `BundleIdCapability` id (formatted like bundleIdId_BundleIdCapabilityType)
|
|
992
1988
|
*/
|
|
993
|
-
static deleteAsync(context: RequestContext,
|
|
1989
|
+
static deleteAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
994
1990
|
id: string;
|
|
995
|
-
})
|
|
1991
|
+
}) => Promise<void>;
|
|
996
1992
|
isType(type: CapabilityType): boolean;
|
|
997
1993
|
}
|
|
998
1994
|
}
|
|
@@ -1054,7 +2050,6 @@ declare module "portal/Profiles" {
|
|
|
1054
2050
|
declare module "connect/models/Certificate" {
|
|
1055
2051
|
import forge from 'node-forge';
|
|
1056
2052
|
import { RequestContext } from "network/Request";
|
|
1057
|
-
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
1058
2053
|
import { BundleIdPlatform } from "connect/models/BundleId";
|
|
1059
2054
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1060
2055
|
export enum CertificateType {
|
|
@@ -1138,7 +2133,7 @@ declare module "connect/models/Certificate" {
|
|
|
1138
2133
|
/**
|
|
1139
2134
|
* @example 'Issued'
|
|
1140
2135
|
*/
|
|
1141
|
-
status: 'Issued' | string;
|
|
2136
|
+
status: 'Issued' | 'Revoked' | string;
|
|
1142
2137
|
/**
|
|
1143
2138
|
* @example 'Evan Bacon'
|
|
1144
2139
|
*/
|
|
@@ -1179,23 +2174,28 @@ declare module "connect/models/Certificate" {
|
|
|
1179
2174
|
platformName: 'iOS' | string;
|
|
1180
2175
|
csrContent: string | null;
|
|
1181
2176
|
}
|
|
1182
|
-
type CertificateQueryFilter = ConnectQueryFilter<CertificateProps, 'certificateType' | 'displayName' | 'serialNumber'>;
|
|
1183
2177
|
export class Certificate extends ConnectModel<CertificateProps> {
|
|
1184
2178
|
static type: string;
|
|
1185
|
-
static getAsync(context: RequestContext,
|
|
1186
|
-
query?: ConnectQueryParams<
|
|
1187
|
-
|
|
1188
|
-
|
|
2179
|
+
static getAsync: (context: RequestContext, props?: {
|
|
2180
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
2181
|
+
certificateType: CertificateType | CertificateType[];
|
|
2182
|
+
displayName: string | string[];
|
|
2183
|
+
serialNumber: string | string[];
|
|
2184
|
+
} & {
|
|
2185
|
+
id?: string | undefined;
|
|
2186
|
+
}>> | undefined;
|
|
2187
|
+
} | undefined) => Promise<Certificate[]>;
|
|
2188
|
+
static infoAsync: (context: RequestContext, props: {
|
|
1189
2189
|
id: string;
|
|
1190
|
-
query?: ConnectQueryParams<
|
|
1191
|
-
})
|
|
2190
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
2191
|
+
}) => Promise<Certificate>;
|
|
1192
2192
|
static createAsync(context: RequestContext, { csrContent, certificateType, }: {
|
|
1193
2193
|
csrContent: string;
|
|
1194
2194
|
certificateType: CertificateType;
|
|
1195
2195
|
}): Promise<Certificate>;
|
|
1196
|
-
static deleteAsync(context: RequestContext,
|
|
2196
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
1197
2197
|
id: string;
|
|
1198
|
-
})
|
|
2198
|
+
}) => Promise<void>;
|
|
1199
2199
|
/**
|
|
1200
2200
|
* Create a csr for the Apple dev portal.
|
|
1201
2201
|
*/
|
|
@@ -1208,13 +2208,11 @@ declare module "connect/models/Certificate" {
|
|
|
1208
2208
|
/**
|
|
1209
2209
|
* Create a certificate signing request, post it to apple dev portal, and download the contents.
|
|
1210
2210
|
*
|
|
1211
|
-
* @param kind the kind of certificate to process
|
|
1212
|
-
*
|
|
1213
2211
|
* @returns
|
|
1214
2212
|
* - `certificate` Generated certificate
|
|
1215
|
-
* - `certificateP12` p12 representation of the Apple-signed certificate
|
|
2213
|
+
* - `certificateP12` p12 representation of the Apple-signed certificate. This will generate without new lines.
|
|
1216
2214
|
* - `password` secure random password used to sign the certificate
|
|
1217
|
-
* - `privateSigningKey` forge generated key used to generate the certificate signing request in PEM format
|
|
2215
|
+
* - `privateSigningKey` forge generated key used to generate the certificate signing request in PEM format`
|
|
1218
2216
|
*/
|
|
1219
2217
|
export function createCertificateAndP12Async(context: RequestContext, { certificateType, }: {
|
|
1220
2218
|
certificateType: CertificateType;
|
|
@@ -1227,7 +2225,6 @@ declare module "connect/models/Certificate" {
|
|
|
1227
2225
|
}
|
|
1228
2226
|
declare module "connect/models/Device" {
|
|
1229
2227
|
import { RequestContext } from "network/Request";
|
|
1230
|
-
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
1231
2228
|
import { BundleIdPlatform } from "connect/models/BundleId";
|
|
1232
2229
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1233
2230
|
export enum DeviceClass {
|
|
@@ -1251,16 +2248,22 @@ declare module "connect/models/Device" {
|
|
|
1251
2248
|
udid: string;
|
|
1252
2249
|
addedDate: string;
|
|
1253
2250
|
}
|
|
1254
|
-
type DeviceQueryFilter = ConnectQueryFilter<DeviceProps, 'name' | 'platform' | 'status' | 'udid'>;
|
|
1255
2251
|
export class Device extends ConnectModel<DeviceProps> {
|
|
1256
2252
|
static type: string;
|
|
1257
|
-
static getAsync(context: RequestContext,
|
|
1258
|
-
query?: ConnectQueryParams<
|
|
1259
|
-
|
|
1260
|
-
|
|
2253
|
+
static getAsync: (context: RequestContext, props?: {
|
|
2254
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
2255
|
+
status: DeviceStatus | DeviceStatus[];
|
|
2256
|
+
name: string | string[];
|
|
2257
|
+
platform: BundleIdPlatform | BundleIdPlatform[];
|
|
2258
|
+
udid: string | string[];
|
|
2259
|
+
} & {
|
|
2260
|
+
id?: string | undefined;
|
|
2261
|
+
}>> | undefined;
|
|
2262
|
+
} | undefined) => Promise<Device[]>;
|
|
2263
|
+
static infoAsync: (context: RequestContext, props: {
|
|
1261
2264
|
id: string;
|
|
1262
|
-
query?: ConnectQueryParams;
|
|
1263
|
-
})
|
|
2265
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
2266
|
+
}) => Promise<Device>;
|
|
1264
2267
|
static createAsync(context: RequestContext, { name, udid, platform, }: {
|
|
1265
2268
|
name: DeviceProps['name'];
|
|
1266
2269
|
udid: DeviceProps['udid'];
|
|
@@ -1275,7 +2278,7 @@ declare module "connect/models/Device" {
|
|
|
1275
2278
|
}
|
|
1276
2279
|
declare module "connect/models/Profile" {
|
|
1277
2280
|
import { RequestContext } from "network/Request";
|
|
1278
|
-
import {
|
|
2281
|
+
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
1279
2282
|
import { BundleId, BundleIdPlatform } from "connect/models/BundleId";
|
|
1280
2283
|
import { Certificate } from "connect/models/Certificate";
|
|
1281
2284
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
@@ -1348,17 +2351,22 @@ declare module "connect/models/Profile" {
|
|
|
1348
2351
|
certificates?: Certificate[];
|
|
1349
2352
|
devices?: Device[];
|
|
1350
2353
|
}
|
|
1351
|
-
type ProfileQueryFilter = ConnectQueryFilter<ProfileProps, 'name' | 'profileState' | 'profileType'>;
|
|
1352
2354
|
export class Profile extends ConnectModel<ProfileProps> {
|
|
1353
2355
|
static type: string;
|
|
1354
2356
|
static DEFAULT_INCLUDES: string[];
|
|
1355
|
-
static getAsync(context: RequestContext,
|
|
1356
|
-
query?: ConnectQueryParams<
|
|
1357
|
-
|
|
1358
|
-
|
|
2357
|
+
static getAsync: (context: RequestContext, props?: {
|
|
2358
|
+
query?: ConnectQueryParams<Partial<{
|
|
2359
|
+
name: string | string[];
|
|
2360
|
+
profileState: ProfileState | ProfileState[];
|
|
2361
|
+
profileType: ProfileType | ProfileType[];
|
|
2362
|
+
} & {
|
|
2363
|
+
id?: string | undefined;
|
|
2364
|
+
}>> | undefined;
|
|
2365
|
+
} | undefined) => Promise<Profile[]>;
|
|
2366
|
+
static infoAsync: (context: RequestContext, props: {
|
|
1359
2367
|
id: string;
|
|
1360
|
-
query?: ConnectQueryParams<
|
|
1361
|
-
})
|
|
2368
|
+
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
2369
|
+
}) => Promise<Profile>;
|
|
1362
2370
|
/**
|
|
1363
2371
|
*
|
|
1364
2372
|
* @param bundleId `BundleId` id (Opaque ID)
|
|
@@ -1373,9 +2381,10 @@ declare module "connect/models/Profile" {
|
|
|
1373
2381
|
profileType: ProfileType;
|
|
1374
2382
|
templateName?: string;
|
|
1375
2383
|
}): Promise<Profile>;
|
|
1376
|
-
static deleteAsync(context: RequestContext,
|
|
2384
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
1377
2385
|
id: string;
|
|
1378
|
-
})
|
|
2386
|
+
}) => Promise<void>;
|
|
2387
|
+
deleteAsync(): Promise<void>;
|
|
1379
2388
|
isValid(): boolean;
|
|
1380
2389
|
getDevicesAsync({ query, }?: {
|
|
1381
2390
|
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
@@ -1386,16 +2395,28 @@ declare module "connect/models/Profile" {
|
|
|
1386
2395
|
getBundleIdAsync({ query, }?: {
|
|
1387
2396
|
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
1388
2397
|
}): Promise<BundleId>;
|
|
2398
|
+
/** Devices cannot be added to App Store profiles, whereas AdHoc profiles must have devices. */
|
|
2399
|
+
isDeviceProvisioningSupported(): boolean;
|
|
2400
|
+
/**
|
|
2401
|
+
* Emulates profile repairing by deleting a the current profile, and regenerating a new profile with the same info.
|
|
2402
|
+
*/
|
|
2403
|
+
regenerateManuallyAsync({ retry }?: {
|
|
2404
|
+
retry?: boolean;
|
|
2405
|
+
}): Promise<Profile>;
|
|
1389
2406
|
/**
|
|
1390
2407
|
* A super dangerous method that uses the old API to repair a provisioning profile.
|
|
2408
|
+
* @returns
|
|
1391
2409
|
*/
|
|
1392
2410
|
regenerateAsync(): Promise<Profile>;
|
|
1393
2411
|
}
|
|
2412
|
+
export function isNameCollisionError(error: {
|
|
2413
|
+
detail?: string;
|
|
2414
|
+
}): boolean;
|
|
1394
2415
|
}
|
|
1395
2416
|
declare module "connect/models/BundleId" {
|
|
1396
2417
|
import { RequestContext } from "network/Request";
|
|
1397
2418
|
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
1398
|
-
import { BundleIdCapability, CapabilityOptionMap, CapabilityType } from "connect/models/BundleIdCapability";
|
|
2419
|
+
import { BundleIdCapability, CapabilityOptionMap, CapabilityType, UpdateCapabilityRelationshipProps } from "connect/models/BundleIdCapability";
|
|
1399
2420
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1400
2421
|
import { Profile } from "connect/models/Profile";
|
|
1401
2422
|
export enum BundleIdPlatform {
|
|
@@ -1420,21 +2441,29 @@ declare module "connect/models/BundleId" {
|
|
|
1420
2441
|
interface UpdateCapabilityProps<T extends CapabilityType> {
|
|
1421
2442
|
capabilityType: T;
|
|
1422
2443
|
option: CapabilityOptionMap[T];
|
|
2444
|
+
relationships?: UpdateCapabilityRelationshipProps;
|
|
1423
2445
|
}
|
|
1424
2446
|
export class BundleId extends ConnectModel<BundleIdProps> {
|
|
1425
2447
|
static type: string;
|
|
1426
2448
|
static DEFAULT_INCLUDES: string[];
|
|
1427
|
-
static getAsync(context: RequestContext,
|
|
1428
|
-
query?: ConnectQueryParams<
|
|
1429
|
-
|
|
2449
|
+
static getAsync: (context: RequestContext, props?: {
|
|
2450
|
+
query?: ConnectQueryParams<Partial<{
|
|
2451
|
+
name: string | string[];
|
|
2452
|
+
identifier: string | string[];
|
|
2453
|
+
platform: BundleIdPlatform | BundleIdPlatform[];
|
|
2454
|
+
seedId: string | string[];
|
|
2455
|
+
} & {
|
|
2456
|
+
id?: string | undefined;
|
|
2457
|
+
}>> | undefined;
|
|
2458
|
+
} | undefined) => Promise<BundleId[]>;
|
|
1430
2459
|
/**
|
|
1431
2460
|
*
|
|
1432
2461
|
* @param id `BundleId` id (ex: UNHB5PT4MA)
|
|
1433
2462
|
*/
|
|
1434
|
-
static infoAsync(context: RequestContext,
|
|
2463
|
+
static infoAsync: (context: RequestContext, props: {
|
|
1435
2464
|
id: string;
|
|
1436
|
-
query?: ConnectQueryParams;
|
|
1437
|
-
})
|
|
2465
|
+
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
2466
|
+
}) => Promise<BundleId>;
|
|
1438
2467
|
static findAsync(context: RequestContext, { identifier, }: {
|
|
1439
2468
|
identifier: string;
|
|
1440
2469
|
}): Promise<BundleId | null>;
|
|
@@ -1443,16 +2472,16 @@ declare module "connect/models/BundleId" {
|
|
|
1443
2472
|
platform?: BundleIdProps['platform'];
|
|
1444
2473
|
identifier: string;
|
|
1445
2474
|
}): Promise<BundleId>;
|
|
1446
|
-
static deleteAsync(context: RequestContext,
|
|
2475
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
1447
2476
|
id: string;
|
|
1448
|
-
})
|
|
2477
|
+
}) => Promise<void>;
|
|
1449
2478
|
deleteAsync({ id }: {
|
|
1450
2479
|
id: string;
|
|
1451
|
-
}): Promise<
|
|
2480
|
+
}): Promise<void>;
|
|
1452
2481
|
updateBundleIdCapabilityAsync<T extends CapabilityType>(options: UpdateCapabilityProps<T> | UpdateCapabilityProps<T>[]): Promise<BundleId>;
|
|
1453
2482
|
deleteBundleIdCapabilityAsync({ capabilityType, }: {
|
|
1454
2483
|
capabilityType: CapabilityType;
|
|
1455
|
-
}): Promise<
|
|
2484
|
+
}): Promise<void>;
|
|
1456
2485
|
getBundleIdCapabilitiesAsync({ query, }?: {
|
|
1457
2486
|
query?: Pick<ConnectQueryParams<object>, 'limit'>;
|
|
1458
2487
|
}): Promise<BundleIdCapability[]>;
|
|
@@ -1467,8 +2496,7 @@ declare module "connect/models/BundleId" {
|
|
|
1467
2496
|
}
|
|
1468
2497
|
}
|
|
1469
2498
|
declare module "connect/models/AppCategory" {
|
|
1470
|
-
import {
|
|
1471
|
-
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
2499
|
+
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
1472
2500
|
import { BundleIdPlatform } from "connect/models/BundleId";
|
|
1473
2501
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1474
2502
|
export enum AppCategoryId {
|
|
@@ -1538,9 +2566,13 @@ declare module "connect/models/AppCategory" {
|
|
|
1538
2566
|
export type AppCategoryQueryFilter = ConnectQueryFilter<AppCategoryProps, 'platforms'>;
|
|
1539
2567
|
export class AppCategory extends ConnectModel<AppCategoryProps> {
|
|
1540
2568
|
static type: string;
|
|
1541
|
-
static getAsync(context: RequestContext,
|
|
1542
|
-
query?: ConnectQueryParams<
|
|
1543
|
-
|
|
2569
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
2570
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
2571
|
+
platforms: BundleIdPlatform[] | BundleIdPlatform[][];
|
|
2572
|
+
} & {
|
|
2573
|
+
id?: string | undefined;
|
|
2574
|
+
}>> | undefined;
|
|
2575
|
+
} | undefined) => Promise<AppCategory[]>;
|
|
1544
2576
|
}
|
|
1545
2577
|
}
|
|
1546
2578
|
declare module "connect/AssetAPI" {
|
|
@@ -1627,9 +2659,10 @@ declare module "connect/models/AppStoreReviewAttachment" {
|
|
|
1627
2659
|
id: string;
|
|
1628
2660
|
attributes: Pick<AppStoreReviewAttachmentProps, 'fileName' | 'fileSize'>;
|
|
1629
2661
|
}): Promise<AppStoreReviewAttachment>;
|
|
1630
|
-
static deleteAsync(context: RequestContext,
|
|
2662
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
1631
2663
|
id: string;
|
|
1632
|
-
})
|
|
2664
|
+
}) => Promise<void>;
|
|
2665
|
+
deleteAsync(): Promise<void>;
|
|
1633
2666
|
/**
|
|
1634
2667
|
*
|
|
1635
2668
|
* @param id `AppStoreReviewDetail` id
|
|
@@ -1665,9 +2698,9 @@ declare module "connect/models/AppStoreReviewDetail" {
|
|
|
1665
2698
|
id: string;
|
|
1666
2699
|
attributes: Partial<AppStoreReviewDetailProps>;
|
|
1667
2700
|
}): Promise<AppStoreReviewDetail>;
|
|
1668
|
-
static deleteAsync(context: RequestContext,
|
|
2701
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
1669
2702
|
id: string;
|
|
1670
|
-
})
|
|
2703
|
+
}) => Promise<void>;
|
|
1671
2704
|
updateAsync(options: Partial<AppStoreReviewDetailProps>): Promise<AppStoreReviewDetail>;
|
|
1672
2705
|
uploadAttachmentAsync(filePath: string): Promise<AppStoreReviewAttachment>;
|
|
1673
2706
|
}
|
|
@@ -1675,7 +2708,6 @@ declare module "connect/models/AppStoreReviewDetail" {
|
|
|
1675
2708
|
declare module "connect/models/AppScreenshot" {
|
|
1676
2709
|
import { RequestContext } from "network/Request";
|
|
1677
2710
|
import { AppMediaAssetState, ImageAsset, UploadOperation } from "connect/AssetAPI";
|
|
1678
|
-
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
1679
2711
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1680
2712
|
export interface AppScreenshotProps {
|
|
1681
2713
|
fileSize: number;
|
|
@@ -1689,10 +2721,10 @@ declare module "connect/models/AppScreenshot" {
|
|
|
1689
2721
|
}
|
|
1690
2722
|
export class AppScreenshot extends ConnectModel<AppScreenshotProps> {
|
|
1691
2723
|
static type: string;
|
|
1692
|
-
static infoAsync(context: RequestContext,
|
|
2724
|
+
static infoAsync: (context: RequestContext, props: {
|
|
1693
2725
|
id: string;
|
|
1694
|
-
query?: ConnectQueryParams;
|
|
1695
|
-
})
|
|
2726
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
2727
|
+
}) => Promise<AppScreenshot>;
|
|
1696
2728
|
static createAsync(context: RequestContext, { id, attributes, }: {
|
|
1697
2729
|
id: string;
|
|
1698
2730
|
attributes: Pick<AppScreenshotProps, 'fileName' | 'fileSize'>;
|
|
@@ -1706,10 +2738,10 @@ declare module "connect/models/AppScreenshot" {
|
|
|
1706
2738
|
filePath: string;
|
|
1707
2739
|
waitForProcessing?: boolean;
|
|
1708
2740
|
}): Promise<AppScreenshot>;
|
|
1709
|
-
static deleteAsync(context: RequestContext,
|
|
2741
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
1710
2742
|
id: string;
|
|
1711
|
-
})
|
|
1712
|
-
deleteAsync(): Promise<
|
|
2743
|
+
}) => Promise<void>;
|
|
2744
|
+
deleteAsync(): Promise<void>;
|
|
1713
2745
|
updateAsync(options: Partial<AppScreenshotProps>): Promise<AppScreenshot>;
|
|
1714
2746
|
isAwaitingUpload(): boolean;
|
|
1715
2747
|
isComplete(): boolean;
|
|
@@ -1765,10 +2797,10 @@ declare module "connect/models/AppScreenshotSet" {
|
|
|
1765
2797
|
*
|
|
1766
2798
|
* @param id `AppScreenshotSet` id (ex: UNHB5PT4MA)
|
|
1767
2799
|
*/
|
|
1768
|
-
static infoAsync(context: RequestContext,
|
|
2800
|
+
static infoAsync: (context: RequestContext, props: {
|
|
1769
2801
|
id: string;
|
|
1770
|
-
query?: ConnectQueryParams;
|
|
1771
|
-
})
|
|
2802
|
+
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
2803
|
+
}) => Promise<AppScreenshotSet>;
|
|
1772
2804
|
/**
|
|
1773
2805
|
*
|
|
1774
2806
|
* @param id `AppStoreVersionLocalization` id
|
|
@@ -1823,9 +2855,9 @@ declare module "connect/models/AppStoreVersionLocalization" {
|
|
|
1823
2855
|
id: string;
|
|
1824
2856
|
locale: string;
|
|
1825
2857
|
}): Promise<AppStoreVersionLocalization>;
|
|
1826
|
-
static deleteAsync(context: RequestContext,
|
|
2858
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
1827
2859
|
id: string;
|
|
1828
|
-
})
|
|
2860
|
+
}) => Promise<void>;
|
|
1829
2861
|
updateAsync(options: Partial<Omit<AppStoreVersionLocalizationProps, 'locale' | 'appScreenshotSets' | 'appPreviewSets'>>): Promise<AppStoreVersionLocalization>;
|
|
1830
2862
|
getAppScreenshotSetsAsync({ query, }?: {
|
|
1831
2863
|
query?: ConnectQueryParams<ConnectQueryFilter<AppScreenshotSetProps, 'screenshotDisplayType'>>;
|
|
@@ -1861,9 +2893,10 @@ declare module "connect/models/AppStoreVersionPhasedRelease" {
|
|
|
1861
2893
|
id: string;
|
|
1862
2894
|
phasedReleaseState: AppStoreVersionPhasedReleaseProps['phasedReleaseState'];
|
|
1863
2895
|
}): Promise<AppStoreVersionPhasedRelease>;
|
|
1864
|
-
static deleteAsync(context: RequestContext,
|
|
2896
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
1865
2897
|
id: string;
|
|
1866
|
-
})
|
|
2898
|
+
}) => Promise<void>;
|
|
2899
|
+
deleteAsync(): Promise<void>;
|
|
1867
2900
|
pauseAsync(): Promise<AppStoreVersionPhasedRelease>;
|
|
1868
2901
|
resumeAsync(): Promise<AppStoreVersionPhasedRelease>;
|
|
1869
2902
|
completeAsync(): Promise<AppStoreVersionPhasedRelease>;
|
|
@@ -1898,41 +2931,196 @@ declare module "connect/models/AppStoreVersionSubmission" {
|
|
|
1898
2931
|
*/
|
|
1899
2932
|
static createAsync(context: RequestContext, { id, attributes, }: {
|
|
1900
2933
|
id: string;
|
|
1901
|
-
attributes
|
|
2934
|
+
attributes?: Partial<AppStoreVersionSubmissionProps>;
|
|
1902
2935
|
}): Promise<AppStoreVersionSubmission>;
|
|
1903
|
-
static deleteAsync(context: RequestContext,
|
|
2936
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
1904
2937
|
id: string;
|
|
1905
|
-
})
|
|
2938
|
+
}) => Promise<void>;
|
|
1906
2939
|
}
|
|
1907
2940
|
}
|
|
1908
|
-
declare module "connect/models/
|
|
2941
|
+
declare module "connect/models/BetaAppReviewSubmission" {
|
|
1909
2942
|
import { RequestContext } from "network/Request";
|
|
2943
|
+
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
1910
2944
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1911
|
-
export
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
2945
|
+
export enum BetaReviewState {
|
|
2946
|
+
WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW",
|
|
2947
|
+
IN_REVIEW = "IN_REVIEW",
|
|
2948
|
+
REJECTED = "REJECTED",
|
|
2949
|
+
APPROVED = "APPROVED"
|
|
1916
2950
|
}
|
|
1917
|
-
|
|
2951
|
+
interface BetaAppReviewSubmissionProps {
|
|
2952
|
+
betaReviewState: BetaReviewState;
|
|
2953
|
+
}
|
|
2954
|
+
export type BetaAppReviewSubmissionQueryFilter = ConnectQueryFilter<BetaAppReviewSubmissionProps, 'betaReviewState'>;
|
|
2955
|
+
export class BetaAppReviewSubmission extends ConnectModel<BetaAppReviewSubmissionProps> {
|
|
1918
2956
|
static type: string;
|
|
2957
|
+
static getAsync: (context: RequestContext, props?: {
|
|
2958
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
2959
|
+
betaReviewState: BetaReviewState | BetaReviewState[];
|
|
2960
|
+
} & {
|
|
2961
|
+
id?: string | undefined;
|
|
2962
|
+
}>> | undefined;
|
|
2963
|
+
} | undefined) => Promise<BetaAppReviewSubmission[]>;
|
|
1919
2964
|
/**
|
|
1920
2965
|
*
|
|
1921
|
-
* @param id `
|
|
2966
|
+
* @param id `Build` id
|
|
1922
2967
|
*/
|
|
1923
|
-
static createAsync(context: RequestContext, { id,
|
|
2968
|
+
static createAsync(context: RequestContext, { id, }: {
|
|
1924
2969
|
id: string;
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
static deleteAsync(context: RequestContext, { id, }: {
|
|
2970
|
+
}): Promise<BetaAppReviewSubmission>;
|
|
2971
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
1928
2972
|
id: string;
|
|
1929
|
-
})
|
|
1930
|
-
updateAsync(options: Partial<IdfaDeclarationProps>): Promise<IdfaDeclaration>;
|
|
2973
|
+
}) => Promise<void>;
|
|
1931
2974
|
}
|
|
1932
2975
|
}
|
|
1933
|
-
declare module "connect/models/
|
|
2976
|
+
declare module "connect/models/BetaBuildLocalization" {
|
|
1934
2977
|
import { RequestContext } from "network/Request";
|
|
1935
|
-
import { ConnectQueryFilter
|
|
2978
|
+
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
2979
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2980
|
+
interface BetaBuildLocalizationProps {
|
|
2981
|
+
whatsNew: string | null;
|
|
2982
|
+
locale: string | null;
|
|
2983
|
+
}
|
|
2984
|
+
export type BetaBuildLocalizationQueryFilter = ConnectQueryFilter<BetaBuildLocalizationProps & {
|
|
2985
|
+
/**
|
|
2986
|
+
* `Build` id
|
|
2987
|
+
*/
|
|
2988
|
+
build: string;
|
|
2989
|
+
}, 'build' | 'locale'>;
|
|
2990
|
+
export class BetaBuildLocalization extends ConnectModel<BetaBuildLocalizationProps> {
|
|
2991
|
+
static type: string;
|
|
2992
|
+
static getAsync: (context: RequestContext, props?: {
|
|
2993
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
2994
|
+
locale: string | (string | null)[] | null;
|
|
2995
|
+
build: string | string[];
|
|
2996
|
+
} & {
|
|
2997
|
+
id?: string | undefined;
|
|
2998
|
+
}>> | undefined;
|
|
2999
|
+
} | undefined) => Promise<BetaBuildLocalization[]>;
|
|
3000
|
+
/**
|
|
3001
|
+
*
|
|
3002
|
+
* @param id `Build` id
|
|
3003
|
+
*/
|
|
3004
|
+
static createAsync(context: RequestContext, { id, locale, }: {
|
|
3005
|
+
id: string;
|
|
3006
|
+
locale: string;
|
|
3007
|
+
}): Promise<BetaBuildLocalization>;
|
|
3008
|
+
updateAsync(attributes: Partial<BetaBuildLocalizationProps>): Promise<BetaBuildLocalization>;
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
declare module "connect/models/BetaBuildMetric" {
|
|
3012
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3013
|
+
interface BetaBuildMetricProps {
|
|
3014
|
+
installCount: number;
|
|
3015
|
+
crashCount: number;
|
|
3016
|
+
inviteCount: number;
|
|
3017
|
+
sevenDayTesterCount: number;
|
|
3018
|
+
}
|
|
3019
|
+
export class BetaBuildMetric extends ConnectModel<BetaBuildMetricProps> {
|
|
3020
|
+
static type: string;
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
declare module "connect/models/BetaGroup" {
|
|
3024
|
+
import { RequestContext } from "network/Request";
|
|
3025
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3026
|
+
interface BetaGroupProps {
|
|
3027
|
+
/**
|
|
3028
|
+
* @example 'App Store Connect Users'
|
|
3029
|
+
*/
|
|
3030
|
+
name: string;
|
|
3031
|
+
/**
|
|
3032
|
+
* @example '2017-08-07T18:06:37.632Z'
|
|
3033
|
+
*/
|
|
3034
|
+
createdDate: string;
|
|
3035
|
+
isInternalGroup: boolean;
|
|
3036
|
+
publicLinkEnabled: boolean;
|
|
3037
|
+
publicLinkId: string;
|
|
3038
|
+
publicLinkLimitEnabled: boolean;
|
|
3039
|
+
publicLinkLimit: number;
|
|
3040
|
+
publicLink: string | null;
|
|
3041
|
+
feedbackEnabled: boolean;
|
|
3042
|
+
}
|
|
3043
|
+
export class BetaGroup extends ConnectModel<BetaGroupProps> {
|
|
3044
|
+
static type: string;
|
|
3045
|
+
static getAsync: (context: RequestContext, props?: {
|
|
3046
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
3047
|
+
} | undefined) => Promise<BetaGroup[]>;
|
|
3048
|
+
/**
|
|
3049
|
+
*
|
|
3050
|
+
* @param id `App` id
|
|
3051
|
+
*/
|
|
3052
|
+
static createAsync(context: RequestContext, { id, name, publicLinkEnabled, publicLinkLimit, publicLinkLimitEnabled, }: {
|
|
3053
|
+
id: string;
|
|
3054
|
+
} & Pick<BetaGroupProps, 'name' | 'publicLinkEnabled' | 'publicLinkLimit' | 'publicLinkLimitEnabled'>): Promise<BetaGroup>;
|
|
3055
|
+
createBulkBetaTesterAssignmentsAsync(betaTesters: {
|
|
3056
|
+
email: string;
|
|
3057
|
+
firstName: string;
|
|
3058
|
+
lastName: string;
|
|
3059
|
+
}[]): Promise<unknown>;
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
declare module "connect/models/BuildBetaDetail" {
|
|
3063
|
+
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
3064
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3065
|
+
export enum InternalBuildState {
|
|
3066
|
+
PROCESSING = "PROCESSING",
|
|
3067
|
+
PROCESSING_EXCEPTION = "PROCESSING_EXCEPTION",
|
|
3068
|
+
MISSING_EXPORT_COMPLIANCE = "MISSING_EXPORT_COMPLIANCE",
|
|
3069
|
+
READY_FOR_BETA_TESTING = "READY_FOR_BETA_TESTING",
|
|
3070
|
+
IN_BETA_TESTING = "IN_BETA_TESTING",
|
|
3071
|
+
EXPIRED = "EXPIRED",
|
|
3072
|
+
IN_EXPORT_COMPLIANCE_REVIEW = "IN_EXPORT_COMPLIANCE_REVIEW"
|
|
3073
|
+
}
|
|
3074
|
+
export enum ExternalBuildState {
|
|
3075
|
+
PROCESSING = "PROCESSING",
|
|
3076
|
+
PROCESSING_EXCEPTION = "PROCESSING_EXCEPTION",
|
|
3077
|
+
MISSING_EXPORT_COMPLIANCE = "MISSING_EXPORT_COMPLIANCE",
|
|
3078
|
+
READY_FOR_BETA_TESTING = "READY_FOR_BETA_TESTING",
|
|
3079
|
+
IN_BETA_TESTING = "IN_BETA_TESTING",
|
|
3080
|
+
EXPIRED = "EXPIRED",
|
|
3081
|
+
READY_FOR_BETA_SUBMISSION = "READY_FOR_BETA_SUBMISSION",
|
|
3082
|
+
IN_EXPORT_COMPLIANCE_REVIEW = "IN_EXPORT_COMPLIANCE_REVIEW",
|
|
3083
|
+
WAITING_FOR_BETA_REVIEW = "WAITING_FOR_BETA_REVIEW",
|
|
3084
|
+
IN_BETA_REVIEW = "IN_BETA_REVIEW",
|
|
3085
|
+
BETA_REJECTED = "BETA_REJECTED",
|
|
3086
|
+
BETA_APPROVED = "BETA_APPROVED"
|
|
3087
|
+
}
|
|
3088
|
+
interface BuildBetaDetailProps {
|
|
3089
|
+
autoNotifyEnabled: boolean;
|
|
3090
|
+
didNotify: boolean;
|
|
3091
|
+
internalBuildState: InternalBuildState;
|
|
3092
|
+
externalBuildState: ExternalBuildState;
|
|
3093
|
+
}
|
|
3094
|
+
export type BuildBetaDetailQueryFilter = ConnectQueryFilter<{
|
|
3095
|
+
/**
|
|
3096
|
+
* `Build` id
|
|
3097
|
+
*/
|
|
3098
|
+
build: string;
|
|
3099
|
+
}, 'build'>;
|
|
3100
|
+
export class BuildBetaDetail extends ConnectModel<BuildBetaDetailProps> {
|
|
3101
|
+
static type: string;
|
|
3102
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
3103
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
3104
|
+
build: string | string[];
|
|
3105
|
+
} & {
|
|
3106
|
+
id?: string | undefined;
|
|
3107
|
+
}>> | undefined;
|
|
3108
|
+
} | undefined) => Promise<BuildBetaDetail[]>;
|
|
3109
|
+
/**
|
|
3110
|
+
*
|
|
3111
|
+
* @param id `BuildBetaDetail` id (ex: UNHB5PT4MA)
|
|
3112
|
+
*/
|
|
3113
|
+
static infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
3114
|
+
id: string;
|
|
3115
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
3116
|
+
}) => Promise<BuildBetaDetail>;
|
|
3117
|
+
updateAsync(attributes: Partial<BuildBetaDetailProps>): Promise<BuildBetaDetail>;
|
|
3118
|
+
isReadyForInternalTesting(): boolean;
|
|
3119
|
+
isReadyForBetaSubmission(): boolean;
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
declare module "connect/models/PreReleaseVersion" {
|
|
3123
|
+
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
1936
3124
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1937
3125
|
export interface PreReleaseVersionProps {
|
|
1938
3126
|
/**
|
|
@@ -1952,101 +3140,250 @@ declare module "connect/models/PreReleaseVersion" {
|
|
|
1952
3140
|
export type PreReleaseVersionQueryFilter = ConnectQueryFilter<PreReleaseVersionProps, 'platform' | 'version'>;
|
|
1953
3141
|
export class PreReleaseVersion extends ConnectModel<PreReleaseVersionProps> {
|
|
1954
3142
|
static type: string;
|
|
1955
|
-
static getAsync(context: RequestContext,
|
|
1956
|
-
query?: ConnectQueryParams<
|
|
1957
|
-
|
|
3143
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
3144
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
3145
|
+
platform: Platform | Platform[];
|
|
3146
|
+
version: string | string[];
|
|
3147
|
+
} & {
|
|
3148
|
+
id?: string | undefined;
|
|
3149
|
+
}>> | undefined;
|
|
3150
|
+
} | undefined) => Promise<PreReleaseVersion[]>;
|
|
1958
3151
|
/**
|
|
1959
3152
|
*
|
|
1960
3153
|
* @param id `PreReleaseVersion` id (ex: UNHB5PT4MA)
|
|
1961
3154
|
*/
|
|
1962
|
-
static infoAsync(context: RequestContext,
|
|
1963
|
-
id: string;
|
|
1964
|
-
query?: ConnectQueryParams<object>;
|
|
1965
|
-
}): Promise<PreReleaseVersion>;
|
|
1966
|
-
}
|
|
1967
|
-
}
|
|
1968
|
-
declare module "connect/models/ResetRatingsRequest" {
|
|
1969
|
-
import { RequestContext } from "network/Request";
|
|
1970
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
1971
|
-
export interface ResetRatingsRequestProps {
|
|
1972
|
-
resetDate: string | null;
|
|
1973
|
-
}
|
|
1974
|
-
export class ResetRatingsRequest extends ConnectModel<ResetRatingsRequestProps> {
|
|
1975
|
-
static type: string;
|
|
1976
|
-
/**
|
|
1977
|
-
*
|
|
1978
|
-
* @param id `AppStoreVersion` id
|
|
1979
|
-
*/
|
|
1980
|
-
static createAsync(context: RequestContext, { id, }: {
|
|
1981
|
-
id: string;
|
|
1982
|
-
}): Promise<ResetRatingsRequest>;
|
|
1983
|
-
static deleteAsync(context: RequestContext, { id, }: {
|
|
3155
|
+
static infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
1984
3156
|
id: string;
|
|
1985
|
-
|
|
3157
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
3158
|
+
}) => Promise<PreReleaseVersion>;
|
|
1986
3159
|
}
|
|
1987
3160
|
}
|
|
1988
|
-
declare module "connect/models/
|
|
3161
|
+
declare module "connect/models/Build" {
|
|
1989
3162
|
import { RequestContext } from "network/Request";
|
|
1990
3163
|
import { ImageAsset } from "connect/AssetAPI";
|
|
1991
|
-
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
1992
|
-
import {
|
|
1993
|
-
import {
|
|
1994
|
-
import {
|
|
1995
|
-
import {
|
|
1996
|
-
import {
|
|
1997
|
-
import { AppStoreVersionReleaseRequest } from "connect/models/AppStoreVersionReleaseRequest";
|
|
1998
|
-
import { AppStoreVersionSubmission } from "connect/models/AppStoreVersionSubmission";
|
|
3164
|
+
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
3165
|
+
import { App } from "connect/models/App";
|
|
3166
|
+
import { BetaAppReviewSubmission } from "connect/models/BetaAppReviewSubmission";
|
|
3167
|
+
import { BetaBuildLocalization } from "connect/models/BetaBuildLocalization";
|
|
3168
|
+
import { BetaBuildMetric } from "connect/models/BetaBuildMetric";
|
|
3169
|
+
import { BuildBetaDetail } from "connect/models/BuildBetaDetail";
|
|
1999
3170
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2000
|
-
import {
|
|
2001
|
-
|
|
2002
|
-
import { ResetRatingsRequest } from "connect/models/ResetRatingsRequest";
|
|
2003
|
-
export enum ReleaseType {
|
|
2004
|
-
AFTER_APPROVAL = "AFTER_APPROVAL",
|
|
2005
|
-
MANUAL = "MANUAL",
|
|
2006
|
-
SCHEDULED = "SCHEDULED"
|
|
2007
|
-
}
|
|
2008
|
-
export interface AppStoreVersionProps {
|
|
3171
|
+
import { Platform, PreReleaseVersion } from "connect/models/PreReleaseVersion";
|
|
3172
|
+
export interface BuildProps {
|
|
2009
3173
|
/**
|
|
2010
|
-
* @example '
|
|
3174
|
+
* @example '1'
|
|
2011
3175
|
*/
|
|
2012
|
-
|
|
3176
|
+
version: string;
|
|
2013
3177
|
/**
|
|
2014
|
-
* @example '
|
|
3178
|
+
* @example '2017-08-08T15:21:52-07:00'
|
|
2015
3179
|
*/
|
|
2016
|
-
|
|
3180
|
+
uploadedDate: string;
|
|
2017
3181
|
/**
|
|
2018
|
-
* @example '
|
|
3182
|
+
* @example '2017-11-06T15:21:52-08:00'
|
|
2019
3183
|
*/
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
watchStoreIcon: ImageAsset | null;
|
|
3184
|
+
expirationDate: string;
|
|
3185
|
+
expired: boolean;
|
|
2023
3186
|
/**
|
|
2024
|
-
* @example '
|
|
3187
|
+
* @example '9.0'
|
|
2025
3188
|
*/
|
|
2026
|
-
|
|
3189
|
+
minOsVersion: string;
|
|
3190
|
+
iconAssetToken: ImageAsset;
|
|
2027
3191
|
/**
|
|
2028
|
-
* @example '
|
|
3192
|
+
* @example 'VALID'
|
|
2029
3193
|
*/
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
usesIdfa: boolean | null;
|
|
3194
|
+
processingState: ProcessingState;
|
|
3195
|
+
usesNonExemptEncryption: boolean;
|
|
2033
3196
|
isWatchOnly: boolean;
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
3197
|
+
hasMessagesExtension: boolean;
|
|
3198
|
+
hasStickers: boolean;
|
|
3199
|
+
isLaunchProhibited: boolean;
|
|
3200
|
+
app?: App;
|
|
3201
|
+
betaAppReviewSubmission?: BetaAppReviewSubmission;
|
|
3202
|
+
betaBuildMetrics?: BetaBuildMetric;
|
|
3203
|
+
buildBetaDetail?: BuildBetaDetail;
|
|
3204
|
+
preReleaseVersion?: PreReleaseVersion;
|
|
3205
|
+
}
|
|
3206
|
+
export enum ProcessingState {
|
|
3207
|
+
PROCESSING = "PROCESSING",
|
|
3208
|
+
FAILED = "FAILED",
|
|
3209
|
+
INVALID = "INVALID",
|
|
3210
|
+
VALID = "VALID"
|
|
3211
|
+
}
|
|
3212
|
+
export type BuildQueryFilter = ConnectQueryFilter<Omit<BuildProps, 'app'> & {
|
|
3213
|
+
/**
|
|
3214
|
+
* `App` id
|
|
3215
|
+
*/
|
|
3216
|
+
app: string;
|
|
3217
|
+
'preReleaseVersion.version': string;
|
|
3218
|
+
}, 'app' | 'version' | 'preReleaseVersion.version' | 'processingState'>;
|
|
3219
|
+
export class Build extends ConnectModel<BuildProps> {
|
|
3220
|
+
static type: string;
|
|
3221
|
+
static DEFAULT_INCLUDES: string[];
|
|
3222
|
+
static getAsync(context: RequestContext, { query, }?: {
|
|
3223
|
+
query?: ConnectQueryParams<BuildQueryFilter>;
|
|
3224
|
+
}): Promise<Build[]>;
|
|
3225
|
+
/**
|
|
3226
|
+
*
|
|
3227
|
+
* @param id `Build` id (ex: UNHB5PT4MA)
|
|
3228
|
+
*/
|
|
3229
|
+
static infoAsync: (context: RequestContext, props: {
|
|
3230
|
+
id: string;
|
|
3231
|
+
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
3232
|
+
}) => Promise<Build>;
|
|
3233
|
+
/**
|
|
3234
|
+
*
|
|
3235
|
+
* @param id `Build` id
|
|
3236
|
+
*/
|
|
3237
|
+
static createAsync(context: RequestContext, { id, locale, }: {
|
|
3238
|
+
id: string;
|
|
3239
|
+
locale: string;
|
|
3240
|
+
}): Promise<Build>;
|
|
3241
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
3242
|
+
id: string;
|
|
3243
|
+
}) => Promise<void>;
|
|
3244
|
+
updateAsync(attributes: Partial<BuildProps>): Promise<Build>;
|
|
3245
|
+
addBetaGroupsAsync({ betaGroups }: {
|
|
3246
|
+
betaGroups: string[];
|
|
3247
|
+
}): Promise<void>;
|
|
3248
|
+
getBetaBuildLocalizationsAsync({ query, }?: {
|
|
3249
|
+
query?: ConnectQueryParams;
|
|
3250
|
+
}): Promise<BetaBuildLocalization[]>;
|
|
3251
|
+
getBuildBetaDetailsAsync({ query, }?: {
|
|
3252
|
+
query?: ConnectQueryParams;
|
|
3253
|
+
}): Promise<BuildBetaDetail[]>;
|
|
3254
|
+
/**
|
|
3255
|
+
* Submit for beta app review.
|
|
3256
|
+
*/
|
|
3257
|
+
createBetaAppReviewSubmissionAsync(): Promise<BetaAppReviewSubmission>;
|
|
3258
|
+
/**
|
|
3259
|
+
* Expire the build to prevent further usage or submit a new build.
|
|
3260
|
+
*/
|
|
3261
|
+
expireAsync(): Promise<Build>;
|
|
3262
|
+
getAppVersion(): string;
|
|
3263
|
+
getPlatform(): Platform;
|
|
3264
|
+
getAppId(): string;
|
|
3265
|
+
getBundleId(): string;
|
|
3266
|
+
isReadyForBetaSubmission(): boolean;
|
|
3267
|
+
isProcessed(): boolean;
|
|
3268
|
+
isReadyForInternalTesting(): boolean;
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
declare module "connect/models/IdfaDeclaration" {
|
|
3272
|
+
import { RequestContext } from "network/Request";
|
|
3273
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3274
|
+
/** @deprecated 1.6 */
|
|
3275
|
+
export interface IdfaDeclarationProps {
|
|
3276
|
+
servesAds: boolean;
|
|
3277
|
+
attributesAppInstallationToPreviousAd: boolean;
|
|
3278
|
+
attributesActionWithPreviousAd: boolean;
|
|
3279
|
+
honorsLimitedAdTracking: boolean;
|
|
3280
|
+
}
|
|
3281
|
+
/** @deprecated 1.6 */
|
|
3282
|
+
export class IdfaDeclaration extends ConnectModel<IdfaDeclarationProps> {
|
|
3283
|
+
static type: string;
|
|
3284
|
+
/**
|
|
3285
|
+
*
|
|
3286
|
+
* @param id `AppStoreVersion` id
|
|
3287
|
+
*/
|
|
3288
|
+
static createAsync(context: RequestContext, { id, attributes, }: {
|
|
3289
|
+
id: string;
|
|
3290
|
+
attributes: Partial<IdfaDeclarationProps>;
|
|
3291
|
+
}): Promise<IdfaDeclaration>;
|
|
3292
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
3293
|
+
id: string;
|
|
3294
|
+
}) => Promise<void>;
|
|
3295
|
+
deleteAsync(): Promise<void>;
|
|
3296
|
+
updateAsync(options: Partial<IdfaDeclarationProps>): Promise<IdfaDeclaration>;
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
declare module "connect/models/ResetRatingsRequest" {
|
|
3300
|
+
import { RequestContext } from "network/Request";
|
|
3301
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3302
|
+
export interface ResetRatingsRequestProps {
|
|
3303
|
+
resetDate: string | null;
|
|
3304
|
+
}
|
|
3305
|
+
export class ResetRatingsRequest extends ConnectModel<ResetRatingsRequestProps> {
|
|
3306
|
+
static type: string;
|
|
3307
|
+
/**
|
|
3308
|
+
*
|
|
3309
|
+
* @param id `AppStoreVersion` id
|
|
3310
|
+
*/
|
|
3311
|
+
static createAsync(context: RequestContext, { id, }: {
|
|
3312
|
+
id: string;
|
|
3313
|
+
}): Promise<ResetRatingsRequest>;
|
|
3314
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
3315
|
+
id: string;
|
|
3316
|
+
}) => Promise<void>;
|
|
3317
|
+
deleteAsync(): Promise<void>;
|
|
3318
|
+
}
|
|
3319
|
+
}
|
|
3320
|
+
declare module "connect/models/AppStoreVersion" {
|
|
3321
|
+
import { RequestContext } from "network/Request";
|
|
3322
|
+
import { ImageAsset } from "connect/AssetAPI";
|
|
3323
|
+
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
3324
|
+
import { AgeRatingDeclaration } from "connect/models/AgeRatingDeclaration";
|
|
3325
|
+
import { AppStoreState } from "connect/models/AppInfo";
|
|
3326
|
+
import { AppStoreReviewDetail, AppStoreReviewDetailProps } from "connect/models/AppStoreReviewDetail";
|
|
3327
|
+
import { AppStoreVersionLocalization, AppStoreVersionLocalizationProps } from "connect/models/AppStoreVersionLocalization";
|
|
3328
|
+
import { AppStoreVersionPhasedRelease, AppStoreVersionPhasedReleaseProps } from "connect/models/AppStoreVersionPhasedRelease";
|
|
3329
|
+
import { AppStoreVersionReleaseRequest } from "connect/models/AppStoreVersionReleaseRequest";
|
|
3330
|
+
import { AppStoreVersionSubmission } from "connect/models/AppStoreVersionSubmission";
|
|
3331
|
+
import { Build } from "connect/models/Build";
|
|
3332
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3333
|
+
import { IdfaDeclaration, IdfaDeclarationProps } from "connect/models/IdfaDeclaration";
|
|
3334
|
+
import { Platform } from "connect/models/PreReleaseVersion";
|
|
3335
|
+
import { ResetRatingsRequest } from "connect/models/ResetRatingsRequest";
|
|
3336
|
+
export enum ReleaseType {
|
|
3337
|
+
AFTER_APPROVAL = "AFTER_APPROVAL",
|
|
3338
|
+
MANUAL = "MANUAL",
|
|
3339
|
+
SCHEDULED = "SCHEDULED"
|
|
3340
|
+
}
|
|
3341
|
+
export interface AppStoreVersionProps {
|
|
3342
|
+
/**
|
|
3343
|
+
* @example 'IOS'
|
|
3344
|
+
*/
|
|
3345
|
+
platform: Platform;
|
|
3346
|
+
/**
|
|
3347
|
+
* @example '1.0'
|
|
3348
|
+
*/
|
|
3349
|
+
versionString: string;
|
|
3350
|
+
/**
|
|
3351
|
+
* @example 'PREPARE_FOR_SUBMISSION'
|
|
3352
|
+
*/
|
|
3353
|
+
appStoreState: AppStoreState;
|
|
3354
|
+
storeIcon: ImageAsset | null;
|
|
3355
|
+
watchStoreIcon: ImageAsset | null;
|
|
3356
|
+
/**
|
|
3357
|
+
* @example '2020 Expo'
|
|
3358
|
+
*/
|
|
3359
|
+
copyright: string | null;
|
|
3360
|
+
/**
|
|
3361
|
+
* @example 'AFTER_APPROVAL'
|
|
3362
|
+
*/
|
|
3363
|
+
releaseType: ReleaseType | null;
|
|
3364
|
+
earliestReleaseDate: string | null;
|
|
3365
|
+
/** @deprecated 1.6 */
|
|
3366
|
+
usesIdfa: boolean | null;
|
|
3367
|
+
isWatchOnly: boolean;
|
|
3368
|
+
downloadable: boolean;
|
|
3369
|
+
/**
|
|
3370
|
+
* @example '2020-10-29T09:03:06-07:00'
|
|
3371
|
+
*/
|
|
3372
|
+
createdDate: string;
|
|
3373
|
+
appStoreVersionSubmission?: AppStoreVersionSubmission;
|
|
3374
|
+
}
|
|
3375
|
+
export class AppStoreVersion extends ConnectModel<AppStoreVersionProps> {
|
|
3376
|
+
static type: string;
|
|
3377
|
+
static DEFAULT_INCLUDES: string[];
|
|
3378
|
+
static createAsync(context: RequestContext, { id, versionString, platform, }: {
|
|
3379
|
+
id: string;
|
|
2046
3380
|
versionString: string;
|
|
2047
3381
|
platform: Platform;
|
|
2048
3382
|
}): Promise<AppStoreVersion>;
|
|
2049
|
-
|
|
3383
|
+
getBuildAsync({ query, }?: {
|
|
3384
|
+
query?: ConnectQueryParams;
|
|
3385
|
+
}): Promise<Build | null>;
|
|
3386
|
+
updateBuildAsync({ buildId }?: {
|
|
2050
3387
|
buildId?: string;
|
|
2051
3388
|
}): Promise<AppStoreVersion>;
|
|
2052
3389
|
updateAsync(options: Partial<Omit<AppStoreVersionProps, 'watchStoreIcon' | 'platform' | 'isWatchOnly' | 'storeIcon' | 'createdDate' | 'build' | 'appStoreVersionSubmission' | 'appStoreState'>>): Promise<AppStoreVersion>;
|
|
@@ -2063,13 +3400,18 @@ declare module "connect/models/AppStoreVersion" {
|
|
|
2063
3400
|
getAppStoreReviewDetailAsync({ query, }?: {
|
|
2064
3401
|
query?: ConnectQueryParams;
|
|
2065
3402
|
}): Promise<AppStoreReviewDetail | null>;
|
|
3403
|
+
createSubmissionAsync(): Promise<AppStoreVersionSubmission>;
|
|
2066
3404
|
getSubmissionAsync({ query, }?: {
|
|
2067
3405
|
query?: ConnectQueryParams;
|
|
2068
3406
|
}): Promise<AppStoreVersionSubmission | null>;
|
|
3407
|
+
/** @deprecated 1.6 */
|
|
2069
3408
|
getIdfaDeclarationAsync({ query, }?: {
|
|
2070
3409
|
query?: ConnectQueryParams;
|
|
2071
3410
|
}): Promise<IdfaDeclaration | null>;
|
|
3411
|
+
/** @deprecated 1.6 */
|
|
2072
3412
|
createIdfaDeclarationAsync(attributes: Partial<IdfaDeclarationProps>): Promise<IdfaDeclaration>;
|
|
3413
|
+
createLocalizationAsync({ locale, }: Pick<AppStoreVersionLocalizationProps, 'locale'>): Promise<AppStoreVersionLocalization>;
|
|
3414
|
+
createReviewDetailAsync(attributes: Partial<Omit<AppStoreReviewDetailProps, 'demoAccountRequired'>>): Promise<AppStoreReviewDetail>;
|
|
2073
3415
|
createReleaseRequestAsync(): Promise<AppStoreVersionReleaseRequest>;
|
|
2074
3416
|
getResetRatingsRequestAsync({ query, }?: {
|
|
2075
3417
|
query?: ConnectQueryParams;
|
|
@@ -2089,6 +3431,7 @@ declare module "connect/models/AppInfoLocalization" {
|
|
|
2089
3431
|
name: string | null;
|
|
2090
3432
|
subtitle: string | null;
|
|
2091
3433
|
privacyPolicyUrl: string | null;
|
|
3434
|
+
privacyChoicesUrl: string | null;
|
|
2092
3435
|
privacyPolicyText: string | null;
|
|
2093
3436
|
}
|
|
2094
3437
|
/**
|
|
@@ -2104,9 +3447,9 @@ declare module "connect/models/AppInfoLocalization" {
|
|
|
2104
3447
|
id: string;
|
|
2105
3448
|
locale: string;
|
|
2106
3449
|
}): Promise<AppInfoLocalization>;
|
|
2107
|
-
static deleteAsync(context: RequestContext,
|
|
3450
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
2108
3451
|
id: string;
|
|
2109
|
-
})
|
|
3452
|
+
}) => Promise<void>;
|
|
2110
3453
|
updateAsync(attributes: Partial<AppInfoLocalizationProps>): Promise<AppInfoLocalization>;
|
|
2111
3454
|
}
|
|
2112
3455
|
}
|
|
@@ -2114,7 +3457,7 @@ declare module "connect/models/AppInfo" {
|
|
|
2114
3457
|
import { RequestContext } from "network/Request";
|
|
2115
3458
|
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
2116
3459
|
import { AppCategory, AppCategoryId, AppSubcategoryId } from "connect/models/AppCategory";
|
|
2117
|
-
import { AppInfoLocalization } from "connect/models/AppInfoLocalization";
|
|
3460
|
+
import { AppInfoLocalization, AppInfoLocalizationProps } from "connect/models/AppInfoLocalization";
|
|
2118
3461
|
import { BundleIdPlatform } from "connect/models/BundleId";
|
|
2119
3462
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2120
3463
|
export enum AppStoreState {
|
|
@@ -2151,346 +3494,65 @@ declare module "connect/models/AppInfo" {
|
|
|
2151
3494
|
appStoreAgeRating: null | AppStoreAgeRating;
|
|
2152
3495
|
brazilAgeRating: null | BrazilAgeRating;
|
|
2153
3496
|
kidsAgeBand: null | KidsAgeBand;
|
|
2154
|
-
primaryCategory?: AppCategory;
|
|
2155
|
-
primarySubcategoryOne?: AppCategory;
|
|
2156
|
-
primarySubcategoryTwo?: AppCategory;
|
|
2157
|
-
secondaryCategory?: AppCategory;
|
|
2158
|
-
secondarySubcategoryOne?: AppCategory;
|
|
2159
|
-
secondarySubcategoryTwo?: AppCategory;
|
|
2160
|
-
}
|
|
2161
|
-
export interface CategoryIds {
|
|
2162
|
-
primaryCategory?: AppCategoryId;
|
|
2163
|
-
primarySubcategoryOne?: AppSubcategoryId;
|
|
2164
|
-
primarySubcategoryTwo?: AppSubcategoryId;
|
|
2165
|
-
secondaryCategory?: AppCategoryId;
|
|
2166
|
-
secondarySubcategoryOne?: AppSubcategoryId;
|
|
2167
|
-
secondarySubcategoryTwo?: AppSubcategoryId;
|
|
2168
|
-
}
|
|
2169
|
-
export class AppInfo extends ConnectModel<AppInfoProps> {
|
|
2170
|
-
static type: string;
|
|
2171
|
-
static DEFAULT_INCLUDES: string[];
|
|
2172
|
-
static createAsync(context: RequestContext, { id, versionString, platform, }: {
|
|
2173
|
-
id: string;
|
|
2174
|
-
versionString: string;
|
|
2175
|
-
platform: BundleIdPlatform;
|
|
2176
|
-
}): Promise<AppInfo>;
|
|
2177
|
-
static infoAsync(context: RequestContext, { id, query, }: {
|
|
2178
|
-
id: string;
|
|
2179
|
-
query?: ConnectQueryParams;
|
|
2180
|
-
}): Promise<AppInfo[]>;
|
|
2181
|
-
static deleteAsync(context: RequestContext, { id, }: {
|
|
2182
|
-
id: string;
|
|
2183
|
-
}): Promise<void>;
|
|
2184
|
-
updateCategoriesAsync(categories?: CategoryIds): Promise<AppInfo>;
|
|
2185
|
-
getLocalizationsAsync({ query, }?: {
|
|
2186
|
-
query?: ConnectQueryParams;
|
|
2187
|
-
}): Promise<AppInfoLocalization[]>;
|
|
2188
|
-
}
|
|
2189
|
-
}
|
|
2190
|
-
declare module "connect/models/AppPriceTier" {
|
|
2191
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2192
|
-
export class AppPriceTier extends ConnectModel<object> {
|
|
2193
|
-
static type: string;
|
|
2194
|
-
}
|
|
2195
|
-
}
|
|
2196
|
-
declare module "connect/models/AppPrice" {
|
|
2197
|
-
import { RequestContext } from "network/Request";
|
|
2198
|
-
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
2199
|
-
import { AppPriceTier } from "connect/models/AppPriceTier";
|
|
2200
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2201
|
-
export interface AppPriceProps {
|
|
2202
|
-
startDate: string;
|
|
2203
|
-
priceTier: AppPriceTier;
|
|
2204
|
-
}
|
|
2205
|
-
export class AppPrice extends ConnectModel<AppPriceProps> {
|
|
2206
|
-
static type: string;
|
|
2207
|
-
static getAsync(context: RequestContext, { query, }?: {
|
|
2208
|
-
query?: ConnectQueryParams;
|
|
2209
|
-
}): Promise<AppPrice[]>;
|
|
2210
|
-
static infoAsync(context: RequestContext, { id, query, }: {
|
|
2211
|
-
id: string;
|
|
2212
|
-
query?: ConnectQueryParams;
|
|
2213
|
-
}): Promise<AppPrice[]>;
|
|
2214
|
-
}
|
|
2215
|
-
}
|
|
2216
|
-
declare module "connect/models/BetaGroup" {
|
|
2217
|
-
import { RequestContext } from "network/Request";
|
|
2218
|
-
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
2219
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2220
|
-
interface BetaGroupProps {
|
|
2221
|
-
/**
|
|
2222
|
-
* @example 'App Store Connect Users'
|
|
2223
|
-
*/
|
|
2224
|
-
name: string;
|
|
2225
|
-
/**
|
|
2226
|
-
* @example '2017-08-07T18:06:37.632Z'
|
|
2227
|
-
*/
|
|
2228
|
-
createdDate: string;
|
|
2229
|
-
isInternalGroup: boolean;
|
|
2230
|
-
publicLinkEnabled: boolean;
|
|
2231
|
-
publicLinkId: string;
|
|
2232
|
-
publicLinkLimitEnabled: boolean;
|
|
2233
|
-
publicLinkLimit: number;
|
|
2234
|
-
publicLink: string | null;
|
|
2235
|
-
feedbackEnabled: boolean;
|
|
2236
|
-
}
|
|
2237
|
-
export class BetaGroup extends ConnectModel<BetaGroupProps> {
|
|
2238
|
-
static type: string;
|
|
2239
|
-
static getAsync(context: RequestContext, { query, }?: {
|
|
2240
|
-
query?: ConnectQueryParams;
|
|
2241
|
-
}): Promise<BetaGroup[]>;
|
|
2242
|
-
/**
|
|
2243
|
-
*
|
|
2244
|
-
* @param id `App` id
|
|
2245
|
-
*/
|
|
2246
|
-
static createAsync(context: RequestContext, { id, name, publicLinkEnabled, publicLinkLimit, publicLinkLimitEnabled, }: {
|
|
2247
|
-
id: string;
|
|
2248
|
-
} & Pick<BetaGroupProps, 'name' | 'publicLinkEnabled' | 'publicLinkLimit' | 'publicLinkLimitEnabled'>): Promise<BetaGroup>;
|
|
2249
|
-
createBulkBetaTesterAssignmentsAsync(betaTesters: {
|
|
2250
|
-
email: string;
|
|
2251
|
-
firstName: string;
|
|
2252
|
-
lastName: string;
|
|
2253
|
-
}[]): Promise<unknown>;
|
|
2254
|
-
}
|
|
2255
|
-
}
|
|
2256
|
-
declare module "connect/models/BetaAppReviewSubmission" {
|
|
2257
|
-
import { RequestContext } from "network/Request";
|
|
2258
|
-
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
2259
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2260
|
-
export enum BetaReviewState {
|
|
2261
|
-
WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW",
|
|
2262
|
-
IN_REVIEW = "IN_REVIEW",
|
|
2263
|
-
REJECTED = "REJECTED",
|
|
2264
|
-
APPROVED = "APPROVED"
|
|
2265
|
-
}
|
|
2266
|
-
interface BetaAppReviewSubmissionProps {
|
|
2267
|
-
betaReviewState: BetaReviewState;
|
|
2268
|
-
}
|
|
2269
|
-
export type BetaAppReviewSubmissionQueryFilter = ConnectQueryFilter<BetaAppReviewSubmissionProps, 'betaReviewState'>;
|
|
2270
|
-
export class BetaAppReviewSubmission extends ConnectModel<BetaAppReviewSubmissionProps> {
|
|
2271
|
-
static type: string;
|
|
2272
|
-
static getAsync(context: RequestContext, { query, }?: {
|
|
2273
|
-
query?: ConnectQueryParams<BetaAppReviewSubmissionQueryFilter>;
|
|
2274
|
-
}): Promise<BetaAppReviewSubmission[]>;
|
|
2275
|
-
/**
|
|
2276
|
-
*
|
|
2277
|
-
* @param id `Build` id
|
|
2278
|
-
*/
|
|
2279
|
-
static createAsync(context: RequestContext, { id, }: {
|
|
2280
|
-
id: string;
|
|
2281
|
-
}): Promise<BetaAppReviewSubmission>;
|
|
2282
|
-
static deleteAsync(context: RequestContext, { id, }: {
|
|
2283
|
-
id: string;
|
|
2284
|
-
}): Promise<unknown>;
|
|
2285
|
-
}
|
|
2286
|
-
}
|
|
2287
|
-
declare module "connect/models/BetaBuildLocalization" {
|
|
2288
|
-
import { RequestContext } from "network/Request";
|
|
2289
|
-
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
2290
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2291
|
-
interface BetaBuildLocalizationProps {
|
|
2292
|
-
whatsNew: string | null;
|
|
2293
|
-
locale: string | null;
|
|
2294
|
-
}
|
|
2295
|
-
export type BetaBuildLocalizationQueryFilter = ConnectQueryFilter<BetaBuildLocalizationProps & {
|
|
2296
|
-
/**
|
|
2297
|
-
* `Build` id
|
|
2298
|
-
*/
|
|
2299
|
-
build: string;
|
|
2300
|
-
}, 'build' | 'locale'>;
|
|
2301
|
-
export class BetaBuildLocalization extends ConnectModel<BetaBuildLocalizationProps> {
|
|
2302
|
-
static type: string;
|
|
2303
|
-
static getAsync(context: RequestContext, { query, }?: {
|
|
2304
|
-
query?: ConnectQueryParams<BetaBuildLocalizationQueryFilter>;
|
|
2305
|
-
}): Promise<BetaBuildLocalization[]>;
|
|
2306
|
-
/**
|
|
2307
|
-
*
|
|
2308
|
-
* @param id `Build` id
|
|
2309
|
-
*/
|
|
2310
|
-
static createAsync(context: RequestContext, { id, locale, }: {
|
|
2311
|
-
id: string;
|
|
2312
|
-
locale: string;
|
|
2313
|
-
}): Promise<BetaBuildLocalization>;
|
|
2314
|
-
updateAsync(attributes: Partial<BetaBuildLocalizationProps>): Promise<BetaBuildLocalization>;
|
|
2315
|
-
}
|
|
2316
|
-
}
|
|
2317
|
-
declare module "connect/models/BetaBuildMetric" {
|
|
2318
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2319
|
-
interface BetaBuildMetricProps {
|
|
2320
|
-
installCount: number;
|
|
2321
|
-
crashCount: number;
|
|
2322
|
-
inviteCount: number;
|
|
2323
|
-
sevenDayTesterCount: number;
|
|
2324
|
-
}
|
|
2325
|
-
export class BetaBuildMetric extends ConnectModel<BetaBuildMetricProps> {
|
|
2326
|
-
static type: string;
|
|
2327
|
-
}
|
|
2328
|
-
}
|
|
2329
|
-
declare module "connect/models/BuildBetaDetail" {
|
|
2330
|
-
import { RequestContext } from "network/Request";
|
|
2331
|
-
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
2332
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2333
|
-
export enum InternalBuildState {
|
|
2334
|
-
PROCESSING = "PROCESSING",
|
|
2335
|
-
PROCESSING_EXCEPTION = "PROCESSING_EXCEPTION",
|
|
2336
|
-
MISSING_EXPORT_COMPLIANCE = "MISSING_EXPORT_COMPLIANCE",
|
|
2337
|
-
READY_FOR_BETA_TESTING = "READY_FOR_BETA_TESTING",
|
|
2338
|
-
IN_BETA_TESTING = "IN_BETA_TESTING",
|
|
2339
|
-
EXPIRED = "EXPIRED",
|
|
2340
|
-
IN_EXPORT_COMPLIANCE_REVIEW = "IN_EXPORT_COMPLIANCE_REVIEW"
|
|
2341
|
-
}
|
|
2342
|
-
export enum ExternalBuildState {
|
|
2343
|
-
PROCESSING = "PROCESSING",
|
|
2344
|
-
PROCESSING_EXCEPTION = "PROCESSING_EXCEPTION",
|
|
2345
|
-
MISSING_EXPORT_COMPLIANCE = "MISSING_EXPORT_COMPLIANCE",
|
|
2346
|
-
READY_FOR_BETA_TESTING = "READY_FOR_BETA_TESTING",
|
|
2347
|
-
IN_BETA_TESTING = "IN_BETA_TESTING",
|
|
2348
|
-
EXPIRED = "EXPIRED",
|
|
2349
|
-
READY_FOR_BETA_SUBMISSION = "READY_FOR_BETA_SUBMISSION",
|
|
2350
|
-
IN_EXPORT_COMPLIANCE_REVIEW = "IN_EXPORT_COMPLIANCE_REVIEW",
|
|
2351
|
-
WAITING_FOR_BETA_REVIEW = "WAITING_FOR_BETA_REVIEW",
|
|
2352
|
-
IN_BETA_REVIEW = "IN_BETA_REVIEW",
|
|
2353
|
-
BETA_REJECTED = "BETA_REJECTED",
|
|
2354
|
-
BETA_APPROVED = "BETA_APPROVED"
|
|
3497
|
+
primaryCategory?: AppCategory;
|
|
3498
|
+
primarySubcategoryOne?: AppCategory;
|
|
3499
|
+
primarySubcategoryTwo?: AppCategory;
|
|
3500
|
+
secondaryCategory?: AppCategory;
|
|
3501
|
+
secondarySubcategoryOne?: AppCategory;
|
|
3502
|
+
secondarySubcategoryTwo?: AppCategory;
|
|
2355
3503
|
}
|
|
2356
|
-
interface
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
3504
|
+
export interface CategoryIds {
|
|
3505
|
+
primaryCategory?: AppCategoryId;
|
|
3506
|
+
primarySubcategoryOne?: AppSubcategoryId;
|
|
3507
|
+
primarySubcategoryTwo?: AppSubcategoryId;
|
|
3508
|
+
secondaryCategory?: AppCategoryId;
|
|
3509
|
+
secondarySubcategoryOne?: AppSubcategoryId;
|
|
3510
|
+
secondarySubcategoryTwo?: AppSubcategoryId;
|
|
2361
3511
|
}
|
|
2362
|
-
export
|
|
2363
|
-
/**
|
|
2364
|
-
* `Build` id
|
|
2365
|
-
*/
|
|
2366
|
-
build: string;
|
|
2367
|
-
}, 'build'>;
|
|
2368
|
-
export class BuildBetaDetail extends ConnectModel<BuildBetaDetailProps> {
|
|
3512
|
+
export class AppInfo extends ConnectModel<AppInfoProps> {
|
|
2369
3513
|
static type: string;
|
|
2370
|
-
static
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
static infoAsync(context: RequestContext, { id, query, }: {
|
|
3514
|
+
static DEFAULT_INCLUDES: string[];
|
|
3515
|
+
static createAsync(context: RequestContext, { id, versionString, platform, }: {
|
|
3516
|
+
id: string;
|
|
3517
|
+
versionString: string;
|
|
3518
|
+
platform: BundleIdPlatform;
|
|
3519
|
+
}): Promise<AppInfo>;
|
|
3520
|
+
static infoAsync: (context: RequestContext, props: {
|
|
2378
3521
|
id: string;
|
|
3522
|
+
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
3523
|
+
}) => Promise<AppInfo>;
|
|
3524
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
3525
|
+
id: string;
|
|
3526
|
+
}) => Promise<void>;
|
|
3527
|
+
updateCategoriesAsync(categories?: CategoryIds): Promise<AppInfo>;
|
|
3528
|
+
getLocalizationsAsync({ query, }?: {
|
|
2379
3529
|
query?: ConnectQueryParams;
|
|
2380
|
-
}): Promise<
|
|
2381
|
-
|
|
2382
|
-
isReadyForInternalTesting(): boolean;
|
|
2383
|
-
isReadyForBetaSubmission(): boolean;
|
|
3530
|
+
}): Promise<AppInfoLocalization[]>;
|
|
3531
|
+
createLocalizationAsync({ locale, }: Pick<AppInfoLocalizationProps, 'locale'>): Promise<AppInfoLocalization>;
|
|
2384
3532
|
}
|
|
2385
3533
|
}
|
|
2386
|
-
declare module "connect/models/
|
|
2387
|
-
import { RequestContext } from "network/Request";
|
|
2388
|
-
import { ImageAsset } from "connect/AssetAPI";
|
|
2389
|
-
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
2390
|
-
import { App } from "connect/models/App";
|
|
2391
|
-
import { BetaAppReviewSubmission } from "connect/models/BetaAppReviewSubmission";
|
|
2392
|
-
import { BetaBuildLocalization } from "connect/models/BetaBuildLocalization";
|
|
2393
|
-
import { BetaBuildMetric } from "connect/models/BetaBuildMetric";
|
|
2394
|
-
import { BuildBetaDetail } from "connect/models/BuildBetaDetail";
|
|
3534
|
+
declare module "connect/models/AppPriceTier" {
|
|
2395
3535
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
/**
|
|
2399
|
-
* @example '1'
|
|
2400
|
-
*/
|
|
2401
|
-
version: string;
|
|
2402
|
-
/**
|
|
2403
|
-
* @example '2017-08-08T15:21:52-07:00'
|
|
2404
|
-
*/
|
|
2405
|
-
uploadedDate: string;
|
|
2406
|
-
/**
|
|
2407
|
-
* @example '2017-11-06T15:21:52-08:00'
|
|
2408
|
-
*/
|
|
2409
|
-
expirationDate: string;
|
|
2410
|
-
expired: boolean;
|
|
2411
|
-
/**
|
|
2412
|
-
* @example '9.0'
|
|
2413
|
-
*/
|
|
2414
|
-
minOsVersion: string;
|
|
2415
|
-
iconAssetToken: ImageAsset;
|
|
2416
|
-
/**
|
|
2417
|
-
* @example 'VALID'
|
|
2418
|
-
*/
|
|
2419
|
-
processingState: ProcessingState;
|
|
2420
|
-
usesNonExemptEncryption: boolean;
|
|
2421
|
-
isWatchOnly: boolean;
|
|
2422
|
-
hasMessagesExtension: boolean;
|
|
2423
|
-
hasStickers: boolean;
|
|
2424
|
-
isLaunchProhibited: boolean;
|
|
2425
|
-
app?: App;
|
|
2426
|
-
betaAppReviewSubmission?: BetaAppReviewSubmission;
|
|
2427
|
-
betaBuildMetrics?: BetaBuildMetric;
|
|
2428
|
-
buildBetaDetail?: BuildBetaDetail;
|
|
2429
|
-
preReleaseVersion?: PreReleaseVersion;
|
|
3536
|
+
export class AppPriceTier extends ConnectModel<object> {
|
|
3537
|
+
static type: string;
|
|
2430
3538
|
}
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
3539
|
+
}
|
|
3540
|
+
declare module "connect/models/AppPrice" {
|
|
3541
|
+
import { AppPriceTier } from "connect/models/AppPriceTier";
|
|
3542
|
+
import { ConnectModel } from "connect/models/ConnectModel";
|
|
3543
|
+
export interface AppPriceProps {
|
|
3544
|
+
startDate: string;
|
|
3545
|
+
priceTier: AppPriceTier;
|
|
2436
3546
|
}
|
|
2437
|
-
export
|
|
2438
|
-
/**
|
|
2439
|
-
* `App` id
|
|
2440
|
-
*/
|
|
2441
|
-
app: string;
|
|
2442
|
-
'preReleaseVersion.version': string;
|
|
2443
|
-
}, 'app' | 'version' | 'preReleaseVersion.version' | 'processingState'>;
|
|
2444
|
-
export class Build extends ConnectModel<BuildProps> {
|
|
3547
|
+
export class AppPrice extends ConnectModel<AppPriceProps> {
|
|
2445
3548
|
static type: string;
|
|
2446
|
-
static
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
/**
|
|
2451
|
-
*
|
|
2452
|
-
* @param id `Build` id (ex: UNHB5PT4MA)
|
|
2453
|
-
*/
|
|
2454
|
-
static infoAsync(context: RequestContext, { id, query, }: {
|
|
2455
|
-
id: string;
|
|
2456
|
-
query?: ConnectQueryParams;
|
|
2457
|
-
}): Promise<Build>;
|
|
2458
|
-
/**
|
|
2459
|
-
*
|
|
2460
|
-
* @param id `Build` id
|
|
2461
|
-
*/
|
|
2462
|
-
static createAsync(context: RequestContext, { id, locale, }: {
|
|
3549
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
3550
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
3551
|
+
} | undefined) => Promise<AppPrice[]>;
|
|
3552
|
+
static infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
2463
3553
|
id: string;
|
|
2464
|
-
|
|
2465
|
-
})
|
|
2466
|
-
static deleteAsync(context: RequestContext, { id, }: {
|
|
2467
|
-
id: string;
|
|
2468
|
-
}): Promise<void>;
|
|
2469
|
-
updateAsync(attributes: Partial<BuildProps>): Promise<Build>;
|
|
2470
|
-
addBetaGroupsAsync({ betaGroups }: {
|
|
2471
|
-
betaGroups: string[];
|
|
2472
|
-
}): Promise<void>;
|
|
2473
|
-
getBetaBuildLocalizationsAsync({ query, }?: {
|
|
2474
|
-
query?: ConnectQueryParams;
|
|
2475
|
-
}): Promise<BetaBuildLocalization[]>;
|
|
2476
|
-
getBuildBetaDetailsAsync({ query, }?: {
|
|
2477
|
-
query?: ConnectQueryParams;
|
|
2478
|
-
}): Promise<BuildBetaDetail[]>;
|
|
2479
|
-
/**
|
|
2480
|
-
* Submit for beta app review.
|
|
2481
|
-
*/
|
|
2482
|
-
createBetaAppReviewSubmissionAsync(): Promise<BetaAppReviewSubmission>;
|
|
2483
|
-
/**
|
|
2484
|
-
* Expire the build to prevent further usage or submit a new build.
|
|
2485
|
-
*/
|
|
2486
|
-
expireAsync(): Promise<Build>;
|
|
2487
|
-
getAppVersion(): string;
|
|
2488
|
-
getPlatform(): Platform;
|
|
2489
|
-
getAppId(): string;
|
|
2490
|
-
getBundleId(): string;
|
|
2491
|
-
isReadyForBetaSubmission(): boolean;
|
|
2492
|
-
isProcessed(): boolean;
|
|
2493
|
-
isReadyForInternalTesting(): boolean;
|
|
3554
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
3555
|
+
}) => Promise<AppPrice>;
|
|
2494
3556
|
}
|
|
2495
3557
|
}
|
|
2496
3558
|
declare module "connect/models/InAppPurchase" {
|
|
@@ -2544,35 +3606,23 @@ declare module "connect/models/InAppPurchase" {
|
|
|
2544
3606
|
*
|
|
2545
3607
|
* @param id `InAppPurchase` id (ex: UNHB5PT4MA)
|
|
2546
3608
|
*/
|
|
2547
|
-
static infoAsync(context: RequestContext,
|
|
3609
|
+
static infoAsync: (context: RequestContext, props: {
|
|
2548
3610
|
id: string;
|
|
2549
|
-
query?: ConnectQueryParams<
|
|
2550
|
-
})
|
|
2551
|
-
}
|
|
2552
|
-
}
|
|
2553
|
-
declare module "connect/models/Territory" {
|
|
2554
|
-
import { RequestContext } from "network/Request";
|
|
2555
|
-
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
2556
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2557
|
-
export interface TerritoryProps {
|
|
2558
|
-
/**
|
|
2559
|
-
* @example 'USD'
|
|
2560
|
-
*/
|
|
2561
|
-
currency: string;
|
|
2562
|
-
}
|
|
2563
|
-
export class Territory extends ConnectModel<TerritoryProps> {
|
|
2564
|
-
static type: string;
|
|
2565
|
-
static getAsync(context: RequestContext, { query, }?: {
|
|
2566
|
-
query?: ConnectQueryParams;
|
|
2567
|
-
}): Promise<Territory[]>;
|
|
3611
|
+
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
3612
|
+
}) => Promise<InAppPurchase>;
|
|
2568
3613
|
}
|
|
2569
3614
|
}
|
|
2570
3615
|
declare module "connect/models/App" {
|
|
2571
3616
|
import { RequestContext } from "network/Request";
|
|
2572
3617
|
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
3618
|
+
import { AppDataUsage } from "connect/models/AppDataUsage";
|
|
3619
|
+
import { AppDataUsageCategoryId } from "connect/models/AppDataUsageCategory";
|
|
3620
|
+
import { AppDataUsageDataProtectionId } from "connect/models/AppDataUsageDataProtection";
|
|
3621
|
+
import { AppDataUsagePurposeId } from "connect/models/AppDataUsagePurpose";
|
|
3622
|
+
import { AppDataUsagesPublishState } from "connect/models/AppDataUsagesPublishState";
|
|
2573
3623
|
import { AppInfo, AppStoreState } from "connect/models/AppInfo";
|
|
2574
3624
|
import { AppPrice } from "connect/models/AppPrice";
|
|
2575
|
-
import { AppStoreVersion } from "connect/models/AppStoreVersion";
|
|
3625
|
+
import { AppStoreVersion, AppStoreVersionProps } from "connect/models/AppStoreVersion";
|
|
2576
3626
|
import { BetaGroup } from "connect/models/BetaGroup";
|
|
2577
3627
|
import { Build } from "connect/models/Build";
|
|
2578
3628
|
import { BundleId } from "connect/models/BundleId";
|
|
@@ -2610,13 +3660,22 @@ declare module "connect/models/App" {
|
|
|
2610
3660
|
export class App extends ConnectModel<AppProps> {
|
|
2611
3661
|
static type: string;
|
|
2612
3662
|
static DEFAULT_INCLUDES: string[];
|
|
2613
|
-
static getAsync(context: RequestContext,
|
|
2614
|
-
query?: ConnectQueryParams<
|
|
2615
|
-
|
|
2616
|
-
|
|
3663
|
+
static getAsync: (context: RequestContext, props?: {
|
|
3664
|
+
query?: ConnectQueryParams<Partial<{
|
|
3665
|
+
name: string | string[];
|
|
3666
|
+
bundleId: string | string[];
|
|
3667
|
+
appStoreVersions: string | string[];
|
|
3668
|
+
sku: string | string[];
|
|
3669
|
+
'appStoreVersions.platform': Platform | Platform[];
|
|
3670
|
+
'appStoreVersions.appStoreState': AppStoreState | AppStoreState[];
|
|
3671
|
+
} & {
|
|
3672
|
+
id?: string | undefined;
|
|
3673
|
+
}>> | undefined;
|
|
3674
|
+
} | undefined) => Promise<App[]>;
|
|
3675
|
+
static infoAsync: (context: RequestContext, props: {
|
|
2617
3676
|
id: string;
|
|
2618
|
-
query?: ConnectQueryParams;
|
|
2619
|
-
})
|
|
3677
|
+
query?: ConnectQueryParams<Record<string, any>> | undefined;
|
|
3678
|
+
}) => Promise<App>;
|
|
2620
3679
|
/**
|
|
2621
3680
|
*
|
|
2622
3681
|
* @param bundleId bundle id string (ex. com.bacon.expo)
|
|
@@ -2635,9 +3694,17 @@ declare module "connect/models/App" {
|
|
|
2635
3694
|
appPriceTier?: string;
|
|
2636
3695
|
territories?: string[];
|
|
2637
3696
|
}): Promise<App>;
|
|
2638
|
-
static deleteAsync(context: RequestContext,
|
|
3697
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
2639
3698
|
id: string;
|
|
2640
|
-
})
|
|
3699
|
+
}) => Promise<void>;
|
|
3700
|
+
updateAsync({ attributes, appPriceTier, territories, }: {
|
|
3701
|
+
attributes?: Partial<AppProps>;
|
|
3702
|
+
appPriceTier?: string;
|
|
3703
|
+
territories?: string[];
|
|
3704
|
+
}): Promise<App>;
|
|
3705
|
+
getAppDataUsagesAsync({ query, }?: {
|
|
3706
|
+
query?: ConnectQueryParams;
|
|
3707
|
+
}): Promise<AppDataUsage[]>;
|
|
2641
3708
|
getAppStoreVersionsAsync({ query, }?: {
|
|
2642
3709
|
query?: ConnectQueryParams;
|
|
2643
3710
|
}): Promise<AppStoreVersion[]>;
|
|
@@ -2648,6 +3715,16 @@ declare module "connect/models/App" {
|
|
|
2648
3715
|
bundleId: string;
|
|
2649
3716
|
name: string;
|
|
2650
3717
|
}): Promise<BundleId>;
|
|
3718
|
+
/**
|
|
3719
|
+
* Creates an app entry in App Store Connect. The bundle identifier must be registered ahead of time.
|
|
3720
|
+
*
|
|
3721
|
+
* @param context
|
|
3722
|
+
* @param props
|
|
3723
|
+
* @throws APP_CREATE_INSUFFICIENT_ROLE -- User does not allow for app creation, must have "App Manager" role enabled with the selected provider.
|
|
3724
|
+
* @throws APP_CREATE_BUNDLE_ID_NOT_REGISTERED -- Bundle identifier is not registered to the selected provider.
|
|
3725
|
+
* @throws APP_CREATE_NAME_INVALID Name contains invalid characters.
|
|
3726
|
+
* @throws APP_CREATE_NAME_UNAVAILABLE Name is already used.
|
|
3727
|
+
*/
|
|
2651
3728
|
static createAsync(context: RequestContext, props: {
|
|
2652
3729
|
name: string;
|
|
2653
3730
|
versionString?: string;
|
|
@@ -2664,6 +3741,9 @@ declare module "connect/models/App" {
|
|
|
2664
3741
|
getEditAppInfoAsync({ includes, }?: {
|
|
2665
3742
|
includes?: string[];
|
|
2666
3743
|
}): Promise<AppInfo | null>;
|
|
3744
|
+
getRejectableAppStoreVersionAsync({ platform, }?: {
|
|
3745
|
+
platform?: Platform;
|
|
3746
|
+
}): Promise<AppStoreVersion | null>;
|
|
2667
3747
|
getLiveAppStoreVersionAsync({ platform, includes, }?: {
|
|
2668
3748
|
platform?: Platform;
|
|
2669
3749
|
includes?: string[];
|
|
@@ -2672,7 +3752,7 @@ declare module "connect/models/App" {
|
|
|
2672
3752
|
platform?: Platform;
|
|
2673
3753
|
includes?: string[];
|
|
2674
3754
|
}): Promise<AppStoreVersion | null>;
|
|
2675
|
-
getPendingReleaseAppStoreVersionAsync({ platform, includes, }
|
|
3755
|
+
getPendingReleaseAppStoreVersionAsync({ platform, includes, }?: {
|
|
2676
3756
|
platform?: Platform;
|
|
2677
3757
|
includes?: string[];
|
|
2678
3758
|
}): Promise<AppStoreVersion | null>;
|
|
@@ -2700,17 +3780,25 @@ declare module "connect/models/App" {
|
|
|
2700
3780
|
getBetaGroupsAsync({ query, }?: {
|
|
2701
3781
|
query?: ConnectQueryParams;
|
|
2702
3782
|
}): Promise<BetaGroup[]>;
|
|
3783
|
+
getAppDataUsagesPublishStateAsync({ query, }?: {
|
|
3784
|
+
query?: ConnectQueryParams;
|
|
3785
|
+
}): Promise<AppDataUsagesPublishState[]>;
|
|
2703
3786
|
createBetaGroupAsync({ name, publicLinkEnabled, publicLinkLimit, publicLinkLimitEnabled, }: {
|
|
2704
3787
|
name: string;
|
|
2705
3788
|
publicLinkEnabled?: boolean;
|
|
2706
3789
|
publicLinkLimit?: number;
|
|
2707
3790
|
publicLinkLimitEnabled?: boolean;
|
|
2708
3791
|
}): Promise<BetaGroup>;
|
|
3792
|
+
createAppDataUsageAsync({ appDataUsageCategory, appDataUsageProtection, appDataUsagePurpose, }: {
|
|
3793
|
+
appDataUsageCategory?: AppDataUsageCategoryId;
|
|
3794
|
+
appDataUsageProtection?: AppDataUsageDataProtectionId;
|
|
3795
|
+
appDataUsagePurpose?: AppDataUsagePurposeId;
|
|
3796
|
+
}): Promise<AppDataUsage>;
|
|
3797
|
+
createVersionAsync({ versionString, platform, }: Pick<AppStoreVersionProps, 'versionString' | 'platform'>): Promise<AppStoreVersion>;
|
|
2709
3798
|
}
|
|
2710
3799
|
}
|
|
2711
3800
|
declare module "connect/models/AppPricePoint" {
|
|
2712
|
-
import {
|
|
2713
|
-
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
3801
|
+
import { ConnectQueryFilter } from "connect/ConnectAPI";
|
|
2714
3802
|
import { AppPriceTier } from "connect/models/AppPriceTier";
|
|
2715
3803
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2716
3804
|
import { Territory } from "connect/models/Territory";
|
|
@@ -2726,22 +3814,26 @@ declare module "connect/models/AppPricePoint" {
|
|
|
2726
3814
|
}, 'territory' | 'priceTier'>;
|
|
2727
3815
|
export class AppPricePoint extends ConnectModel<AppPricePointProps> {
|
|
2728
3816
|
static type: string;
|
|
2729
|
-
static getAsync(context: RequestContext,
|
|
2730
|
-
query?: ConnectQueryParams<
|
|
2731
|
-
|
|
3817
|
+
static getAsync: (context: import("AppStoreConnect").RequestContext, props?: {
|
|
3818
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Partial<{
|
|
3819
|
+
priceTier: string | string[];
|
|
3820
|
+
territory: string | string[];
|
|
3821
|
+
} & {
|
|
3822
|
+
id?: string | undefined;
|
|
3823
|
+
}>> | undefined;
|
|
3824
|
+
} | undefined) => Promise<AppPricePoint[]>;
|
|
2732
3825
|
/**
|
|
2733
3826
|
*
|
|
2734
3827
|
* @param id `AppPricePoint` id (ex: UNHB5PT4MA)
|
|
2735
3828
|
*/
|
|
2736
|
-
static infoAsync(context: RequestContext,
|
|
3829
|
+
static infoAsync: (context: import("AppStoreConnect").RequestContext, props: {
|
|
2737
3830
|
id: string;
|
|
2738
|
-
query?: ConnectQueryParams;
|
|
2739
|
-
})
|
|
3831
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
3832
|
+
}) => Promise<AppPricePoint>;
|
|
2740
3833
|
}
|
|
2741
3834
|
}
|
|
2742
3835
|
declare module "connect/models/SandboxTester" {
|
|
2743
3836
|
import { RequestContext } from "network/Request";
|
|
2744
|
-
import { ConnectQueryParams } from "connect/ConnectAPI";
|
|
2745
3837
|
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2746
3838
|
import { Territory } from "connect/models/Territory";
|
|
2747
3839
|
export interface SandboxTesterProps {
|
|
@@ -2758,82 +3850,29 @@ declare module "connect/models/SandboxTester" {
|
|
|
2758
3850
|
}
|
|
2759
3851
|
export class SandboxTester extends ConnectModel<SandboxTesterProps> {
|
|
2760
3852
|
static type: string;
|
|
2761
|
-
static getAsync(context: RequestContext,
|
|
2762
|
-
query?:
|
|
2763
|
-
})
|
|
3853
|
+
static getAsync: (context: RequestContext, props?: {
|
|
3854
|
+
query?: import("connect/ConnectAPI").ConnectQueryParams<Record<string, any>> | undefined;
|
|
3855
|
+
} | undefined) => Promise<SandboxTester[]>;
|
|
2764
3856
|
static createAsync(context: RequestContext, { attributes, }?: {
|
|
2765
3857
|
attributes?: Partial<SandboxTesterProps>;
|
|
2766
3858
|
}): Promise<SandboxTester>;
|
|
2767
|
-
static deleteAsync(context: RequestContext,
|
|
2768
|
-
id: string;
|
|
2769
|
-
}): Promise<unknown>;
|
|
2770
|
-
}
|
|
2771
|
-
}
|
|
2772
|
-
declare module "connect/models/User" {
|
|
2773
|
-
import { RequestContext } from "network/Request";
|
|
2774
|
-
import { ConnectQueryFilter, ConnectQueryParams } from "connect/ConnectAPI";
|
|
2775
|
-
import { ConnectModel } from "connect/models/ConnectModel";
|
|
2776
|
-
import { Territory } from "connect/models/Territory";
|
|
2777
|
-
export enum UserRole {
|
|
2778
|
-
ADMIN = "ADMIN",
|
|
2779
|
-
FINANCE = "FINANCE",
|
|
2780
|
-
TECHNICAL = "TECHNICAL",
|
|
2781
|
-
ACCOUNT_HOLDER = "ACCOUNT_HOLDER",
|
|
2782
|
-
READ_ONLY = "READ_ONLY",
|
|
2783
|
-
SALES = "SALES",
|
|
2784
|
-
MARKETING = "MARKETING",
|
|
2785
|
-
APP_MANAGER = "APP_MANAGER",
|
|
2786
|
-
DEVELOPER = "DEVELOPER",
|
|
2787
|
-
ACCESS_TO_REPORTS = "ACCESS_TO_REPORTS",
|
|
2788
|
-
CUSTOMER_SUPPORT = "CUSTOMER_SUPPORT"
|
|
2789
|
-
}
|
|
2790
|
-
export interface UserProps {
|
|
2791
|
-
username: string | null;
|
|
2792
|
-
firstName: string | null;
|
|
2793
|
-
lastName: string | null;
|
|
2794
|
-
email: string | null;
|
|
2795
|
-
preferredCurrencyTerritory: Territory | null;
|
|
2796
|
-
agreedToTerms: boolean | null;
|
|
2797
|
-
roles: UserRole | null;
|
|
2798
|
-
allAppsVisible: boolean;
|
|
2799
|
-
provisioningAllowed: boolean;
|
|
2800
|
-
emailVettingRequired: boolean;
|
|
2801
|
-
notifications: unknown | null;
|
|
2802
|
-
}
|
|
2803
|
-
export type UserQueryFilter = ConnectQueryFilter<UserProps & {
|
|
2804
|
-
/**
|
|
2805
|
-
* `App` id
|
|
2806
|
-
*/
|
|
2807
|
-
visibleApps: string;
|
|
2808
|
-
}, 'roles' | 'username' | 'visibleApps'>;
|
|
2809
|
-
export class User extends ConnectModel<UserProps> {
|
|
2810
|
-
static type: string;
|
|
2811
|
-
static getAsync(context: RequestContext, { query, }?: {
|
|
2812
|
-
query?: ConnectQueryParams<UserQueryFilter>;
|
|
2813
|
-
}): Promise<User[]>;
|
|
2814
|
-
/**
|
|
2815
|
-
*
|
|
2816
|
-
* @param id `User` id (ex: UNHB5PT4MA)
|
|
2817
|
-
*/
|
|
2818
|
-
static infoAsync(context: RequestContext, { id, query, }: {
|
|
2819
|
-
id: string;
|
|
2820
|
-
query?: ConnectQueryParams;
|
|
2821
|
-
}): Promise<User>;
|
|
2822
|
-
static deleteAsync(context: RequestContext, { id, }: {
|
|
3859
|
+
static deleteAsync: (context: RequestContext, props: {
|
|
2823
3860
|
id: string;
|
|
2824
|
-
})
|
|
2825
|
-
updateAsync(attributes: Partial<UserProps>): Promise<User>;
|
|
3861
|
+
}) => Promise<void>;
|
|
2826
3862
|
}
|
|
2827
3863
|
}
|
|
2828
|
-
declare module "
|
|
2829
|
-
import * as Auth from "auth/Auth";
|
|
2830
|
-
import * as Session from "auth/Session";
|
|
2831
|
-
import * as CookieFileCache from "network/CookieFileCache";
|
|
2832
|
-
import * as Keys from "portal/Keys";
|
|
2833
|
-
import * as Teams from "portal/Teams";
|
|
3864
|
+
declare module "connect/index" {
|
|
2834
3865
|
export * from "connect/models/AgeRatingDeclaration";
|
|
3866
|
+
export * from "connect/models/ApiKey";
|
|
2835
3867
|
export * from "connect/models/App";
|
|
3868
|
+
export * from "connect/models/AppDataUsage";
|
|
3869
|
+
export * from "connect/models/AppDataUsageCategory";
|
|
3870
|
+
export * from "connect/models/AppDataUsageDataProtection";
|
|
3871
|
+
export * from "connect/models/AppDataUsageGrouping";
|
|
3872
|
+
export * from "connect/models/AppDataUsagePurpose";
|
|
3873
|
+
export * from "connect/models/AppDataUsagesPublishState";
|
|
2836
3874
|
export * from "connect/models/AppCategory";
|
|
3875
|
+
export * from "connect/models/AppGroup";
|
|
2837
3876
|
export * from "connect/models/AppInfo";
|
|
2838
3877
|
export * from "connect/models/AppInfoLocalization";
|
|
2839
3878
|
export * from "connect/models/AppPrice";
|
|
@@ -2859,15 +3898,30 @@ declare module "AppStoreConnect" {
|
|
|
2859
3898
|
export * from "connect/models/ResetRatingsRequest";
|
|
2860
3899
|
export * from "connect/models/SandboxTester";
|
|
2861
3900
|
export * from "connect/models/Territory";
|
|
3901
|
+
export * from "connect/models/MerchantId";
|
|
2862
3902
|
export * from "connect/models/BundleId";
|
|
2863
3903
|
export * from "connect/models/BundleIdCapability";
|
|
3904
|
+
export * from "connect/models/ContentProvider";
|
|
2864
3905
|
export * from "connect/models/Certificate";
|
|
2865
3906
|
export * from "connect/models/Device";
|
|
2866
3907
|
export * from "connect/models/Profile";
|
|
2867
3908
|
export * from "connect/models/InAppPurchase";
|
|
2868
3909
|
export * from "connect/models/User";
|
|
2869
|
-
export
|
|
3910
|
+
export * from "connect/models/CloudContainer";
|
|
3911
|
+
export { ConnectModel } from "connect/models/ConnectModel";
|
|
3912
|
+
}
|
|
3913
|
+
declare module "AppStoreConnect" {
|
|
3914
|
+
import * as Auth from "auth/Auth";
|
|
3915
|
+
import * as Session from "auth/Session";
|
|
3916
|
+
import * as ITCAgreements from "itunes/Agreements";
|
|
3917
|
+
import * as CookieFileCache from "network/CookieFileCache";
|
|
3918
|
+
import * as Keys from "portal/Keys";
|
|
3919
|
+
import * as Teams from "portal/Teams";
|
|
3920
|
+
import * as JsonFileCache from "utils/json-file-cache";
|
|
3921
|
+
export { ITunesConnectError, GatewayTimeoutError, IdmsaServiceError, NetworkError, InternalServerError, AuthError, InvalidUserCredentialsError, SessionExpiredError, ServiceError, UnauthorizedAccessError, AppleTimeoutError, TimeoutError, BadGatewayError, AccessForbiddenError, InsufficientPermissions, UnexpectedResponse, } from "utils/error";
|
|
2870
3922
|
export { getValidName } from "portal/PortalAPI";
|
|
2871
|
-
export { RequestContext } from "network/Request";
|
|
2872
|
-
export {
|
|
3923
|
+
export { RequestContext, getRequestClient } from "network/Request";
|
|
3924
|
+
export { Token, TokenProps } from "connect/Token";
|
|
3925
|
+
export { Auth, ITCAgreements, CookieFileCache, JsonFileCache, Keys, Teams, Session };
|
|
3926
|
+
export * from "connect/index";
|
|
2873
3927
|
}
|