UNPKG

epic-games-store-crawler

Version:

A crawler to retrieve store data from the Epic Games store

10 lines 3.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Query; (function (Query) { Query["Catalog"] = "\n query searchStoreQuery(\n $allowCountries: String, $category: String, $count: Int, $country: String!,\n $keywords: String, $locale: String, $namespace: String, $itemNs: String,\n $sortBy: String, $sortDir: String, $start: Int, $tag: String, $releaseDate: String) { \n Catalog { \n searchStore (allowCountries: $allowCountries, category: $category, count: $count, country: $country\n keywords: $keywords, locale: $locale, namespace: $namespace, itemNs: $itemNs,\n sortBy: $sortBy, sortDir: $sortDir, start: $start, tag: $tag, releaseDate: $releaseDate) {\n elements {\n title id namespace description\n seller {\n name\n }\n price (country: $country) {\n totalPrice {\n discountPrice originalPrice voucherDiscount discount currencyCode\n currencyInfo {\n decimals\n }\n }\n }\n promotions {\n promotionalOffers {\n promotionalOffers {\n startDate endDate\n }\n }\n }\n }\n }\n } \n } \n "; Query["CatalogTags"] = "\n query catalogTags($namespace: String, $locale: String, $start: Int, $count: Int) {\n Catalog {\n tags (namespace: $namespace, locale: $locale, start: $start, count: $count) {\n elements {\n aliases id name referenceCount status\n }\n }\n }\n }\n "; Query["FreeCatalog"] = "\n query searchStoreQuery(\n $allowCountries: String, $count: Int, $country: String!,\n $keywords: String, $locale: String, $namespace: String, $itemNs: String,\n $sortBy: String, $sortDir: String, $start: Int, $tag: String, $releaseDate: String) { \n Catalog { \n searchStore (allowCountries: $allowCountries, category: \"freegames\", count: $count, country: $country\n keywords: $keywords, locale: $locale, namespace: $namespace, itemNs: $itemNs,\n sortBy: $sortBy, sortDir: $sortDir, start: $start, tag: $tag, releaseDate: $releaseDate) {\n elements {\n title id namespace description\n seller {\n name\n }\n price (country: $country) {\n totalPrice {\n discountPrice originalPrice voucherDiscount discount currencyCode\n currencyInfo {\n decimals\n }\n }\n }\n promotions {\n promotionalOffers {\n promotionalOffers {\n startDate endDate\n }\n }\n }\n }\n }\n } \n }\n "; })(Query || (Query = {})); exports.default = Query; //# sourceMappingURL=query.js.map