@conflict-hq/ezacto-client 0.1.1 → 0.1.3

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/generated.js CHANGED
@@ -21,7 +21,14 @@ export class EzactoClient {
21
21
  ? options.baseUrl
22
22
  : `${options.baseUrl}/`;
23
23
  this.token = options.token;
24
- this.fetchImplementation = options.fetch ?? globalThis.fetch;
24
+ // Bound, because this is stored on the instance and later called as
25
+ // `this.fetchImplementation(...)`. A browser's fetch is a method of
26
+ // Window and refuses any other receiver, so the unbound form threw
27
+ // "Failed to execute 'fetch' on 'Window': Illegal invocation" on every
28
+ // request from a page or an extension (#772). Binding whatever we are
29
+ // given also covers a caller who hands us a bare `globalThis.fetch`;
30
+ // an arrow or an already-bound function ignores the receiver anyway.
31
+ this.fetchImplementation = (options.fetch ?? globalThis.fetch).bind(globalThis);
25
32
  this.defaultHeaders = new Headers(options.headers);
26
33
  }
27
34
  async request(method, path, options) {
@@ -88,6 +95,14 @@ export class EzactoClient {
88
95
  headers,
89
96
  });
90
97
  }
98
+ async completeTwoFactorChallenge(args) {
99
+ const headers = new Headers(args.headers);
100
+ return this.request("POST", "/auth/two-factor/challenge", {
101
+ body: args.body,
102
+ signal: args.signal,
103
+ headers,
104
+ });
105
+ }
91
106
  async requestPasswordReset(args) {
92
107
  const headers = new Headers(args.headers);
93
108
  return this.request("POST", "/auth/password/forgot", {
@@ -290,6 +305,28 @@ export class EzactoClient {
290
305
  headers,
291
306
  });
292
307
  }
308
+ async getProfile(args = {}) {
309
+ const headers = new Headers(args.headers);
310
+ return this.request("GET", "/api/v1/profile", {
311
+ signal: args.signal,
312
+ headers,
313
+ });
314
+ }
315
+ async updateProfile(args) {
316
+ const headers = new Headers(args.headers);
317
+ return this.request("PATCH", "/api/v1/profile", {
318
+ body: args.body,
319
+ signal: args.signal,
320
+ headers,
321
+ });
322
+ }
323
+ async requestAccountDeletion(args = {}) {
324
+ const headers = new Headers(args.headers);
325
+ return this.request("POST", "/api/v1/profile/deletion-request", {
326
+ signal: args.signal,
327
+ headers,
328
+ });
329
+ }
293
330
  async listClients(args = {}) {
294
331
  const headers = new Headers(args.headers);
295
332
  return this.request("GET", "/api/v1/clients", {
@@ -707,6 +744,7 @@ export class EzactoClient {
707
744
  async listTimeEntryOptions(args = {}) {
708
745
  const headers = new Headers(args.headers);
709
746
  return this.request("GET", "/api/v1/time-entry-options", {
747
+ query: args.query,
710
748
  signal: args.signal,
711
749
  headers,
712
750
  });
@@ -1072,6 +1110,31 @@ export class EzactoClient {
1072
1110
  headers,
1073
1111
  });
1074
1112
  }
1113
+ async previewInvoiceEmail(args) {
1114
+ const headers = new Headers(args.headers);
1115
+ return this.request("POST", "/api/v1/invoices/:id/deliveries/preview".replace(":id", encodeURIComponent(String(args["id"]))), {
1116
+ body: args.body,
1117
+ signal: args.signal,
1118
+ headers,
1119
+ });
1120
+ }
1121
+ async downloadInvoiceEmailPreviewDocument(args) {
1122
+ const headers = new Headers(args.headers);
1123
+ return this.request("GET", "/api/v1/invoices/:id/deliveries/preview/document".replace(":id", encodeURIComponent(String(args["id"]))), {
1124
+ query: args.query,
1125
+ signal: args.signal,
1126
+ binary: true,
1127
+ headers,
1128
+ });
1129
+ }
1130
+ async sendInvoiceEmailPreview(args) {
1131
+ const headers = new Headers(args.headers);
1132
+ return this.request("POST", "/api/v1/invoices/:id/deliveries/preview/send".replace(":id", encodeURIComponent(String(args["id"]))), {
1133
+ body: args.body,
1134
+ signal: args.signal,
1135
+ headers,
1136
+ });
1137
+ }
1075
1138
  async listInvoicePayments(args) {
1076
1139
  const headers = new Headers(args.headers);
1077
1140
  return this.request("GET", "/api/v1/invoices/:id/payments".replace(":id", encodeURIComponent(String(args["id"]))), {
@@ -1209,6 +1272,16 @@ export class EzactoClient {
1209
1272
  headers,
1210
1273
  });
1211
1274
  }
1275
+ async backfillRecurringInvoiceClaims(args) {
1276
+ const headers = new Headers(args.headers);
1277
+ if (args["Idempotency-Key"] !== undefined)
1278
+ headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
1279
+ return this.request("POST", "/api/v1/recurring-invoices/:id/claim-backfill".replace(":id", encodeURIComponent(String(args["id"]))), {
1280
+ body: args.body,
1281
+ signal: args.signal,
1282
+ headers,
1283
+ });
1284
+ }
1212
1285
  async generateRecurringInvoice(args) {
1213
1286
  const headers = new Headers(args.headers);
1214
1287
  if (args["Idempotency-Key"] !== undefined)
@@ -1383,6 +1456,194 @@ export class EzactoClient {
1383
1456
  headers,
1384
1457
  });
1385
1458
  }
1459
+ async setRecurringInvoiceAttachmentThrough(args) {
1460
+ const headers = new Headers(args.headers);
1461
+ return this.request("PATCH", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments/:attachmentId".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
1462
+ body: args.body,
1463
+ signal: args.signal,
1464
+ headers,
1465
+ });
1466
+ }
1467
+ async removeRecurringInvoiceAttachment(args) {
1468
+ const headers = new Headers(args.headers);
1469
+ return this.request("DELETE", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments/:attachmentId".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
1470
+ signal: args.signal,
1471
+ headers,
1472
+ });
1473
+ }
1474
+ async getPaymentActuals(args = {}) {
1475
+ const headers = new Headers(args.headers);
1476
+ return this.request("GET", "/api/v1/staff-payments/actuals", {
1477
+ query: args.query,
1478
+ signal: args.signal,
1479
+ headers,
1480
+ });
1481
+ }
1482
+ async confirmPaymentActuals(args) {
1483
+ const headers = new Headers(args.headers);
1484
+ return this.request("POST", "/api/v1/staff-payments/actuals", {
1485
+ body: args.body,
1486
+ signal: args.signal,
1487
+ headers,
1488
+ });
1489
+ }
1490
+ async configureStaffPaymentProvider(args) {
1491
+ const headers = new Headers(args.headers);
1492
+ return this.request("POST", "/api/v1/staff-payments/provider-settings", {
1493
+ body: args.body,
1494
+ signal: args.signal,
1495
+ headers,
1496
+ });
1497
+ }
1498
+ async getStaffPaymentReport(args = {}) {
1499
+ const headers = new Headers(args.headers);
1500
+ return this.request("GET", "/api/v1/staff-payments", {
1501
+ query: args.query,
1502
+ signal: args.signal,
1503
+ headers,
1504
+ });
1505
+ }
1506
+ async recordStaffPaymentEvent(args) {
1507
+ const headers = new Headers(args.headers);
1508
+ return this.request("POST", "/api/v1/staff-payments/events", {
1509
+ body: args.body,
1510
+ signal: args.signal,
1511
+ headers,
1512
+ });
1513
+ }
1514
+ async getPaymentRunReport(args = {}) {
1515
+ const headers = new Headers(args.headers);
1516
+ return this.request("GET", "/api/v1/payment-runs/report", {
1517
+ query: args.query,
1518
+ signal: args.signal,
1519
+ headers,
1520
+ });
1521
+ }
1522
+ async previewPaymentRun(args) {
1523
+ const headers = new Headers(args.headers);
1524
+ return this.request("POST", "/api/v1/payment-runs/preview", {
1525
+ body: args.body,
1526
+ signal: args.signal,
1527
+ headers,
1528
+ });
1529
+ }
1530
+ async approvePaymentRun(args) {
1531
+ const headers = new Headers(args.headers);
1532
+ return this.request("POST", "/api/v1/payment-runs/:id/approve".replace(":id", encodeURIComponent(String(args["id"]))), {
1533
+ body: args.body,
1534
+ signal: args.signal,
1535
+ headers,
1536
+ });
1537
+ }
1538
+ async cancelPaymentRun(args) {
1539
+ const headers = new Headers(args.headers);
1540
+ return this.request("POST", "/api/v1/payment-runs/:id/cancel".replace(":id", encodeURIComponent(String(args["id"]))), {
1541
+ signal: args.signal,
1542
+ headers,
1543
+ });
1544
+ }
1545
+ async reconcilePaymentRunItem(args) {
1546
+ const headers = new Headers(args.headers);
1547
+ return this.request("POST", "/api/v1/payment-runs/:id/items/:itemId/reconcile".replace(":id", encodeURIComponent(String(args["id"]))).replace(":itemId", encodeURIComponent(String(args["itemId"]))), {
1548
+ signal: args.signal,
1549
+ headers,
1550
+ });
1551
+ }
1552
+ async getReportDefinitionRegistry(args = {}) {
1553
+ const headers = new Headers(args.headers);
1554
+ return this.request("GET", "/api/v1/report-definitions/registry", {
1555
+ signal: args.signal,
1556
+ headers,
1557
+ });
1558
+ }
1559
+ async listSavedReports(args = {}) {
1560
+ const headers = new Headers(args.headers);
1561
+ return this.request("GET", "/api/v1/report-definitions", {
1562
+ query: args.query,
1563
+ signal: args.signal,
1564
+ headers,
1565
+ });
1566
+ }
1567
+ async createSavedReport(args) {
1568
+ const headers = new Headers(args.headers);
1569
+ return this.request("POST", "/api/v1/report-definitions", {
1570
+ body: args.body,
1571
+ signal: args.signal,
1572
+ headers,
1573
+ });
1574
+ }
1575
+ async previewReportDefinition(args) {
1576
+ const headers = new Headers(args.headers);
1577
+ return this.request("POST", "/api/v1/report-definitions/preview", {
1578
+ body: args.body,
1579
+ signal: args.signal,
1580
+ headers,
1581
+ });
1582
+ }
1583
+ async getSavedReport(args) {
1584
+ const headers = new Headers(args.headers);
1585
+ return this.request("GET", "/api/v1/report-definitions/:reportId".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
1586
+ signal: args.signal,
1587
+ headers,
1588
+ });
1589
+ }
1590
+ async updateSavedReport(args) {
1591
+ const headers = new Headers(args.headers);
1592
+ return this.request("PATCH", "/api/v1/report-definitions/:reportId".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
1593
+ body: args.body,
1594
+ signal: args.signal,
1595
+ headers,
1596
+ });
1597
+ }
1598
+ async deleteSavedReport(args) {
1599
+ const headers = new Headers(args.headers);
1600
+ return this.request("DELETE", "/api/v1/report-definitions/:reportId".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
1601
+ signal: args.signal,
1602
+ headers,
1603
+ });
1604
+ }
1605
+ async duplicateSavedReport(args) {
1606
+ const headers = new Headers(args.headers);
1607
+ return this.request("POST", "/api/v1/report-definitions/:reportId/duplicate".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
1608
+ signal: args.signal,
1609
+ headers,
1610
+ });
1611
+ }
1612
+ async pinSavedReport(args) {
1613
+ const headers = new Headers(args.headers);
1614
+ return this.request("POST", "/api/v1/report-definitions/:reportId/pin".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
1615
+ signal: args.signal,
1616
+ headers,
1617
+ });
1618
+ }
1619
+ async unpinSavedReport(args) {
1620
+ const headers = new Headers(args.headers);
1621
+ return this.request("DELETE", "/api/v1/report-definitions/:reportId/pin".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
1622
+ signal: args.signal,
1623
+ headers,
1624
+ });
1625
+ }
1626
+ async shareSavedReport(args) {
1627
+ const headers = new Headers(args.headers);
1628
+ return this.request("POST", "/api/v1/report-definitions/:reportId/shares/:userId".replace(":reportId", encodeURIComponent(String(args["reportId"]))).replace(":userId", encodeURIComponent(String(args["userId"]))), {
1629
+ signal: args.signal,
1630
+ headers,
1631
+ });
1632
+ }
1633
+ async unshareSavedReport(args) {
1634
+ const headers = new Headers(args.headers);
1635
+ return this.request("DELETE", "/api/v1/report-definitions/:reportId/shares/:userId".replace(":reportId", encodeURIComponent(String(args["reportId"]))).replace(":userId", encodeURIComponent(String(args["userId"]))), {
1636
+ signal: args.signal,
1637
+ headers,
1638
+ });
1639
+ }
1640
+ async runSavedReport(args) {
1641
+ const headers = new Headers(args.headers);
1642
+ return this.request("POST", "/api/v1/report-definitions/:reportId/run".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
1643
+ signal: args.signal,
1644
+ headers,
1645
+ });
1646
+ }
1386
1647
  async getMyHoursReport(args) {
1387
1648
  const headers = new Headers(args.headers);
1388
1649
  return this.request("GET", "/api/v1/reports/my-hours", {
@@ -1399,6 +1660,30 @@ export class EzactoClient {
1399
1660
  headers,
1400
1661
  });
1401
1662
  }
1663
+ async getInvoicedReport(args) {
1664
+ const headers = new Headers(args.headers);
1665
+ return this.request("GET", "/api/v1/reports/invoiced", {
1666
+ query: args.query,
1667
+ signal: args.signal,
1668
+ headers,
1669
+ });
1670
+ }
1671
+ async getPaymentsReceivedReport(args) {
1672
+ const headers = new Headers(args.headers);
1673
+ return this.request("GET", "/api/v1/reports/payments-received", {
1674
+ query: args.query,
1675
+ signal: args.signal,
1676
+ headers,
1677
+ });
1678
+ }
1679
+ async getReceivablesReport(args) {
1680
+ const headers = new Headers(args.headers);
1681
+ return this.request("GET", "/api/v1/reports/receivables", {
1682
+ query: args.query,
1683
+ signal: args.signal,
1684
+ headers,
1685
+ });
1686
+ }
1402
1687
  async getContractorCostReport(args) {
1403
1688
  const headers = new Headers(args.headers);
1404
1689
  return this.request("GET", "/api/v1/reports/contractor", {
@@ -1407,6 +1692,37 @@ export class EzactoClient {
1407
1692
  headers,
1408
1693
  });
1409
1694
  }
1695
+ async getMonthEndManifest(args) {
1696
+ const headers = new Headers(args.headers);
1697
+ return this.request("GET", "/api/v1/reports/month-end", {
1698
+ query: args.query,
1699
+ signal: args.signal,
1700
+ headers,
1701
+ });
1702
+ }
1703
+ async getBandedMonthReport(args) {
1704
+ const headers = new Headers(args.headers);
1705
+ return this.request("GET", "/api/v1/reports/banded-months", {
1706
+ query: args.query,
1707
+ signal: args.signal,
1708
+ headers,
1709
+ });
1710
+ }
1711
+ async getBandCostAlert(args = {}) {
1712
+ const headers = new Headers(args.headers);
1713
+ return this.request("GET", "/api/v1/reports/band-cost-alert", {
1714
+ signal: args.signal,
1715
+ headers,
1716
+ });
1717
+ }
1718
+ async setBandCostAlert(args) {
1719
+ const headers = new Headers(args.headers);
1720
+ return this.request("POST", "/api/v1/reports/band-cost-alert", {
1721
+ body: args.body,
1722
+ signal: args.signal,
1723
+ headers,
1724
+ });
1725
+ }
1410
1726
  async getProfitabilityReport(args) {
1411
1727
  const headers = new Headers(args.headers);
1412
1728
  return this.request("GET", "/api/v1/reports/profitability", {
@@ -1439,6 +1755,23 @@ export class EzactoClient {
1439
1755
  headers,
1440
1756
  });
1441
1757
  }
1758
+ async downloadDetailedTimeReport(args) {
1759
+ const headers = new Headers(args.headers);
1760
+ return this.request("GET", "/api/v1/reports/detailed-time/export", {
1761
+ query: args.query,
1762
+ signal: args.signal,
1763
+ binary: true,
1764
+ headers,
1765
+ });
1766
+ }
1767
+ async executeDetailedTimeAction(args) {
1768
+ const headers = new Headers(args.headers);
1769
+ return this.request("POST", "/api/v1/reports/detailed-time/actions", {
1770
+ body: args.body,
1771
+ signal: args.signal,
1772
+ headers,
1773
+ });
1774
+ }
1442
1775
  async getClientRollupReport(args) {
1443
1776
  const headers = new Headers(args.headers);
1444
1777
  return this.request("GET", "/api/v1/reports/client-rollups/:clientId".replace(":clientId", encodeURIComponent(String(args["clientId"]))), {
@@ -1478,6 +1811,21 @@ export class EzactoClient {
1478
1811
  headers,
1479
1812
  });
1480
1813
  }
1814
+ async listSignInMethods(args = {}) {
1815
+ const headers = new Headers(args.headers);
1816
+ return this.request("GET", "/api/v1/admin/sign-in-methods", {
1817
+ signal: args.signal,
1818
+ headers,
1819
+ });
1820
+ }
1821
+ async updateSignInMethod(args) {
1822
+ const headers = new Headers(args.headers);
1823
+ return this.request("PATCH", "/api/v1/admin/sign-in-methods/:method".replace(":method", encodeURIComponent(String(args["method"]))), {
1824
+ body: args.body,
1825
+ signal: args.signal,
1826
+ headers,
1827
+ });
1828
+ }
1481
1829
  async getBackupStatus(args = {}) {
1482
1830
  const headers = new Headers(args.headers);
1483
1831
  return this.request("GET", "/api/v1/backup/status", {
@@ -1514,6 +1862,86 @@ export class EzactoClient {
1514
1862
  headers,
1515
1863
  });
1516
1864
  }
1865
+ async getInvoiceQuickBooks(args) {
1866
+ const headers = new Headers(args.headers);
1867
+ return this.request("GET", "/api/v1/invoices/:id/quickbooks".replace(":id", encodeURIComponent(String(args["id"]))), {
1868
+ signal: args.signal,
1869
+ headers,
1870
+ });
1871
+ }
1872
+ async syncInvoiceQuickBooks(args) {
1873
+ const headers = new Headers(args.headers);
1874
+ return this.request("POST", "/api/v1/invoices/:id/quickbooks/sync".replace(":id", encodeURIComponent(String(args["id"]))), {
1875
+ signal: args.signal,
1876
+ headers,
1877
+ });
1878
+ }
1879
+ async getWiseConnection(args = {}) {
1880
+ const headers = new Headers(args.headers);
1881
+ return this.request("GET", "/api/v1/integrations/wise", {
1882
+ signal: args.signal,
1883
+ headers,
1884
+ });
1885
+ }
1886
+ async listWiseRecipients(args = {}) {
1887
+ const headers = new Headers(args.headers);
1888
+ return this.request("GET", "/api/v1/integrations/wise/recipients", {
1889
+ signal: args.signal,
1890
+ headers,
1891
+ });
1892
+ }
1893
+ async onboardWiseRecipient(args) {
1894
+ const headers = new Headers(args.headers);
1895
+ return this.request("POST", "/api/v1/integrations/wise/recipients", {
1896
+ body: args.body,
1897
+ signal: args.signal,
1898
+ headers,
1899
+ });
1900
+ }
1901
+ async listWisePayoutProposals(args = {}) {
1902
+ const headers = new Headers(args.headers);
1903
+ return this.request("GET", "/api/v1/integrations/wise/proposals", {
1904
+ signal: args.signal,
1905
+ headers,
1906
+ });
1907
+ }
1908
+ async getWisePayoutDestination(args) {
1909
+ const headers = new Headers(args.headers);
1910
+ return this.request("GET", "/api/v1/integrations/wise/destinations/:userId".replace(":userId", encodeURIComponent(String(args["userId"]))), {
1911
+ signal: args.signal,
1912
+ headers,
1913
+ });
1914
+ }
1915
+ async removeWisePayoutDestination(args) {
1916
+ const headers = new Headers(args.headers);
1917
+ return this.request("DELETE", "/api/v1/integrations/wise/destinations/:userId".replace(":userId", encodeURIComponent(String(args["userId"]))), {
1918
+ signal: args.signal,
1919
+ headers,
1920
+ });
1921
+ }
1922
+ async shareWiseProfile(args) {
1923
+ const headers = new Headers(args.headers);
1924
+ return this.request("POST", "/api/v1/integrations/wise/contacts", {
1925
+ body: args.body,
1926
+ signal: args.signal,
1927
+ headers,
1928
+ });
1929
+ }
1930
+ async linkWiseRecipient(args) {
1931
+ const headers = new Headers(args.headers);
1932
+ return this.request("POST", "/api/v1/integrations/wise/recipients/link", {
1933
+ body: args.body,
1934
+ signal: args.signal,
1935
+ headers,
1936
+ });
1937
+ }
1938
+ async unlinkWiseRecipient(args) {
1939
+ const headers = new Headers(args.headers);
1940
+ return this.request("DELETE", "/api/v1/integrations/wise/recipients/:accountId".replace(":accountId", encodeURIComponent(String(args["accountId"]))), {
1941
+ signal: args.signal,
1942
+ headers,
1943
+ });
1944
+ }
1517
1945
  async listSsoProvisioningDomains(args = {}) {
1518
1946
  const headers = new Headers(args.headers);
1519
1947
  return this.request("GET", "/api/v1/settings/sso-domains", {
@@ -1593,6 +2021,176 @@ export class EzactoClient {
1593
2021
  headers,
1594
2022
  });
1595
2023
  }
2024
+ async releaseInvoicedTime(args) {
2025
+ const headers = new Headers(args.headers);
2026
+ return this.request("POST", "/api/v1/invoices/:id/released-time".replace(":id", encodeURIComponent(String(args["id"]))), {
2027
+ signal: args.signal,
2028
+ headers,
2029
+ });
2030
+ }
2031
+ async getInvoiceDocumentPreference(args) {
2032
+ const headers = new Headers(args.headers);
2033
+ return this.request("GET", "/api/v1/invoices/:id/document-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
2034
+ signal: args.signal,
2035
+ headers,
2036
+ });
2037
+ }
2038
+ async setInvoiceDocumentPreference(args) {
2039
+ const headers = new Headers(args.headers);
2040
+ return this.request("POST", "/api/v1/invoices/:id/document-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
2041
+ body: args.body,
2042
+ signal: args.signal,
2043
+ headers,
2044
+ });
2045
+ }
2046
+ async getInvoiceEmailDefaults(args) {
2047
+ const headers = new Headers(args.headers);
2048
+ return this.request("GET", "/api/v1/invoices/:id/email-defaults".replace(":id", encodeURIComponent(String(args["id"]))), {
2049
+ signal: args.signal,
2050
+ headers,
2051
+ });
2052
+ }
2053
+ async getClientInvoiceSending(args) {
2054
+ const headers = new Headers(args.headers);
2055
+ return this.request("GET", "/api/v1/clients/:id/invoice-sending".replace(":id", encodeURIComponent(String(args["id"]))), {
2056
+ signal: args.signal,
2057
+ headers,
2058
+ });
2059
+ }
2060
+ async setClientInvoiceSending(args) {
2061
+ const headers = new Headers(args.headers);
2062
+ return this.request("POST", "/api/v1/clients/:id/invoice-sending".replace(":id", encodeURIComponent(String(args["id"]))), {
2063
+ body: args.body,
2064
+ signal: args.signal,
2065
+ headers,
2066
+ });
2067
+ }
2068
+ async getOrganizationInvoiceSending(args = {}) {
2069
+ const headers = new Headers(args.headers);
2070
+ return this.request("GET", "/api/v1/settings/invoice-sending", {
2071
+ signal: args.signal,
2072
+ headers,
2073
+ });
2074
+ }
2075
+ async setOrganizationInvoiceSending(args) {
2076
+ const headers = new Headers(args.headers);
2077
+ return this.request("POST", "/api/v1/settings/invoice-sending", {
2078
+ body: args.body,
2079
+ signal: args.signal,
2080
+ headers,
2081
+ });
2082
+ }
2083
+ async getOrganizationInvoiceDocuments(args = {}) {
2084
+ const headers = new Headers(args.headers);
2085
+ return this.request("GET", "/api/v1/settings/invoice-documents", {
2086
+ signal: args.signal,
2087
+ headers,
2088
+ });
2089
+ }
2090
+ async setOrganizationInvoiceDocuments(args) {
2091
+ const headers = new Headers(args.headers);
2092
+ return this.request("POST", "/api/v1/settings/invoice-documents", {
2093
+ body: args.body,
2094
+ signal: args.signal,
2095
+ headers,
2096
+ });
2097
+ }
2098
+ async downloadInvoiceHoursReport(args) {
2099
+ const headers = new Headers(args.headers);
2100
+ return this.request("GET", "/api/v1/invoices/:id/hours-report".replace(":id", encodeURIComponent(String(args["id"]))), {
2101
+ query: args.query,
2102
+ signal: args.signal,
2103
+ binary: true,
2104
+ headers,
2105
+ });
2106
+ }
2107
+ async getInvoiceDefaults(args = {}) {
2108
+ const headers = new Headers(args.headers);
2109
+ return this.request("GET", "/api/v1/settings/invoice-defaults", {
2110
+ signal: args.signal,
2111
+ headers,
2112
+ });
2113
+ }
2114
+ async updateInvoiceDefaults(args) {
2115
+ const headers = new Headers(args.headers);
2116
+ return this.request("POST", "/api/v1/settings/invoice-defaults", {
2117
+ body: args.body,
2118
+ signal: args.signal,
2119
+ headers,
2120
+ });
2121
+ }
2122
+ async getInvoiceThankYouPreference(args) {
2123
+ const headers = new Headers(args.headers);
2124
+ return this.request("GET", "/api/v1/invoices/:id/thank-you-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
2125
+ signal: args.signal,
2126
+ headers,
2127
+ });
2128
+ }
2129
+ async setInvoiceThankYouPreference(args) {
2130
+ const headers = new Headers(args.headers);
2131
+ return this.request("POST", "/api/v1/invoices/:id/thank-you-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
2132
+ signal: args.signal,
2133
+ headers,
2134
+ });
2135
+ }
2136
+ async getOrganizationInvoiceThankYou(args = {}) {
2137
+ const headers = new Headers(args.headers);
2138
+ return this.request("GET", "/api/v1/settings/invoice-thank-you", {
2139
+ signal: args.signal,
2140
+ headers,
2141
+ });
2142
+ }
2143
+ async setOrganizationInvoiceThankYou(args = {}) {
2144
+ const headers = new Headers(args.headers);
2145
+ return this.request("POST", "/api/v1/settings/invoice-thank-you", {
2146
+ signal: args.signal,
2147
+ headers,
2148
+ });
2149
+ }
2150
+ async getOrganizationInvoiceReminders(args = {}) {
2151
+ const headers = new Headers(args.headers);
2152
+ return this.request("GET", "/api/v1/settings/invoice-reminders", {
2153
+ signal: args.signal,
2154
+ headers,
2155
+ });
2156
+ }
2157
+ async setOrganizationInvoiceReminders(args) {
2158
+ const headers = new Headers(args.headers);
2159
+ return this.request("POST", "/api/v1/settings/invoice-reminders", {
2160
+ body: args.body,
2161
+ signal: args.signal,
2162
+ headers,
2163
+ });
2164
+ }
2165
+ async getInvoiceReminderPreference(args) {
2166
+ const headers = new Headers(args.headers);
2167
+ return this.request("GET", "/api/v1/invoices/:id/reminder-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
2168
+ signal: args.signal,
2169
+ headers,
2170
+ });
2171
+ }
2172
+ async setInvoiceReminderPreference(args) {
2173
+ const headers = new Headers(args.headers);
2174
+ return this.request("POST", "/api/v1/invoices/:id/reminder-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
2175
+ body: args.body,
2176
+ signal: args.signal,
2177
+ headers,
2178
+ });
2179
+ }
2180
+ async listIncompleteRecurringInvoices(args = {}) {
2181
+ const headers = new Headers(args.headers);
2182
+ return this.request("GET", "/api/v1/recurring-invoices/incomplete", {
2183
+ signal: args.signal,
2184
+ headers,
2185
+ });
2186
+ }
2187
+ async completeRecurringInvoiceDefinition(args) {
2188
+ const headers = new Headers(args.headers);
2189
+ return this.request("POST", "/api/v1/recurring-invoices/:id/completion".replace(":id", encodeURIComponent(String(args["id"]))), {
2190
+ signal: args.signal,
2191
+ headers,
2192
+ });
2193
+ }
1596
2194
  async listPayoutAccounts(args) {
1597
2195
  const headers = new Headers(args.headers);
1598
2196
  return this.request("GET", "/api/v1/users/:id/payout-accounts".replace(":id", encodeURIComponent(String(args["id"]))), {
@@ -1744,6 +2342,16 @@ export class EzactoClient {
1744
2342
  headers,
1745
2343
  });
1746
2344
  }
2345
+ async removeTeamPersonRate(args) {
2346
+ const headers = new Headers(args.headers);
2347
+ if (args["Idempotency-Key"] !== undefined)
2348
+ headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
2349
+ return this.request("DELETE", "/api/v1/team/people/:id/rates/:rateId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":rateId", encodeURIComponent(String(args["rateId"]))), {
2350
+ body: args.body,
2351
+ signal: args.signal,
2352
+ headers,
2353
+ });
2354
+ }
1747
2355
  async listClientAncestors(args) {
1748
2356
  const headers = new Headers(args.headers);
1749
2357
  return this.request("GET", "/api/v1/clients/:id/ancestors".replace(":id", encodeURIComponent(String(args["id"]))), {