### Install parse-play using Yarn or NPM Source: https://github.com/baltpeter/parse-play/blob/main/README.md This snippet shows how to install the parse-play library using either the yarn or npm package managers. It's a straightforward command to add the library to your project dependencies. ```sh yarn add parse-play # or `npm i parse-play` ``` -------------------------------- ### Fetch App Details (Data Safety Labels) Source: https://github.com/baltpeter/parse-play/blob/main/README.md Demonstrates fetching detailed data safety labels for an app, including data shared, data collected, security practices, and the privacy policy URL. The example logs these specific fields. ```typescript const appDetails = await fetchAppDetails({ appId: 'com.facebook.katana' }, { language: 'EN', country: 'DE' }); console.log('Data shared:', appDetails.data_shared); console.log('Data collected:', appDetails.data_collected); console.log('Security practices:', appDetails.security_practices); console.log('Privacy policy URL:', appDetails.privacy_policy_url); ``` -------------------------------- ### Fetch Top Charts (Multiple Requests) Source: https://github.com/baltpeter/parse-play/blob/main/README.md Illustrates fetching multiple top charts in a single API request. This example retrieves the top 5 free education apps and the top 1000 paid adventure game apps for the UK, logging details for both. ```typescript const topCharts = await fetchTopCharts( [ { category: 'EDUCATION', chart: 'topselling_free', count: 5 }, { category: 'GAME_ADVENTURE', chart: 'topselling_paid', count: 1000 }, ], { country: 'GB', language: 'EN' } ); console.log(topCharts[0]?.length); // 5 console.log(topCharts[0]?.[0]?.app_id, topCharts?.[0]?.[0]?.name); // cn.danatech.xingseus PictureThis - Plant Identifier console.log(topCharts[1]?.length); // 660 console.log(topCharts[1]?.[0]?.app_id, topCharts?.[1]?.[0]?.name); // com.MOBGames.PoppyMobileChap1 Poppy Playtime Chapter 1 ``` -------------------------------- ### Fetch Data Safety Labels for Google Play Apps with TypeScript Source: https://github.com/baltpeter/parse-play/blob/main/README.md Fetches data safety labels for one or more apps from Google Play. This function is part of the 'parse-play' library and requires the app ID. The example shows fetching labels for a single app. ```ts import { fetchDataSafetyLabels } from 'parse-play'; (async () => { const labels = await fetchDataSafetyLabels([{ app_id: 'com.zhiliaoapp.musically' }], { language: 'EN', }); console.dir(labels, { depth: null }); })(); ``` -------------------------------- ### Fetch App Details Options (TypeScript) Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines the options for fetching app details from the Play Store. It includes parameters for specifying the country and language of the Play Store version to query. ```TypeScript type AppDetailsOptions = { country: CountryCode; language: LanguageCode; }; ``` -------------------------------- ### Fetch Top Charts (Single Request) Source: https://github.com/baltpeter/parse-play/blob/main/README.md Demonstrates fetching the top 100 free apps across all categories for Germany using the `fetchTopCharts` function. It logs the number of apps returned and the ID and name of the first app in the list. ```typescript import { fetchTopCharts } from 'parse-play'; (async () => { const topChart = await fetchTopCharts( { category: 'APPLICATION', chart: 'topselling_free', count: 100 }, { country: 'DE', language: 'EN' } ); console.log(topChart?.length); // 100 console.log(topChart?.[0]?.app_id, topChart?.[0]?.name); // com.amazon.mShop.android.shopping Amazon Shopping })(); ``` -------------------------------- ### Fetch Single App Details Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Fetches the detailed metadata for a single app from the Google Play Store using the internal `batchexecute` endpoint. It requires an app identifier and optional language/country settings, returning a Promise with the app's details. ```TypeScript function fetchAppDetails(request: AppDetailsRequest | [AppDetailsRequest], options: AppDetailsOptions): Promise ``` -------------------------------- ### Fetch App Details (Metadata) Source: https://github.com/baltpeter/parse-play/blob/main/README.md Shows how to fetch basic metadata for a specific app, in this case, the Facebook app. It logs the app's name, price, and last updated date. ```typescript import { fetchAppDetails } from 'parse-play'; (async () => { const appDetails = await fetchAppDetails({ appId: 'com.facebook.katana' }, { language: 'EN', country: 'DE' }); console.log(appDetails.name, 'costs', appDetails.price, 'and was last updated on', appDetails.updated_on); // Facebook costs €0.00 and was last updated on 2024-06-13T04:58:13.000Z })(); ``` -------------------------------- ### Full App Metadata Structure (TypeScript) Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines the complete set of metadata that can potentially be retrieved for an app from the Play Store. Individual endpoints will return a subset of these properties. ```TypeScript type AppMetadataFull = { // ... properties of full app metadata }; ``` -------------------------------- ### Fetch Multiple App Details Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Fetches metadata for multiple apps simultaneously in a single API request to the Google Play Store. This function takes an array of app requests and common options, returning a Promise with an array of app details. ```TypeScript function fetchAppDetails(requests: AppDetailsRequest[], options: AppDetailsOptions): Promise ``` -------------------------------- ### Fetch App Details Metadata Properties Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines the constant properties available when fetching detailed metadata for a specific app from the Google Play Store. These properties cover a wide range of information including IDs, ratings, pricing, developer details, and more. ```TypeScript const fetchAppDetailsMetadataProperties: readonly ["app_id", "name", "content_rating", "released_on", "downloads", "downloads_exact", "in_app_purchases", "offered_by", "rating", "rating_counts", "price", "buy_url", "top_chart_placement", "developer", "developer_path", "developer_website_url", "developer_email", "developer_address", "description", "permissions", "screenshot_urls", "category", "icon_url", "cover_image_url", "privacy_policy_url", "trailer_url", "tags", "data_shared", "data_collected", "security_practices", "version", "requires_android", "updated_on"] ``` -------------------------------- ### TypeScript DataSafetyLabelsOptions Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Specifies the parameters required for data safety label requests. It includes a language code to define the language for descriptions and other related text. ```typescript type DataSafetyLabelsOptions = { language: LanguageCode; }; ``` -------------------------------- ### App Details Request Parameters (TypeScript) Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Specifies the parameters required for a request to fetch details of a specific app. The primary parameter is the application's unique ID. ```TypeScript type AppDetailsRequest = { appId: string; }; ``` -------------------------------- ### App Metadata Properties Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines the structure and types for various properties associated with an app's metadata on the Google Play Store. This includes details like app ID, download count, ratings, developer information, and content rating. ```TypeScript type AppMetadataProperty = keyof AppMetadataFull; type AppMetadataFull = { app_id: string; buy_url: string | undefined; category: string; content_rating?: { icon_url: string; interactive_elements?: string; label: string; }; cover_image_url: string | undefined; data_collected?: DataTypeDeclaration[] | undefined; data_shared?: DataTypeDeclaration[] | undefined; description: string; developer: string; developer_address: string | undefined; developer_email: string; developer_path: string; developer_website_url: string | undefined; downloads: string; downloads_exact: number; icon_url: string; in_app_purchases?: string; name: string; offered_by: string; permissions: PermissionGroup[]; position: number; price: string | undefined; privacy_policy_url: string | undefined; rating?: number | undefined; rating_counts: { "1": number; "2": number; "3": number; "4": number; "5": number; total: number; }; released_on?: Date; requires_android?: {}; screenshot_urls: string[]; security_practices?: DataSafetyLabelSecurityPracticesDeclarations | undefined; store_path: string; tags?: { id?: string; name: string; path: string; }; top_chart_placement?: { label: string; placement: string; }; trailer_url: string | undefined; updated_on: Date; version?: string; }; type AppMetadataPropertyFetchAppDetails = typeof fetchAppDetailsMetadataProperties[number]; ``` -------------------------------- ### Fetch Top Charts (Single) Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Fetches and parses the current top chart rankings from the Play Store for specified criteria. This function uses the Play Store's internal 'batchexecute' endpoint with a specific RPC ID. ```TypeScript fetchTopCharts(request: TopChartsRequest | TopChartsRequest[], options: TopChartsOptions): Promise ``` -------------------------------- ### Parse App Entry Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Parses an individual app entry obtained from a Play Store search or top chart response. This function allows for selective extraction of app metadata based on provided properties. ```TypeScript parseAppEntry

