@expo/apple-utils 0.0.0-alpha.26 → 0.0.0-alpha.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/apple-utils",
3
- "version": "0.0.0-alpha.26",
3
+ "version": "0.0.0-alpha.29",
4
4
  "main": "build",
5
5
  "scripts": {
6
6
  "prepare": "yarn run clean && yarn run typegen && yarn run build:prod && yarn run append-types",
@@ -36,4 +36,4 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  }
39
- }
39
+ }
@@ -303,8 +303,30 @@ declare module "auth/Session" {
303
303
  }): Promise<SessionProvider>;
304
304
  export * from "utils/fastlane-session";
305
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
+ }
306
327
  declare module "utils/error" {
307
328
  import assert from 'assert';
329
+ import { AssociatedErrors } from "connect/ConnectAPIErrors";
308
330
  export { assert };
309
331
  export class ITunesConnectError extends Error {
310
332
  }
@@ -321,6 +343,8 @@ declare module "utils/error" {
321
343
  export class NetworkError extends Error {
322
344
  response: NetworkResponse;
323
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;
324
348
  }
325
349
  export class InternalServerError extends NetworkError {
326
350
  constructor(response: NetworkResponse);
@@ -1037,21 +1061,6 @@ declare module "connect/ConnectAPI" {
1037
1061
  sort?: string;
1038
1062
  cursor?: string;
1039
1063
  }
1040
- interface AssociatedErrorData {
1041
- id: string;
1042
- status: string;
1043
- code: string;
1044
- title: string;
1045
- detail?: string;
1046
- source?: {
1047
- pointer: string;
1048
- };
1049
- }
1050
- interface AssociatedErrors extends AssociatedErrorData {
1051
- meta: {
1052
- associatedErrors: Record<string, AssociatedErrorData[]>;
1053
- };
1054
- }
1055
1064
  export class ConnectClientAPI implements ClientAPI<ConnectResponse> {
1056
1065
  getHostname(context: RequestContext): string;
1057
1066
  requestFromAPIAsync<T = any, R extends AxiosResponse<T> = AxiosResponse<T>>(context: RequestContext, request: RequestProps, options?: ParsingOptions): Promise<R>;
@@ -1093,7 +1102,6 @@ declare module "connect/ConnectAPI" {
1093
1102
  export const client: ConnectClientAPI;
1094
1103
  export function filterQueryParamsWithDefaults(query?: ConnectQueryParams, defaultQuery?: ConnectQueryParams): Record<string, any>;
1095
1104
  export function filterQueryParams({ fields, filter, includes, limit, sort, cursor, }?: ConnectQueryParams): Record<string, any>;
1096
- export function parseConnectErrors(errors: AssociatedErrors[]): string;
1097
1105
  }
1098
1106
  declare module "connect/IrisAPI" {
1099
1107
  import { AxiosResponse } from 'axios';
@@ -1131,10 +1139,11 @@ declare module "connect/models/AgeRatingDeclaration" {
1131
1139
  violenceCartoonOrFantasy: Rating | null;
1132
1140
  violenceRealisticProlongedGraphicOrSadistic: Rating | null;
1133
1141
  violenceRealistic: Rating | null;
1134
- gamblingAndContests: boolean | null;
1135
1142
  unrestrictedWebAccess: boolean | null;
1136
1143
  seventeenPlus: boolean | null;
1137
1144
  kidsAgeBand: KidsAge | null;
1145
+ /** @deprecated 1.6 */
1146
+ gamblingAndContests: boolean | null;
1138
1147
  }
1139
1148
  /**
1140
1149
  * Used for updating basic metadata.
@@ -3196,12 +3205,14 @@ declare module "connect/models/Build" {
3196
3205
  declare module "connect/models/IdfaDeclaration" {
3197
3206
  import { RequestContext } from "network/Request";
3198
3207
  import { ConnectModel } from "connect/models/ConnectModel";
3208
+ /** @deprecated 1.6 */
3199
3209
  export interface IdfaDeclarationProps {
3200
3210
  servesAds: boolean;
3201
3211
  attributesAppInstallationToPreviousAd: boolean;
3202
3212
  attributesActionWithPreviousAd: boolean;
3203
3213
  honorsLimitedAdTracking: boolean;
3204
3214
  }
3215
+ /** @deprecated 1.6 */
3205
3216
  export class IdfaDeclaration extends ConnectModel<IdfaDeclarationProps> {
3206
3217
  static type: string;
3207
3218
  /**
@@ -3285,6 +3296,7 @@ declare module "connect/models/AppStoreVersion" {
3285
3296
  */
3286
3297
  releaseType: ReleaseType | null;
3287
3298
  earliestReleaseDate: string | null;
3299
+ /** @deprecated 1.6 */
3288
3300
  usesIdfa: boolean | null;
3289
3301
  isWatchOnly: boolean;
3290
3302
  downloadable: boolean;
@@ -3326,9 +3338,11 @@ declare module "connect/models/AppStoreVersion" {
3326
3338
  getSubmissionAsync({ query, }?: {
3327
3339
  query?: ConnectQueryParams;
3328
3340
  }): Promise<AppStoreVersionSubmission | null>;
3341
+ /** @deprecated 1.6 */
3329
3342
  getIdfaDeclarationAsync({ query, }?: {
3330
3343
  query?: ConnectQueryParams;
3331
3344
  }): Promise<IdfaDeclaration | null>;
3345
+ /** @deprecated 1.6 */
3332
3346
  createIdfaDeclarationAsync(attributes: Partial<IdfaDeclarationProps>): Promise<IdfaDeclaration>;
3333
3347
  createLocalizationAsync({ locale, }: Pick<AppStoreVersionLocalizationProps, 'locale'>): Promise<AppStoreVersionLocalization>;
3334
3348
  createReviewDetailAsync(attributes: Partial<Omit<AppStoreReviewDetailProps, 'demoAccountRequired'>>): Promise<AppStoreReviewDetail>;
@@ -0,0 +1,133 @@
1
+ {
2
+ "bundle": {
3
+ "commonSourceDirectory": "../../../app-store/src",
4
+ "sourceFiles": [
5
+ "../../../app-store/src/network/CSRF.ts",
6
+ "../../../app-store/src/utils/json-file-cache.ts",
7
+ "../../../app-store/src/utils/environment.ts",
8
+ "../../../app-store/src/utils/log.ts",
9
+ "../../../app-store/src/utils/prompts.ts",
10
+ "../../../app-store/src/utils/validators.ts",
11
+ "../../../app-store/src/auth/Keychain.ts",
12
+ "../../../app-store/src/auth/Credentials.ts",
13
+ "../../../app-store/src/utils/files.ts",
14
+ "../../../app-store/src/connect/Token.ts",
15
+ "../../../app-store/src/utils/array.ts",
16
+ "../../../app-store/src/portal/Teams.ts",
17
+ "../../../app-store/src/auth/utils/validate-session.ts",
18
+ "../../../app-store/src/utils/fastlane-session.ts",
19
+ "../../../app-store/src/auth/Session.ts",
20
+ "../../../app-store/src/connect/ConnectAPIErrors.ts",
21
+ "../../../app-store/src/utils/env.ts",
22
+ "../../../app-store/src/utils/error.ts",
23
+ "../../../app-store/src/portal/PortalAPI.ts",
24
+ "../../../app-store/src/utils/retry.ts",
25
+ "../../../app-store/src/network/AxiosErrors.ts",
26
+ "../../../app-store/src/network/AxiosLogger.ts",
27
+ "../../../app-store/src/network/Request.ts",
28
+ "../../../app-store/src/network/CookieFileCache.ts",
29
+ "../../../app-store/src/auth/Auth.types.ts",
30
+ "../../../app-store/src/auth/ServiceKey.ts",
31
+ "../../../app-store/src/auth/TwoFactorAuthTypes.ts",
32
+ "../../../app-store/src/auth/TwoFactorAuthPrompts.ts",
33
+ "../../../app-store/src/auth/utils/provider-request.ts",
34
+ "../../../app-store/src/itunes/ItunesAPI.ts",
35
+ "../../../app-store/src/auth/IdmsaAPI.ts",
36
+ "../../../app-store/src/auth/TwoFactorAuthRequests.ts",
37
+ "../../../app-store/src/auth/utils/trusted-session.ts",
38
+ "../../../app-store/src/auth/TwoFactorAuth.ts",
39
+ "../../../app-store/src/auth/utils/load-session.ts",
40
+ "../../../app-store/src/auth/utils/restore-session.ts",
41
+ "../../../app-store/src/auth/Auth.ts",
42
+ "../../../app-store/src/itunes/Agreements.ts",
43
+ "../../../app-store/src/utils/pagination.ts",
44
+ "../../../app-store/src/portal/Keys.ts",
45
+ "../../../app-store/src/connect/ClientAPI.ts",
46
+ "../../../app-store/src/connect/models/ConnectModel.ts",
47
+ "../../../app-store/src/connect/ConnectResponse.ts",
48
+ "../../../app-store/src/connect/ConnectAPI.ts",
49
+ "../../../app-store/src/connect/IrisAPI.ts",
50
+ "../../../app-store/src/connect/models/AgeRatingDeclaration.ts",
51
+ "../../../app-store/src/connect/models/ContentProvider.ts",
52
+ "../../../app-store/src/connect/models/Territory.ts",
53
+ "../../../app-store/src/connect/models/User.ts",
54
+ "../../../app-store/src/connect/models/ApiKey.ts",
55
+ "../../../app-store/src/connect/models/AppDataUsageGrouping.ts",
56
+ "../../../app-store/src/connect/models/AppDataUsageCategory.ts",
57
+ "../../../app-store/src/connect/models/AppDataUsageDataProtection.ts",
58
+ "../../../app-store/src/connect/models/AppDataUsagePurpose.ts",
59
+ "../../../app-store/src/connect/models/AppDataUsage.ts",
60
+ "../../../app-store/src/connect/models/AppDataUsagesPublishState.ts",
61
+ "../../../app-store/src/connect/ProvisioningAPI.ts",
62
+ "../../../app-store/src/connect/models/CapabilityConnectModel.ts",
63
+ "../../../app-store/src/connect/models/AppGroup.ts",
64
+ "../../../app-store/src/connect/models/CloudContainer.ts",
65
+ "../../../app-store/src/connect/models/MerchantId.ts",
66
+ "../../../app-store/src/connect/models/BundleIdCapability.ts",
67
+ "../../../app-store/src/portal/Profiles.ts",
68
+ "../../../app-store/src/connect/models/Certificate.ts",
69
+ "../../../app-store/src/connect/models/Device.ts",
70
+ "../../../app-store/src/connect/models/Profile.ts",
71
+ "../../../app-store/src/connect/models/BundleId.ts",
72
+ "../../../app-store/src/connect/models/AppCategory.ts",
73
+ "../../../app-store/src/connect/AssetAPI.ts",
74
+ "../../../app-store/src/utils/crypto.ts",
75
+ "../../../app-store/src/connect/models/AppStoreReviewAttachment.ts",
76
+ "../../../app-store/src/connect/models/AppStoreReviewDetail.ts",
77
+ "../../../app-store/src/connect/models/AppScreenshot.ts",
78
+ "../../../app-store/src/connect/models/AppScreenshotSet.ts",
79
+ "../../../app-store/src/connect/models/AppStoreVersionLocalization.ts",
80
+ "../../../app-store/src/connect/models/AppStoreVersionPhasedRelease.ts",
81
+ "../../../app-store/src/connect/models/AppStoreVersionReleaseRequest.ts",
82
+ "../../../app-store/src/connect/models/AppStoreVersionSubmission.ts",
83
+ "../../../app-store/src/connect/models/BetaAppReviewSubmission.ts",
84
+ "../../../app-store/src/connect/models/BetaBuildLocalization.ts",
85
+ "../../../app-store/src/connect/models/BetaBuildMetric.ts",
86
+ "../../../app-store/src/connect/models/BetaGroup.ts",
87
+ "../../../app-store/src/connect/models/BuildBetaDetail.ts",
88
+ "../../../app-store/src/connect/models/PreReleaseVersion.ts",
89
+ "../../../app-store/src/connect/models/Build.ts",
90
+ "../../../app-store/src/connect/models/IdfaDeclaration.ts",
91
+ "../../../app-store/src/connect/models/ResetRatingsRequest.ts",
92
+ "../../../app-store/src/connect/models/AppStoreVersion.ts",
93
+ "../../../app-store/src/connect/models/AppInfoLocalization.ts",
94
+ "../../../app-store/src/connect/models/AppInfo.ts",
95
+ "../../../app-store/src/connect/models/AppPriceTier.ts",
96
+ "../../../app-store/src/connect/models/AppPrice.ts",
97
+ "../../../app-store/src/connect/models/InAppPurchase.ts",
98
+ "../../../app-store/src/connect/models/App.ts",
99
+ "../../../app-store/src/connect/models/AppPricePoint.ts",
100
+ "../../../app-store/src/connect/models/SandboxTester.ts",
101
+ "../../../app-store/src/connect/index.ts",
102
+ "../../../app-store/src/AppStoreConnect.ts"
103
+ ],
104
+ "dts": {
105
+ "sections": [
106
+ {
107
+ "pos": 0,
108
+ "end": 33,
109
+ "kind": "type",
110
+ "data": "prompts"
111
+ },
112
+ {
113
+ "pos": 34,
114
+ "end": 70,
115
+ "kind": "type",
116
+ "data": "node-forge"
117
+ },
118
+ {
119
+ "pos": 71,
120
+ "end": 101,
121
+ "kind": "type",
122
+ "data": "node"
123
+ },
124
+ {
125
+ "pos": 102,
126
+ "end": 161535,
127
+ "kind": "text"
128
+ }
129
+ ]
130
+ }
131
+ },
132
+ "version": "4.0.5"
133
+ }