@yimingliao/cms 0.0.58 → 0.0.59
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/server/index.d.ts +919 -2
- package/dist/server/index.js +544 -18
- package/package.json +1 -1
package/dist/server/index.d.ts
CHANGED
|
@@ -887,6 +887,8 @@ interface ActionContext {
|
|
|
887
887
|
folderCommandRepository: ReturnType<typeof createFolderCommandRepository>;
|
|
888
888
|
fileQueryRepository: ReturnType<typeof createFileQueryRepository>;
|
|
889
889
|
fileCommandRepository: ReturnType<typeof createFileCommandRepository>;
|
|
890
|
+
postCommandRepository: ReturnType<typeof createPostCommandRepository>;
|
|
891
|
+
postQueryRepository: ReturnType<typeof createPostQueryRepository>;
|
|
890
892
|
};
|
|
891
893
|
useCases: {
|
|
892
894
|
authUseCases: ReturnType<typeof createAuthUseCases>;
|
|
@@ -905,7 +907,10 @@ interface ActionContext {
|
|
|
905
907
|
http: {
|
|
906
908
|
headers: () => Promise<Headers>;
|
|
907
909
|
};
|
|
908
|
-
schemas:
|
|
910
|
+
schemas: {
|
|
911
|
+
schemas: ReturnType<typeof createSchemas>;
|
|
912
|
+
tocItemSchema: ReturnType<typeof createTocItemSchema>;
|
|
913
|
+
};
|
|
909
914
|
config: {
|
|
910
915
|
accessTokenName: string;
|
|
911
916
|
refreshTokenName: string;
|
|
@@ -1370,6 +1375,918 @@ declare function createFolderFindListCardsAction(ctx: ActionContext): (params: {
|
|
|
1370
1375
|
total: number;
|
|
1371
1376
|
}>>;
|
|
1372
1377
|
|
|
1378
|
+
declare const postCreateValidator: ({ type, topicId, schemas, tocItemSchema, }: {
|
|
1379
|
+
type: PostType;
|
|
1380
|
+
topicId: string | null;
|
|
1381
|
+
schemas: ReturnType<typeof createSchemas>;
|
|
1382
|
+
tocItemSchema: ReturnType<typeof createTocItemSchema>;
|
|
1383
|
+
}) => zod.ZodPipe<zod.ZodObject<{
|
|
1384
|
+
type: zod.ZodEnum<{
|
|
1385
|
+
TOPIC: "TOPIC";
|
|
1386
|
+
CATEGORY: "CATEGORY";
|
|
1387
|
+
POST: "POST";
|
|
1388
|
+
TAG: "TAG";
|
|
1389
|
+
PAGE: "PAGE";
|
|
1390
|
+
}>;
|
|
1391
|
+
isLocked: zod.ZodBoolean;
|
|
1392
|
+
isActive: zod.ZodBoolean;
|
|
1393
|
+
isIndexActive: zod.ZodBoolean;
|
|
1394
|
+
index: zod.ZodNullable<zod.ZodPipe<zod.ZodTransform<number | undefined, unknown>, zod.ZodNumber>>;
|
|
1395
|
+
isSlugActive: zod.ZodBoolean;
|
|
1396
|
+
slug: zod.ZodNullable<zod.ZodString>;
|
|
1397
|
+
isFeatured: zod.ZodBoolean;
|
|
1398
|
+
isShownOnHome: zod.ZodBoolean;
|
|
1399
|
+
author: zod.ZodNullable<zod.ZodNullable<zod.ZodObject<{
|
|
1400
|
+
id: zod.ZodString;
|
|
1401
|
+
}, zod_v4_core.$strip>>>;
|
|
1402
|
+
topicId: zod.ZodNullable<zod.ZodString>;
|
|
1403
|
+
parents: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1404
|
+
id: zod.ZodString;
|
|
1405
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1406
|
+
id: string;
|
|
1407
|
+
}[], {
|
|
1408
|
+
id: string;
|
|
1409
|
+
}[]>>;
|
|
1410
|
+
tags: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1411
|
+
id: zod.ZodString;
|
|
1412
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1413
|
+
id: string;
|
|
1414
|
+
}[], {
|
|
1415
|
+
id: string;
|
|
1416
|
+
}[]>>;
|
|
1417
|
+
relatedPosts: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1418
|
+
id: zod.ZodString;
|
|
1419
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1420
|
+
id: string;
|
|
1421
|
+
}[], {
|
|
1422
|
+
id: string;
|
|
1423
|
+
}[]>>;
|
|
1424
|
+
coverImage: zod.ZodNullable<zod.ZodObject<{
|
|
1425
|
+
id: zod.ZodString;
|
|
1426
|
+
}, zod_v4_core.$strip>>;
|
|
1427
|
+
contentImageIds: zod.ZodPipe<zod.ZodArray<zod.ZodString>, zod.ZodTransform<string[], string[]>>;
|
|
1428
|
+
state1: zod.ZodBoolean;
|
|
1429
|
+
state2: zod.ZodBoolean;
|
|
1430
|
+
state3: zod.ZodBoolean;
|
|
1431
|
+
state4: zod.ZodBoolean;
|
|
1432
|
+
state5: zod.ZodBoolean;
|
|
1433
|
+
state6: zod.ZodBoolean;
|
|
1434
|
+
state7: zod.ZodBoolean;
|
|
1435
|
+
state8: zod.ZodBoolean;
|
|
1436
|
+
state9: zod.ZodBoolean;
|
|
1437
|
+
state10: zod.ZodBoolean;
|
|
1438
|
+
images1: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1439
|
+
id: zod.ZodString;
|
|
1440
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1441
|
+
id: string;
|
|
1442
|
+
}[], {
|
|
1443
|
+
id: string;
|
|
1444
|
+
}[]>>;
|
|
1445
|
+
images2: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1446
|
+
id: zod.ZodString;
|
|
1447
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1448
|
+
id: string;
|
|
1449
|
+
}[], {
|
|
1450
|
+
id: string;
|
|
1451
|
+
}[]>>;
|
|
1452
|
+
image1: zod.ZodNullable<zod.ZodObject<{
|
|
1453
|
+
id: zod.ZodString;
|
|
1454
|
+
}, zod_v4_core.$strip>>;
|
|
1455
|
+
image2: zod.ZodNullable<zod.ZodObject<{
|
|
1456
|
+
id: zod.ZodString;
|
|
1457
|
+
}, zod_v4_core.$strip>>;
|
|
1458
|
+
image3: zod.ZodNullable<zod.ZodObject<{
|
|
1459
|
+
id: zod.ZodString;
|
|
1460
|
+
}, zod_v4_core.$strip>>;
|
|
1461
|
+
image4: zod.ZodNullable<zod.ZodObject<{
|
|
1462
|
+
id: zod.ZodString;
|
|
1463
|
+
}, zod_v4_core.$strip>>;
|
|
1464
|
+
text1: zod.ZodNullable<zod.ZodString>;
|
|
1465
|
+
text2: zod.ZodNullable<zod.ZodString>;
|
|
1466
|
+
text3: zod.ZodNullable<zod.ZodString>;
|
|
1467
|
+
text4: zod.ZodNullable<zod.ZodString>;
|
|
1468
|
+
text5: zod.ZodNullable<zod.ZodString>;
|
|
1469
|
+
text6: zod.ZodNullable<zod.ZodString>;
|
|
1470
|
+
text7: zod.ZodNullable<zod.ZodString>;
|
|
1471
|
+
text8: zod.ZodNullable<zod.ZodString>;
|
|
1472
|
+
text9: zod.ZodNullable<zod.ZodString>;
|
|
1473
|
+
text10: zod.ZodNullable<zod.ZodString>;
|
|
1474
|
+
data1: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1475
|
+
data2: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1476
|
+
data3: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1477
|
+
data4: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1478
|
+
translations: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1479
|
+
locale: zod.ZodString;
|
|
1480
|
+
title: zod.ZodNullable<zod.ZodString>;
|
|
1481
|
+
subtitle: zod.ZodNullable<zod.ZodString>;
|
|
1482
|
+
summary: zod.ZodNullable<zod.ZodString>;
|
|
1483
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
1484
|
+
content: zod.ZodNullable<zod.ZodString>;
|
|
1485
|
+
externalLinks: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1486
|
+
name: zod.ZodString;
|
|
1487
|
+
href: zod.ZodString;
|
|
1488
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1489
|
+
name: string;
|
|
1490
|
+
href: string;
|
|
1491
|
+
}[], {
|
|
1492
|
+
name: string;
|
|
1493
|
+
href: string;
|
|
1494
|
+
}[]>>;
|
|
1495
|
+
faq: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1496
|
+
question: zod.ZodString;
|
|
1497
|
+
answer: zod.ZodString;
|
|
1498
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1499
|
+
question: string;
|
|
1500
|
+
answer: string;
|
|
1501
|
+
}[], {
|
|
1502
|
+
question: string;
|
|
1503
|
+
answer: string;
|
|
1504
|
+
}[]>>;
|
|
1505
|
+
toc: zod.ZodPipe<zod.ZodArray<zod.ZodType<TocItem, unknown, zod_v4_core.$ZodTypeInternals<TocItem, unknown>>>, zod.ZodTransform<TocItem[], TocItem[]>>;
|
|
1506
|
+
readTime: zod.ZodNullable<zod.ZodPipe<zod.ZodTransform<number | undefined, unknown>, zod.ZodNumber>>;
|
|
1507
|
+
wordCount: zod.ZodPipe<zod.ZodTransform<number | undefined, unknown>, zod.ZodNumber>;
|
|
1508
|
+
text1: zod.ZodNullable<zod.ZodString>;
|
|
1509
|
+
text2: zod.ZodNullable<zod.ZodString>;
|
|
1510
|
+
text3: zod.ZodNullable<zod.ZodString>;
|
|
1511
|
+
text4: zod.ZodNullable<zod.ZodString>;
|
|
1512
|
+
text5: zod.ZodNullable<zod.ZodString>;
|
|
1513
|
+
text6: zod.ZodNullable<zod.ZodString>;
|
|
1514
|
+
text7: zod.ZodNullable<zod.ZodString>;
|
|
1515
|
+
text8: zod.ZodNullable<zod.ZodString>;
|
|
1516
|
+
text9: zod.ZodNullable<zod.ZodString>;
|
|
1517
|
+
text10: zod.ZodNullable<zod.ZodString>;
|
|
1518
|
+
data1: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1519
|
+
data2: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1520
|
+
data3: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1521
|
+
data4: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1522
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1523
|
+
locale: string;
|
|
1524
|
+
title: string | null;
|
|
1525
|
+
subtitle: string | null;
|
|
1526
|
+
summary: string | null;
|
|
1527
|
+
description: string | null;
|
|
1528
|
+
content: string | null;
|
|
1529
|
+
externalLinks: {
|
|
1530
|
+
name: string;
|
|
1531
|
+
href: string;
|
|
1532
|
+
}[];
|
|
1533
|
+
faq: {
|
|
1534
|
+
question: string;
|
|
1535
|
+
answer: string;
|
|
1536
|
+
}[];
|
|
1537
|
+
toc: TocItem[];
|
|
1538
|
+
readTime: number | null;
|
|
1539
|
+
wordCount: number;
|
|
1540
|
+
text1: string | null;
|
|
1541
|
+
text2: string | null;
|
|
1542
|
+
text3: string | null;
|
|
1543
|
+
text4: string | null;
|
|
1544
|
+
text5: string | null;
|
|
1545
|
+
text6: string | null;
|
|
1546
|
+
text7: string | null;
|
|
1547
|
+
text8: string | null;
|
|
1548
|
+
text9: string | null;
|
|
1549
|
+
text10: string | null;
|
|
1550
|
+
data1: any[];
|
|
1551
|
+
data2: any[];
|
|
1552
|
+
data3: any[];
|
|
1553
|
+
data4: any[];
|
|
1554
|
+
}[], {
|
|
1555
|
+
locale: string;
|
|
1556
|
+
title: string | null;
|
|
1557
|
+
subtitle: string | null;
|
|
1558
|
+
summary: string | null;
|
|
1559
|
+
description: string | null;
|
|
1560
|
+
content: string | null;
|
|
1561
|
+
externalLinks: {
|
|
1562
|
+
name: string;
|
|
1563
|
+
href: string;
|
|
1564
|
+
}[];
|
|
1565
|
+
faq: {
|
|
1566
|
+
question: string;
|
|
1567
|
+
answer: string;
|
|
1568
|
+
}[];
|
|
1569
|
+
toc: TocItem[];
|
|
1570
|
+
readTime: number | null;
|
|
1571
|
+
wordCount: number;
|
|
1572
|
+
text1: string | null;
|
|
1573
|
+
text2: string | null;
|
|
1574
|
+
text3: string | null;
|
|
1575
|
+
text4: string | null;
|
|
1576
|
+
text5: string | null;
|
|
1577
|
+
text6: string | null;
|
|
1578
|
+
text7: string | null;
|
|
1579
|
+
text8: string | null;
|
|
1580
|
+
text9: string | null;
|
|
1581
|
+
text10: string | null;
|
|
1582
|
+
data1: any[];
|
|
1583
|
+
data2: any[];
|
|
1584
|
+
data3: any[];
|
|
1585
|
+
data4: any[];
|
|
1586
|
+
}[]>>;
|
|
1587
|
+
}, zod_v4_core.$strip>, zod.ZodTransform<{
|
|
1588
|
+
index: number | null;
|
|
1589
|
+
slug: string | null;
|
|
1590
|
+
translations: {
|
|
1591
|
+
readTime: number | null;
|
|
1592
|
+
locale: string;
|
|
1593
|
+
title: string | null;
|
|
1594
|
+
subtitle: string | null;
|
|
1595
|
+
summary: string | null;
|
|
1596
|
+
description: string | null;
|
|
1597
|
+
content: string | null;
|
|
1598
|
+
externalLinks: {
|
|
1599
|
+
name: string;
|
|
1600
|
+
href: string;
|
|
1601
|
+
}[];
|
|
1602
|
+
faq: {
|
|
1603
|
+
question: string;
|
|
1604
|
+
answer: string;
|
|
1605
|
+
}[];
|
|
1606
|
+
toc: TocItem[];
|
|
1607
|
+
wordCount: number;
|
|
1608
|
+
text1: string | null;
|
|
1609
|
+
text2: string | null;
|
|
1610
|
+
text3: string | null;
|
|
1611
|
+
text4: string | null;
|
|
1612
|
+
text5: string | null;
|
|
1613
|
+
text6: string | null;
|
|
1614
|
+
text7: string | null;
|
|
1615
|
+
text8: string | null;
|
|
1616
|
+
text9: string | null;
|
|
1617
|
+
text10: string | null;
|
|
1618
|
+
data1: any[];
|
|
1619
|
+
data2: any[];
|
|
1620
|
+
data3: any[];
|
|
1621
|
+
data4: any[];
|
|
1622
|
+
}[];
|
|
1623
|
+
type: "TOPIC" | "CATEGORY" | "POST" | "TAG" | "PAGE";
|
|
1624
|
+
isLocked: boolean;
|
|
1625
|
+
isActive: boolean;
|
|
1626
|
+
isIndexActive: boolean;
|
|
1627
|
+
isSlugActive: boolean;
|
|
1628
|
+
isFeatured: boolean;
|
|
1629
|
+
isShownOnHome: boolean;
|
|
1630
|
+
author: {
|
|
1631
|
+
id: string;
|
|
1632
|
+
} | null;
|
|
1633
|
+
topicId: string | null;
|
|
1634
|
+
parents: {
|
|
1635
|
+
id: string;
|
|
1636
|
+
}[];
|
|
1637
|
+
tags: {
|
|
1638
|
+
id: string;
|
|
1639
|
+
}[];
|
|
1640
|
+
relatedPosts: {
|
|
1641
|
+
id: string;
|
|
1642
|
+
}[];
|
|
1643
|
+
coverImage: {
|
|
1644
|
+
id: string;
|
|
1645
|
+
} | null;
|
|
1646
|
+
contentImageIds: string[];
|
|
1647
|
+
state1: boolean;
|
|
1648
|
+
state2: boolean;
|
|
1649
|
+
state3: boolean;
|
|
1650
|
+
state4: boolean;
|
|
1651
|
+
state5: boolean;
|
|
1652
|
+
state6: boolean;
|
|
1653
|
+
state7: boolean;
|
|
1654
|
+
state8: boolean;
|
|
1655
|
+
state9: boolean;
|
|
1656
|
+
state10: boolean;
|
|
1657
|
+
images1: {
|
|
1658
|
+
id: string;
|
|
1659
|
+
}[];
|
|
1660
|
+
images2: {
|
|
1661
|
+
id: string;
|
|
1662
|
+
}[];
|
|
1663
|
+
image1: {
|
|
1664
|
+
id: string;
|
|
1665
|
+
} | null;
|
|
1666
|
+
image2: {
|
|
1667
|
+
id: string;
|
|
1668
|
+
} | null;
|
|
1669
|
+
image3: {
|
|
1670
|
+
id: string;
|
|
1671
|
+
} | null;
|
|
1672
|
+
image4: {
|
|
1673
|
+
id: string;
|
|
1674
|
+
} | null;
|
|
1675
|
+
text1: string | null;
|
|
1676
|
+
text2: string | null;
|
|
1677
|
+
text3: string | null;
|
|
1678
|
+
text4: string | null;
|
|
1679
|
+
text5: string | null;
|
|
1680
|
+
text6: string | null;
|
|
1681
|
+
text7: string | null;
|
|
1682
|
+
text8: string | null;
|
|
1683
|
+
text9: string | null;
|
|
1684
|
+
text10: string | null;
|
|
1685
|
+
data1: any[];
|
|
1686
|
+
data2: any[];
|
|
1687
|
+
data3: any[];
|
|
1688
|
+
data4: any[];
|
|
1689
|
+
}, {
|
|
1690
|
+
type: "TOPIC" | "CATEGORY" | "POST" | "TAG" | "PAGE";
|
|
1691
|
+
isLocked: boolean;
|
|
1692
|
+
isActive: boolean;
|
|
1693
|
+
isIndexActive: boolean;
|
|
1694
|
+
index: number | null;
|
|
1695
|
+
isSlugActive: boolean;
|
|
1696
|
+
slug: string | null;
|
|
1697
|
+
isFeatured: boolean;
|
|
1698
|
+
isShownOnHome: boolean;
|
|
1699
|
+
author: {
|
|
1700
|
+
id: string;
|
|
1701
|
+
} | null;
|
|
1702
|
+
topicId: string | null;
|
|
1703
|
+
parents: {
|
|
1704
|
+
id: string;
|
|
1705
|
+
}[];
|
|
1706
|
+
tags: {
|
|
1707
|
+
id: string;
|
|
1708
|
+
}[];
|
|
1709
|
+
relatedPosts: {
|
|
1710
|
+
id: string;
|
|
1711
|
+
}[];
|
|
1712
|
+
coverImage: {
|
|
1713
|
+
id: string;
|
|
1714
|
+
} | null;
|
|
1715
|
+
contentImageIds: string[];
|
|
1716
|
+
state1: boolean;
|
|
1717
|
+
state2: boolean;
|
|
1718
|
+
state3: boolean;
|
|
1719
|
+
state4: boolean;
|
|
1720
|
+
state5: boolean;
|
|
1721
|
+
state6: boolean;
|
|
1722
|
+
state7: boolean;
|
|
1723
|
+
state8: boolean;
|
|
1724
|
+
state9: boolean;
|
|
1725
|
+
state10: boolean;
|
|
1726
|
+
images1: {
|
|
1727
|
+
id: string;
|
|
1728
|
+
}[];
|
|
1729
|
+
images2: {
|
|
1730
|
+
id: string;
|
|
1731
|
+
}[];
|
|
1732
|
+
image1: {
|
|
1733
|
+
id: string;
|
|
1734
|
+
} | null;
|
|
1735
|
+
image2: {
|
|
1736
|
+
id: string;
|
|
1737
|
+
} | null;
|
|
1738
|
+
image3: {
|
|
1739
|
+
id: string;
|
|
1740
|
+
} | null;
|
|
1741
|
+
image4: {
|
|
1742
|
+
id: string;
|
|
1743
|
+
} | null;
|
|
1744
|
+
text1: string | null;
|
|
1745
|
+
text2: string | null;
|
|
1746
|
+
text3: string | null;
|
|
1747
|
+
text4: string | null;
|
|
1748
|
+
text5: string | null;
|
|
1749
|
+
text6: string | null;
|
|
1750
|
+
text7: string | null;
|
|
1751
|
+
text8: string | null;
|
|
1752
|
+
text9: string | null;
|
|
1753
|
+
text10: string | null;
|
|
1754
|
+
data1: any[];
|
|
1755
|
+
data2: any[];
|
|
1756
|
+
data3: any[];
|
|
1757
|
+
data4: any[];
|
|
1758
|
+
translations: {
|
|
1759
|
+
locale: string;
|
|
1760
|
+
title: string | null;
|
|
1761
|
+
subtitle: string | null;
|
|
1762
|
+
summary: string | null;
|
|
1763
|
+
description: string | null;
|
|
1764
|
+
content: string | null;
|
|
1765
|
+
externalLinks: {
|
|
1766
|
+
name: string;
|
|
1767
|
+
href: string;
|
|
1768
|
+
}[];
|
|
1769
|
+
faq: {
|
|
1770
|
+
question: string;
|
|
1771
|
+
answer: string;
|
|
1772
|
+
}[];
|
|
1773
|
+
toc: TocItem[];
|
|
1774
|
+
readTime: number | null;
|
|
1775
|
+
wordCount: number;
|
|
1776
|
+
text1: string | null;
|
|
1777
|
+
text2: string | null;
|
|
1778
|
+
text3: string | null;
|
|
1779
|
+
text4: string | null;
|
|
1780
|
+
text5: string | null;
|
|
1781
|
+
text6: string | null;
|
|
1782
|
+
text7: string | null;
|
|
1783
|
+
text8: string | null;
|
|
1784
|
+
text9: string | null;
|
|
1785
|
+
text10: string | null;
|
|
1786
|
+
data1: any[];
|
|
1787
|
+
data2: any[];
|
|
1788
|
+
data3: any[];
|
|
1789
|
+
data4: any[];
|
|
1790
|
+
}[];
|
|
1791
|
+
}>>;
|
|
1792
|
+
|
|
1793
|
+
type PostCreateFormData = zod__default.infer<ReturnType<typeof postCreateValidator>>;
|
|
1794
|
+
declare function createPostCreateAction(ctx: ActionContext): ({ formData, }: {
|
|
1795
|
+
formData: PostCreateFormData;
|
|
1796
|
+
}) => Promise<Result<{
|
|
1797
|
+
post: Post;
|
|
1798
|
+
}>>;
|
|
1799
|
+
|
|
1800
|
+
declare const postUpdateValidator: ({ id, type, topicId, schemas, tocItemSchema, }: {
|
|
1801
|
+
id: string;
|
|
1802
|
+
type: PostType;
|
|
1803
|
+
topicId: string | null;
|
|
1804
|
+
schemas: ReturnType<typeof createSchemas>;
|
|
1805
|
+
tocItemSchema: ReturnType<typeof createTocItemSchema>;
|
|
1806
|
+
}) => zod.ZodPipe<zod.ZodObject<{
|
|
1807
|
+
type: zod.ZodEnum<{
|
|
1808
|
+
TOPIC: "TOPIC";
|
|
1809
|
+
CATEGORY: "CATEGORY";
|
|
1810
|
+
POST: "POST";
|
|
1811
|
+
TAG: "TAG";
|
|
1812
|
+
PAGE: "PAGE";
|
|
1813
|
+
}>;
|
|
1814
|
+
isLocked: zod.ZodBoolean;
|
|
1815
|
+
isActive: zod.ZodBoolean;
|
|
1816
|
+
isIndexActive: zod.ZodBoolean;
|
|
1817
|
+
index: zod.ZodNullable<zod.ZodPipe<zod.ZodTransform<number | undefined, unknown>, zod.ZodNumber>>;
|
|
1818
|
+
isSlugActive: zod.ZodBoolean;
|
|
1819
|
+
slug: zod.ZodNullable<zod.ZodString>;
|
|
1820
|
+
isFeatured: zod.ZodBoolean;
|
|
1821
|
+
isShownOnHome: zod.ZodBoolean;
|
|
1822
|
+
author: zod.ZodNullable<zod.ZodObject<{
|
|
1823
|
+
id: zod.ZodString;
|
|
1824
|
+
}, zod_v4_core.$strip>>;
|
|
1825
|
+
topicId: zod.ZodNullable<zod.ZodString>;
|
|
1826
|
+
parents: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1827
|
+
id: zod.ZodString;
|
|
1828
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1829
|
+
id: string;
|
|
1830
|
+
}[], {
|
|
1831
|
+
id: string;
|
|
1832
|
+
}[]>>;
|
|
1833
|
+
tags: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1834
|
+
id: zod.ZodString;
|
|
1835
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1836
|
+
id: string;
|
|
1837
|
+
}[], {
|
|
1838
|
+
id: string;
|
|
1839
|
+
}[]>>;
|
|
1840
|
+
relatedPosts: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1841
|
+
id: zod.ZodString;
|
|
1842
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1843
|
+
id: string;
|
|
1844
|
+
}[], {
|
|
1845
|
+
id: string;
|
|
1846
|
+
}[]>>;
|
|
1847
|
+
coverImage: zod.ZodNullable<zod.ZodObject<{
|
|
1848
|
+
id: zod.ZodString;
|
|
1849
|
+
}, zod_v4_core.$strip>>;
|
|
1850
|
+
contentImageIds: zod.ZodPipe<zod.ZodArray<zod.ZodString>, zod.ZodTransform<string[], string[]>>;
|
|
1851
|
+
state1: zod.ZodBoolean;
|
|
1852
|
+
state2: zod.ZodBoolean;
|
|
1853
|
+
state3: zod.ZodBoolean;
|
|
1854
|
+
state4: zod.ZodBoolean;
|
|
1855
|
+
state5: zod.ZodBoolean;
|
|
1856
|
+
state6: zod.ZodBoolean;
|
|
1857
|
+
state7: zod.ZodBoolean;
|
|
1858
|
+
state8: zod.ZodBoolean;
|
|
1859
|
+
state9: zod.ZodBoolean;
|
|
1860
|
+
state10: zod.ZodBoolean;
|
|
1861
|
+
images1: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1862
|
+
id: zod.ZodString;
|
|
1863
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1864
|
+
id: string;
|
|
1865
|
+
}[], {
|
|
1866
|
+
id: string;
|
|
1867
|
+
}[]>>;
|
|
1868
|
+
images2: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1869
|
+
id: zod.ZodString;
|
|
1870
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1871
|
+
id: string;
|
|
1872
|
+
}[], {
|
|
1873
|
+
id: string;
|
|
1874
|
+
}[]>>;
|
|
1875
|
+
image1: zod.ZodNullable<zod.ZodObject<{
|
|
1876
|
+
id: zod.ZodString;
|
|
1877
|
+
}, zod_v4_core.$strip>>;
|
|
1878
|
+
image2: zod.ZodNullable<zod.ZodObject<{
|
|
1879
|
+
id: zod.ZodString;
|
|
1880
|
+
}, zod_v4_core.$strip>>;
|
|
1881
|
+
image3: zod.ZodNullable<zod.ZodObject<{
|
|
1882
|
+
id: zod.ZodString;
|
|
1883
|
+
}, zod_v4_core.$strip>>;
|
|
1884
|
+
image4: zod.ZodNullable<zod.ZodObject<{
|
|
1885
|
+
id: zod.ZodString;
|
|
1886
|
+
}, zod_v4_core.$strip>>;
|
|
1887
|
+
text1: zod.ZodNullable<zod.ZodString>;
|
|
1888
|
+
text2: zod.ZodNullable<zod.ZodString>;
|
|
1889
|
+
text3: zod.ZodNullable<zod.ZodString>;
|
|
1890
|
+
text4: zod.ZodNullable<zod.ZodString>;
|
|
1891
|
+
text5: zod.ZodNullable<zod.ZodString>;
|
|
1892
|
+
text6: zod.ZodNullable<zod.ZodString>;
|
|
1893
|
+
text7: zod.ZodNullable<zod.ZodString>;
|
|
1894
|
+
text8: zod.ZodNullable<zod.ZodString>;
|
|
1895
|
+
text9: zod.ZodNullable<zod.ZodString>;
|
|
1896
|
+
text10: zod.ZodNullable<zod.ZodString>;
|
|
1897
|
+
data1: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1898
|
+
data2: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1899
|
+
data3: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1900
|
+
data4: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1901
|
+
translations: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1902
|
+
locale: zod.ZodString;
|
|
1903
|
+
title: zod.ZodNullable<zod.ZodString>;
|
|
1904
|
+
subtitle: zod.ZodNullable<zod.ZodString>;
|
|
1905
|
+
summary: zod.ZodNullable<zod.ZodString>;
|
|
1906
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
1907
|
+
content: zod.ZodNullable<zod.ZodString>;
|
|
1908
|
+
externalLinks: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1909
|
+
name: zod.ZodString;
|
|
1910
|
+
href: zod.ZodString;
|
|
1911
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1912
|
+
name: string;
|
|
1913
|
+
href: string;
|
|
1914
|
+
}[], {
|
|
1915
|
+
name: string;
|
|
1916
|
+
href: string;
|
|
1917
|
+
}[]>>;
|
|
1918
|
+
faq: zod.ZodPipe<zod.ZodArray<zod.ZodObject<{
|
|
1919
|
+
question: zod.ZodString;
|
|
1920
|
+
answer: zod.ZodString;
|
|
1921
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1922
|
+
question: string;
|
|
1923
|
+
answer: string;
|
|
1924
|
+
}[], {
|
|
1925
|
+
question: string;
|
|
1926
|
+
answer: string;
|
|
1927
|
+
}[]>>;
|
|
1928
|
+
toc: zod.ZodPipe<zod.ZodArray<zod.ZodType<TocItem, unknown, zod_v4_core.$ZodTypeInternals<TocItem, unknown>>>, zod.ZodTransform<TocItem[], TocItem[]>>;
|
|
1929
|
+
readTime: zod.ZodNullable<zod.ZodPipe<zod.ZodTransform<number | undefined, unknown>, zod.ZodNumber>>;
|
|
1930
|
+
wordCount: zod.ZodPipe<zod.ZodTransform<number | undefined, unknown>, zod.ZodNumber>;
|
|
1931
|
+
text1: zod.ZodNullable<zod.ZodString>;
|
|
1932
|
+
text2: zod.ZodNullable<zod.ZodString>;
|
|
1933
|
+
text3: zod.ZodNullable<zod.ZodString>;
|
|
1934
|
+
text4: zod.ZodNullable<zod.ZodString>;
|
|
1935
|
+
text5: zod.ZodNullable<zod.ZodString>;
|
|
1936
|
+
text6: zod.ZodNullable<zod.ZodString>;
|
|
1937
|
+
text7: zod.ZodNullable<zod.ZodString>;
|
|
1938
|
+
text8: zod.ZodNullable<zod.ZodString>;
|
|
1939
|
+
text9: zod.ZodNullable<zod.ZodString>;
|
|
1940
|
+
text10: zod.ZodNullable<zod.ZodString>;
|
|
1941
|
+
data1: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1942
|
+
data2: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1943
|
+
data3: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1944
|
+
data4: zod.ZodPipe<zod.ZodArray<zod.ZodAny>, zod.ZodTransform<any[], any[]>>;
|
|
1945
|
+
}, zod_v4_core.$strip>>, zod.ZodTransform<{
|
|
1946
|
+
locale: string;
|
|
1947
|
+
title: string | null;
|
|
1948
|
+
subtitle: string | null;
|
|
1949
|
+
summary: string | null;
|
|
1950
|
+
description: string | null;
|
|
1951
|
+
content: string | null;
|
|
1952
|
+
externalLinks: {
|
|
1953
|
+
name: string;
|
|
1954
|
+
href: string;
|
|
1955
|
+
}[];
|
|
1956
|
+
faq: {
|
|
1957
|
+
question: string;
|
|
1958
|
+
answer: string;
|
|
1959
|
+
}[];
|
|
1960
|
+
toc: TocItem[];
|
|
1961
|
+
readTime: number | null;
|
|
1962
|
+
wordCount: number;
|
|
1963
|
+
text1: string | null;
|
|
1964
|
+
text2: string | null;
|
|
1965
|
+
text3: string | null;
|
|
1966
|
+
text4: string | null;
|
|
1967
|
+
text5: string | null;
|
|
1968
|
+
text6: string | null;
|
|
1969
|
+
text7: string | null;
|
|
1970
|
+
text8: string | null;
|
|
1971
|
+
text9: string | null;
|
|
1972
|
+
text10: string | null;
|
|
1973
|
+
data1: any[];
|
|
1974
|
+
data2: any[];
|
|
1975
|
+
data3: any[];
|
|
1976
|
+
data4: any[];
|
|
1977
|
+
}[], {
|
|
1978
|
+
locale: string;
|
|
1979
|
+
title: string | null;
|
|
1980
|
+
subtitle: string | null;
|
|
1981
|
+
summary: string | null;
|
|
1982
|
+
description: string | null;
|
|
1983
|
+
content: string | null;
|
|
1984
|
+
externalLinks: {
|
|
1985
|
+
name: string;
|
|
1986
|
+
href: string;
|
|
1987
|
+
}[];
|
|
1988
|
+
faq: {
|
|
1989
|
+
question: string;
|
|
1990
|
+
answer: string;
|
|
1991
|
+
}[];
|
|
1992
|
+
toc: TocItem[];
|
|
1993
|
+
readTime: number | null;
|
|
1994
|
+
wordCount: number;
|
|
1995
|
+
text1: string | null;
|
|
1996
|
+
text2: string | null;
|
|
1997
|
+
text3: string | null;
|
|
1998
|
+
text4: string | null;
|
|
1999
|
+
text5: string | null;
|
|
2000
|
+
text6: string | null;
|
|
2001
|
+
text7: string | null;
|
|
2002
|
+
text8: string | null;
|
|
2003
|
+
text9: string | null;
|
|
2004
|
+
text10: string | null;
|
|
2005
|
+
data1: any[];
|
|
2006
|
+
data2: any[];
|
|
2007
|
+
data3: any[];
|
|
2008
|
+
data4: any[];
|
|
2009
|
+
}[]>>;
|
|
2010
|
+
}, zod_v4_core.$strip>, zod.ZodTransform<{
|
|
2011
|
+
index: number | null;
|
|
2012
|
+
slug: string | null;
|
|
2013
|
+
translations: {
|
|
2014
|
+
readTime: number | null;
|
|
2015
|
+
locale: string;
|
|
2016
|
+
title: string | null;
|
|
2017
|
+
subtitle: string | null;
|
|
2018
|
+
summary: string | null;
|
|
2019
|
+
description: string | null;
|
|
2020
|
+
content: string | null;
|
|
2021
|
+
externalLinks: {
|
|
2022
|
+
name: string;
|
|
2023
|
+
href: string;
|
|
2024
|
+
}[];
|
|
2025
|
+
faq: {
|
|
2026
|
+
question: string;
|
|
2027
|
+
answer: string;
|
|
2028
|
+
}[];
|
|
2029
|
+
toc: TocItem[];
|
|
2030
|
+
wordCount: number;
|
|
2031
|
+
text1: string | null;
|
|
2032
|
+
text2: string | null;
|
|
2033
|
+
text3: string | null;
|
|
2034
|
+
text4: string | null;
|
|
2035
|
+
text5: string | null;
|
|
2036
|
+
text6: string | null;
|
|
2037
|
+
text7: string | null;
|
|
2038
|
+
text8: string | null;
|
|
2039
|
+
text9: string | null;
|
|
2040
|
+
text10: string | null;
|
|
2041
|
+
data1: any[];
|
|
2042
|
+
data2: any[];
|
|
2043
|
+
data3: any[];
|
|
2044
|
+
data4: any[];
|
|
2045
|
+
}[];
|
|
2046
|
+
type: "TOPIC" | "CATEGORY" | "POST" | "TAG" | "PAGE";
|
|
2047
|
+
isLocked: boolean;
|
|
2048
|
+
isActive: boolean;
|
|
2049
|
+
isIndexActive: boolean;
|
|
2050
|
+
isSlugActive: boolean;
|
|
2051
|
+
isFeatured: boolean;
|
|
2052
|
+
isShownOnHome: boolean;
|
|
2053
|
+
author: {
|
|
2054
|
+
id: string;
|
|
2055
|
+
} | null;
|
|
2056
|
+
topicId: string | null;
|
|
2057
|
+
parents: {
|
|
2058
|
+
id: string;
|
|
2059
|
+
}[];
|
|
2060
|
+
tags: {
|
|
2061
|
+
id: string;
|
|
2062
|
+
}[];
|
|
2063
|
+
relatedPosts: {
|
|
2064
|
+
id: string;
|
|
2065
|
+
}[];
|
|
2066
|
+
coverImage: {
|
|
2067
|
+
id: string;
|
|
2068
|
+
} | null;
|
|
2069
|
+
contentImageIds: string[];
|
|
2070
|
+
state1: boolean;
|
|
2071
|
+
state2: boolean;
|
|
2072
|
+
state3: boolean;
|
|
2073
|
+
state4: boolean;
|
|
2074
|
+
state5: boolean;
|
|
2075
|
+
state6: boolean;
|
|
2076
|
+
state7: boolean;
|
|
2077
|
+
state8: boolean;
|
|
2078
|
+
state9: boolean;
|
|
2079
|
+
state10: boolean;
|
|
2080
|
+
images1: {
|
|
2081
|
+
id: string;
|
|
2082
|
+
}[];
|
|
2083
|
+
images2: {
|
|
2084
|
+
id: string;
|
|
2085
|
+
}[];
|
|
2086
|
+
image1: {
|
|
2087
|
+
id: string;
|
|
2088
|
+
} | null;
|
|
2089
|
+
image2: {
|
|
2090
|
+
id: string;
|
|
2091
|
+
} | null;
|
|
2092
|
+
image3: {
|
|
2093
|
+
id: string;
|
|
2094
|
+
} | null;
|
|
2095
|
+
image4: {
|
|
2096
|
+
id: string;
|
|
2097
|
+
} | null;
|
|
2098
|
+
text1: string | null;
|
|
2099
|
+
text2: string | null;
|
|
2100
|
+
text3: string | null;
|
|
2101
|
+
text4: string | null;
|
|
2102
|
+
text5: string | null;
|
|
2103
|
+
text6: string | null;
|
|
2104
|
+
text7: string | null;
|
|
2105
|
+
text8: string | null;
|
|
2106
|
+
text9: string | null;
|
|
2107
|
+
text10: string | null;
|
|
2108
|
+
data1: any[];
|
|
2109
|
+
data2: any[];
|
|
2110
|
+
data3: any[];
|
|
2111
|
+
data4: any[];
|
|
2112
|
+
}, {
|
|
2113
|
+
type: "TOPIC" | "CATEGORY" | "POST" | "TAG" | "PAGE";
|
|
2114
|
+
isLocked: boolean;
|
|
2115
|
+
isActive: boolean;
|
|
2116
|
+
isIndexActive: boolean;
|
|
2117
|
+
index: number | null;
|
|
2118
|
+
isSlugActive: boolean;
|
|
2119
|
+
slug: string | null;
|
|
2120
|
+
isFeatured: boolean;
|
|
2121
|
+
isShownOnHome: boolean;
|
|
2122
|
+
author: {
|
|
2123
|
+
id: string;
|
|
2124
|
+
} | null;
|
|
2125
|
+
topicId: string | null;
|
|
2126
|
+
parents: {
|
|
2127
|
+
id: string;
|
|
2128
|
+
}[];
|
|
2129
|
+
tags: {
|
|
2130
|
+
id: string;
|
|
2131
|
+
}[];
|
|
2132
|
+
relatedPosts: {
|
|
2133
|
+
id: string;
|
|
2134
|
+
}[];
|
|
2135
|
+
coverImage: {
|
|
2136
|
+
id: string;
|
|
2137
|
+
} | null;
|
|
2138
|
+
contentImageIds: string[];
|
|
2139
|
+
state1: boolean;
|
|
2140
|
+
state2: boolean;
|
|
2141
|
+
state3: boolean;
|
|
2142
|
+
state4: boolean;
|
|
2143
|
+
state5: boolean;
|
|
2144
|
+
state6: boolean;
|
|
2145
|
+
state7: boolean;
|
|
2146
|
+
state8: boolean;
|
|
2147
|
+
state9: boolean;
|
|
2148
|
+
state10: boolean;
|
|
2149
|
+
images1: {
|
|
2150
|
+
id: string;
|
|
2151
|
+
}[];
|
|
2152
|
+
images2: {
|
|
2153
|
+
id: string;
|
|
2154
|
+
}[];
|
|
2155
|
+
image1: {
|
|
2156
|
+
id: string;
|
|
2157
|
+
} | null;
|
|
2158
|
+
image2: {
|
|
2159
|
+
id: string;
|
|
2160
|
+
} | null;
|
|
2161
|
+
image3: {
|
|
2162
|
+
id: string;
|
|
2163
|
+
} | null;
|
|
2164
|
+
image4: {
|
|
2165
|
+
id: string;
|
|
2166
|
+
} | null;
|
|
2167
|
+
text1: string | null;
|
|
2168
|
+
text2: string | null;
|
|
2169
|
+
text3: string | null;
|
|
2170
|
+
text4: string | null;
|
|
2171
|
+
text5: string | null;
|
|
2172
|
+
text6: string | null;
|
|
2173
|
+
text7: string | null;
|
|
2174
|
+
text8: string | null;
|
|
2175
|
+
text9: string | null;
|
|
2176
|
+
text10: string | null;
|
|
2177
|
+
data1: any[];
|
|
2178
|
+
data2: any[];
|
|
2179
|
+
data3: any[];
|
|
2180
|
+
data4: any[];
|
|
2181
|
+
translations: {
|
|
2182
|
+
locale: string;
|
|
2183
|
+
title: string | null;
|
|
2184
|
+
subtitle: string | null;
|
|
2185
|
+
summary: string | null;
|
|
2186
|
+
description: string | null;
|
|
2187
|
+
content: string | null;
|
|
2188
|
+
externalLinks: {
|
|
2189
|
+
name: string;
|
|
2190
|
+
href: string;
|
|
2191
|
+
}[];
|
|
2192
|
+
faq: {
|
|
2193
|
+
question: string;
|
|
2194
|
+
answer: string;
|
|
2195
|
+
}[];
|
|
2196
|
+
toc: TocItem[];
|
|
2197
|
+
readTime: number | null;
|
|
2198
|
+
wordCount: number;
|
|
2199
|
+
text1: string | null;
|
|
2200
|
+
text2: string | null;
|
|
2201
|
+
text3: string | null;
|
|
2202
|
+
text4: string | null;
|
|
2203
|
+
text5: string | null;
|
|
2204
|
+
text6: string | null;
|
|
2205
|
+
text7: string | null;
|
|
2206
|
+
text8: string | null;
|
|
2207
|
+
text9: string | null;
|
|
2208
|
+
text10: string | null;
|
|
2209
|
+
data1: any[];
|
|
2210
|
+
data2: any[];
|
|
2211
|
+
data3: any[];
|
|
2212
|
+
data4: any[];
|
|
2213
|
+
}[];
|
|
2214
|
+
}>>;
|
|
2215
|
+
|
|
2216
|
+
type PostUpdateFormData = zod__default.infer<ReturnType<typeof postUpdateValidator>>;
|
|
2217
|
+
declare function createPostUpdateAction(ctx: ActionContext): ({ id, formData, }: {
|
|
2218
|
+
id: string;
|
|
2219
|
+
formData: PostUpdateFormData;
|
|
2220
|
+
}) => Promise<Result<{
|
|
2221
|
+
post: Post;
|
|
2222
|
+
}>>;
|
|
2223
|
+
|
|
2224
|
+
declare function createPostDeleteAction(ctx: ActionContext): ({ id }: {
|
|
2225
|
+
id: string;
|
|
2226
|
+
}) => Promise<Result<void>>;
|
|
2227
|
+
|
|
2228
|
+
declare function createPostFindAction(ctx: ActionContext): (params: {
|
|
2229
|
+
id?: string;
|
|
2230
|
+
type?: PostType;
|
|
2231
|
+
slug?: string;
|
|
2232
|
+
isActive?: boolean;
|
|
2233
|
+
topicSlug?: string;
|
|
2234
|
+
}) => Promise<Result<{
|
|
2235
|
+
post: Post & {
|
|
2236
|
+
translations: PostTranslation[];
|
|
2237
|
+
};
|
|
2238
|
+
}>>;
|
|
2239
|
+
|
|
2240
|
+
declare function createPostFindFullAction(ctx: ActionContext): (params: {
|
|
2241
|
+
id?: string;
|
|
2242
|
+
type?: PostType;
|
|
2243
|
+
slug?: string;
|
|
2244
|
+
isActive?: boolean;
|
|
2245
|
+
topicSlug?: string;
|
|
2246
|
+
}) => Promise<Result<{
|
|
2247
|
+
post: PostFull;
|
|
2248
|
+
}>>;
|
|
2249
|
+
|
|
2250
|
+
declare function createPostFindListCardsAction(ctx: ActionContext): (params: {
|
|
2251
|
+
searchString?: string;
|
|
2252
|
+
type: PostType | null;
|
|
2253
|
+
isActive?: boolean;
|
|
2254
|
+
isIndexActive?: boolean;
|
|
2255
|
+
isSlugActive?: boolean;
|
|
2256
|
+
isFeatured?: boolean;
|
|
2257
|
+
isShownOnHome?: boolean;
|
|
2258
|
+
state1?: boolean;
|
|
2259
|
+
state2?: boolean;
|
|
2260
|
+
state3?: boolean;
|
|
2261
|
+
state4?: boolean;
|
|
2262
|
+
state5?: boolean;
|
|
2263
|
+
state6?: boolean;
|
|
2264
|
+
state7?: boolean;
|
|
2265
|
+
state8?: boolean;
|
|
2266
|
+
state9?: boolean;
|
|
2267
|
+
state10?: boolean;
|
|
2268
|
+
topicId?: string;
|
|
2269
|
+
topicSlug?: string;
|
|
2270
|
+
categoryId?: string;
|
|
2271
|
+
categorySlug?: string;
|
|
2272
|
+
postIds?: string[];
|
|
2273
|
+
excludeIds?: string[];
|
|
2274
|
+
page?: number;
|
|
2275
|
+
pageSize?: number;
|
|
2276
|
+
}) => Promise<Result<{
|
|
2277
|
+
items: PostListCard[];
|
|
2278
|
+
total: number;
|
|
2279
|
+
}>>;
|
|
2280
|
+
|
|
2281
|
+
declare function createPostFindManyAction(ctx: ActionContext): (params: {
|
|
2282
|
+
type: PostType;
|
|
2283
|
+
topicId?: string;
|
|
2284
|
+
}) => Promise<Result<{
|
|
2285
|
+
posts: (Post & {
|
|
2286
|
+
translations: PostTranslation[];
|
|
2287
|
+
})[];
|
|
2288
|
+
}>>;
|
|
2289
|
+
|
|
1373
2290
|
declare class ServerError extends Error {
|
|
1374
2291
|
readonly i18nKey?: string;
|
|
1375
2292
|
readonly statusCode?: number;
|
|
@@ -1388,4 +2305,4 @@ declare class ServerError extends Error {
|
|
|
1388
2305
|
static internalServerError(): ServerError;
|
|
1389
2306
|
}
|
|
1390
2307
|
|
|
1391
|
-
export { ADMIN_ORDER_BY, type ActionContext, type AdminCreateFormData, type AdminUpdateFormData, type ChangePasswordFormData, type EmailUnverifiedFormData, type FileCreateFormData, type FileCreateManyFormData, type FileUpdateFormData, type FolderCreateFormData, type FolderUpdateFormData, type ForgotPasswordFormData, ORDER_BY, POST_ORDER_BY, type RawCacheKey, type ResetPasswordFormData, ServerError, type SignInFormData, type VerifyEmailFormData, createAdminCommandRepository, createAdminCreateAction, createAdminDeleteAction, createAdminFindFullAction, createAdminFindListCardsAction, createAdminQueryRepository, createAdminRefreshTokenCommandRepository, createAdminRefreshTokenDeleteAction, createAdminRefreshTokenFindManyAction, createAdminRefreshTokenQueryRepository, createAdminUpdateAction, createArgon2Service, createAuthMiddleware, createAuthUseCases, createCache, createCacheResult, createChangePasswordAction, createCookieService, createCryptoService, createEmailUnverifiedAction, createEmailVerificationEmail, createExecuteAction, createExecuteApi, createExist, createFileCommandRepository, createFileCreateAction, createFileCreateManyAction, createFileFindFullAction, createFileFindListCardsAction, createFilePurgeManyAction, createFileQueryRepository, createFileRestoreManyAction, createFileSchema, createFileSoftDeleteAction, createFileSoftDeleteManyAction, createFileUpdateAction, createFolderCommandRepository, createFolderCreateAction, createFolderDeleteAction, createFolderFindFullAction, createFolderFindListCardsAction, createFolderQueryRepository, createFolderUpdateAction, createForgotPasswordAction, createForgotPasswordEmail, createIpRateLimiter, createJwtService, createMultiFileSchema, createPostCommandRepository, createPostQueryRepository, createRenderEmailTemplate, createResetPasswordAction, createSchemas, createSendEmail, createSeoMetadataCommandRepository, createSignInAction, createSignOutAction, createTocItemSchema, createTransporter, createUnique, createVerifyAccessToken, createVerifyAction, createVerifyEmailAction, createVerifyRefreshToken, createZod, normalizeCacheKey };
|
|
2308
|
+
export { ADMIN_ORDER_BY, type ActionContext, type AdminCreateFormData, type AdminUpdateFormData, type ChangePasswordFormData, type EmailUnverifiedFormData, type FileCreateFormData, type FileCreateManyFormData, type FileUpdateFormData, type FolderCreateFormData, type FolderUpdateFormData, type ForgotPasswordFormData, ORDER_BY, POST_ORDER_BY, type PostCreateFormData, type PostUpdateFormData, type RawCacheKey, type ResetPasswordFormData, ServerError, type SignInFormData, type VerifyEmailFormData, createAdminCommandRepository, createAdminCreateAction, createAdminDeleteAction, createAdminFindFullAction, createAdminFindListCardsAction, createAdminQueryRepository, createAdminRefreshTokenCommandRepository, createAdminRefreshTokenDeleteAction, createAdminRefreshTokenFindManyAction, createAdminRefreshTokenQueryRepository, createAdminUpdateAction, createArgon2Service, createAuthMiddleware, createAuthUseCases, createCache, createCacheResult, createChangePasswordAction, createCookieService, createCryptoService, createEmailUnverifiedAction, createEmailVerificationEmail, createExecuteAction, createExecuteApi, createExist, createFileCommandRepository, createFileCreateAction, createFileCreateManyAction, createFileFindFullAction, createFileFindListCardsAction, createFilePurgeManyAction, createFileQueryRepository, createFileRestoreManyAction, createFileSchema, createFileSoftDeleteAction, createFileSoftDeleteManyAction, createFileUpdateAction, createFolderCommandRepository, createFolderCreateAction, createFolderDeleteAction, createFolderFindFullAction, createFolderFindListCardsAction, createFolderQueryRepository, createFolderUpdateAction, createForgotPasswordAction, createForgotPasswordEmail, createIpRateLimiter, createJwtService, createMultiFileSchema, createPostCommandRepository, createPostCreateAction, createPostDeleteAction, createPostFindAction, createPostFindFullAction, createPostFindListCardsAction, createPostFindManyAction, createPostQueryRepository, createPostUpdateAction, createRenderEmailTemplate, createResetPasswordAction, createSchemas, createSendEmail, createSeoMetadataCommandRepository, createSignInAction, createSignOutAction, createTocItemSchema, createTransporter, createUnique, createVerifyAccessToken, createVerifyAction, createVerifyEmailAction, createVerifyRefreshToken, createZod, normalizeCacheKey };
|