summaryrefslogtreecommitdiff
path: root/node_modules/@jet-app/app-store/tmp/src/api/intents/grouping-page-intent.js
blob: 5d381a0b7fde78fb068e81bafc31668acf5bfbf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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