(entry: any, properties: P[] | readonly P[], options: Object): AppMetadata

``` -------------------------------- ### Fetch Top Charts (Multiple) Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Fetches multiple top charts at once in a single API request. This function is a batch version of fetchTopCharts, designed for efficiency when retrieving data for several charts. It utilizes the Play Store's internal 'batchexecute' endpoint. ```TypeScript fetchTopCharts(requests: TopChartsRequest[], options: TopChartsOptions): Promise<(TopChartsResult | undefined)[]> ``` -------------------------------- ### Search Apps Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Searches for apps on the Google Play Store using specified criteria. This function interacts with the Play Store's internal 'batchexecute' endpoint, identified by the RPC ID 'lGYRle'. ```TypeScript searchApps(request: SearchAppsRequest | SearchAppsRequest[], options: SearchAppsOptions): Promise ``` -------------------------------- ### TypeScript SearchAppsOptions Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines the parameters for searching apps on the Play Store. It allows specifying the country and language for the search results. ```typescript type SearchAppsOptions = { country: CountryCode; language: LanguageCode; }; ``` -------------------------------- ### Generic App Metadata Type (TypeScript) Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md A generic type for app metadata, allowing specific properties to be selected based on the context of the request. It's a subset of AppMetadataFull. ```TypeScript type AppMetadata

