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