summaryrefslogtreecommitdiff
path: root/node_modules/@jet-app/app-store/tmp/src/api/intents/routable-article-page-intent.js
diff options
context:
space:
mode:
authorrxliuli <rxliuli@gmail.com>2025-11-04 05:03:50 +0800
committerrxliuli <rxliuli@gmail.com>2025-11-04 05:03:50 +0800
commitbce557cc2dc767628bed6aac87301a1be7c5431b (patch)
treeb51a051228d01fe3306cd7626d4a96768aadb944 /node_modules/@jet-app/app-store/tmp/src/api/intents/routable-article-page-intent.js
init commit
Diffstat (limited to 'node_modules/@jet-app/app-store/tmp/src/api/intents/routable-article-page-intent.js')
-rw-r--r--node_modules/@jet-app/app-store/tmp/src/api/intents/routable-article-page-intent.js13
1 files changed, 13 insertions, 0 deletions
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