sitero 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,11 +16,13 @@ function createLoadPosts(ctx) {
|
|
|
16
16
|
isFeatured,
|
|
17
17
|
isShownOnHome,
|
|
18
18
|
excludeIds,
|
|
19
|
-
include
|
|
19
|
+
include,
|
|
20
|
+
...params
|
|
20
21
|
}) {
|
|
21
22
|
const postType = constants.staticTopics[topicSlug]?.postType;
|
|
22
23
|
const { items: posts, total: rawTotal } = await coreServer.interfaces.executions.runAction(
|
|
23
24
|
() => interfaces.actions.resources.post.findListCards({
|
|
25
|
+
...params,
|
|
24
26
|
locale,
|
|
25
27
|
type: postType ?? null,
|
|
26
28
|
...categorySlug && { categorySlug },
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { LoaderContext } from "./loader-context";
|
|
2
|
-
|
|
2
|
+
import type { FindListCardsParams } from "../../../../core/server/infrastructure/database/post/query/types";
|
|
3
|
+
export declare function createLoadPosts(ctx: LoaderContext): ({ locale, topicSlug, categorySlug, currentPage, pageSize, isFeatured, isShownOnHome, excludeIds, include, ...params }: {
|
|
3
4
|
locale: string;
|
|
4
5
|
topicSlug: string;
|
|
5
6
|
categorySlug?: string;
|
|
@@ -9,7 +10,7 @@ export declare function createLoadPosts(ctx: LoaderContext): ({ locale, topicSlu
|
|
|
9
10
|
isShownOnHome?: boolean;
|
|
10
11
|
excludeIds?: string[];
|
|
11
12
|
include?: object;
|
|
12
|
-
}) => Promise<{
|
|
13
|
+
} & Omit<FindListCardsParams, "type">) => Promise<{
|
|
13
14
|
posts: import("../../../../core/domain").PostListCard[];
|
|
14
15
|
total: number;
|
|
15
16
|
totalPages: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-posts.d.ts","sourceRoot":"","sources":["../../../../../../../src/web/server/interfaces/loaders/load-posts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"load-posts.d.ts","sourceRoot":"","sources":["../../../../../../../src/web/server/interfaces/loaders/load-posts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kEAAkE,CAAC;AAG5G,wBAAgB,eAAe,CAAC,GAAG,EAAE,aAAa,IAGhB,uHAW7B;IACD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC;;;;GAqCtC"}
|