diff options
Diffstat (limited to 'node_modules/@jet-app/app-store/tmp/src/api/intents')
20 files changed, 313 insertions, 0 deletions
diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/app-event-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/app-event-page-intent.js new file mode 100644 index 0000000..1913f2a --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/app-event-page-intent.js @@ -0,0 +1,14 @@ +import { normalizePreviewPlaform } from "../models/preview-platform"; +const APP_EVENT_PAGE_INTENT_KIND = "AppEventPageIntent"; +export function makeAppEventPageIntent(opts) { + const { platform, ...rest } = opts; + return { + ...rest, + $kind: APP_EVENT_PAGE_INTENT_KIND, + platform: normalizePreviewPlaform(platform), + }; +} +export function isAppEventPageIntent(intent) { + return (intent === null || intent === void 0 ? void 0 : intent.$kind) === APP_EVENT_PAGE_INTENT_KIND; +} +//# sourceMappingURL=app-event-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/arcade-grouping-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/arcade-grouping-page-intent.js new file mode 100644 index 0000000..a24df96 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/arcade-grouping-page-intent.js @@ -0,0 +1,10 @@ +import { normalizePreviewPlaform } from "../models/preview-platform"; +export function makeArcadeGroupingPageIntent(opts) { + const { platform, ...rest } = opts; + return { + ...rest, + platform: normalizePreviewPlaform(platform), + $kind: "ArcadeGroupingPageIntent", + }; +} +//# sourceMappingURL=arcade-grouping-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/bundle-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/bundle-page-intent.js new file mode 100644 index 0000000..b6bed12 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/bundle-page-intent.js @@ -0,0 +1,16 @@ +import { normalizeAdamID } from "../util"; +import { normalizePreviewPlaform } from "../models/preview-platform"; +export function makeBundlePageIntent(opts) { + const { id, platform, lic, ...rest } = opts; + return { + $kind: "BundlePageIntent", + id: normalizeAdamID(id), + platform: normalizePreviewPlaform(platform), + lic, + ...rest, + }; +} +export function isBundlePageIntent(intent) { + return (intent === null || intent === void 0 ? void 0 : intent.$kind) === "BundlePageIntent"; +} +//# sourceMappingURL=bundle-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/category-tabs-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/category-tabs-intent.js new file mode 100644 index 0000000..0b2ec9e --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/category-tabs-intent.js @@ -0,0 +1,8 @@ +import { normalizePreviewPlaform } from "../models/preview-platform"; +export function makeCategoryTabsIntent(opts) { + return { + $kind: "CategoryTabsIntent", + platform: normalizePreviewPlaform(opts.platform), + }; +} +//# sourceMappingURL=category-tabs-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/charts-hub-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/charts-hub-page-intent.js new file mode 100644 index 0000000..bb964f0 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/charts-hub-page-intent.js @@ -0,0 +1,13 @@ +import { normalizePreviewPlaform } from "../models/preview-platform"; +/** + * Create a {@linkcode ChartsHubPageIntent} + */ +export function makeChartsHubPageIntent(opts) { + const { platform, ...rest } = opts; + return { + ...rest, + platform: normalizePreviewPlaform(platform), + $kind: "ChartsHubPageIntent", + }; +} +//# sourceMappingURL=charts-hub-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/charts-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/charts-page-intent.js new file mode 100644 index 0000000..e900b06 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/charts-page-intent.js @@ -0,0 +1,13 @@ +import { normalizePreviewPlaform } from "../models/preview-platform"; +const CHARTS_PAGE_INTENT_KIND = "ChartsPageIntent"; +export function makeChartsPageIntent({ platform, ...rest }) { + return { + ...rest, + platform: normalizePreviewPlaform(platform), + $kind: CHARTS_PAGE_INTENT_KIND, + }; +} +export function isChartsPageIntent(intent) { + return (intent === null || intent === void 0 ? void 0 : intent.$kind) === CHARTS_PAGE_INTENT_KIND; +} +//# sourceMappingURL=charts-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/developer-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/developer-page-intent.js new file mode 100644 index 0000000..a9633b6 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/developer-page-intent.js @@ -0,0 +1,19 @@ +import { normalizeAdamID } from "../util"; +const DEVELOPER_PAGE_INTENT_KIND = "DeveloperPageIntent"; +/** + * Determines if {@linkcode intent} is a {@linkcode DeveloperPageIntent} + */ +export function isDeveloperPageIntent(intent) { + return intent.$kind === DEVELOPER_PAGE_INTENT_KIND; +} +/** + * Creates a {@linkcode DeveloperPageIntent} + */ +export function makeDeveloperPageIntent({ id, ...rest }) { + return { + ...rest, + id: normalizeAdamID(id), + $kind: DEVELOPER_PAGE_INTENT_KIND, + }; +} +//# sourceMappingURL=developer-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/editorial/editorial-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/editorial/editorial-page-intent.js new file mode 100644 index 0000000..353a168 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/editorial/editorial-page-intent.js @@ -0,0 +1,37 @@ +import { normalizePreviewPlaform } from "../../models/preview-platform"; +export function isEditorialPageIntent(intent) { + return (intent === null || intent === void 0 ? void 0 : intent.$kind) === "EditorialPageIntent"; +} +export function isEditorialPageIntentByID(intent) { + return isEditorialPageIntent(intent) && "id" in intent; +} +export function isEditorialPageIntentByName(intent) { + return isEditorialPageIntent(intent) && "name" in intent; +} +/** + * Creates an {@link EditorialPageIntent} that fetches an Editorial Page by "name" + * + * @param options the properties of the created {@link EditorialPageIntentByName} + */ +export function makeEditorialPageIntentByName(options) { + const { platform, ...rest } = options; + return { + ...rest, + $kind: "EditorialPageIntent", + platform: normalizePreviewPlaform(platform), + }; +} +/** + * Creates an {@link EditorialPageIntent} that fetches an Editorial Page by "id" + * + * @param options the properties of the created {@linkcode EditorialPageIntentById} + */ +export function makeEditorialPageIntentByID(options) { + const { platform, ...rest } = options; + return { + $kind: "EditorialPageIntent", + platform: normalizePreviewPlaform(platform), + ...rest, + }; +} +//# sourceMappingURL=editorial-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/editorial/editorial-shelf-collection-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/editorial/editorial-shelf-collection-page-intent.js new file mode 100644 index 0000000..0e9b9af --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/editorial/editorial-shelf-collection-page-intent.js @@ -0,0 +1,14 @@ +import { normalizePreviewPlaform } from "../../models/preview-platform"; +const EDITORIAL_SHELF_COLLECTION_PAGE_INTENT_KIND = "EditorialShelfCollectionPageIntent"; +export function isEditorialShelfCollectionPageIntent(intent) { + return intent.$kind === EDITORIAL_SHELF_COLLECTION_PAGE_INTENT_KIND; +} +export function makeEditorialShelfCollectionPageIntent(opts) { + const { platform, ...rest } = opts; + return { + ...rest, + $kind: EDITORIAL_SHELF_COLLECTION_PAGE_INTENT_KIND, + platform: normalizePreviewPlaform(platform), + }; +} +//# sourceMappingURL=editorial-shelf-collection-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/eula-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/eula-page-intent.js new file mode 100644 index 0000000..f040ff9 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/eula-page-intent.js @@ -0,0 +1,19 @@ +const EULA_PAGE_INTENT_KIND = "EulaPageIntent"; +/** + * Determines if {@linkcode intent} is a {@linkcode EulaPageIntent} + */ +export function isEulaPageIntent(intent) { + return intent.$kind === EULA_PAGE_INTENT_KIND; +} +/** + * Creates a {@linkcode EulaPageIntent} + */ +export function makeEulaPageIntent({ resourceId, resourceType, ...rest }) { + return { + ...rest, + resourceId, + resourceType, + $kind: EULA_PAGE_INTENT_KIND, + }; +} +//# sourceMappingURL=eula-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/grouping-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/grouping-page-intent.js new file mode 100644 index 0000000..5d381a0 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/grouping-page-intent.js @@ -0,0 +1,33 @@ +import { normalizePreviewPlaform } from "../models/preview-platform"; +import { normalizeAdamID } from "../util"; +export function isGroupingPageIntent(intent) { + return intent.$kind === "GroupingPageIntent"; +} +/** + * Creates a {@link GroupingPageIntent} "by name" + * + * @param options the properties of the created {@link GroupingPageIntent} + */ +export function makeGroupingPageIntentByName(options) { + const { platform, ...rest } = options; + return { + ...rest, + $kind: "GroupingPageIntent", + platform: normalizePreviewPlaform(platform), + }; +} +/** + * Creates a {@link GroupingPageIntent} "by ID" + * + * @param options the properties of the created {@link GroupingPageIntent} + */ +export function makeGroupingPageIntentByID(options) { + const { platform, id, ...rest } = options; + return { + ...rest, + $kind: "GroupingPageIntent", + id: normalizeAdamID(id), + platform: normalizePreviewPlaform(platform), + }; +} +//# sourceMappingURL=grouping-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/product-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/product-page-intent.js new file mode 100644 index 0000000..d8100ea --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/product-page-intent.js @@ -0,0 +1,17 @@ +import { normalizeAdamID } from "../util"; +import { normalizePreviewPlaform } from "../models/preview-platform"; +export function makeProductPageIntent(opts) { + const { id, platform, ppid, lic, ...rest } = opts; + return { + ...rest, + $kind: "ProductPageIntent", + id: normalizeAdamID(id), + platform: normalizePreviewPlaform(platform), + ppid, + lic, + }; +} +export function isProductPageIntent(intent) { + return (intent === null || intent === void 0 ? void 0 : intent.$kind) === "ProductPageIntent"; +} +//# sourceMappingURL=product-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/room-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/room-page-intent.js new file mode 100644 index 0000000..f5ee4bf --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/room-page-intent.js @@ -0,0 +1,16 @@ +import { normalizePreviewPlaform } from "../models/preview-platform"; +import { normalizeAdamID } from "../util"; +const ROOM_PAGE_INTENT_KIND = "RoomPageIntent"; +export function makeRoomPageIntent(opts) { + const { platform, id, ...rest } = opts; + return { + ...rest, + platform: normalizePreviewPlaform(platform), + id: normalizeAdamID(id), + $kind: ROOM_PAGE_INTENT_KIND, + }; +} +export function isRoomPageIntent(intent) { + return (intent === null || intent === void 0 ? void 0 : intent.$kind) === ROOM_PAGE_INTENT_KIND; +} +//# sourceMappingURL=room-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-arcade-see-all-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-arcade-see-all-page-intent.js new file mode 100644 index 0000000..0a09491 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-arcade-see-all-page-intent.js @@ -0,0 +1,11 @@ +import { normalizePreviewPlaform } from "../models/preview-platform"; +const ROUTABLE_ARCADE_SEE_ALL_PAGE_INTENT_KIND = "RoutableArcadeSeeAllPageIntent"; +export function makeRoutableArcadeSeeAllPageIntent(opts) { + const { platform, ...rest } = opts; + return { + ...rest, + platform: normalizePreviewPlaform(platform), + $kind: "RoutableArcadeSeeAllPageIntent", + }; +} +//# sourceMappingURL=routable-arcade-see-all-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-article-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-article-page-intent.js new file mode 100644 index 0000000..1f41b32 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-article-page-intent.js @@ -0,0 +1,13 @@ +import { normalizePreviewPlaform } from "../models/preview-platform"; +import { normalizeAdamID } from "../util"; +const ROUTABLE_ARTICLE_PAGE_INTENT_KIND = "RoutableArticlePageIntent"; +export function makeRoutableArticlePageIntent(opts) { + const { id, platform, ...rest } = opts; + return { + ...rest, + id: normalizeAdamID(id), + platform: normalizePreviewPlaform(platform), + $kind: ROUTABLE_ARTICLE_PAGE_INTENT_KIND, + }; +} +//# sourceMappingURL=routable-article-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-intent.js new file mode 100644 index 0000000..3769762 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-intent.js @@ -0,0 +1,4 @@ +export function isRoutableIntent(intent) { + return "storefront" in intent && "language" in intent; +} +//# sourceMappingURL=routable-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-today-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-today-page-intent.js new file mode 100644 index 0000000..0a5c109 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-today-page-intent.js @@ -0,0 +1,10 @@ +import { normalizePreviewPlaform } from "../models/preview-platform"; +export function makeRoutableTodayPageIntent(opts) { + const { platform, ...rest } = opts; + return { + ...rest, + platform: normalizePreviewPlaform(platform), + $kind: "RoutableTodayPageIntent", + }; +} +//# sourceMappingURL=routable-today-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/search-results-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/search-results-page-intent.js new file mode 100644 index 0000000..94edcf7 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/search-results-page-intent.js @@ -0,0 +1,19 @@ +import { normalizePreviewPlaform } from "../models/preview-platform"; +export function makeSearchResultsPageIntent(opts) { + const { platform, ...rest } = opts; + return { + ...rest, + platform: normalizePreviewPlaform(platform), + $kind: "SearchResultsPageIntent", + }; +} +export function makeSearchResultsPageIntentFromURLParams(opts) { + return makeSearchResultsPageIntent({ + ...opts, + origin: "userText", + }); +} +export function isSearchResultsPageIntent(intent) { + return intent.$kind === "SearchResultsPageIntent"; +} +//# sourceMappingURL=search-results-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/search/search-landing-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/search/search-landing-page-intent.js new file mode 100644 index 0000000..74b6374 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/search/search-landing-page-intent.js @@ -0,0 +1,14 @@ +import { normalizePreviewPlaform } from "../../models/preview-platform"; +const SEARCH_LANDING_PAGE_INTENT_KIND = "SearchLandingPageIntent"; +export function makeSearchLandingPageIntent(opts) { + const { platform, ...rest } = opts; + return { + ...rest, + platform: normalizePreviewPlaform(platform), + $kind: SEARCH_LANDING_PAGE_INTENT_KIND, + }; +} +export function isSearchLandingPageIntent(intent) { + return (intent === null || intent === void 0 ? void 0 : intent.$kind) === SEARCH_LANDING_PAGE_INTENT_KIND; +} +//# sourceMappingURL=search-landing-page-intent.js.map
\ No newline at end of file diff --git a/node_modules/@jet-app/app-store/tmp/src/api/intents/see-all-page-intent.js b/node_modules/@jet-app/app-store/tmp/src/api/intents/see-all-page-intent.js new file mode 100644 index 0000000..2fb8203 --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/api/intents/see-all-page-intent.js @@ -0,0 +1,13 @@ +import { normalizePreviewPlaform } from "../models/preview-platform"; +import { normalizeAdamID } from "../util"; +export const SEE_ALL_TYPES = ["reviews", "customers-also-bought-apps", "developer-other-apps"]; +export function makeSeeAllPageIntent(opts) { + return { + ...opts, + "$kind": "SeeAllPageIntent", + "id": normalizeAdamID(opts.id), + "platform": normalizePreviewPlaform(opts.platform), + "see-all": opts["see-all"], + }; +} +//# sourceMappingURL=see-all-page-intent.js.map
\ No newline at end of file |
