@conflict-hq/ezacto-client 0.1.2 → 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.d.ts +699 -3
- package/dist/generated.js +243 -1
- package/package.json +1 -1
- package/src/generated.ts +844 -8
package/dist/generated.js
CHANGED
|
@@ -320,6 +320,13 @@ export class EzactoClient {
|
|
|
320
320
|
headers,
|
|
321
321
|
});
|
|
322
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
|
+
}
|
|
323
330
|
async listClients(args = {}) {
|
|
324
331
|
const headers = new Headers(args.headers);
|
|
325
332
|
return this.request("GET", "/api/v1/clients", {
|
|
@@ -737,6 +744,7 @@ export class EzactoClient {
|
|
|
737
744
|
async listTimeEntryOptions(args = {}) {
|
|
738
745
|
const headers = new Headers(args.headers);
|
|
739
746
|
return this.request("GET", "/api/v1/time-entry-options", {
|
|
747
|
+
query: args.query,
|
|
740
748
|
signal: args.signal,
|
|
741
749
|
headers,
|
|
742
750
|
});
|
|
@@ -1102,6 +1110,31 @@ export class EzactoClient {
|
|
|
1102
1110
|
headers,
|
|
1103
1111
|
});
|
|
1104
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
|
+
}
|
|
1105
1138
|
async listInvoicePayments(args) {
|
|
1106
1139
|
const headers = new Headers(args.headers);
|
|
1107
1140
|
return this.request("GET", "/api/v1/invoices/:id/payments".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
@@ -1423,6 +1456,99 @@ export class EzactoClient {
|
|
|
1423
1456
|
headers,
|
|
1424
1457
|
});
|
|
1425
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
|
+
}
|
|
1426
1552
|
async getReportDefinitionRegistry(args = {}) {
|
|
1427
1553
|
const headers = new Headers(args.headers);
|
|
1428
1554
|
return this.request("GET", "/api/v1/report-definitions/registry", {
|
|
@@ -1629,6 +1755,15 @@ export class EzactoClient {
|
|
|
1629
1755
|
headers,
|
|
1630
1756
|
});
|
|
1631
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
|
+
}
|
|
1632
1767
|
async executeDetailedTimeAction(args) {
|
|
1633
1768
|
const headers = new Headers(args.headers);
|
|
1634
1769
|
return this.request("POST", "/api/v1/reports/detailed-time/actions", {
|
|
@@ -1727,6 +1862,20 @@ export class EzactoClient {
|
|
|
1727
1862
|
headers,
|
|
1728
1863
|
});
|
|
1729
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
|
+
}
|
|
1730
1879
|
async getWiseConnection(args = {}) {
|
|
1731
1880
|
const headers = new Headers(args.headers);
|
|
1732
1881
|
return this.request("GET", "/api/v1/integrations/wise", {
|
|
@@ -1889,6 +2038,44 @@ export class EzactoClient {
|
|
|
1889
2038
|
async setInvoiceDocumentPreference(args) {
|
|
1890
2039
|
const headers = new Headers(args.headers);
|
|
1891
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,
|
|
1892
2079
|
signal: args.signal,
|
|
1893
2080
|
headers,
|
|
1894
2081
|
});
|
|
@@ -1900,9 +2087,34 @@ export class EzactoClient {
|
|
|
1900
2087
|
headers,
|
|
1901
2088
|
});
|
|
1902
2089
|
}
|
|
1903
|
-
async setOrganizationInvoiceDocuments(args
|
|
2090
|
+
async setOrganizationInvoiceDocuments(args) {
|
|
1904
2091
|
const headers = new Headers(args.headers);
|
|
1905
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,
|
|
1906
2118
|
signal: args.signal,
|
|
1907
2119
|
headers,
|
|
1908
2120
|
});
|
|
@@ -1935,6 +2147,36 @@ export class EzactoClient {
|
|
|
1935
2147
|
headers,
|
|
1936
2148
|
});
|
|
1937
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
|
+
}
|
|
1938
2180
|
async listIncompleteRecurringInvoices(args = {}) {
|
|
1939
2181
|
const headers = new Headers(args.headers);
|
|
1940
2182
|
return this.request("GET", "/api/v1/recurring-invoices/incomplete", {
|