@voyantjs/products 0.3.1 → 0.4.1
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.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/routes-public.d.ts +167 -12
- package/dist/routes-public.d.ts.map +1 -1
- package/dist/routes-public.js +13 -1
- package/dist/routes.d.ts +669 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +117 -1
- package/dist/schema-itinerary.d.ts +51 -0
- package/dist/schema-itinerary.d.ts.map +1 -1
- package/dist/schema-itinerary.js +3 -0
- package/dist/schema-relations.d.ts +14 -0
- package/dist/schema-relations.d.ts.map +1 -1
- package/dist/schema-relations.js +28 -1
- package/dist/schema-taxonomy.d.ts +435 -0
- package/dist/schema-taxonomy.d.ts.map +1 -1
- package/dist/schema-taxonomy.js +47 -0
- package/dist/service-catalog.d.ts +237 -0
- package/dist/service-catalog.d.ts.map +1 -0
- package/dist/service-catalog.js +478 -0
- package/dist/service-public.d.ts +136 -12
- package/dist/service-public.d.ts.map +1 -1
- package/dist/service-public.js +146 -260
- package/dist/service.d.ts +292 -1
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +388 -2
- package/dist/tasks/brochure-printers.d.ts +29 -0
- package/dist/tasks/brochure-printers.d.ts.map +1 -0
- package/dist/tasks/brochure-printers.js +94 -0
- package/dist/tasks/brochure-templates.d.ts +36 -0
- package/dist/tasks/brochure-templates.d.ts.map +1 -0
- package/dist/tasks/brochure-templates.js +98 -0
- package/dist/tasks/brochures.d.ts +42 -0
- package/dist/tasks/brochures.d.ts.map +1 -0
- package/dist/tasks/brochures.js +69 -0
- package/dist/tasks/index.d.ts +3 -0
- package/dist/tasks/index.d.ts.map +1 -1
- package/dist/tasks/index.js +3 -0
- package/dist/validation-catalog.d.ts +388 -0
- package/dist/validation-catalog.d.ts.map +1 -0
- package/dist/validation-catalog.js +54 -0
- package/dist/validation-content.d.ts +109 -0
- package/dist/validation-content.d.ts.map +1 -1
- package/dist/validation-content.js +63 -1
- package/dist/validation-public.d.ts +208 -19
- package/dist/validation-public.d.ts.map +1 -1
- package/dist/validation-public.js +39 -2
- package/dist/validation-shared.d.ts +6 -0
- package/dist/validation-shared.d.ts.map +1 -1
- package/dist/validation-shared.js +1 -0
- package/package.json +6 -4
package/dist/routes.d.ts
CHANGED
|
@@ -1332,6 +1332,390 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1332
1332
|
status: 200;
|
|
1333
1333
|
};
|
|
1334
1334
|
};
|
|
1335
|
+
} & {
|
|
1336
|
+
"/destinations": {
|
|
1337
|
+
$get: {
|
|
1338
|
+
input: {};
|
|
1339
|
+
output: {
|
|
1340
|
+
data: {
|
|
1341
|
+
translation: {
|
|
1342
|
+
id: string;
|
|
1343
|
+
destinationId: string;
|
|
1344
|
+
languageTag: string;
|
|
1345
|
+
name: string;
|
|
1346
|
+
description: string | null;
|
|
1347
|
+
seoTitle: string | null;
|
|
1348
|
+
seoDescription: string | null;
|
|
1349
|
+
createdAt: string;
|
|
1350
|
+
updatedAt: string;
|
|
1351
|
+
} | null;
|
|
1352
|
+
id: string;
|
|
1353
|
+
parentId: string | null;
|
|
1354
|
+
slug: string;
|
|
1355
|
+
code: string | null;
|
|
1356
|
+
destinationType: string;
|
|
1357
|
+
sortOrder: number;
|
|
1358
|
+
active: boolean;
|
|
1359
|
+
metadata: {
|
|
1360
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1361
|
+
} | null;
|
|
1362
|
+
createdAt: string;
|
|
1363
|
+
updatedAt: string;
|
|
1364
|
+
}[];
|
|
1365
|
+
total: number;
|
|
1366
|
+
limit: number;
|
|
1367
|
+
offset: number;
|
|
1368
|
+
};
|
|
1369
|
+
outputFormat: "json";
|
|
1370
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1373
|
+
} & {
|
|
1374
|
+
"/destinations/:id": {
|
|
1375
|
+
$get: {
|
|
1376
|
+
input: {
|
|
1377
|
+
param: {
|
|
1378
|
+
id: string;
|
|
1379
|
+
};
|
|
1380
|
+
};
|
|
1381
|
+
output: {
|
|
1382
|
+
error: string;
|
|
1383
|
+
};
|
|
1384
|
+
outputFormat: "json";
|
|
1385
|
+
status: 404;
|
|
1386
|
+
} | {
|
|
1387
|
+
input: {
|
|
1388
|
+
param: {
|
|
1389
|
+
id: string;
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
output: {
|
|
1393
|
+
data: {
|
|
1394
|
+
translations: {
|
|
1395
|
+
id: string;
|
|
1396
|
+
destinationId: string;
|
|
1397
|
+
languageTag: string;
|
|
1398
|
+
name: string;
|
|
1399
|
+
description: string | null;
|
|
1400
|
+
seoTitle: string | null;
|
|
1401
|
+
seoDescription: string | null;
|
|
1402
|
+
createdAt: string;
|
|
1403
|
+
updatedAt: string;
|
|
1404
|
+
}[];
|
|
1405
|
+
id: string;
|
|
1406
|
+
parentId: string | null;
|
|
1407
|
+
slug: string;
|
|
1408
|
+
code: string | null;
|
|
1409
|
+
destinationType: string;
|
|
1410
|
+
sortOrder: number;
|
|
1411
|
+
active: boolean;
|
|
1412
|
+
metadata: {
|
|
1413
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1414
|
+
} | null;
|
|
1415
|
+
createdAt: string;
|
|
1416
|
+
updatedAt: string;
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
outputFormat: "json";
|
|
1420
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1421
|
+
};
|
|
1422
|
+
};
|
|
1423
|
+
} & {
|
|
1424
|
+
"/destinations": {
|
|
1425
|
+
$post: {
|
|
1426
|
+
input: {};
|
|
1427
|
+
output: {
|
|
1428
|
+
data: {
|
|
1429
|
+
createdAt: string;
|
|
1430
|
+
updatedAt: string;
|
|
1431
|
+
id: string;
|
|
1432
|
+
active: boolean;
|
|
1433
|
+
code: string | null;
|
|
1434
|
+
sortOrder: number;
|
|
1435
|
+
slug: string;
|
|
1436
|
+
metadata: {
|
|
1437
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1438
|
+
} | null;
|
|
1439
|
+
parentId: string | null;
|
|
1440
|
+
destinationType: string;
|
|
1441
|
+
} | null;
|
|
1442
|
+
};
|
|
1443
|
+
outputFormat: "json";
|
|
1444
|
+
status: 201;
|
|
1445
|
+
};
|
|
1446
|
+
};
|
|
1447
|
+
} & {
|
|
1448
|
+
"/destinations/:id": {
|
|
1449
|
+
$patch: {
|
|
1450
|
+
input: {
|
|
1451
|
+
param: {
|
|
1452
|
+
id: string;
|
|
1453
|
+
};
|
|
1454
|
+
};
|
|
1455
|
+
output: {
|
|
1456
|
+
error: string;
|
|
1457
|
+
};
|
|
1458
|
+
outputFormat: "json";
|
|
1459
|
+
status: 404;
|
|
1460
|
+
} | {
|
|
1461
|
+
input: {
|
|
1462
|
+
param: {
|
|
1463
|
+
id: string;
|
|
1464
|
+
};
|
|
1465
|
+
};
|
|
1466
|
+
output: {
|
|
1467
|
+
data: {
|
|
1468
|
+
id: string;
|
|
1469
|
+
parentId: string | null;
|
|
1470
|
+
slug: string;
|
|
1471
|
+
code: string | null;
|
|
1472
|
+
destinationType: string;
|
|
1473
|
+
sortOrder: number;
|
|
1474
|
+
active: boolean;
|
|
1475
|
+
metadata: {
|
|
1476
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1477
|
+
} | null;
|
|
1478
|
+
createdAt: string;
|
|
1479
|
+
updatedAt: string;
|
|
1480
|
+
};
|
|
1481
|
+
};
|
|
1482
|
+
outputFormat: "json";
|
|
1483
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
} & {
|
|
1487
|
+
"/destinations/:id": {
|
|
1488
|
+
$delete: {
|
|
1489
|
+
input: {
|
|
1490
|
+
param: {
|
|
1491
|
+
id: string;
|
|
1492
|
+
};
|
|
1493
|
+
};
|
|
1494
|
+
output: {
|
|
1495
|
+
error: string;
|
|
1496
|
+
};
|
|
1497
|
+
outputFormat: "json";
|
|
1498
|
+
status: 404;
|
|
1499
|
+
} | {
|
|
1500
|
+
input: {
|
|
1501
|
+
param: {
|
|
1502
|
+
id: string;
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
output: {
|
|
1506
|
+
success: true;
|
|
1507
|
+
};
|
|
1508
|
+
outputFormat: "json";
|
|
1509
|
+
status: 200;
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1512
|
+
} & {
|
|
1513
|
+
"/destination-translations": {
|
|
1514
|
+
$get: {
|
|
1515
|
+
input: {};
|
|
1516
|
+
output: {
|
|
1517
|
+
data: {
|
|
1518
|
+
id: string;
|
|
1519
|
+
destinationId: string;
|
|
1520
|
+
languageTag: string;
|
|
1521
|
+
name: string;
|
|
1522
|
+
description: string | null;
|
|
1523
|
+
seoTitle: string | null;
|
|
1524
|
+
seoDescription: string | null;
|
|
1525
|
+
createdAt: string;
|
|
1526
|
+
updatedAt: string;
|
|
1527
|
+
}[];
|
|
1528
|
+
total: number;
|
|
1529
|
+
limit: number;
|
|
1530
|
+
offset: number;
|
|
1531
|
+
};
|
|
1532
|
+
outputFormat: "json";
|
|
1533
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1534
|
+
};
|
|
1535
|
+
};
|
|
1536
|
+
} & {
|
|
1537
|
+
"/destinations/:id/translations": {
|
|
1538
|
+
$post: {
|
|
1539
|
+
input: {
|
|
1540
|
+
param: {
|
|
1541
|
+
id: string;
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
output: {
|
|
1545
|
+
error: string;
|
|
1546
|
+
};
|
|
1547
|
+
outputFormat: "json";
|
|
1548
|
+
status: 404;
|
|
1549
|
+
} | {
|
|
1550
|
+
input: {
|
|
1551
|
+
param: {
|
|
1552
|
+
id: string;
|
|
1553
|
+
};
|
|
1554
|
+
};
|
|
1555
|
+
output: {
|
|
1556
|
+
data: {
|
|
1557
|
+
name: string;
|
|
1558
|
+
createdAt: string;
|
|
1559
|
+
updatedAt: string;
|
|
1560
|
+
description: string | null;
|
|
1561
|
+
id: string;
|
|
1562
|
+
languageTag: string;
|
|
1563
|
+
seoTitle: string | null;
|
|
1564
|
+
seoDescription: string | null;
|
|
1565
|
+
destinationId: string;
|
|
1566
|
+
};
|
|
1567
|
+
};
|
|
1568
|
+
outputFormat: "json";
|
|
1569
|
+
status: 201;
|
|
1570
|
+
};
|
|
1571
|
+
};
|
|
1572
|
+
} & {
|
|
1573
|
+
"/destination-translations/:id": {
|
|
1574
|
+
$patch: {
|
|
1575
|
+
input: {
|
|
1576
|
+
param: {
|
|
1577
|
+
id: string;
|
|
1578
|
+
};
|
|
1579
|
+
};
|
|
1580
|
+
output: {
|
|
1581
|
+
error: string;
|
|
1582
|
+
};
|
|
1583
|
+
outputFormat: "json";
|
|
1584
|
+
status: 404;
|
|
1585
|
+
} | {
|
|
1586
|
+
input: {
|
|
1587
|
+
param: {
|
|
1588
|
+
id: string;
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
output: {
|
|
1592
|
+
data: {
|
|
1593
|
+
id: string;
|
|
1594
|
+
destinationId: string;
|
|
1595
|
+
languageTag: string;
|
|
1596
|
+
name: string;
|
|
1597
|
+
description: string | null;
|
|
1598
|
+
seoTitle: string | null;
|
|
1599
|
+
seoDescription: string | null;
|
|
1600
|
+
createdAt: string;
|
|
1601
|
+
updatedAt: string;
|
|
1602
|
+
};
|
|
1603
|
+
};
|
|
1604
|
+
outputFormat: "json";
|
|
1605
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1606
|
+
};
|
|
1607
|
+
};
|
|
1608
|
+
} & {
|
|
1609
|
+
"/destination-translations/:id": {
|
|
1610
|
+
$delete: {
|
|
1611
|
+
input: {
|
|
1612
|
+
param: {
|
|
1613
|
+
id: string;
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
output: {
|
|
1617
|
+
error: string;
|
|
1618
|
+
};
|
|
1619
|
+
outputFormat: "json";
|
|
1620
|
+
status: 404;
|
|
1621
|
+
} | {
|
|
1622
|
+
input: {
|
|
1623
|
+
param: {
|
|
1624
|
+
id: string;
|
|
1625
|
+
};
|
|
1626
|
+
};
|
|
1627
|
+
output: {
|
|
1628
|
+
success: true;
|
|
1629
|
+
};
|
|
1630
|
+
outputFormat: "json";
|
|
1631
|
+
status: 200;
|
|
1632
|
+
};
|
|
1633
|
+
};
|
|
1634
|
+
} & {
|
|
1635
|
+
"/destination-links": {
|
|
1636
|
+
$get: {
|
|
1637
|
+
input: {};
|
|
1638
|
+
output: {
|
|
1639
|
+
data: {
|
|
1640
|
+
productId: string;
|
|
1641
|
+
destinationId: string;
|
|
1642
|
+
sortOrder: number;
|
|
1643
|
+
createdAt: string;
|
|
1644
|
+
updatedAt: string;
|
|
1645
|
+
destinationSlug: string;
|
|
1646
|
+
destinationType: string;
|
|
1647
|
+
destinationActive: boolean;
|
|
1648
|
+
}[];
|
|
1649
|
+
total: number;
|
|
1650
|
+
limit: number;
|
|
1651
|
+
offset: number;
|
|
1652
|
+
};
|
|
1653
|
+
outputFormat: "json";
|
|
1654
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1655
|
+
};
|
|
1656
|
+
};
|
|
1657
|
+
} & {
|
|
1658
|
+
"/:id/destinations": {
|
|
1659
|
+
$post: {
|
|
1660
|
+
input: {
|
|
1661
|
+
param: {
|
|
1662
|
+
id: string;
|
|
1663
|
+
};
|
|
1664
|
+
};
|
|
1665
|
+
output: {
|
|
1666
|
+
error: string;
|
|
1667
|
+
};
|
|
1668
|
+
outputFormat: "json";
|
|
1669
|
+
status: 404;
|
|
1670
|
+
} | {
|
|
1671
|
+
input: {
|
|
1672
|
+
param: {
|
|
1673
|
+
id: string;
|
|
1674
|
+
};
|
|
1675
|
+
};
|
|
1676
|
+
output: {
|
|
1677
|
+
data: {
|
|
1678
|
+
productId: string;
|
|
1679
|
+
createdAt: string;
|
|
1680
|
+
updatedAt: string;
|
|
1681
|
+
sortOrder: number;
|
|
1682
|
+
destinationId: string;
|
|
1683
|
+
};
|
|
1684
|
+
};
|
|
1685
|
+
outputFormat: "json";
|
|
1686
|
+
status: 201;
|
|
1687
|
+
};
|
|
1688
|
+
};
|
|
1689
|
+
} & {
|
|
1690
|
+
"/:id/destinations/:destinationId": {
|
|
1691
|
+
$delete: {
|
|
1692
|
+
input: {
|
|
1693
|
+
param: {
|
|
1694
|
+
id: string;
|
|
1695
|
+
} & {
|
|
1696
|
+
destinationId: string;
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1699
|
+
output: {
|
|
1700
|
+
error: string;
|
|
1701
|
+
};
|
|
1702
|
+
outputFormat: "json";
|
|
1703
|
+
status: 404;
|
|
1704
|
+
} | {
|
|
1705
|
+
input: {
|
|
1706
|
+
param: {
|
|
1707
|
+
id: string;
|
|
1708
|
+
} & {
|
|
1709
|
+
destinationId: string;
|
|
1710
|
+
};
|
|
1711
|
+
};
|
|
1712
|
+
output: {
|
|
1713
|
+
success: true;
|
|
1714
|
+
};
|
|
1715
|
+
outputFormat: "json";
|
|
1716
|
+
status: 200;
|
|
1717
|
+
};
|
|
1718
|
+
};
|
|
1335
1719
|
} & {
|
|
1336
1720
|
"/options": {
|
|
1337
1721
|
$get: {
|
|
@@ -2628,6 +3012,9 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2628
3012
|
altText: string | null;
|
|
2629
3013
|
sortOrder: number;
|
|
2630
3014
|
isCover: boolean;
|
|
3015
|
+
isBrochure: boolean;
|
|
3016
|
+
isBrochureCurrent: boolean;
|
|
3017
|
+
brochureVersion: number | null;
|
|
2631
3018
|
createdAt: string;
|
|
2632
3019
|
updatedAt: string;
|
|
2633
3020
|
};
|
|
@@ -2669,6 +3056,9 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2669
3056
|
altText: string | null;
|
|
2670
3057
|
sortOrder: number;
|
|
2671
3058
|
isCover: boolean;
|
|
3059
|
+
isBrochure: boolean;
|
|
3060
|
+
isBrochureCurrent: boolean;
|
|
3061
|
+
brochureVersion: number | null;
|
|
2672
3062
|
createdAt: string;
|
|
2673
3063
|
updatedAt: string;
|
|
2674
3064
|
};
|
|
@@ -2721,6 +3111,9 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2721
3111
|
altText: string | null;
|
|
2722
3112
|
sortOrder: number;
|
|
2723
3113
|
isCover: boolean;
|
|
3114
|
+
isBrochure: boolean;
|
|
3115
|
+
isBrochureCurrent: boolean;
|
|
3116
|
+
brochureVersion: number | null;
|
|
2724
3117
|
createdAt: string;
|
|
2725
3118
|
updatedAt: string;
|
|
2726
3119
|
};
|
|
@@ -2764,6 +3157,270 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
2764
3157
|
fileSize: number | null;
|
|
2765
3158
|
altText: string | null;
|
|
2766
3159
|
isCover: boolean;
|
|
3160
|
+
isBrochure: boolean;
|
|
3161
|
+
isBrochureCurrent: boolean;
|
|
3162
|
+
brochureVersion: number | null;
|
|
3163
|
+
};
|
|
3164
|
+
};
|
|
3165
|
+
outputFormat: "json";
|
|
3166
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3167
|
+
};
|
|
3168
|
+
};
|
|
3169
|
+
} & {
|
|
3170
|
+
"/:id/brochure": {
|
|
3171
|
+
$get: {
|
|
3172
|
+
input: {
|
|
3173
|
+
param: {
|
|
3174
|
+
id: string;
|
|
3175
|
+
};
|
|
3176
|
+
};
|
|
3177
|
+
output: {
|
|
3178
|
+
error: string;
|
|
3179
|
+
};
|
|
3180
|
+
outputFormat: "json";
|
|
3181
|
+
status: 404;
|
|
3182
|
+
} | {
|
|
3183
|
+
input: {
|
|
3184
|
+
param: {
|
|
3185
|
+
id: string;
|
|
3186
|
+
};
|
|
3187
|
+
};
|
|
3188
|
+
output: {
|
|
3189
|
+
data: {
|
|
3190
|
+
id: string;
|
|
3191
|
+
productId: string;
|
|
3192
|
+
dayId: string | null;
|
|
3193
|
+
mediaType: "image" | "video" | "document";
|
|
3194
|
+
name: string;
|
|
3195
|
+
url: string;
|
|
3196
|
+
storageKey: string | null;
|
|
3197
|
+
mimeType: string | null;
|
|
3198
|
+
fileSize: number | null;
|
|
3199
|
+
altText: string | null;
|
|
3200
|
+
sortOrder: number;
|
|
3201
|
+
isCover: boolean;
|
|
3202
|
+
isBrochure: boolean;
|
|
3203
|
+
isBrochureCurrent: boolean;
|
|
3204
|
+
brochureVersion: number | null;
|
|
3205
|
+
createdAt: string;
|
|
3206
|
+
updatedAt: string;
|
|
3207
|
+
};
|
|
3208
|
+
};
|
|
3209
|
+
outputFormat: "json";
|
|
3210
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3211
|
+
};
|
|
3212
|
+
};
|
|
3213
|
+
} & {
|
|
3214
|
+
"/:id/brochure/versions": {
|
|
3215
|
+
$get: {
|
|
3216
|
+
input: {
|
|
3217
|
+
param: {
|
|
3218
|
+
id: string;
|
|
3219
|
+
};
|
|
3220
|
+
};
|
|
3221
|
+
output: {
|
|
3222
|
+
data: {
|
|
3223
|
+
id: string;
|
|
3224
|
+
productId: string;
|
|
3225
|
+
dayId: string | null;
|
|
3226
|
+
mediaType: "image" | "video" | "document";
|
|
3227
|
+
name: string;
|
|
3228
|
+
url: string;
|
|
3229
|
+
storageKey: string | null;
|
|
3230
|
+
mimeType: string | null;
|
|
3231
|
+
fileSize: number | null;
|
|
3232
|
+
altText: string | null;
|
|
3233
|
+
sortOrder: number;
|
|
3234
|
+
isCover: boolean;
|
|
3235
|
+
isBrochure: boolean;
|
|
3236
|
+
isBrochureCurrent: boolean;
|
|
3237
|
+
brochureVersion: number | null;
|
|
3238
|
+
createdAt: string;
|
|
3239
|
+
updatedAt: string;
|
|
3240
|
+
}[];
|
|
3241
|
+
};
|
|
3242
|
+
outputFormat: "json";
|
|
3243
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3244
|
+
};
|
|
3245
|
+
};
|
|
3246
|
+
} & {
|
|
3247
|
+
"/:id/brochure": {
|
|
3248
|
+
$put: {
|
|
3249
|
+
input: {
|
|
3250
|
+
param: {
|
|
3251
|
+
id: string;
|
|
3252
|
+
};
|
|
3253
|
+
};
|
|
3254
|
+
output: {
|
|
3255
|
+
error: string;
|
|
3256
|
+
};
|
|
3257
|
+
outputFormat: "json";
|
|
3258
|
+
status: 404;
|
|
3259
|
+
} | {
|
|
3260
|
+
input: {
|
|
3261
|
+
param: {
|
|
3262
|
+
id: string;
|
|
3263
|
+
};
|
|
3264
|
+
};
|
|
3265
|
+
output: {
|
|
3266
|
+
data: {
|
|
3267
|
+
productId: string;
|
|
3268
|
+
name: string;
|
|
3269
|
+
createdAt: string;
|
|
3270
|
+
updatedAt: string;
|
|
3271
|
+
id: string;
|
|
3272
|
+
sortOrder: number;
|
|
3273
|
+
dayId: string | null;
|
|
3274
|
+
mediaType: "image" | "video" | "document";
|
|
3275
|
+
url: string;
|
|
3276
|
+
storageKey: string | null;
|
|
3277
|
+
mimeType: string | null;
|
|
3278
|
+
fileSize: number | null;
|
|
3279
|
+
altText: string | null;
|
|
3280
|
+
isCover: boolean;
|
|
3281
|
+
isBrochure: boolean;
|
|
3282
|
+
isBrochureCurrent: boolean;
|
|
3283
|
+
brochureVersion: number | null;
|
|
3284
|
+
};
|
|
3285
|
+
};
|
|
3286
|
+
outputFormat: "json";
|
|
3287
|
+
status: 201;
|
|
3288
|
+
};
|
|
3289
|
+
};
|
|
3290
|
+
} & {
|
|
3291
|
+
"/:id/brochure": {
|
|
3292
|
+
$delete: {
|
|
3293
|
+
input: {
|
|
3294
|
+
param: {
|
|
3295
|
+
id: string;
|
|
3296
|
+
};
|
|
3297
|
+
};
|
|
3298
|
+
output: {
|
|
3299
|
+
error: string;
|
|
3300
|
+
};
|
|
3301
|
+
outputFormat: "json";
|
|
3302
|
+
status: 404;
|
|
3303
|
+
} | {
|
|
3304
|
+
input: {
|
|
3305
|
+
param: {
|
|
3306
|
+
id: string;
|
|
3307
|
+
};
|
|
3308
|
+
};
|
|
3309
|
+
output: {
|
|
3310
|
+
data: {
|
|
3311
|
+
productId: string;
|
|
3312
|
+
name: string;
|
|
3313
|
+
createdAt: string;
|
|
3314
|
+
updatedAt: string;
|
|
3315
|
+
id: string;
|
|
3316
|
+
sortOrder: number;
|
|
3317
|
+
dayId: string | null;
|
|
3318
|
+
mediaType: "image" | "video" | "document";
|
|
3319
|
+
url: string;
|
|
3320
|
+
storageKey: string | null;
|
|
3321
|
+
mimeType: string | null;
|
|
3322
|
+
fileSize: number | null;
|
|
3323
|
+
altText: string | null;
|
|
3324
|
+
isCover: boolean;
|
|
3325
|
+
isBrochure: boolean;
|
|
3326
|
+
isBrochureCurrent: boolean;
|
|
3327
|
+
brochureVersion: number | null;
|
|
3328
|
+
};
|
|
3329
|
+
};
|
|
3330
|
+
outputFormat: "json";
|
|
3331
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3332
|
+
};
|
|
3333
|
+
};
|
|
3334
|
+
} & {
|
|
3335
|
+
"/:id/brochure/versions/:brochureId/set-current": {
|
|
3336
|
+
$post: {
|
|
3337
|
+
input: {
|
|
3338
|
+
param: {
|
|
3339
|
+
id: string;
|
|
3340
|
+
} & {
|
|
3341
|
+
brochureId: string;
|
|
3342
|
+
};
|
|
3343
|
+
};
|
|
3344
|
+
output: {
|
|
3345
|
+
error: string;
|
|
3346
|
+
};
|
|
3347
|
+
outputFormat: "json";
|
|
3348
|
+
status: 404;
|
|
3349
|
+
} | {
|
|
3350
|
+
input: {
|
|
3351
|
+
param: {
|
|
3352
|
+
id: string;
|
|
3353
|
+
} & {
|
|
3354
|
+
brochureId: string;
|
|
3355
|
+
};
|
|
3356
|
+
};
|
|
3357
|
+
output: {
|
|
3358
|
+
data: {
|
|
3359
|
+
id: string;
|
|
3360
|
+
productId: string;
|
|
3361
|
+
dayId: string | null;
|
|
3362
|
+
mediaType: "image" | "video" | "document";
|
|
3363
|
+
name: string;
|
|
3364
|
+
url: string;
|
|
3365
|
+
storageKey: string | null;
|
|
3366
|
+
mimeType: string | null;
|
|
3367
|
+
fileSize: number | null;
|
|
3368
|
+
altText: string | null;
|
|
3369
|
+
sortOrder: number;
|
|
3370
|
+
isCover: boolean;
|
|
3371
|
+
isBrochure: boolean;
|
|
3372
|
+
isBrochureCurrent: boolean;
|
|
3373
|
+
brochureVersion: number | null;
|
|
3374
|
+
createdAt: string;
|
|
3375
|
+
updatedAt: string;
|
|
3376
|
+
};
|
|
3377
|
+
};
|
|
3378
|
+
outputFormat: "json";
|
|
3379
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3380
|
+
};
|
|
3381
|
+
};
|
|
3382
|
+
} & {
|
|
3383
|
+
"/:id/brochure/versions/:brochureId": {
|
|
3384
|
+
$delete: {
|
|
3385
|
+
input: {
|
|
3386
|
+
param: {
|
|
3387
|
+
id: string;
|
|
3388
|
+
} & {
|
|
3389
|
+
brochureId: string;
|
|
3390
|
+
};
|
|
3391
|
+
};
|
|
3392
|
+
output: {
|
|
3393
|
+
error: string;
|
|
3394
|
+
};
|
|
3395
|
+
outputFormat: "json";
|
|
3396
|
+
status: 404;
|
|
3397
|
+
} | {
|
|
3398
|
+
input: {
|
|
3399
|
+
param: {
|
|
3400
|
+
id: string;
|
|
3401
|
+
} & {
|
|
3402
|
+
brochureId: string;
|
|
3403
|
+
};
|
|
3404
|
+
};
|
|
3405
|
+
output: {
|
|
3406
|
+
data: {
|
|
3407
|
+
productId: string;
|
|
3408
|
+
name: string;
|
|
3409
|
+
createdAt: string;
|
|
3410
|
+
updatedAt: string;
|
|
3411
|
+
id: string;
|
|
3412
|
+
sortOrder: number;
|
|
3413
|
+
dayId: string | null;
|
|
3414
|
+
mediaType: "image" | "video" | "document";
|
|
3415
|
+
url: string;
|
|
3416
|
+
storageKey: string | null;
|
|
3417
|
+
mimeType: string | null;
|
|
3418
|
+
fileSize: number | null;
|
|
3419
|
+
altText: string | null;
|
|
3420
|
+
isCover: boolean;
|
|
3421
|
+
isBrochure: boolean;
|
|
3422
|
+
isBrochureCurrent: boolean;
|
|
3423
|
+
brochureVersion: number | null;
|
|
2767
3424
|
};
|
|
2768
3425
|
};
|
|
2769
3426
|
outputFormat: "json";
|
|
@@ -3490,6 +4147,9 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3490
4147
|
altText: string | null;
|
|
3491
4148
|
sortOrder: number;
|
|
3492
4149
|
isCover: boolean;
|
|
4150
|
+
isBrochure: boolean;
|
|
4151
|
+
isBrochureCurrent: boolean;
|
|
4152
|
+
brochureVersion: number | null;
|
|
3493
4153
|
createdAt: string;
|
|
3494
4154
|
updatedAt: string;
|
|
3495
4155
|
}[];
|
|
@@ -3536,6 +4196,9 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3536
4196
|
fileSize: number | null;
|
|
3537
4197
|
altText: string | null;
|
|
3538
4198
|
isCover: boolean;
|
|
4199
|
+
isBrochure: boolean;
|
|
4200
|
+
isBrochureCurrent: boolean;
|
|
4201
|
+
brochureVersion: number | null;
|
|
3539
4202
|
};
|
|
3540
4203
|
};
|
|
3541
4204
|
outputFormat: "json";
|
|
@@ -3583,6 +4246,9 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3583
4246
|
altText: string | null;
|
|
3584
4247
|
sortOrder: number;
|
|
3585
4248
|
isCover: boolean;
|
|
4249
|
+
isBrochure: boolean;
|
|
4250
|
+
isBrochureCurrent: boolean;
|
|
4251
|
+
brochureVersion: number | null;
|
|
3586
4252
|
createdAt: string;
|
|
3587
4253
|
updatedAt: string;
|
|
3588
4254
|
}[];
|
|
@@ -3633,6 +4299,9 @@ export declare const productRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
3633
4299
|
fileSize: number | null;
|
|
3634
4300
|
altText: string | null;
|
|
3635
4301
|
isCover: boolean;
|
|
4302
|
+
isBrochure: boolean;
|
|
4303
|
+
isBrochureCurrent: boolean;
|
|
4304
|
+
brochureVersion: number | null;
|
|
3636
4305
|
};
|
|
3637
4306
|
};
|
|
3638
4307
|
outputFormat: "json";
|