= Pick; ``` -------------------------------- ### Top Charts App Metadata Properties Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines the metadata properties for apps listed in the top charts on the Google Play Store. Similar to search results, it includes position, app ID, icon, name, rating, category, price, and developer information. ```TypeScript const topChartsAppMetadataProperties: readonly ["position", "app_id", "icon_url", "screenshot_urls", "name", "rating", "category", "price", "buy_url", "store_path", "trailer_url", "description", "developer", "downloads", "cover_image_url"] ``` -------------------------------- ### Fetch Data Safety Labels Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Retrieves and parses the data safety label for a given app from the Google Play Store. This function uses the `batchexecute` endpoint but is deprecated in favor of `fetchAppDetails`, which includes this information. ```TypeScript function fetchDataSafetyLabels(request: DataSafetyLabelRequest | [DataSafetyLabelRequest], options: DataSafetyLabelsOptions): Promise ``` -------------------------------- ### Search Google Play Apps with TypeScript Source: https://github.com/baltpeter/parse-play/blob/main/README.md Searches for apps on Google Play using a specified search term and country. It requires the 'parse-play' library and returns a list of app objects. ```ts import { searchApps } from 'parse-play'; (async () => { const searchResult = await searchApps({ searchTerm: 'education' }, { language: 'EN', country: 'DE' }); console.dir(searchResult, { depth: null }); })(); ``` -------------------------------- ### Search App Metadata Properties Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Specifies the metadata properties included in search results for apps on the Google Play Store. This includes essential information like position, app ID, icon URL, name, rating, category, and price. ```TypeScript const searchAppMetadataProperties: readonly ["position", "app_id", "icon_url", "screenshot_urls", "name", "rating", "category", "price", "buy_url", "store_path", "trailer_url", "description", "developer", "downloads", "cover_image_url"] ``` -------------------------------- ### TypeScript TopChartsOptions Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Specifies the parameters for fetching top charts data. This includes options that define the scope and characteristics of the top charts request. ```typescript type TopChartsOptions = { // Options for fetching top charts data }; ``` -------------------------------- ### Search Apps Concurrently (TypeScript) Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md The `searchApps` function in TypeScript allows for multiple app searches to be executed simultaneously. It consolidates these searches into a single API request, improving efficiency. The function accepts an array of `SearchAppsRequest` objects and a set of `SearchAppsOptions` that apply to all requests. It returns a promise that resolves to an array of search results, maintaining the order of the original requests. ```typescript ▸ **searchApps**(`requests`, `options`): `Promise`<([`SearchAppsResults`](README.md#searchappsresults) | `undefined`)[]> ``` -------------------------------- ### TopChartsRequest Parameters Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines the parameters for a Google Play top charts request, including category, chart type, and the number of results to fetch. The category can be 'APPLICATION', 'GAME', or a subcategory. The chart type specifies 'topselling_free', 'topgrossing', or 'topselling_paid'. The count limits the number of apps returned. ```typescript interface TopChartsRequest { category: CategoryId; chart: "topselling_free" | "topgrossing" | "topselling_paid"; count: number; } ``` -------------------------------- ### TypeScript DataSafetyLabelSecurityPracticesDeclarations Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines the structure for an app's declared security practices in a data safety label. It includes boolean flags for data deletion requests, compliance with families policy, data encryption in transit, and independent security reviews. ```typescript type DataSafetyLabelSecurityPracticesDeclarations = { can_request_data_deletion?: boolean; committed_to_play_families_policy?: boolean; data_encrypted_in_transit?: boolean; independent_security_review?: boolean; }; ``` -------------------------------- ### TypeScript SearchAppsRequest Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Represents the parameters for a specific app search query. It contains the search term to be used. ```typescript type SearchAppsRequest = { searchTerm: string; }; ``` -------------------------------- ### Fetch Data Safety Labels (Multiple) Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Fetches multiple data safety labels in a single API request. This function is a batch version of fetchDataSafetyLabels and is intended to be used for efficiency. It is noted as deprecated and users are advised to use fetchAppDetails instead. ```TypeScript fetchDataSafetyLabels(requests: DataSafetyLabelRequest[], options: DataSafetyLabelsOptions): Promise<(DataSafetyLabel | undefined)[]> ``` -------------------------------- ### TypeScript PermissionGroup Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Describes a group of related permissions an app utilizes. It includes an optional icon URL, a machine-readable ID, a display name, and a list of specific permissions within the group. ```typescript type PermissionGroup = { icon_url?: string; id?: string; name?: string; permissions: string[]; }; ``` -------------------------------- ### TypeScript TopChartsEntry Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Represents a single entry in a top charts list, containing app metadata and properties specific to top charts rankings. ```typescript type TopChartsEntry = AppMetadata; ``` -------------------------------- ### Define Play Store Languages in TypeScript Source: https://github.com/baltpeter/parse-play/blob/main/docs/enums/languages.md This snippet defines an enumeration for languages supported by the Play Store. Each member represents a specific language code. ```TypeScript export enum languages { AF = "af", AR = "ar", AZ = "az", BE = "be", BG = "bg", BH = "bh", BN = "bn", BS = "bs", CA = "ca", CS = "cs", CY = "cy", DA = "da", DE = "de", EL = "el", EN = "en", EO = "eo", ES = "es", ET = "et", EU = "eu", FA = "fa", FI = "fi", FO = "fo", FR = "fr", FY = "fy", GA = "ga", GD = "gd", GL = "gl", GU = "gu", HI = "hi", HR = "hr", HU = "hu", IA = "ia", ID = "id", IS = "is", IT = "it", IW = "iw", JA = "ja", JW = "jw", KA = "ka", KN = "kn", KO = "ko", LA = "la", LT = "lt", LV = "lv", MK = "mk", ML = "ml", MR = "mr", MS = "ms", MT = "mt", NE = "ne", NL = "nl", NN = "nn", NO = "no", OC = "oc", PA = "pa", PL = "pl", "PT-BR" = "pt-br", "PT-PT" = "pt-pt", RO = "ro", RU = "ru", SI = "si", SK = "sk", SL = "sl", SM = "sm", SQ = "sq", SR = "sr", SU = "su", SV = "sv", SW = "sw", TA = "ta", TE = "te", TH = "th", TI = "ti", TL = "tl", TR = "tr", UK = "uk", UR = "ur", UZ = "uz", VI = "vi", XH = "xh", "ZH-CN" = "zh-cn", "ZH-TW" = "zh-tw", ZU = "zu" } ``` -------------------------------- ### DataSafetyLabelDataCategories Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md A constant array listing the categories used to group related data types in Google Play's data safety labels. These categories help developers organize and declare the types of data collected by their apps. ```typescript const dataSafetyLabelDataCategories: readonly string[] = [ "App activity", "App info and performance", "Audio files", "Calendar", "Contacts", "Device or other IDs", "Files and docs", "Financial info", "Health and fitness", "Location", "Messages", "Personal info", "Photos and videos", "Web browsing" ]; ``` -------------------------------- ### DataSafetyLabelRequest Type Definition Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines the parameters required for a data safety label request, specifically the app's bundle ID. This is part of a deprecated feature, with data now accessible via fetchAppDetails. ```TypeScript export type DataSafetyLabelRequest = { app_id: string; }; ``` -------------------------------- ### TypeScript SearchAppsResults Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines the structure of search results for apps. It is an array of app metadata, potentially including specific properties related to search. ```typescript type SearchAppsResults = AppMetadata[]; ``` -------------------------------- ### DataSafetyLabelDataTypes Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md A constant array enumerating the specific types of data that can be declared within a data safety label on Google Play. This includes personal information, financial details, health data, and more. ```typescript const dataSafetyLabelDataTypes: readonly string[] = [ "Approximate location", "Precise location", "Name", "Email address", "User IDs", "Address", "Phone number", "Race and ethnicity", "Political or religious beliefs", "Sexual orientation", "Other info", "User payment info", "Purchase history", "Credit score", "Other financial info", "Health info", "Fitness info", "Emails", "SMS or MMS", "Other in-app messages", "Photos", "Videos", "Voice or sound recordings", "Music files", "Other audio files", "Files and docs", "Calendar events", "Contacts", "App interactions", "In-app search history", "Installed apps", "Other user-generated content", "Other actions", "Web browsing history", "Crash logs", "Diagnostics", "Other app performance data", "Device or other IDs" ]; ``` -------------------------------- ### App Details Result Type (TypeScript) Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Represents the result of a fetch app details operation. It is a generic type that inherits properties from AppMetadata, specifically tailored for app details requests. ```TypeScript type AppDetailsResult = AppMetadata; ``` -------------------------------- ### DataSafetyLabelPurposes Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md A constant array defining the purposes for which data collection or sharing can be declared in Google Play's data safety labels. These purposes cover aspects like app functionality, analytics, personalization, and compliance. ```typescript const dataSafetyLabelPurposes: readonly string[] = [ "App functionality", "Analytics", "Developer communications", "Advertising or marketing", "Fraud prevention, security, and compliance", "Personalization", "Account management" ]; ``` -------------------------------- ### TypeScript LanguageCode Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines a type for language codes supported by the Play Store. It is a key type derived from an enumeration of supported languages. ```typescript type LanguageCode = keyof typeof languages; ``` -------------------------------- ### AppMetadataPropertyTopCharts Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines a property that can be present in the metadata of apps listed in top charts. It is a numeric type derived from the topChartsAppMetadataProperties function. ```TypeScript export type AppMetadataPropertyTopCharts = typeof topChartsAppMetadataProperties[number]; ``` -------------------------------- ### DataSafetyLabel Type Definition Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines the structure of an app's data safety label, including details about data collected, shared, and developer information. This type is part of a deprecated feature, with data now accessible via fetchAppDetails. ```TypeScript export type DataSafetyLabel = { app_id: string; data_collected?: DataTypeDeclaration[] | undefined; data_shared?: DataTypeDeclaration[] | undefined; developer: { address?: string | undefined; email: string; name: string; path: string; website_url?: string | undefined; }; icon_url: string; name: string; privacy_policy_url?: string | undefined; security_practices?: DataSafetyLabelSecurityPracticesDeclarations | undefined; }; ``` -------------------------------- ### AppMetadataPropertySearch Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Defines a property that can be present in the metadata of apps returned in search results. It is a numeric type derived from the searchAppMetadataProperties function. ```TypeScript export type AppMetadataPropertySearch = typeof searchAppMetadataProperties[number]; ``` -------------------------------- ### CategoryId Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Represents the identifier for a category on the Google Play Store. It is a key type derived from the categories enumeration. ```TypeScript export type CategoryId = keyof typeof categories; ``` -------------------------------- ### TopChartsResult Structure Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Represents the result of a Google Play top charts request, which is an array of TopChartsEntry objects. Each entry in the array corresponds to an app on the specified top chart. ```typescript type TopChartsResult = TopChartsEntry[]; ``` -------------------------------- ### Define Play Store Categories in TypeScript Source: https://github.com/baltpeter/parse-play/blob/main/docs/enums/categories.md This snippet defines the enumeration for Play Store categories. Each member represents a specific category and is defined with its corresponding string value. ```TypeScript export enum ApplicationCategory { ANDROID_WEAR = "ANDROID_WEAR", APPLICATION = "APPLICATION", ART_AND_DESIGN = "ART_AND_DESIGN", AUTO_AND_VEHICLES = "AUTO_AND_VEHICLES", BEAUTY = "BEAUTY", BOOKS_AND_REFERENCE = "BOOKS_AND_REFERENCE", BUSINESS = "BUSINESS", COMICS = "COMICS", COMMUNICATION = "COMMUNICATION", DATING = "DATING", EDUCATION = "EDUCATION", ENTERTAINMENT = "ENTERTAINMENT", EVENTS = "EVENTS", FAMILY = "FAMILY", FINANCE = "FINANCE", FOOD_AND_DRINK = "FOOD_AND_DRINK", GAME = "GAME", GAME_ACTION = "GAME_ACTION", GAME_ADVENTURE = "GAME_ADVENTURE", GAME_ARCADE = "GAME_ARCADE", GAME_BOARD = "GAME_BOARD", GAME_CARD = "GAME_CARD", GAME_CASINO = "GAME_CASINO", GAME_CASUAL = "GAME_CASUAL", GAME_EDUCATIONAL = "GAME_EDUCATIONAL", GAME_MUSIC = "GAME_MUSIC", GAME_PUZZLE = "GAME_PUZZLE", GAME_RACING = "GAME_RACING", GAME_ROLE_PLAYING = "GAME_ROLE_PLAYING", GAME_SIMULATION = "GAME_SIMULATION", GAME_SPORTS = "GAME_SPORTS", GAME_STRATEGY = "GAME_STRATEGY", GAME_TRIVIA = "GAME_TRIVIA", GAME_WORD = "GAME_WORD", HEALTH_AND_FITNESS = "HEALTH_AND_FITNESS", HOUSE_AND_HOME = "HOUSE_AND_HOME", LIBRARIES_AND_DEMO = "LIBRARIES_AND_DEMO", LIFESTYLE = "LIFESTYLE", MAPS_AND_NAVIGATION = "MAPS_AND_NAVIGATION", MEDICAL = "MEDICAL", MUSIC_AND_AUDIO = "MUSIC_AND_AUDIO", NEWS_AND_MAGAZINES = "NEWS_AND_MAGAZINES", PARENTING = "PARENTING", PERSONALIZATION = "PERSONALIZATION", PHOTOGRAPHY = "PHOTOGRAPHY", PRODUCTIVITY = "PRODUCTIVITY", SHOPPING = "SHOPPING", SOCIAL = "SOCIAL", SPORTS = "SPORTS", TOOLS = "TOOLS", TRAVEL_AND_LOCAL = "TRAVEL_AND_LOCAL", VIDEO_PLAYERS = "VIDEO_PLAYERS", WATCH_FACE = "WATCH_FACE", WEATHER = "WEATHER" } ``` -------------------------------- ### Define Country Enumeration in TypeScript Source: https://github.com/baltpeter/parse-play/blob/main/docs/enums/countries.md This snippet defines an enumeration for countries supported by the Play Store. Each country is represented by its two-letter ISO code. The enumeration is defined in TypeScript. ```TypeScript export enum Country { AX = "AX", AT = "AT", BE = "BE", BG = "BG", HR = "HR", CY = "CY", CZ = "CZ", DK = "DK", EE = "EE", FI = "FI", FO = "FO", FR = "FR", DE = "DE", GI = "GI", GR = "GR", HU = "HU", IS = "IS", IE = "IE", IT = "IT", LV = "LV", LI = "LI", LT = "LT", LU = "LU", MC = "MC", NL = "NL", NO = "NO", PL = "PL", PT = "PT", RO = "RO", SM = "SM", SK = "SK", SI = "SI", ES = "ES", SE = "SE", CH = "CH", GB = "GB", GF = "GF", GP = "GP", MQ = "MQ", BL = "BL", MF = "MF", RE = "RE", PF = "PF", PM = "PM", WF = "WF", YT = "YT", VA = "VA", SJ = "SJ", } ``` -------------------------------- ### CountryCode Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Represents the country code for a country supported by the Google Play Store. It is a key type derived from the countries enumeration. ```TypeScript export type CountryCode = keyof typeof countries; ``` -------------------------------- ### TypeScript DataTypeDeclaration Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Represents a single data type declaration within an app's data safety label. It details the data category, whether it's optional, the purposes for collection/sharing, and the specific data type. ```typescript type DataTypeDeclaration = { category: DataSafetyLabelDataCategory; optional: boolean; purposes: DataSafetyLabelPurpose[]; type: DataSafetyLabelDataType; }; ``` -------------------------------- ### DataSafetyLabelPurpose Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Represents a purpose for which data collection or sharing is declared in a data safety label. It is a numeric type derived from the dataSafetyLabelPurposes. ```TypeScript export type DataSafetyLabelPurpose = typeof dataSafetyLabelPurposes[number]; ``` -------------------------------- ### DataSafetyLabelDataCategory Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Represents a category used to group related data types within a data safety label. It is a numeric type derived from the dataSafetyLabelDataCategories. ```TypeScript export type DataSafetyLabelDataCategory = typeof dataSafetyLabelDataCategories[number]; ``` -------------------------------- ### DataSafetyLabelDataType Type Source: https://github.com/baltpeter/parse-play/blob/main/docs/README.md Represents a specific type of data that can be declared in an app's data safety label. It is a numeric type derived from the dataSafetyLabelDataTypes. ```TypeScript export type DataSafetyLabelDataType = typeof dataSafetyLabelDataTypes[number]; ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.