@yimingliao/cms 0.0.206 → 0.0.207

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.
@@ -8,9 +8,9 @@ function createInquiryFindListCardsAction(ctx) {
8
8
  return executeAction(
9
9
  async () => {
10
10
  await authMiddleware.authenticate();
11
- const found = await inquiryQueryRepository.findListCards(params);
11
+ const { items, total } = await inquiryQueryRepository.findListCards(params);
12
12
  return {
13
- data: { inquiries: found }
13
+ data: { items, total }
14
14
  };
15
15
  },
16
16
  {
@@ -3,9 +3,7 @@ export declare function createInquiryFindListCardsAction(ctx: ActionContext): (p
3
3
  page: number;
4
4
  pageSize: number;
5
5
  }) => Promise<import("../../../../../../shared").Result<{
6
- inquiries: {
7
- items: import("../../../../../../domain").Inquiry[];
8
- total: number;
9
- };
6
+ items: import("../../../../../../domain").Inquiry[];
7
+ total: number;
10
8
  }>>;
11
9
  //# sourceMappingURL=create-inquiry-find-list-cards-action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-inquiry-find-list-cards-action.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/server/interfaces/actions/resources/inquiry/queries/create-inquiry-find-list-cards-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,wBAAgB,gCAAgC,CAAC,GAAG,EAAE,aAAa,IAOrB,QAAQ;IAElD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;;;;;IAqBF"}
1
+ {"version":3,"file":"create-inquiry-find-list-cards-action.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/server/interfaces/actions/resources/inquiry/queries/create-inquiry-find-list-cards-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,wBAAgB,gCAAgC,CAAC,GAAG,EAAE,aAAa,IAOrB,QAAQ;IAElD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;;;IAsBF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yimingliao/cms",
3
- "version": "0.0.206",
3
+ "version": "0.0.207",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",