@mx-space/api-client 2.4.0 → 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 +15 -14
- package/dist/index.d.mts +15 -14
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -585,6 +585,7 @@ interface AggregateRoot {
|
|
|
585
585
|
user: UserModel;
|
|
586
586
|
seo: SeoOptionModel;
|
|
587
587
|
url: Url;
|
|
588
|
+
commentOptions?: Pick<CommentOptionsModel, 'disableComment' | 'allowGuestComment'>;
|
|
588
589
|
categories: CategoryModel[];
|
|
589
590
|
pageMeta: Pick<PageModel, 'title' | 'id' | 'slug' | 'order'>[] | null;
|
|
590
591
|
/**
|
|
@@ -1563,7 +1564,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1563
1564
|
name: string;
|
|
1564
1565
|
created: string;
|
|
1565
1566
|
id: string;
|
|
1566
|
-
children: Pick<PostModel, "
|
|
1567
|
+
children: Pick<PostModel, "id" | "title" | "slug" | "modified" | "created">[];
|
|
1567
1568
|
} : T_1 : never : never;
|
|
1568
1569
|
} : ResponseWrapper;
|
|
1569
1570
|
$request: {
|
|
@@ -1615,7 +1616,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1615
1616
|
};
|
|
1616
1617
|
}) ? T_1 extends unknown ? {
|
|
1617
1618
|
tag: string;
|
|
1618
|
-
data: Pick<PostModel, "category" | "
|
|
1619
|
+
data: Pick<PostModel, "category" | "id" | "title" | "slug" | "created">[];
|
|
1619
1620
|
} : T_1 : never : never;
|
|
1620
1621
|
} : ResponseWrapper;
|
|
1621
1622
|
$request: {
|
|
@@ -2453,11 +2454,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2453
2454
|
* @param options
|
|
2454
2455
|
* @returns
|
|
2455
2456
|
*/
|
|
2456
|
-
searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "
|
|
2457
|
+
searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2457
2458
|
type: "post";
|
|
2458
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2459
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
|
|
2459
2460
|
type: "note";
|
|
2460
|
-
}) | (Pick<PageModel, "
|
|
2461
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2461
2462
|
type: "page";
|
|
2462
2463
|
})> & {
|
|
2463
2464
|
/**
|
|
@@ -2466,11 +2467,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2466
2467
|
raw?: any;
|
|
2467
2468
|
}, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
2468
2469
|
[key: string]: any;
|
|
2469
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "
|
|
2470
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2470
2471
|
type: "post";
|
|
2471
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2472
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
|
|
2472
2473
|
type: "note";
|
|
2473
|
-
}) | (Pick<PageModel, "
|
|
2474
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2474
2475
|
type: "page";
|
|
2475
2476
|
})> & {
|
|
2476
2477
|
/**
|
|
@@ -2479,11 +2480,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2479
2480
|
raw?: any;
|
|
2480
2481
|
}, ResponseWrapper>;
|
|
2481
2482
|
} : ResponseWrapper extends {
|
|
2482
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "
|
|
2483
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2483
2484
|
type: "post";
|
|
2484
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2485
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
|
|
2485
2486
|
type: "note";
|
|
2486
|
-
}) | (Pick<PageModel, "
|
|
2487
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2487
2488
|
type: "page";
|
|
2488
2489
|
})> & {
|
|
2489
2490
|
/**
|
|
@@ -2492,11 +2493,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2492
2493
|
raw?: any;
|
|
2493
2494
|
}, ResponseWrapper>;
|
|
2494
2495
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
2495
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "
|
|
2496
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2496
2497
|
type: "post";
|
|
2497
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2498
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
|
|
2498
2499
|
type: "note";
|
|
2499
|
-
}) | (Pick<PageModel, "
|
|
2500
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2500
2501
|
type: "page";
|
|
2501
2502
|
})> & {
|
|
2502
2503
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -585,6 +585,7 @@ interface AggregateRoot {
|
|
|
585
585
|
user: UserModel;
|
|
586
586
|
seo: SeoOptionModel;
|
|
587
587
|
url: Url;
|
|
588
|
+
commentOptions?: Pick<CommentOptionsModel, 'disableComment' | 'allowGuestComment'>;
|
|
588
589
|
categories: CategoryModel[];
|
|
589
590
|
pageMeta: Pick<PageModel, 'title' | 'id' | 'slug' | 'order'>[] | null;
|
|
590
591
|
/**
|
|
@@ -1563,7 +1564,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1563
1564
|
name: string;
|
|
1564
1565
|
created: string;
|
|
1565
1566
|
id: string;
|
|
1566
|
-
children: Pick<PostModel, "
|
|
1567
|
+
children: Pick<PostModel, "id" | "title" | "slug" | "modified" | "created">[];
|
|
1567
1568
|
} : T_1 : never : never;
|
|
1568
1569
|
} : ResponseWrapper;
|
|
1569
1570
|
$request: {
|
|
@@ -1615,7 +1616,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1615
1616
|
};
|
|
1616
1617
|
}) ? T_1 extends unknown ? {
|
|
1617
1618
|
tag: string;
|
|
1618
|
-
data: Pick<PostModel, "category" | "
|
|
1619
|
+
data: Pick<PostModel, "category" | "id" | "title" | "slug" | "created">[];
|
|
1619
1620
|
} : T_1 : never : never;
|
|
1620
1621
|
} : ResponseWrapper;
|
|
1621
1622
|
$request: {
|
|
@@ -2453,11 +2454,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2453
2454
|
* @param options
|
|
2454
2455
|
* @returns
|
|
2455
2456
|
*/
|
|
2456
|
-
searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "
|
|
2457
|
+
searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2457
2458
|
type: "post";
|
|
2458
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2459
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
|
|
2459
2460
|
type: "note";
|
|
2460
|
-
}) | (Pick<PageModel, "
|
|
2461
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2461
2462
|
type: "page";
|
|
2462
2463
|
})> & {
|
|
2463
2464
|
/**
|
|
@@ -2466,11 +2467,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2466
2467
|
raw?: any;
|
|
2467
2468
|
}, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
2468
2469
|
[key: string]: any;
|
|
2469
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "
|
|
2470
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2470
2471
|
type: "post";
|
|
2471
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2472
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
|
|
2472
2473
|
type: "note";
|
|
2473
|
-
}) | (Pick<PageModel, "
|
|
2474
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2474
2475
|
type: "page";
|
|
2475
2476
|
})> & {
|
|
2476
2477
|
/**
|
|
@@ -2479,11 +2480,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2479
2480
|
raw?: any;
|
|
2480
2481
|
}, ResponseWrapper>;
|
|
2481
2482
|
} : ResponseWrapper extends {
|
|
2482
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "
|
|
2483
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2483
2484
|
type: "post";
|
|
2484
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2485
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
|
|
2485
2486
|
type: "note";
|
|
2486
|
-
}) | (Pick<PageModel, "
|
|
2487
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2487
2488
|
type: "page";
|
|
2488
2489
|
})> & {
|
|
2489
2490
|
/**
|
|
@@ -2492,11 +2493,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2492
2493
|
raw?: any;
|
|
2493
2494
|
}, ResponseWrapper>;
|
|
2494
2495
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
2495
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "
|
|
2496
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2496
2497
|
type: "post";
|
|
2497
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2498
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & {
|
|
2498
2499
|
type: "note";
|
|
2499
|
-
}) | (Pick<PageModel, "
|
|
2500
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & {
|
|
2500
2501
|
type: "page";
|
|
2501
2502
|
})> & {
|
|
2502
2503
|
/**
|