@mx-space/api-client 2.4.1 → 2.4.2

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.
package/dist/index.d.cts CHANGED
@@ -1564,7 +1564,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
1564
1564
  name: string;
1565
1565
  created: string;
1566
1566
  id: string;
1567
- children: Pick<PostModel, "slug" | "id" | "created" | "title" | "modified">[];
1567
+ children: Pick<PostModel, "id" | "title" | "slug" | "modified" | "created">[];
1568
1568
  } : T_1 : never : never;
1569
1569
  } : ResponseWrapper;
1570
1570
  $request: {
@@ -1616,7 +1616,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
1616
1616
  };
1617
1617
  }) ? T_1 extends unknown ? {
1618
1618
  tag: string;
1619
- data: Pick<PostModel, "category" | "slug" | "id" | "created" | "title">[];
1619
+ data: Pick<PostModel, "category" | "id" | "title" | "slug" | "created">[];
1620
1620
  } : T_1 : never : never;
1621
1621
  } : ResponseWrapper;
1622
1622
  $request: {
@@ -2454,11 +2454,11 @@ declare class SearchController<ResponseWrapper> implements IController {
2454
2454
  * @param options
2455
2455
  * @returns
2456
2456
  */
2457
- searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "slug" | "id" | "created" | "title" | "modified"> & {
2457
+ searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
2458
2458
  type: "post";
2459
- }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
2459
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2460
2460
  type: "note";
2461
- }) | (Pick<PageModel, "slug" | "id" | "created" | "title" | "modified"> & {
2461
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
2462
2462
  type: "page";
2463
2463
  })> & {
2464
2464
  /**
@@ -2467,11 +2467,11 @@ declare class SearchController<ResponseWrapper> implements IController {
2467
2467
  raw?: any;
2468
2468
  }, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
2469
2469
  [key: string]: any;
2470
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "slug" | "id" | "created" | "title" | "modified"> & {
2470
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
2471
2471
  type: "post";
2472
- }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
2472
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2473
2473
  type: "note";
2474
- }) | (Pick<PageModel, "slug" | "id" | "created" | "title" | "modified"> & {
2474
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
2475
2475
  type: "page";
2476
2476
  })> & {
2477
2477
  /**
@@ -2480,11 +2480,11 @@ declare class SearchController<ResponseWrapper> implements IController {
2480
2480
  raw?: any;
2481
2481
  }, ResponseWrapper>;
2482
2482
  } : ResponseWrapper extends {
2483
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "slug" | "id" | "created" | "title" | "modified"> & {
2483
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
2484
2484
  type: "post";
2485
- }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
2485
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2486
2486
  type: "note";
2487
- }) | (Pick<PageModel, "slug" | "id" | "created" | "title" | "modified"> & {
2487
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
2488
2488
  type: "page";
2489
2489
  })> & {
2490
2490
  /**
@@ -2493,11 +2493,11 @@ declare class SearchController<ResponseWrapper> implements IController {
2493
2493
  raw?: any;
2494
2494
  }, ResponseWrapper>;
2495
2495
  } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
2496
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "slug" | "id" | "created" | "title" | "modified"> & {
2496
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
2497
2497
  type: "post";
2498
- }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
2498
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2499
2499
  type: "note";
2500
- }) | (Pick<PageModel, "slug" | "id" | "created" | "title" | "modified"> & {
2500
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
2501
2501
  type: "page";
2502
2502
  })> & {
2503
2503
  /**
package/dist/index.d.mts CHANGED
@@ -1564,7 +1564,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
1564
1564
  name: string;
1565
1565
  created: string;
1566
1566
  id: string;
1567
- children: Pick<PostModel, "slug" | "id" | "created" | "title" | "modified">[];
1567
+ children: Pick<PostModel, "id" | "title" | "slug" | "modified" | "created">[];
1568
1568
  } : T_1 : never : never;
1569
1569
  } : ResponseWrapper;
1570
1570
  $request: {
@@ -1616,7 +1616,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
1616
1616
  };
1617
1617
  }) ? T_1 extends unknown ? {
1618
1618
  tag: string;
1619
- data: Pick<PostModel, "category" | "slug" | "id" | "created" | "title">[];
1619
+ data: Pick<PostModel, "category" | "id" | "title" | "slug" | "created">[];
1620
1620
  } : T_1 : never : never;
1621
1621
  } : ResponseWrapper;
1622
1622
  $request: {
@@ -2454,11 +2454,11 @@ declare class SearchController<ResponseWrapper> implements IController {
2454
2454
  * @param options
2455
2455
  * @returns
2456
2456
  */
2457
- searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "slug" | "id" | "created" | "title" | "modified"> & {
2457
+ searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
2458
2458
  type: "post";
2459
- }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
2459
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2460
2460
  type: "note";
2461
- }) | (Pick<PageModel, "slug" | "id" | "created" | "title" | "modified"> & {
2461
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
2462
2462
  type: "page";
2463
2463
  })> & {
2464
2464
  /**
@@ -2467,11 +2467,11 @@ declare class SearchController<ResponseWrapper> implements IController {
2467
2467
  raw?: any;
2468
2468
  }, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
2469
2469
  [key: string]: any;
2470
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "slug" | "id" | "created" | "title" | "modified"> & {
2470
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
2471
2471
  type: "post";
2472
- }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
2472
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2473
2473
  type: "note";
2474
- }) | (Pick<PageModel, "slug" | "id" | "created" | "title" | "modified"> & {
2474
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
2475
2475
  type: "page";
2476
2476
  })> & {
2477
2477
  /**
@@ -2480,11 +2480,11 @@ declare class SearchController<ResponseWrapper> implements IController {
2480
2480
  raw?: any;
2481
2481
  }, ResponseWrapper>;
2482
2482
  } : ResponseWrapper extends {
2483
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "slug" | "id" | "created" | "title" | "modified"> & {
2483
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
2484
2484
  type: "post";
2485
- }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
2485
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2486
2486
  type: "note";
2487
- }) | (Pick<PageModel, "slug" | "id" | "created" | "title" | "modified"> & {
2487
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
2488
2488
  type: "page";
2489
2489
  })> & {
2490
2490
  /**
@@ -2493,11 +2493,11 @@ declare class SearchController<ResponseWrapper> implements IController {
2493
2493
  raw?: any;
2494
2494
  }, ResponseWrapper>;
2495
2495
  } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
2496
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "slug" | "id" | "created" | "title" | "modified"> & {
2496
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
2497
2497
  type: "post";
2498
- }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
2498
+ }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
2499
2499
  type: "note";
2500
- }) | (Pick<PageModel, "slug" | "id" | "created" | "title" | "modified"> & {
2500
+ }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
2501
2501
  type: "page";
2502
2502
  })> & {
2503
2503
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-space/api-client",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "A api client for mx-space server@next",
5
5
  "type": "module",
6
6
  "engines": {