@channel.io/app-sdk-core 0.33.1 → 0.35.0

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.
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import type { WmsChangeShippingAddressRequest as ProtoChangeWmsShippingAddressInput, WmsDelivery as ProtoWmsDelivery, WmsGetOrderRequest as ProtoGetWmsOrderInput, WmsGetOrderResult as ProtoGetWmsOrderOutput, WmsGetOrdersRequest as ProtoGetWmsOrdersInput, WmsGetOrdersResult as ProtoGetWmsOrdersOutput, WmsGetShopIDRequest as ProtoGetWmsShopIdInput, WmsGetShopIDResult as ProtoGetWmsShopIdOutput, WmsGetSupportedCommercesRequest as ProtoGetWmsSupportedCommercesInput, WmsGetSupportedCommercesResult as ProtoGetWmsSupportedCommercesOutput, WmsOrder as ProtoWmsOrder, WmsOrderItem as ProtoWmsOrderItem, WmsOrderStateRequest as ProtoWmsOrderStateRequest, WmsRestoreOrderRequest as ProtoRestoreWmsOrderInput, WmsShippingInfo as ProtoWmsShippingInfo, WmsSuccessResult as ProtoWmsSuccessOutput, WmsAppCapabilities as ProtoWmsAppCapabilities, WmsDeliveryV2 as ProtoWmsDeliveryV2, WmsGetAppConfigsInput as ProtoWmsGetAppConfigsInput, WmsGetAppConfigsOutput as ProtoWmsGetAppConfigsOutput, WmsIdentifier as ProtoWmsIdentifier, WmsOperationOptions as ProtoWmsOperationOptions, WmsOrderActionRequest as ProtoWmsOrderActionRequest, WmsOrderActionResult as ProtoWmsOrderActionResult, WmsOrderChangeShippingAddressInput as ProtoWmsOrderChangeShippingAddressInput, WmsOrderGetOrdersRequest as ProtoWmsOrderGetOrdersRequest, WmsOrderGetOrdersResult as ProtoWmsOrderGetOrdersResult, WmsOrderItemV2 as ProtoWmsOrderItemV2, WmsOrderV2 as ProtoWmsOrderV2 } from "../gen/channel/app/sdk/v1/extension.js";
2
+ import type { WmsChangeShippingAddressRequest as ProtoChangeWmsShippingAddressInput, WmsDelivery as ProtoWmsDelivery, WmsGetOrderRequest as ProtoGetWmsOrderInput, WmsGetOrderResult as ProtoGetWmsOrderOutput, WmsGetOrdersRequest as ProtoGetWmsOrdersInput, WmsGetOrdersResult as ProtoGetWmsOrdersOutput, WmsGetShopIDRequest as ProtoGetWmsShopIdInput, WmsGetShopIDResult as ProtoGetWmsShopIdOutput, WmsGetSupportedCommercesRequest as ProtoGetWmsSupportedCommercesInput, WmsGetSupportedCommercesResult as ProtoGetWmsSupportedCommercesOutput, WmsOrder as ProtoWmsOrder, WmsOrderItem as ProtoWmsOrderItem, WmsOrderStateRequest as ProtoWmsOrderStateRequest, WmsRestoreOrderRequest as ProtoRestoreWmsOrderInput, WmsShippingInfo as ProtoWmsShippingInfo, WmsSuccessResult as ProtoWmsSuccessOutput, WmsAppCapabilities as ProtoWmsAppCapabilities, WmsDeliveryV2 as ProtoWmsDeliveryV2, WmsGetAppConfigsInput as ProtoWmsGetAppConfigsInput, WmsGetAppConfigsOutput as ProtoWmsGetAppConfigsOutput, WmsIdentifier as ProtoWmsIdentifier, WmsOperationOptions as ProtoWmsOperationOptions, WmsOrderActionRequest as ProtoWmsOrderActionRequest, WmsOrderActionResult as ProtoWmsOrderActionResult, WmsOrderCancelRequest as ProtoWmsOrderCancelRequest, WmsOrderChangeShippingAddressInput as ProtoWmsOrderChangeShippingAddressInput, WmsOrderClaimItem as ProtoWmsOrderClaimItem, WmsOrderExchangeRequest as ProtoWmsOrderExchangeRequest, WmsOrderGetExchangeableItemsRequest as ProtoWmsOrderGetExchangeableItemsRequest, WmsOrderGetExchangeableItemsResult as ProtoWmsOrderGetExchangeableItemsResult, WmsExchangeableItem as ProtoWmsExchangeableItem, WmsExchangeableVariant as ProtoWmsExchangeableVariant, WmsVariantOption as ProtoWmsVariantOption, WmsOrderReturnRequest as ProtoWmsOrderReturnRequest, WmsOrderGetOrdersRequest as ProtoWmsOrderGetOrdersRequest, WmsOrderGetOrdersResult as ProtoWmsOrderGetOrdersResult, WmsOrderItemV2 as ProtoWmsOrderItemV2, WmsOrderV2 as ProtoWmsOrderV2 } from "../gen/channel/app/sdk/v1/extension.js";
3
3
  type ProtoBacked<T, Proto> = T & Proto;
