summaryrefslogtreecommitdiff
path: root/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-article-page-intent.js
blob: 1f41b32e87288e6fd87ff3093927e77b75ec3fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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