arky-sdk 0.7.87 → 0.7.89
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.cjs +437 -369
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -21
- package/dist/index.d.ts +21 -21
- package/dist/index.js +437 -369
- package/dist/index.js.map +1 -1
- package/dist/types.d.cts +115 -87
- package/dist/types.d.ts +115 -87
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1395,6 +1395,7 @@ interface OrderCheckoutParams {
|
|
|
1395
1395
|
billing_address?: Address;
|
|
1396
1396
|
}
|
|
1397
1397
|
interface GetProductsParams {
|
|
1398
|
+
business_id?: string;
|
|
1398
1399
|
ids?: string[];
|
|
1399
1400
|
taxonomy_query?: any[];
|
|
1400
1401
|
status?: string;
|
|
@@ -1408,7 +1409,7 @@ interface GetProductsParams {
|
|
|
1408
1409
|
created_at_to?: number | null;
|
|
1409
1410
|
}
|
|
1410
1411
|
interface GetNodesParams {
|
|
1411
|
-
|
|
1412
|
+
business_id?: string;
|
|
1412
1413
|
parent_id?: string;
|
|
1413
1414
|
limit?: number;
|
|
1414
1415
|
cursor?: string;
|
|
@@ -1423,7 +1424,7 @@ interface GetNodesParams {
|
|
|
1423
1424
|
created_at_to?: string;
|
|
1424
1425
|
}
|
|
1425
1426
|
interface CreateNodeParams {
|
|
1426
|
-
|
|
1427
|
+
business_id?: string;
|
|
1427
1428
|
key: string;
|
|
1428
1429
|
parent_id?: string | null;
|
|
1429
1430
|
blocks?: any[];
|
|
@@ -1434,7 +1435,7 @@ interface CreateNodeParams {
|
|
|
1434
1435
|
}
|
|
1435
1436
|
interface UpdateNodeParams {
|
|
1436
1437
|
id: string;
|
|
1437
|
-
|
|
1438
|
+
business_id?: string;
|
|
1438
1439
|
key?: string;
|
|
1439
1440
|
parent_id?: string | null;
|
|
1440
1441
|
blocks?: any[];
|
|
@@ -1447,38 +1448,38 @@ interface GetNodeParams {
|
|
|
1447
1448
|
id?: string;
|
|
1448
1449
|
slug?: string;
|
|
1449
1450
|
key?: string;
|
|
1450
|
-
|
|
1451
|
+
business_id?: string;
|
|
1451
1452
|
}
|
|
1452
1453
|
interface DeleteNodeParams {
|
|
1453
1454
|
id: string;
|
|
1454
|
-
|
|
1455
|
+
business_id?: string;
|
|
1455
1456
|
}
|
|
1456
1457
|
interface GetNodeChildrenParams {
|
|
1457
1458
|
id: string;
|
|
1458
|
-
|
|
1459
|
+
business_id?: string;
|
|
1459
1460
|
limit?: number;
|
|
1460
1461
|
cursor?: string;
|
|
1461
1462
|
}
|
|
1462
1463
|
interface UploadBusinessMediaParams {
|
|
1463
|
-
|
|
1464
|
+
business_id?: string;
|
|
1464
1465
|
files?: File[];
|
|
1465
1466
|
urls?: string[];
|
|
1466
1467
|
}
|
|
1467
1468
|
interface DeleteBusinessMediaParams {
|
|
1468
1469
|
id: string;
|
|
1469
|
-
|
|
1470
|
+
media_id: string;
|
|
1470
1471
|
}
|
|
1471
1472
|
interface GetMediaParams {
|
|
1472
|
-
|
|
1473
|
-
|
|
1473
|
+
media_id: string;
|
|
1474
|
+
business_id?: string;
|
|
1474
1475
|
}
|
|
1475
1476
|
interface UpdateMediaParams {
|
|
1476
|
-
|
|
1477
|
-
|
|
1477
|
+
media_id: string;
|
|
1478
|
+
business_id?: string;
|
|
1478
1479
|
slug?: Record<string, string>;
|
|
1479
1480
|
}
|
|
1480
1481
|
interface GetBusinessMediaParams {
|
|
1481
|
-
|
|
1482
|
+
business_id?: string;
|
|
1482
1483
|
cursor?: string | null;
|
|
1483
1484
|
limit: number;
|
|
1484
1485
|
ids?: string[];
|
|
@@ -1501,7 +1502,7 @@ interface MagicLinkVerifyParams {
|
|
|
1501
1502
|
code: string;
|
|
1502
1503
|
}
|
|
1503
1504
|
interface GetServicesParams {
|
|
1504
|
-
|
|
1505
|
+
business_id?: string;
|
|
1505
1506
|
provider_id?: string;
|
|
1506
1507
|
taxonomy_query?: any[];
|
|
1507
1508
|
limit?: number;
|
|
@@ -1513,7 +1514,7 @@ interface GetServicesParams {
|
|
|
1513
1514
|
sort_direction?: string;
|
|
1514
1515
|
}
|
|
1515
1516
|
interface BookingCheckoutParams {
|
|
1516
|
-
|
|
1517
|
+
business_id?: string;
|
|
1517
1518
|
items: any[];
|
|
1518
1519
|
payment_method_id?: string;
|
|
1519
1520
|
forms?: any[];
|
|
@@ -1529,7 +1530,7 @@ interface BookingQuoteItem {
|
|
|
1529
1530
|
slots: SlotRange[];
|
|
1530
1531
|
}
|
|
1531
1532
|
interface GetBookingQuoteParams {
|
|
1532
|
-
|
|
1533
|
+
business_id?: string;
|
|
1533
1534
|
items: BookingQuoteItem[];
|
|
1534
1535
|
payment_method_id?: string;
|
|
1535
1536
|
promo_code?: string;
|
|
@@ -1590,12 +1591,14 @@ interface Condition {
|
|
|
1590
1591
|
};
|
|
1591
1592
|
}
|
|
1592
1593
|
interface CreatePromoCodeParams {
|
|
1594
|
+
business_id?: string;
|
|
1593
1595
|
code: string;
|
|
1594
1596
|
discounts: Discount[];
|
|
1595
1597
|
conditions: Condition[];
|
|
1596
1598
|
}
|
|
1597
1599
|
interface UpdatePromoCodeParams {
|
|
1598
1600
|
id: string;
|
|
1601
|
+
business_id?: string;
|
|
1599
1602
|
code: string;
|
|
1600
1603
|
discounts: Discount[];
|
|
1601
1604
|
conditions: Condition[];
|
|
@@ -1603,11 +1606,14 @@ interface UpdatePromoCodeParams {
|
|
|
1603
1606
|
}
|
|
1604
1607
|
interface DeletePromoCodeParams {
|
|
1605
1608
|
id: string;
|
|
1609
|
+
business_id?: string;
|
|
1606
1610
|
}
|
|
1607
1611
|
interface GetPromoCodeParams {
|
|
1608
1612
|
id: string;
|
|
1613
|
+
business_id?: string;
|
|
1609
1614
|
}
|
|
1610
1615
|
interface GetPromoCodesParams {
|
|
1616
|
+
business_id?: string;
|
|
1611
1617
|
statuses?: string[];
|
|
1612
1618
|
query?: string;
|
|
1613
1619
|
limit?: number;
|
|
@@ -1644,12 +1650,14 @@ interface DeleteBusinessParams {
|
|
|
1644
1650
|
interface GetBusinessParams {
|
|
1645
1651
|
}
|
|
1646
1652
|
interface SubscribeParams {
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1653
|
+
business_id?: string;
|
|
1654
|
+
plan_id: string;
|
|
1655
|
+
success_url: string;
|
|
1656
|
+
cancel_url: string;
|
|
1650
1657
|
}
|
|
1651
1658
|
interface CreatePortalSessionParams {
|
|
1652
|
-
|
|
1659
|
+
business_id?: string;
|
|
1660
|
+
return_url: string;
|
|
1653
1661
|
}
|
|
1654
1662
|
interface InviteUserParams {
|
|
1655
1663
|
email: string;
|
|
@@ -1661,11 +1669,13 @@ interface RemoveMemberParams {
|
|
|
1661
1669
|
interface HandleInvitationParams {
|
|
1662
1670
|
token: string;
|
|
1663
1671
|
action: string;
|
|
1672
|
+
business_id?: string;
|
|
1664
1673
|
}
|
|
1665
1674
|
interface TestWebhookParams {
|
|
1666
1675
|
webhook: any;
|
|
1667
1676
|
}
|
|
1668
1677
|
interface CreateProductParams {
|
|
1678
|
+
business_id?: string;
|
|
1669
1679
|
key: string;
|
|
1670
1680
|
description?: string;
|
|
1671
1681
|
audience_ids?: string[];
|
|
@@ -1677,6 +1687,7 @@ interface CreateProductParams {
|
|
|
1677
1687
|
}
|
|
1678
1688
|
interface UpdateProductParams {
|
|
1679
1689
|
id: string;
|
|
1690
|
+
business_id?: string;
|
|
1680
1691
|
key?: string;
|
|
1681
1692
|
description?: string;
|
|
1682
1693
|
audience_ids?: string[];
|
|
@@ -1689,11 +1700,14 @@ interface UpdateProductParams {
|
|
|
1689
1700
|
interface GetProductParams {
|
|
1690
1701
|
id?: string;
|
|
1691
1702
|
slug?: string;
|
|
1703
|
+
business_id?: string;
|
|
1692
1704
|
}
|
|
1693
1705
|
interface GetOrderParams {
|
|
1694
1706
|
id: string;
|
|
1707
|
+
business_id?: string;
|
|
1695
1708
|
}
|
|
1696
1709
|
interface GetOrdersParams {
|
|
1710
|
+
business_id?: string;
|
|
1697
1711
|
item_statuses?: string[] | null;
|
|
1698
1712
|
product_ids?: string[];
|
|
1699
1713
|
verified?: boolean;
|
|
@@ -1707,6 +1721,7 @@ interface GetOrdersParams {
|
|
|
1707
1721
|
}
|
|
1708
1722
|
interface UpdateOrderParams {
|
|
1709
1723
|
id: string;
|
|
1724
|
+
business_id?: string;
|
|
1710
1725
|
status: string;
|
|
1711
1726
|
blocks: any[];
|
|
1712
1727
|
items: any[];
|
|
@@ -1717,10 +1732,11 @@ interface UpdateOrderParams {
|
|
|
1717
1732
|
cancel?: boolean;
|
|
1718
1733
|
}
|
|
1719
1734
|
interface CreateOrderParams {
|
|
1735
|
+
business_id?: string;
|
|
1720
1736
|
[key: string]: any;
|
|
1721
1737
|
}
|
|
1722
1738
|
interface CreateBookingParams {
|
|
1723
|
-
|
|
1739
|
+
business_id?: string;
|
|
1724
1740
|
[key: string]: any;
|
|
1725
1741
|
}
|
|
1726
1742
|
interface UpdateBookingParams {
|
|
@@ -1732,7 +1748,7 @@ interface UpdateBookingParams {
|
|
|
1732
1748
|
[key: string]: any;
|
|
1733
1749
|
}
|
|
1734
1750
|
interface CreateProviderParams {
|
|
1735
|
-
|
|
1751
|
+
business_id?: string;
|
|
1736
1752
|
key: string;
|
|
1737
1753
|
audience_ids?: string[];
|
|
1738
1754
|
blocks?: any[];
|
|
@@ -1742,7 +1758,7 @@ interface CreateProviderParams {
|
|
|
1742
1758
|
}
|
|
1743
1759
|
interface UpdateProviderParams {
|
|
1744
1760
|
id: string;
|
|
1745
|
-
|
|
1761
|
+
business_id?: string;
|
|
1746
1762
|
key?: string;
|
|
1747
1763
|
audience_ids?: string[];
|
|
1748
1764
|
blocks?: any[];
|
|
@@ -1752,18 +1768,18 @@ interface UpdateProviderParams {
|
|
|
1752
1768
|
}
|
|
1753
1769
|
interface DeleteProviderParams {
|
|
1754
1770
|
id: string;
|
|
1755
|
-
|
|
1771
|
+
business_id?: string;
|
|
1756
1772
|
}
|
|
1757
1773
|
interface ServiceProviderInput {
|
|
1758
1774
|
provider_id: string;
|
|
1759
|
-
|
|
1775
|
+
business_id?: string;
|
|
1760
1776
|
prices?: any[];
|
|
1761
1777
|
durations?: any[];
|
|
1762
1778
|
working_days: WorkingDay[];
|
|
1763
1779
|
specific_dates: SpecificDate[];
|
|
1764
1780
|
}
|
|
1765
1781
|
interface CreateServiceParams {
|
|
1766
|
-
|
|
1782
|
+
business_id?: string;
|
|
1767
1783
|
key: string;
|
|
1768
1784
|
blocks?: any[];
|
|
1769
1785
|
taxonomies?: any[];
|
|
@@ -1772,7 +1788,7 @@ interface CreateServiceParams {
|
|
|
1772
1788
|
}
|
|
1773
1789
|
interface UpdateServiceParams {
|
|
1774
1790
|
id: string;
|
|
1775
|
-
|
|
1791
|
+
business_id?: string;
|
|
1776
1792
|
key?: string;
|
|
1777
1793
|
blocks?: any[];
|
|
1778
1794
|
taxonomies?: any[];
|
|
@@ -1780,7 +1796,7 @@ interface UpdateServiceParams {
|
|
|
1780
1796
|
[key: string]: any;
|
|
1781
1797
|
}
|
|
1782
1798
|
interface CreateServiceProviderParams {
|
|
1783
|
-
|
|
1799
|
+
business_id?: string;
|
|
1784
1800
|
service_id: string;
|
|
1785
1801
|
provider_id: string;
|
|
1786
1802
|
working_days: WorkingDay[];
|
|
@@ -1793,7 +1809,7 @@ interface CreateServiceProviderParams {
|
|
|
1793
1809
|
reminders?: number[];
|
|
1794
1810
|
}
|
|
1795
1811
|
interface UpdateServiceProviderParams {
|
|
1796
|
-
|
|
1812
|
+
business_id?: string;
|
|
1797
1813
|
id: string;
|
|
1798
1814
|
working_days: WorkingDay[];
|
|
1799
1815
|
specific_dates: SpecificDate[];
|
|
@@ -1805,25 +1821,25 @@ interface UpdateServiceProviderParams {
|
|
|
1805
1821
|
reminders?: number[];
|
|
1806
1822
|
}
|
|
1807
1823
|
interface DeleteServiceProviderParams {
|
|
1808
|
-
|
|
1824
|
+
business_id?: string;
|
|
1809
1825
|
id: string;
|
|
1810
1826
|
}
|
|
1811
1827
|
interface FindServiceProvidersParams {
|
|
1812
|
-
|
|
1828
|
+
business_id?: string;
|
|
1813
1829
|
service_id?: string;
|
|
1814
1830
|
provider_id?: string;
|
|
1815
1831
|
}
|
|
1816
1832
|
interface DeleteServiceParams {
|
|
1817
1833
|
id: string;
|
|
1818
|
-
|
|
1834
|
+
business_id?: string;
|
|
1819
1835
|
}
|
|
1820
1836
|
interface GetServiceParams {
|
|
1821
1837
|
id?: string;
|
|
1822
1838
|
slug?: string;
|
|
1823
|
-
|
|
1839
|
+
business_id?: string;
|
|
1824
1840
|
}
|
|
1825
1841
|
interface GetProvidersParams {
|
|
1826
|
-
|
|
1842
|
+
business_id?: string;
|
|
1827
1843
|
service_id?: string;
|
|
1828
1844
|
taxonomy_query?: any[];
|
|
1829
1845
|
ids?: string[];
|
|
@@ -1839,20 +1855,20 @@ interface GetProvidersParams {
|
|
|
1839
1855
|
interface GetProviderParams {
|
|
1840
1856
|
id?: string;
|
|
1841
1857
|
slug?: string;
|
|
1842
|
-
|
|
1858
|
+
business_id?: string;
|
|
1843
1859
|
}
|
|
1844
1860
|
interface GetBookingParams {
|
|
1845
1861
|
id: string;
|
|
1846
|
-
|
|
1862
|
+
business_id?: string;
|
|
1847
1863
|
}
|
|
1848
1864
|
interface CancelBookingItemParams {
|
|
1849
|
-
|
|
1865
|
+
business_id?: string;
|
|
1850
1866
|
booking_id: string;
|
|
1851
1867
|
item_id: string;
|
|
1852
1868
|
reason?: string;
|
|
1853
1869
|
}
|
|
1854
1870
|
interface SearchBookingsParams {
|
|
1855
|
-
|
|
1871
|
+
business_id?: string;
|
|
1856
1872
|
query?: string;
|
|
1857
1873
|
service_ids?: string[];
|
|
1858
1874
|
provider_ids?: string[];
|
|
@@ -1893,7 +1909,7 @@ interface TriggerNotificationParams {
|
|
|
1893
1909
|
vars?: Record<string, any>;
|
|
1894
1910
|
}
|
|
1895
1911
|
interface GetEmailTemplatesParams {
|
|
1896
|
-
|
|
1912
|
+
business_id?: string;
|
|
1897
1913
|
limit?: number;
|
|
1898
1914
|
cursor?: string;
|
|
1899
1915
|
ids?: string[];
|
|
@@ -1906,7 +1922,7 @@ interface GetEmailTemplatesParams {
|
|
|
1906
1922
|
created_at_to?: number;
|
|
1907
1923
|
}
|
|
1908
1924
|
interface CreateEmailTemplateParams {
|
|
1909
|
-
|
|
1925
|
+
business_id?: string;
|
|
1910
1926
|
key: string;
|
|
1911
1927
|
subject?: Record<string, string>;
|
|
1912
1928
|
body?: string;
|
|
@@ -1917,7 +1933,7 @@ interface CreateEmailTemplateParams {
|
|
|
1917
1933
|
}
|
|
1918
1934
|
interface UpdateEmailTemplateParams {
|
|
1919
1935
|
id: string;
|
|
1920
|
-
|
|
1936
|
+
business_id?: string;
|
|
1921
1937
|
key?: string;
|
|
1922
1938
|
subject?: Record<string, string>;
|
|
1923
1939
|
body?: string;
|
|
@@ -1930,14 +1946,14 @@ interface UpdateEmailTemplateParams {
|
|
|
1930
1946
|
interface GetEmailTemplateParams {
|
|
1931
1947
|
id?: string;
|
|
1932
1948
|
key?: string;
|
|
1933
|
-
|
|
1949
|
+
business_id?: string;
|
|
1934
1950
|
}
|
|
1935
1951
|
interface DeleteEmailTemplateParams {
|
|
1936
1952
|
id: string;
|
|
1937
|
-
|
|
1953
|
+
business_id?: string;
|
|
1938
1954
|
}
|
|
1939
1955
|
interface GetFormsParams {
|
|
1940
|
-
|
|
1956
|
+
business_id?: string;
|
|
1941
1957
|
limit?: number;
|
|
1942
1958
|
cursor?: string;
|
|
1943
1959
|
ids?: string[];
|
|
@@ -1950,13 +1966,13 @@ interface GetFormsParams {
|
|
|
1950
1966
|
created_at_to?: number;
|
|
1951
1967
|
}
|
|
1952
1968
|
interface CreateFormParams {
|
|
1953
|
-
|
|
1969
|
+
business_id?: string;
|
|
1954
1970
|
key: string;
|
|
1955
1971
|
schema?: any[];
|
|
1956
1972
|
}
|
|
1957
1973
|
interface UpdateFormParams {
|
|
1958
1974
|
id: string;
|
|
1959
|
-
|
|
1975
|
+
business_id?: string;
|
|
1960
1976
|
key?: string;
|
|
1961
1977
|
schema?: any[];
|
|
1962
1978
|
status?: string;
|
|
@@ -1964,20 +1980,20 @@ interface UpdateFormParams {
|
|
|
1964
1980
|
interface GetFormParams {
|
|
1965
1981
|
id?: string;
|
|
1966
1982
|
key?: string;
|
|
1967
|
-
|
|
1983
|
+
business_id?: string;
|
|
1968
1984
|
}
|
|
1969
1985
|
interface DeleteFormParams {
|
|
1970
1986
|
id: string;
|
|
1971
|
-
|
|
1987
|
+
business_id?: string;
|
|
1972
1988
|
}
|
|
1973
1989
|
interface SubmitFormParams {
|
|
1974
|
-
|
|
1975
|
-
|
|
1990
|
+
form_id: string;
|
|
1991
|
+
business_id?: string;
|
|
1976
1992
|
fields: any[];
|
|
1977
1993
|
}
|
|
1978
1994
|
interface GetFormSubmissionsParams {
|
|
1979
|
-
|
|
1980
|
-
|
|
1995
|
+
form_id: string;
|
|
1996
|
+
business_id?: string;
|
|
1981
1997
|
query?: string;
|
|
1982
1998
|
limit?: number;
|
|
1983
1999
|
cursor?: string;
|
|
@@ -1988,17 +2004,17 @@ interface GetFormSubmissionsParams {
|
|
|
1988
2004
|
}
|
|
1989
2005
|
interface GetFormSubmissionParams {
|
|
1990
2006
|
id: string;
|
|
1991
|
-
|
|
1992
|
-
|
|
2007
|
+
form_id: string;
|
|
2008
|
+
business_id?: string;
|
|
1993
2009
|
}
|
|
1994
2010
|
interface UpdateFormSubmissionParams {
|
|
1995
2011
|
id: string;
|
|
1996
|
-
|
|
1997
|
-
|
|
2012
|
+
form_id: string;
|
|
2013
|
+
business_id?: string;
|
|
1998
2014
|
fields: any[];
|
|
1999
2015
|
}
|
|
2000
2016
|
interface GetTaxonomiesParams {
|
|
2001
|
-
|
|
2017
|
+
business_id?: string;
|
|
2002
2018
|
parent_id?: string;
|
|
2003
2019
|
limit?: number;
|
|
2004
2020
|
cursor?: string;
|
|
@@ -2012,14 +2028,14 @@ interface GetTaxonomiesParams {
|
|
|
2012
2028
|
created_at_to?: number;
|
|
2013
2029
|
}
|
|
2014
2030
|
interface CreateTaxonomyParams {
|
|
2015
|
-
|
|
2031
|
+
business_id?: string;
|
|
2016
2032
|
key: string;
|
|
2017
2033
|
parent_id?: string | null;
|
|
2018
2034
|
schema?: any[];
|
|
2019
2035
|
}
|
|
2020
2036
|
interface UpdateTaxonomyParams {
|
|
2021
2037
|
id: string;
|
|
2022
|
-
|
|
2038
|
+
business_id?: string;
|
|
2023
2039
|
key?: string;
|
|
2024
2040
|
parent_id?: string | null;
|
|
2025
2041
|
schema?: any[];
|
|
@@ -2028,15 +2044,15 @@ interface UpdateTaxonomyParams {
|
|
|
2028
2044
|
interface GetTaxonomyParams {
|
|
2029
2045
|
id?: string;
|
|
2030
2046
|
key?: string;
|
|
2031
|
-
|
|
2047
|
+
business_id?: string;
|
|
2032
2048
|
}
|
|
2033
2049
|
interface DeleteTaxonomyParams {
|
|
2034
2050
|
id: string;
|
|
2035
|
-
|
|
2051
|
+
business_id?: string;
|
|
2036
2052
|
}
|
|
2037
2053
|
interface GetTaxonomyChildrenParams {
|
|
2038
2054
|
id: string;
|
|
2039
|
-
|
|
2055
|
+
business_id?: string;
|
|
2040
2056
|
}
|
|
2041
2057
|
interface GetMeParams {
|
|
2042
2058
|
}
|
|
@@ -2066,6 +2082,7 @@ interface GetBusinessMediaParams2 {
|
|
|
2066
2082
|
}
|
|
2067
2083
|
interface DeleteProductParams {
|
|
2068
2084
|
id: string;
|
|
2085
|
+
business_id?: string;
|
|
2069
2086
|
}
|
|
2070
2087
|
interface DeleteProductParams {
|
|
2071
2088
|
id: string;
|
|
@@ -2080,7 +2097,7 @@ interface ProcessOrderRefundParams {
|
|
|
2080
2097
|
}
|
|
2081
2098
|
type SystemTemplateKey = "system:booking-business-update" | "system:booking-customer-update" | "system:user-invitation" | "system:order-status-update" | "system:user-confirmation" | "system:forgot-password";
|
|
2082
2099
|
interface GetAvailabilityParams {
|
|
2083
|
-
|
|
2100
|
+
business_id?: string;
|
|
2084
2101
|
service_id: string;
|
|
2085
2102
|
from: number;
|
|
2086
2103
|
to: number;
|
|
@@ -2115,7 +2132,7 @@ interface Slot {
|
|
|
2115
2132
|
date_text: string;
|
|
2116
2133
|
}
|
|
2117
2134
|
interface CreateWorkflowParams {
|
|
2118
|
-
|
|
2135
|
+
business_id?: string;
|
|
2119
2136
|
key: string;
|
|
2120
2137
|
status?: WorkflowStatus;
|
|
2121
2138
|
nodes: Record<string, WorkflowNode>;
|
|
@@ -2124,6 +2141,7 @@ interface CreateWorkflowParams {
|
|
|
2124
2141
|
}
|
|
2125
2142
|
interface UpdateWorkflowParams {
|
|
2126
2143
|
id: string;
|
|
2144
|
+
business_id?: string;
|
|
2127
2145
|
key: string;
|
|
2128
2146
|
status?: WorkflowStatus;
|
|
2129
2147
|
nodes: Record<string, WorkflowNode>;
|
|
@@ -2132,12 +2150,14 @@ interface UpdateWorkflowParams {
|
|
|
2132
2150
|
}
|
|
2133
2151
|
interface DeleteWorkflowParams {
|
|
2134
2152
|
id: string;
|
|
2153
|
+
business_id?: string;
|
|
2135
2154
|
}
|
|
2136
2155
|
interface GetWorkflowParams {
|
|
2137
2156
|
id: string;
|
|
2157
|
+
business_id?: string;
|
|
2138
2158
|
}
|
|
2139
2159
|
interface GetWorkflowsParams {
|
|
2140
|
-
|
|
2160
|
+
business_id?: string;
|
|
2141
2161
|
ids?: string[];
|
|
2142
2162
|
query?: string;
|
|
2143
2163
|
statuses?: string[];
|
|
@@ -2154,7 +2174,7 @@ interface TriggerWorkflowParams {
|
|
|
2154
2174
|
}
|
|
2155
2175
|
interface GetWorkflowExecutionsParams {
|
|
2156
2176
|
workflow_id: string;
|
|
2157
|
-
|
|
2177
|
+
business_id?: string;
|
|
2158
2178
|
status?: string;
|
|
2159
2179
|
limit?: number;
|
|
2160
2180
|
cursor?: string;
|
|
@@ -2162,7 +2182,7 @@ interface GetWorkflowExecutionsParams {
|
|
|
2162
2182
|
interface GetWorkflowExecutionParams {
|
|
2163
2183
|
workflow_id: string;
|
|
2164
2184
|
execution_id: string;
|
|
2165
|
-
|
|
2185
|
+
business_id?: string;
|
|
2166
2186
|
}
|
|
2167
2187
|
interface CreateAudienceParams {
|
|
2168
2188
|
key: string;
|
|
@@ -2222,42 +2242,42 @@ interface AddAudienceSubscriberResponse {
|
|
|
2222
2242
|
skipped: boolean;
|
|
2223
2243
|
}
|
|
2224
2244
|
interface OAuthConnectParams {
|
|
2225
|
-
|
|
2245
|
+
business_id: string;
|
|
2226
2246
|
provider: string;
|
|
2227
2247
|
code: string;
|
|
2228
2248
|
redirect_uri: string;
|
|
2229
2249
|
}
|
|
2230
2250
|
interface OAuthDisconnectParams {
|
|
2231
|
-
|
|
2251
|
+
business_id: string;
|
|
2232
2252
|
provider: string;
|
|
2233
2253
|
}
|
|
2234
2254
|
interface ListIntegrationsParams {
|
|
2235
|
-
|
|
2255
|
+
business_id: string;
|
|
2236
2256
|
}
|
|
2237
2257
|
interface GetIntegrationParams {
|
|
2238
|
-
|
|
2258
|
+
business_id: string;
|
|
2239
2259
|
id: string;
|
|
2240
2260
|
}
|
|
2241
2261
|
interface CreateIntegrationParams {
|
|
2242
|
-
|
|
2262
|
+
business_id: string;
|
|
2243
2263
|
key: string;
|
|
2244
2264
|
provider: IntegrationProvider;
|
|
2245
2265
|
}
|
|
2246
2266
|
interface UpdateIntegrationParams {
|
|
2247
|
-
|
|
2267
|
+
business_id: string;
|
|
2248
2268
|
id: string;
|
|
2249
2269
|
key?: string;
|
|
2250
2270
|
provider?: IntegrationProvider;
|
|
2251
2271
|
}
|
|
2252
2272
|
interface DeleteIntegrationParams {
|
|
2253
|
-
|
|
2273
|
+
business_id: string;
|
|
2254
2274
|
id: string;
|
|
2255
2275
|
}
|
|
2256
2276
|
interface ListWebhooksParams {
|
|
2257
|
-
|
|
2277
|
+
business_id: string;
|
|
2258
2278
|
}
|
|
2259
2279
|
interface CreateWebhookParams {
|
|
2260
|
-
|
|
2280
|
+
business_id: string;
|
|
2261
2281
|
key: string;
|
|
2262
2282
|
url: string;
|
|
2263
2283
|
events: WebhookEventSubscription[];
|
|
@@ -2266,7 +2286,7 @@ interface CreateWebhookParams {
|
|
|
2266
2286
|
enabled: boolean;
|
|
2267
2287
|
}
|
|
2268
2288
|
interface UpdateWebhookParams {
|
|
2269
|
-
|
|
2289
|
+
business_id: string;
|
|
2270
2290
|
id: string;
|
|
2271
2291
|
key: string;
|
|
2272
2292
|
url: string;
|
|
@@ -2276,7 +2296,7 @@ interface UpdateWebhookParams {
|
|
|
2276
2296
|
enabled: boolean;
|
|
2277
2297
|
}
|
|
2278
2298
|
interface DeleteWebhookParams {
|
|
2279
|
-
|
|
2299
|
+
business_id: string;
|
|
2280
2300
|
id: string;
|
|
2281
2301
|
}
|
|
2282
2302
|
interface GetShippingRatesParams {
|
|
@@ -2297,7 +2317,7 @@ interface ShipParams {
|
|
|
2297
2317
|
}
|
|
2298
2318
|
type AgentStatus = 'active' | 'draft' | 'archived';
|
|
2299
2319
|
interface CreateAgentParams {
|
|
2300
|
-
|
|
2320
|
+
business_id?: string;
|
|
2301
2321
|
key: string;
|
|
2302
2322
|
prompt: string;
|
|
2303
2323
|
status?: AgentStatus;
|
|
@@ -2306,6 +2326,7 @@ interface CreateAgentParams {
|
|
|
2306
2326
|
}
|
|
2307
2327
|
interface UpdateAgentParams {
|
|
2308
2328
|
id: string;
|
|
2329
|
+
business_id?: string;
|
|
2309
2330
|
key: string;
|
|
2310
2331
|
prompt: string;
|
|
2311
2332
|
status: AgentStatus;
|
|
@@ -2314,28 +2335,32 @@ interface UpdateAgentParams {
|
|
|
2314
2335
|
}
|
|
2315
2336
|
interface DeleteAgentParams {
|
|
2316
2337
|
id: string;
|
|
2338
|
+
business_id?: string;
|
|
2317
2339
|
}
|
|
2318
2340
|
interface GetAgentParams {
|
|
2319
2341
|
id: string;
|
|
2342
|
+
business_id?: string;
|
|
2320
2343
|
}
|
|
2321
2344
|
interface GetAgentsParams {
|
|
2322
|
-
|
|
2345
|
+
business_id?: string;
|
|
2323
2346
|
limit?: number;
|
|
2324
2347
|
cursor?: string;
|
|
2325
2348
|
}
|
|
2326
2349
|
interface RunAgentParams {
|
|
2327
2350
|
id: string;
|
|
2351
|
+
business_id?: string;
|
|
2328
2352
|
message: string;
|
|
2329
2353
|
chat_id?: string;
|
|
2330
2354
|
direct?: boolean;
|
|
2331
2355
|
}
|
|
2332
2356
|
interface GetAgentChatsParams {
|
|
2333
2357
|
id: string;
|
|
2358
|
+
business_id?: string;
|
|
2334
2359
|
limit?: number;
|
|
2335
2360
|
cursor?: string;
|
|
2336
2361
|
}
|
|
2337
2362
|
interface GetBusinessChatsParams {
|
|
2338
|
-
|
|
2363
|
+
business_id?: string;
|
|
2339
2364
|
agent_id?: string;
|
|
2340
2365
|
status?: string;
|
|
2341
2366
|
query?: string;
|
|
@@ -2346,15 +2371,18 @@ interface GetBusinessChatsParams {
|
|
|
2346
2371
|
}
|
|
2347
2372
|
interface GetAgentChatParams {
|
|
2348
2373
|
id: string;
|
|
2374
|
+
business_id?: string;
|
|
2349
2375
|
chat_id: string;
|
|
2350
2376
|
}
|
|
2351
2377
|
interface UpdateAgentChatParams {
|
|
2352
2378
|
id: string;
|
|
2379
|
+
business_id?: string;
|
|
2353
2380
|
chat_id: string;
|
|
2354
2381
|
status: 'active' | 'archived';
|
|
2355
2382
|
}
|
|
2356
2383
|
interface RateAgentChatParams {
|
|
2357
2384
|
id: string;
|
|
2385
|
+
business_id?: string;
|
|
2358
2386
|
chat_id: string;
|
|
2359
2387
|
rating: number;
|
|
2360
2388
|
comment?: string;
|
|
@@ -2411,17 +2439,17 @@ interface Customer {
|
|
|
2411
2439
|
}
|
|
2412
2440
|
interface ConnectCustomerParams {
|
|
2413
2441
|
email: string;
|
|
2414
|
-
|
|
2442
|
+
business_id?: string;
|
|
2415
2443
|
}
|
|
2416
2444
|
interface CreateCustomerParams {
|
|
2417
|
-
|
|
2445
|
+
business_id?: string;
|
|
2418
2446
|
email: string;
|
|
2419
2447
|
blocks?: Block[];
|
|
2420
2448
|
taxonomies?: TaxonomyEntry[];
|
|
2421
2449
|
}
|
|
2422
2450
|
interface UpdateCustomerParams {
|
|
2423
2451
|
id: string;
|
|
2424
|
-
|
|
2452
|
+
business_id?: string;
|
|
2425
2453
|
emails?: string[];
|
|
2426
2454
|
blocks?: Block[];
|
|
2427
2455
|
taxonomies?: TaxonomyEntry[];
|
|
@@ -2430,10 +2458,10 @@ interface UpdateCustomerParams {
|
|
|
2430
2458
|
}
|
|
2431
2459
|
interface GetCustomerParams {
|
|
2432
2460
|
id: string;
|
|
2433
|
-
|
|
2461
|
+
business_id?: string;
|
|
2434
2462
|
}
|
|
2435
2463
|
interface FindCustomersParams {
|
|
2436
|
-
|
|
2464
|
+
business_id?: string;
|
|
2437
2465
|
query?: string;
|
|
2438
2466
|
limit?: number;
|
|
2439
2467
|
cursor?: string;
|
|
@@ -2443,7 +2471,7 @@ interface FindCustomersParams {
|
|
|
2443
2471
|
interface MergeCustomersParams {
|
|
2444
2472
|
target_id: string;
|
|
2445
2473
|
source_id: string;
|
|
2446
|
-
|
|
2474
|
+
business_id?: string;
|
|
2447
2475
|
}
|
|
2448
2476
|
|
|
2449
2477
|
export { type Access, type AddAudienceSubscriberParams, type AddAudienceSubscriberResponse, type Address, type AgentChatStatus, type AgentStatus, type ApiResponse, type Audience, type AudienceAccessResponse, type AudienceStatus, type AudienceSubscribeResponse, type AudienceSubscriber, type AudienceSubscription, type AudienceSubscriptionPayment, type AudienceSubscriptionProvider, type AudienceSubscriptionSource, type AudienceSubscriptionStatus, type AudienceType, type AuthToken, type AvailabilityResponse, type AvailabilitySlot, type Block, type BlockType, type Booking, type BookingCancellationReason, type BookingCartItem, type BookingCheckoutParams, type BookingItem, type BookingItemSnapshot, type BookingItemStatus, type BookingPayment, type BookingPaymentPromoCode, type BookingPaymentProvider, type BookingPaymentRefund, type BookingPaymentStatus, type BookingPaymentTax, type BookingPaymentTaxLine, type BookingProviderStatus, type BookingQuote, type BookingQuoteItem, type BookingServiceStatus, type BookingStoreState, type Business, type BusinessEmails, type BusinessRole, type BusinessSubscription, type BusinessSubscriptionPayment, type BusinessSubscriptionProvider, type BusinessSubscriptionSource, type BusinessSubscriptionStatus, type CancelBookingItemParams, type Condition, type ConnectCustomerParams, type CreateAgentParams, type CreateAudienceParams, type CreateBookingParams, type CreateBusinessParams, type CreateCustomerParams, type CreateEmailTemplateParams, type CreateFormParams, type CreateIntegrationParams, type CreateLocationParams, type CreateMarketParams, type CreateNodeParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateServiceParams, type CreateServiceProviderParams, type CreateTaxonomyParams, type CreateWebhookParams, type CreateWorkflowParams, type Customer, type CustomerAuthToken, type CustomerInfo, type CustomerStatus, type CustomerVerificationCode, type CustomsDeclaration, type CustomsItem, type DaySlots, type DeleteAccountParams, type DeleteAgentParams, type DeleteAudienceParams, type DeleteBusinessMediaParams, type DeleteBusinessParams, type DeleteEmailTemplateParams, type DeleteFormParams, type DeleteIntegrationParams, type DeleteLocationParams, type DeleteMarketParams, type DeleteNodeParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteServiceParams, type DeleteServiceProviderParams, type DeleteTaxonomyParams, type DeleteWebhookParams, type DeleteWorkflowParams, type Discount, type EmailTemplate, type EmailTemplateStatus, type EshopCartItem, type EshopItem, type EshopStoreState, type Event, type EventAction, type ExecutionStatus, type FindCustomersParams, type FindServiceProvidersParams, type Form, type FormEntry, type FormField, type FormFieldType, type FormSchema, type FormSchemaType, type FormStatus, type FormSubmission, type GeoLocation, type GeoLocationBlock, type GeoLocationBlockProperties, type GeoLocationValue, type GetAgentChatParams, type GetAgentChatsParams, type GetAgentParams, type GetAgentsParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAudienceParams, type GetAudienceSubscribersParams, type GetAudiencesParams, type GetAvailabilityParams, type GetBookingParams, type GetBookingQuoteParams, type GetBusinessChatsParams, type GetBusinessMediaParams, type GetBusinessMediaParams2, type GetBusinessParams, type GetBusinessesParams, type GetCustomerParams, type GetDeliveryStatsParams, type GetEmailTemplateParams, type GetEmailTemplatesParams, type GetFormParams, type GetFormSubmissionParams, type GetFormSubmissionsParams, type GetFormsParams, type GetIntegrationParams, type GetMeParams, type GetMediaParams, type GetNodeChildrenParams, type GetNodeParams, type GetNodesParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetServiceParams, type GetServicesParams, type GetShippingRatesParams, type GetSubscriptionPlansParams, type GetTaxonomiesParams, type GetTaxonomyChildrenParams, type GetTaxonomyParams, type GetWorkflowExecutionParams, type GetWorkflowExecutionsParams, type GetWorkflowParams, type GetWorkflowsParams, type HandleInvitationParams, type Integration, type IntegrationProvider, type IntervalPeriod, type InventoryLevel, type InviteUserParams, type Language, type ListIntegrationsParams, type ListWebhooksParams, type Location, type LoginAccountParams, type LogoutParams, type MagicLinkRequestParams, type MagicLinkVerifyParams, type Market, type Media, type MediaResolution, type MergeCustomersParams, type Node, type NodeResult, type NodeStatus, type OAuthConnectParams, type OAuthDisconnectParams, type OrderCancellationReason, type OrderCheckoutParams, type OrderItemStatus, type OrderPayment, type OrderPaymentPromoCode, type OrderPaymentProvider, type OrderPaymentRefund, type OrderPaymentStatus, type OrderPaymentTax, type OrderPaymentTaxLine, type OrderQuote, type OrderShipping, type PaginatedResponse, type Parcel, type PaymentMethod, PaymentMethodType, type PaymentTaxLine, type Price, type PriceProvider, type ProcessBookingRefundParams, type ProcessOrderRefundParams, type ProductStatus, type PromoCodeStatus, type PromoCodeValidation, type PromoUsage, type Provider, type ProviderAvailability, type ProviderTimelinePoint, type ProviderWithTimeline, type PurchaseLabelResult, type RateAgentChatParams, type RemoveAudienceSubscriberParams, type RemoveMemberParams, type RequestOptions, type RunAgentParams, type SearchAccountsParams, type SearchBookingsParams, type Service, type ServiceDuration, type ServiceProvider, type ServiceProviderInput, type SetupAnalyticsParams, type ShipParams, type ShipResult, type Shipment, type ShipmentLine, type ShippingAddress, type ShippingMethod, type ShippingRate, type ShippingStatus, type ShippingWeightTier, type Slot, type SlotRange, type SpecificDate, type SubmitFormParams, type SubscribeAudienceParams, type SubscribeParams, type SubscriptionInterval, type SubscriptionPrice, type SystemTemplateKey, type Taxonomy, type TaxonomyEntry, type TaxonomyField, type TaxonomyFieldQuery, type TaxonomyQuery, type TaxonomySchema, type TaxonomySchemaType, type TaxonomyStatus, type TestWebhookParams, type TimeRange, type TimelinePoint, type TrackEmailOpenParams, type TriggerNotificationParams, type TriggerWorkflowParams, type UpdateAccountProfileParams, type UpdateAgentChatParams, type UpdateAgentParams, type UpdateAudienceParams, type UpdateBookingParams, type UpdateBusinessParams, type UpdateCustomerParams, type UpdateEmailTemplateParams, type UpdateFormParams, type UpdateFormSubmissionParams, type UpdateIntegrationParams, type UpdateLocationParams, type UpdateMarketParams, type UpdateMediaParams, type UpdateNodeParams, type UpdateOrderParams, type UpdateProductParams, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateServiceParams, type UpdateServiceProviderParams, type UpdateTaxonomyParams, type UpdateWebhookParams, type UpdateWorkflowParams, type UploadBusinessMediaParams, type Webhook, type WebhookEventSubscription, type Workflow, type WorkflowEdge, type WorkflowExecution, type WorkflowHttpMethod, type WorkflowHttpNode, type WorkflowLoopNode, type WorkflowNode, type WorkflowStatus, type WorkflowSwitchNode, type WorkflowSwitchRule, type WorkflowTransformNode, type WorkflowTriggerNode, type WorkingDay, type WorkingHour, type Zone, type ZoneLocation };
|