4
4
  /**
5
5
  * WMS shipping information schema
@@ -1426,6 +1426,431 @@ export declare const WmsOrderActionInputSchema: z.ZodObject<{
1426
1426
  } | undefined;
1427
1427
  }>;
1428
1428
  export type WmsOrderActionInput = ProtoBacked<z.infer<typeof WmsOrderActionInputSchema>, ProtoWmsOrderActionRequest>;
1429
+ export declare const WmsOrderClaimItemSchema: z.ZodObject<{
1430
+ id: z.ZodString;
1431
+ quantity: z.ZodOptional<z.ZodNumber>;
1432
+ }, "strip", z.ZodTypeAny, {
1433
+ id: string;
1434
+ quantity?: number | undefined;
1435
+ }, {
1436
+ id: string;
1437
+ quantity?: number | undefined;
1438
+ }>;
1439
+ export type WmsOrderClaimItem = ProtoBacked<z.infer<typeof WmsOrderClaimItemSchema>, ProtoWmsOrderClaimItem>;
1440
+ export declare const WmsOrderCancelInputSchema: z.ZodObject<{
1441
+ identifier: z.ZodOptional<z.ZodObject<{
1442
+ type: z.ZodEnum<["membership", "phone", "email"]>;
1443
+ value: z.ZodString;
1444
+ }, "strip", z.ZodTypeAny, {
1445
+ type: "email" | "phone" | "membership";
1446
+ value: string;
1447
+ }, {
1448
+ type: "email" | "phone" | "membership";
1449
+ value: string;
1450
+ }>>;
1451
+ orderIds: z.ZodArray<z.ZodString, "many">;
1452
+ reason: z.ZodOptional<z.ZodString>;
1453
+ memo: z.ZodOptional<z.ZodString>;
1454
+ } & {
1455
+ cancelItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1456
+ id: z.ZodString;
1457
+ quantity: z.ZodOptional<z.ZodNumber>;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ id: string;
1460
+ quantity?: number | undefined;
1461
+ }, {
1462
+ id: string;
1463
+ quantity?: number | undefined;
1464
+ }>, "many">>;
1465
+ }, "strip", z.ZodTypeAny, {
1466
+ orderIds: string[];
1467
+ reason?: string | undefined;
1468
+ memo?: string | undefined;
1469
+ identifier?: {
1470
+ type: "email" | "phone" | "membership";
1471
+ value: string;
1472
+ } | undefined;
1473
+ cancelItems?: {
1474
+ id: string;
1475
+ quantity?: number | undefined;
1476
+ }[] | undefined;
1477
+ }, {
1478
+ orderIds: string[];
1479
+ reason?: string | undefined;
1480
+ memo?: string | undefined;
1481
+ identifier?: {
1482
+ type: "email" | "phone" | "membership";
1483
+ value: string;
1484
+ } | undefined;
1485
+ cancelItems?: {
1486
+ id: string;
1487
+ quantity?: number | undefined;
1488
+ }[] | undefined;
1489
+ }>;
1490
+ export type WmsOrderCancelInput = ProtoBacked<z.infer<typeof WmsOrderCancelInputSchema>, ProtoWmsOrderCancelRequest>;
1491
+ export declare const WmsOrderReturnInputSchema: z.ZodObject<{
1492
+ identifier: z.ZodOptional<z.ZodObject<{
1493
+ type: z.ZodEnum<["membership", "phone", "email"]>;
1494
+ value: z.ZodString;
1495
+ }, "strip", z.ZodTypeAny, {
1496
+ type: "email" | "phone" | "membership";
1497
+ value: string;
1498
+ }, {
1499
+ type: "email" | "phone" | "membership";
1500
+ value: string;
1501
+ }>>;
1502
+ orderIds: z.ZodArray<z.ZodString, "many">;
1503
+ reason: z.ZodOptional<z.ZodString>;
1504
+ memo: z.ZodOptional<z.ZodString>;
1505
+ } & {
1506
+ returnItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1507
+ id: z.ZodString;
1508
+ quantity: z.ZodOptional<z.ZodNumber>;
1509
+ }, "strip", z.ZodTypeAny, {
1510
+ id: string;
1511
+ quantity?: number | undefined;
1512
+ }, {
1513
+ id: string;
1514
+ quantity?: number | undefined;
1515
+ }>, "many">>;
1516
+ }, "strip", z.ZodTypeAny, {
1517
+ orderIds: string[];
1518
+ reason?: string | undefined;
1519
+ memo?: string | undefined;
1520
+ identifier?: {
1521
+ type: "email" | "phone" | "membership";
1522
+ value: string;
1523
+ } | undefined;
1524
+ returnItems?: {
1525
+ id: string;
1526
+ quantity?: number | undefined;
1527
+ }[] | undefined;
1528
+ }, {
1529
+ orderIds: string[];
1530
+ reason?: string | undefined;
1531
+ memo?: string | undefined;
1532
+ identifier?: {
1533
+ type: "email" | "phone" | "membership";
1534
+ value: string;
1535
+ } | undefined;
1536
+ returnItems?: {
1537
+ id: string;
1538
+ quantity?: number | undefined;
1539
+ }[] | undefined;
1540
+ }>;
1541
+ export type WmsOrderReturnInput = ProtoBacked<z.infer<typeof WmsOrderReturnInputSchema>, ProtoWmsOrderReturnRequest>;
1542
+ export declare const WmsOrderExchangeInputSchema: z.ZodObject<{
1543
+ identifier: z.ZodOptional<z.ZodObject<{
1544
+ type: z.ZodEnum<["membership", "phone", "email"]>;
1545
+ value: z.ZodString;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ type: "email" | "phone" | "membership";
1548
+ value: string;
1549
+ }, {
1550
+ type: "email" | "phone" | "membership";
1551
+ value: string;
1552
+ }>>;
1553
+ orderIds: z.ZodArray<z.ZodString, "many">;
1554
+ reason: z.ZodOptional<z.ZodString>;
1555
+ memo: z.ZodOptional<z.ZodString>;
1556
+ } & {
1557
+ beforeExchangeItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1558
+ id: z.ZodString;
1559
+ quantity: z.ZodOptional<z.ZodNumber>;
1560
+ }, "strip", z.ZodTypeAny, {
1561
+ id: string;
1562
+ quantity?: number | undefined;
1563
+ }, {
1564
+ id: string;
1565
+ quantity?: number | undefined;
1566
+ }>, "many">>;
1567
+ afterExchangeItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1568
+ productId: z.ZodOptional<z.ZodString>;
1569
+ } & {
1570
+ variantId: z.ZodString;
1571
+ quantity: z.ZodOptional<z.ZodNumber>;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ variantId: string;
1574
+ quantity?: number | undefined;
1575
+ productId?: string | undefined;
1576
+ }, {
1577
+ variantId: string;
1578
+ quantity?: number | undefined;
1579
+ productId?: string | undefined;
1580
+ }>, "many">>;
1581
+ }, "strip", z.ZodTypeAny, {
1582
+ orderIds: string[];
1583
+ reason?: string | undefined;
1584
+ memo?: string | undefined;
1585
+ identifier?: {
1586
+ type: "email" | "phone" | "membership";
1587
+ value: string;
1588
+ } | undefined;
1589
+ beforeExchangeItems?: {
1590
+ id: string;
1591
+ quantity?: number | undefined;
1592
+ }[] | undefined;
1593
+ afterExchangeItems?: {
1594
+ variantId: string;
1595
+ quantity?: number | undefined;
1596
+ productId?: string | undefined;
1597
+ }[] | undefined;
1598
+ }, {
1599
+ orderIds: string[];
1600
+ reason?: string | undefined;
1601
+ memo?: string | undefined;
1602
+ identifier?: {
1603
+ type: "email" | "phone" | "membership";
1604
+ value: string;
1605
+ } | undefined;
1606
+ beforeExchangeItems?: {
1607
+ id: string;
1608
+ quantity?: number | undefined;
1609
+ }[] | undefined;
1610
+ afterExchangeItems?: {
1611
+ variantId: string;
1612
+ quantity?: number | undefined;
1613
+ productId?: string | undefined;
1614
+ }[] | undefined;
1615
+ }>;
1616
+ export type WmsOrderExchangeInput = ProtoBacked<z.infer<typeof WmsOrderExchangeInputSchema>, ProtoWmsOrderExchangeRequest>;
1617
+ export declare const WmsOrderGetExchangeableItemsInputSchema: z.ZodObject<{
1618
+ identifier: z.ZodOptional<z.ZodObject<{
1619
+ type: z.ZodEnum<["membership", "phone", "email"]>;
1620
+ value: z.ZodString;
1621
+ }, "strip", z.ZodTypeAny, {
1622
+ type: "email" | "phone" | "membership";
1623
+ value: string;
1624
+ }, {
1625
+ type: "email" | "phone" | "membership";
1626
+ value: string;
1627
+ }>>;
1628
+ orderId: z.ZodString;
1629
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1630
+ id: z.ZodString;
1631
+ quantity: z.ZodOptional<z.ZodNumber>;
1632
+ }, "strip", z.ZodTypeAny, {
1633
+ id: string;
1634
+ quantity?: number | undefined;
1635
+ }, {
1636
+ id: string;
1637
+ quantity?: number | undefined;
1638
+ }>, "many">>;
1639
+ }, "strip", z.ZodTypeAny, {
1640
+ orderId: string;
1641
+ items?: {
1642
+ id: string;
1643
+ quantity?: number | undefined;
1644
+ }[] | undefined;
1645
+ identifier?: {
1646
+ type: "email" | "phone" | "membership";
1647
+ value: string;
1648
+ } | undefined;
1649
+ }, {
1650
+ orderId: string;
1651
+ items?: {
1652
+ id: string;
1653
+ quantity?: number | undefined;
1654
+ }[] | undefined;
1655
+ identifier?: {
1656
+ type: "email" | "phone" | "membership";
1657
+ value: string;
1658
+ } | undefined;
1659
+ }>;
1660
+ export type WmsOrderGetExchangeableItemsInput = ProtoBacked<z.infer<typeof WmsOrderGetExchangeableItemsInputSchema>, ProtoWmsOrderGetExchangeableItemsRequest>;
1661
+ export declare const WmsVariantOptionSchema: z.ZodObject<{
1662
+ name: z.ZodString;
1663
+ value: z.ZodString;
1664
+ }, "strip", z.ZodTypeAny, {
1665
+ value: string;
1666
+ name: string;
1667
+ }, {
1668
+ value: string;
1669
+ name: string;
1670
+ }>;
1671
+ export type WmsVariantOption = ProtoBacked<z.infer<typeof WmsVariantOptionSchema>, ProtoWmsVariantOption>;
1672
+ export declare const WmsExchangeableVariantSchema: z.ZodObject<{
1673
+ id: z.ZodString;
1674
+ additionalAmount: z.ZodOptional<z.ZodNumber>;
1675
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1676
+ name: z.ZodString;
1677
+ value: z.ZodString;
1678
+ }, "strip", z.ZodTypeAny, {
1679
+ value: string;
1680
+ name: string;
1681
+ }, {
1682
+ value: string;
1683
+ name: string;
1684
+ }>, "many">>;
1685
+ stockQuantity: z.ZodOptional<z.ZodNumber>;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ id: string;
1688
+ options?: {
1689
+ value: string;
1690
+ name: string;
1691
+ }[] | undefined;
1692
+ additionalAmount?: number | undefined;
1693
+ stockQuantity?: number | undefined;
1694
+ }, {
1695
+ id: string;
1696
+ options?: {
1697
+ value: string;
1698
+ name: string;
1699
+ }[] | undefined;
1700
+ additionalAmount?: number | undefined;
1701
+ stockQuantity?: number | undefined;
1702
+ }>;
1703
+ export type WmsExchangeableVariant = ProtoBacked<z.infer<typeof WmsExchangeableVariantSchema>, ProtoWmsExchangeableVariant>;
1704
+ export declare const WmsExchangeableItemSchema: z.ZodObject<{
1705
+ id: z.ZodString;
1706
+ productId: z.ZodOptional<z.ZodString>;
1707
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1708
+ id: z.ZodString;
1709
+ additionalAmount: z.ZodOptional<z.ZodNumber>;
1710
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1711
+ name: z.ZodString;
1712
+ value: z.ZodString;
1713
+ }, "strip", z.ZodTypeAny, {
1714
+ value: string;
1715
+ name: string;
1716
+ }, {
1717
+ value: string;
1718
+ name: string;
1719
+ }>, "many">>;
1720
+ stockQuantity: z.ZodOptional<z.ZodNumber>;
1721
+ }, "strip", z.ZodTypeAny, {
1722
+ id: string;
1723
+ options?: {
1724
+ value: string;
1725
+ name: string;
1726
+ }[] | undefined;
1727
+ additionalAmount?: number | undefined;
1728
+ stockQuantity?: number | undefined;
1729
+ }, {
1730
+ id: string;
1731
+ options?: {
1732
+ value: string;
1733
+ name: string;
1734
+ }[] | undefined;
1735
+ additionalAmount?: number | undefined;
1736
+ stockQuantity?: number | undefined;
1737
+ }>, "many">>;
1738
+ }, "strip", z.ZodTypeAny, {
1739
+ id: string;
1740
+ productId?: string | undefined;
1741
+ variants?: {
1742
+ id: string;
1743
+ options?: {
1744
+ value: string;
1745
+ name: string;
1746
+ }[] | undefined;
1747
+ additionalAmount?: number | undefined;
1748
+ stockQuantity?: number | undefined;
1749
+ }[] | undefined;
1750
+ }, {
1751
+ id: string;
1752
+ productId?: string | undefined;
1753
+ variants?: {
1754
+ id: string;
1755
+ options?: {
1756
+ value: string;
1757
+ name: string;
1758
+ }[] | undefined;
1759
+ additionalAmount?: number | undefined;
1760
+ stockQuantity?: number | undefined;
1761
+ }[] | undefined;
1762
+ }>;
1763
+ export type WmsExchangeableItem = ProtoBacked<z.infer<typeof WmsExchangeableItemSchema>, ProtoWmsExchangeableItem>;
1764
+ export declare const WmsOrderGetExchangeableItemsOutputSchema: z.ZodObject<{
1765
+ exchangeableItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1766
+ id: z.ZodString;
1767
+ productId: z.ZodOptional<z.ZodString>;
1768
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1769
+ id: z.ZodString;
1770
+ additionalAmount: z.ZodOptional<z.ZodNumber>;
1771
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1772
+ name: z.ZodString;
1773
+ value: z.ZodString;
1774
+ }, "strip", z.ZodTypeAny, {
1775
+ value: string;
1776
+ name: string;
1777
+ }, {
1778
+ value: string;
1779
+ name: string;
1780
+ }>, "many">>;
1781
+ stockQuantity: z.ZodOptional<z.ZodNumber>;
1782
+ }, "strip", z.ZodTypeAny, {
1783
+ id: string;
1784
+ options?: {
1785
+ value: string;
1786
+ name: string;
1787
+ }[] | undefined;
1788
+ additionalAmount?: number | undefined;
1789
+ stockQuantity?: number | undefined;
1790
+ }, {
1791
+ id: string;
1792
+ options?: {
1793
+ value: string;
1794
+ name: string;
1795
+ }[] | undefined;
1796
+ additionalAmount?: number | undefined;
1797
+ stockQuantity?: number | undefined;
1798
+ }>, "many">>;
1799
+ }, "strip", z.ZodTypeAny, {
1800
+ id: string;
1801
+ productId?: string | undefined;
1802
+ variants?: {
1803
+ id: string;
1804
+ options?: {
1805
+ value: string;
1806
+ name: string;
1807
+ }[] | undefined;
1808
+ additionalAmount?: number | undefined;
1809
+ stockQuantity?: number | undefined;
1810
+ }[] | undefined;
1811
+ }, {
1812
+ id: string;
1813
+ productId?: string | undefined;
1814
+ variants?: {
1815
+ id: string;
1816
+ options?: {
1817
+ value: string;
1818
+ name: string;
1819
+ }[] | undefined;
1820
+ additionalAmount?: number | undefined;
1821
+ stockQuantity?: number | undefined;
1822
+ }[] | undefined;
1823
+ }>, "many">>;
1824
+ }, "strip", z.ZodTypeAny, {
1825
+ exchangeableItems?: {
1826
+ id: string;
1827
+ productId?: string | undefined;
1828
+ variants?: {
1829
+ id: string;
1830
+ options?: {
1831
+ value: string;
1832
+ name: string;
1833
+ }[] | undefined;
1834
+ additionalAmount?: number | undefined;
1835
+ stockQuantity?: number | undefined;
1836
+ }[] | undefined;
1837
+ }[] | undefined;
1838
+ }, {
1839
+ exchangeableItems?: {
1840
+ id: string;
1841
+ productId?: string | undefined;
1842
+ variants?: {
1843
+ id: string;
1844
+ options?: {
1845
+ value: string;
1846
+ name: string;
1847
+ }[] | undefined;
1848
+ additionalAmount?: number | undefined;
1849
+ stockQuantity?: number | undefined;
1850
+ }[] | undefined;
1851
+ }[] | undefined;
1852
+ }>;
1853
+ export type WmsOrderGetExchangeableItemsOutput = ProtoBacked<z.infer<typeof WmsOrderGetExchangeableItemsOutputSchema>, ProtoWmsOrderGetExchangeableItemsResult>;
1429
1854
  export declare const WmsOrderActionOutputSchema: z.ZodObject<{
1430
1855
  result: z.ZodObject<{
1431
1856
  success: z.ZodBoolean;
@@ -2132,6 +2557,70 @@ export declare const WmsAppCapabilitiesSchema: z.ZodObject<{
2132
2557
  description?: string | undefined;
2133
2558
  }> | undefined;
2134
2559
  }>>;
2560
+ getExchangeableItemsOptions: z.ZodOptional<z.ZodObject<{
2561
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2562
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2563
+ fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2564
+ type: z.ZodLiteral<"enum">;
2565
+ allowedValues: z.ZodArray<z.ZodObject<{
2566
+ value: z.ZodString;
2567
+ label: z.ZodString;
2568
+ }, "strip", z.ZodTypeAny, {
2569
+ value: string;
2570
+ label: string;
2571
+ }, {
2572
+ value: string;
2573
+ label: string;
2574
+ }>, "many">;
2575
+ }, "strip", z.ZodTypeAny, {
2576
+ type: "enum";
2577
+ allowedValues: {
2578
+ value: string;
2579
+ label: string;
2580
+ }[];
2581
+ }, {
2582
+ type: "enum";
2583
+ allowedValues: {
2584
+ value: string;
2585
+ label: string;
2586
+ }[];
2587
+ }>, z.ZodObject<{
2588
+ type: z.ZodLiteral<"freeform">;
2589
+ description: z.ZodOptional<z.ZodString>;
2590
+ }, "strip", z.ZodTypeAny, {
2591
+ type: "freeform";
2592
+ description?: string | undefined;
2593
+ }, {
2594
+ type: "freeform";
2595
+ description?: string | undefined;
2596
+ }>]>>>;
2597
+ }, "strip", z.ZodTypeAny, {
2598
+ required?: string[] | undefined;
2599
+ optional?: string[] | undefined;
2600
+ fieldConfigs?: Record<string, {
2601
+ type: "enum";
2602
+ allowedValues: {
2603
+ value: string;
2604
+ label: string;
2605
+ }[];
2606
+ } | {
2607
+ type: "freeform";
2608
+ description?: string | undefined;
2609
+ }> | undefined;
2610
+ }, {
2611
+ required?: string[] | undefined;
2612
+ optional?: string[] | undefined;
2613
+ fieldConfigs?: Record<string, {
2614
+ type: "enum";
2615
+ allowedValues: {
2616
+ value: string;
2617
+ label: string;
2618
+ }[];
2619
+ } | {
2620
+ type: "freeform";
2621
+ description?: string | undefined;
2622
+ }> | undefined;
2623
+ }>>;
2135
2624
  }, "strip", z.ZodTypeAny, {
2136
2625
  getOrdersOptions?: {
2137
2626
  required?: string[] | undefined;
@@ -2245,6 +2734,20 @@ export declare const WmsAppCapabilitiesSchema: z.ZodObject<{
2245
2734
  description?: string | undefined;
2246
2735
  }> | undefined;
2247
2736
  } | undefined;
2737
+ getExchangeableItemsOptions?: {
2738
+ required?: string[] | undefined;
2739
+ optional?: string[] | undefined;
2740
+ fieldConfigs?: Record<string, {
2741
+ type: "enum";
2742
+ allowedValues: {
2743
+ value: string;
2744
+ label: string;
2745
+ }[];
2746
+ } | {
2747
+ type: "freeform";
2748
+ description?: string | undefined;
2749
+ }> | undefined;
2750
+ } | undefined;
2248
2751
  }, {
2249
2752
  getOrdersOptions?: {
2250
2753
  required?: string[] | undefined;
@@ -2358,6 +2861,20 @@ export declare const WmsAppCapabilitiesSchema: z.ZodObject<{
2358
2861
  description?: string | undefined;
2359
2862
  }> | undefined;
2360
2863
  } | undefined;
2864
+ getExchangeableItemsOptions?: {
2865
+ required?: string[] | undefined;
2866
+ optional?: string[] | undefined;
2867
+ fieldConfigs?: Record<string, {
2868
+ type: "enum";
2869
+ allowedValues: {
2870
+ value: string;
2871
+ label: string;
2872
+ }[];
2873
+ } | {
2874
+ type: "freeform";
2875
+ description?: string | undefined;
2876
+ }> | undefined;
2877
+ } | undefined;
2361
2878
  }>;
2362
2879
  export type WmsAppCapabilities = ProtoBacked<z.infer<typeof WmsAppCapabilitiesSchema>, ProtoWmsAppCapabilities>;
2363
2880
  export declare const WmsGetAppConfigsInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -2876,6 +3393,70 @@ export declare const WmsGetAppConfigsOutputSchema: z.ZodObject<{
2876
3393
  description?: string | undefined;
2877
3394
  }> | undefined;
2878
3395
  }>>;
3396
+ getExchangeableItemsOptions: z.ZodOptional<z.ZodObject<{
3397
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3398
+ optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3399
+ fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3400
+ type: z.ZodLiteral<"enum">;
3401
+ allowedValues: z.ZodArray<z.ZodObject<{
3402
+ value: z.ZodString;
3403
+ label: z.ZodString;
3404
+ }, "strip", z.ZodTypeAny, {
3405
+ value: string;
3406
+ label: string;
3407
+ }, {
3408
+ value: string;
3409
+ label: string;
3410
+ }>, "many">;
3411
+ }, "strip", z.ZodTypeAny, {
3412
+ type: "enum";
3413
+ allowedValues: {
3414
+ value: string;
3415
+ label: string;
3416
+ }[];
3417
+ }, {
3418
+ type: "enum";
3419
+ allowedValues: {
3420
+ value: string;
3421
+ label: string;
3422
+ }[];
3423
+ }>, z.ZodObject<{
3424
+ type: z.ZodLiteral<"freeform">;
3425
+ description: z.ZodOptional<z.ZodString>;
3426
+ }, "strip", z.ZodTypeAny, {
3427
+ type: "freeform";
3428
+ description?: string | undefined;
3429
+ }, {
3430
+ type: "freeform";
3431
+ description?: string | undefined;
3432
+ }>]>>>;
3433
+ }, "strip", z.ZodTypeAny, {
3434
+ required?: string[] | undefined;
3435
+ optional?: string[] | undefined;
3436
+ fieldConfigs?: Record<string, {
3437
+ type: "enum";
3438
+ allowedValues: {
3439
+ value: string;
3440
+ label: string;
3441
+ }[];
3442
+ } | {
3443
+ type: "freeform";
3444
+ description?: string | undefined;
3445
+ }> | undefined;
3446
+ }, {
3447
+ required?: string[] | undefined;
3448
+ optional?: string[] | undefined;
3449
+ fieldConfigs?: Record<string, {
3450
+ type: "enum";
3451
+ allowedValues: {
3452
+ value: string;
3453
+ label: string;
3454
+ }[];
3455
+ } | {
3456
+ type: "freeform";
3457
+ description?: string | undefined;
3458
+ }> | undefined;
3459
+ }>>;
2879
3460
  }, "strip", z.ZodTypeAny, {
2880
3461
  getOrdersOptions?: {
2881
3462
  required?: string[] | undefined;
@@ -2989,6 +3570,20 @@ export declare const WmsGetAppConfigsOutputSchema: z.ZodObject<{
2989
3570
  description?: string | undefined;
2990
3571
  }> | undefined;
2991
3572
  } | undefined;
3573
+ getExchangeableItemsOptions?: {
3574
+ required?: string[] | undefined;
3575
+ optional?: string[] | undefined;
3576
+ fieldConfigs?: Record<string, {
3577
+ type: "enum";
3578
+ allowedValues: {
3579
+ value: string;
3580
+ label: string;
3581
+ }[];
3582
+ } | {
3583
+ type: "freeform";
3584
+ description?: string | undefined;
3585
+ }> | undefined;
3586
+ } | undefined;
2992
3587
  }, {
2993
3588
  getOrdersOptions?: {
2994
3589
  required?: string[] | undefined;
@@ -3102,6 +3697,20 @@ export declare const WmsGetAppConfigsOutputSchema: z.ZodObject<{
3102
3697
  description?: string | undefined;
3103
3698
  }> | undefined;
3104
3699
  } | undefined;
3700
+ getExchangeableItemsOptions?: {
3701
+ required?: string[] | undefined;
3702
+ optional?: string[] | undefined;
3703
+ fieldConfigs?: Record<string, {
3704
+ type: "enum";
3705
+ allowedValues: {
3706
+ value: string;
3707
+ label: string;
3708
+ }[];
3709
+ } | {
3710
+ type: "freeform";
3711
+ description?: string | undefined;
3712
+ }> | undefined;
3713
+ } | undefined;
3105
3714
  }>>;
3106
3715
  }, "strip", z.ZodTypeAny, {
3107
3716
  appCapabilities?: {
@@ -3217,6 +3826,20 @@ export declare const WmsGetAppConfigsOutputSchema: z.ZodObject<{
3217
3826
  description?: string | undefined;
3218
3827
  }> | undefined;
3219
3828
  } | undefined;
3829
+ getExchangeableItemsOptions?: {
3830
+ required?: string[] | undefined;
3831
+ optional?: string[] | undefined;
3832
+ fieldConfigs?: Record<string, {
3833
+ type: "enum";
3834
+ allowedValues: {
3835
+ value: string;
3836
+ label: string;
3837
+ }[];
3838
+ } | {
3839
+ type: "freeform";
3840
+ description?: string | undefined;
3841
+ }> | undefined;
3842
+ } | undefined;
3220
3843
  } | undefined;
3221
3844
  }, {
3222
3845
  appCapabilities?: {
@@ -3332,6 +3955,20 @@ export declare const WmsGetAppConfigsOutputSchema: z.ZodObject<{
3332
3955
  description?: string | undefined;
3333
3956
  }> | undefined;
3334
3957
  } | undefined;
3958
+ getExchangeableItemsOptions?: {
3959
+ required?: string[] | undefined;
3960
+ optional?: string[] | undefined;
3961
+ fieldConfigs?: Record<string, {
3962
+ type: "enum";
3963
+ allowedValues: {
3964
+ value: string;
3965
+ label: string;
3966
+ }[];
3967
+ } | {
3968
+ type: "freeform";
3969
+ description?: string | undefined;
3970
+ }> | undefined;
3971
+ } | undefined;
3335
3972
  } | undefined;
3336
3973
  }>;
3337
3974
  export type WmsGetAppConfigsOutput = ProtoBacked<z.infer<typeof WmsGetAppConfigsOutputSchema>, ProtoWmsGetAppConfigsOutput>;