@expo/apple-utils 2.1.15 → 2.1.17

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": "2.1.15",
3
+ "version": "2.1.17",
4
4
  "main": "build",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -1204,7 +1204,11 @@ declare module "connect/models/AgeRatingDeclaration" {
1204
1204
  export enum Rating {
1205
1205
  NONE = "NONE",
1206
1206
  INFREQUENT_OR_MILD = "INFREQUENT_OR_MILD",
1207
- FREQUENT_OR_INTENSE = "FREQUENT_OR_INTENSE"
1207
+ FREQUENT_OR_INTENSE = "FREQUENT_OR_INTENSE",
1208
+ /** @since 4.x */
1209
+ INFREQUENT = "INFREQUENT",
1210
+ /** @since 4.x */
1211
+ FREQUENT = "FREQUENT"
1208
1212
  }
1209
1213
  /** @deprecated - use {@link KidsAgeBand} instead. */
1210
1214
  export type KidsAge = KidsAgeBand;
@@ -1219,6 +1223,15 @@ declare module "connect/models/AgeRatingDeclaration" {
1219
1223
  SEVENTEEN_PLUS = "SEVENTEEN_PLUS",
1220
1224
  UNRATED = "UNRATED"
1221
1225
  }
1226
+ /** @see https://developer.apple.com/documentation/appstoreconnectapi/ageratingdeclarationupdaterequest */
1227
+ export enum RatingOverrideV2 {
1228
+ NONE = "NONE",
1229
+ NINE_PLUS = "NINE_PLUS",
1230
+ THIRTEEN_PLUS = "THIRTEEN_PLUS",
1231
+ SIXTEEN_PLUS = "SIXTEEN_PLUS",
1232
+ EIGHTEEN_PLUS = "EIGHTEEN_PLUS",
1233
+ UNRATED = "UNRATED"
1234
+ }
1222
1235
  export enum KoreaRatingOverride {
1223
1236
  NONE = "NONE",
1224
1237
  FIFTEEN_PLUS = "FIFTEEN_PLUS",
@@ -1237,9 +1250,9 @@ declare module "connect/models/AgeRatingDeclaration" {
1237
1250
  /**
1238
1251
  * Declaration for gambling or contests, as a Boolean value.
1239
1252
  * @since 1.2
1240
- * @deprecated 1.4.1
1253
+ * @deprecated 1.4.1 — removed from the API. Use `gambling` and `contests` instead.
1241
1254
  */
1242
- gamblingAndContests: boolean | null;
1255
+ gamblingAndContests: never;
1243
1256
  /**
1244
1257
  * Declaration for the Kids Age Band value.
1245
1258
  * @since 1.2
@@ -1314,8 +1327,26 @@ declare module "connect/models/AgeRatingDeclaration" {
1314
1327
  ageRatingOverride: RatingOverride | null;
1315
1328
  /** @since 3.6.0 */
1316
1329
  koreaAgeRatingOverride: KoreaRatingOverride | null;
1317
- /** * @since 3.6.0 */
1330
+ /** @since 3.6.0 */
1318
1331
  lootBox: boolean | null;
1332
+ /** Declaration for advertising content. */
1333
+ advertising: boolean | null;
1334
+ /** Declaration for age assurance mechanisms. */
1335
+ ageAssurance: boolean | null;
1336
+ /** @see RatingOverrideV2 */
1337
+ ageRatingOverrideV2: RatingOverrideV2 | null;
1338
+ /** URL for developer age rating info. */
1339
+ developerAgeRatingInfoUrl: string | null;
1340
+ /** Declaration for guns or other weapons. */
1341
+ gunsOrOtherWeapons: Rating | null;
1342
+ /** Declaration for health or wellness topics. */
1343
+ healthOrWellnessTopics: boolean | null;
1344
+ /** Declaration for messaging and chat features. */
1345
+ messagingAndChat: boolean | null;
1346
+ /** Declaration for parental controls. */
1347
+ parentalControls: boolean | null;
1348
+ /** Declaration for user-generated content. */
1349
+ userGeneratedContent: boolean | null;
1319
1350
  /**
1320
1351
  * Declaration for a 17+ rating, provided as a Boolean value.
1321
1352
  * @remark The API is limited and cannot have both `seventeenPlus` and `ageRatingOverride`. Because of that, we deprecated this properly in favor of `ageRatingOverride`.
@@ -4026,6 +4057,10 @@ declare module "connect/models/AppStoreVersion" {
4026
4057
  }): Promise<AppStoreVersion>;
4027
4058
  /** @see https://developer.apple.com/documentation/appstoreconnectapi/appstoreversionupdaterequest/data-data.dictionary */
4028
4059
  updateAsync(options: Partial<Pick<AppStoreVersionProps, 'copyright' | 'earliestReleaseDate' | 'releaseType' | 'versionString' | 'downloadable' | 'reviewType'>>): Promise<AppStoreVersion>;
4060
+ /**
4061
+ * @deprecated The ageRatingDeclaration relationship has moved from appStoreVersions to appInfos.
4062
+ * Use {@link AppInfo.getAgeRatingDeclarationAsync} instead.
4063
+ */
4029
4064
  getAgeRatingDeclarationAsync({ query, }?: {
4030
4065
  query?: ConnectQueryParams;
4031
4066
  }): Promise<AgeRatingDeclaration | null>;
@@ -4095,7 +4130,7 @@ declare module "connect/models/AppInfoLocalization" {
4095
4130
  declare module "connect/models/AppInfo" {
4096
4131
  import { RequestContext } from "network/Request";
4097
4132
  import { ConnectQueryParams } from "connect/ConnectAPI";
4098
- import { KidsAgeBand } from "connect/models/AgeRatingDeclaration";
4133
+ import { AgeRatingDeclaration, KidsAgeBand } from "connect/models/AgeRatingDeclaration";
4099
4134
  import { AppCategory, AppCategoryId, AppSubcategoryId } from "connect/models/AppCategory";
4100
4135
  import { AppInfoLocalization, AppInfoLocalizationProps } from "connect/models/AppInfoLocalization";
4101
4136
  import { BundleIdPlatform } from "connect/models/BundleId";
@@ -4241,6 +4276,14 @@ declare module "connect/models/AppInfo" {
4241
4276
  id: string;
4242
4277
  }) => Promise<void>;
4243
4278
  updateCategoriesAsync(categories?: CategoryIds): Promise<AppInfo>;
4279
+ /**
4280
+ * Get the age rating declaration for this app info.
4281
+ * The ageRatingDeclaration relationship moved from appStoreVersions to appInfos
4282
+ * in App Store Connect API.
4283
+ */
4284
+ getAgeRatingDeclarationAsync({ query, }?: {
4285
+ query?: ConnectQueryParams;
4286
+ }): Promise<AgeRatingDeclaration | null>;
4244
4287
  getLocalizationsAsync({ query, }?: {
4245
4288
  query?: ConnectQueryParams;
4246
4289
  }): Promise<AppInfoLocalization[]>;