@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/src/generated.ts
CHANGED
|
@@ -13,6 +13,11 @@ export type Attachment = {
|
|
|
13
13
|
"uploaded_by_user_id": number | null;
|
|
14
14
|
"created_at": string;
|
|
15
15
|
"updated_at": string;
|
|
16
|
+
"through"?: string | null;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type RecurringAttachmentThroughInput = {
|
|
20
|
+
"through": string | null;
|
|
16
21
|
};
|
|
17
22
|
|
|
18
23
|
export type AttachmentEnvelope = {
|
|
@@ -25,6 +30,245 @@ export type AttachmentListEnvelope = {
|
|
|
25
30
|
"links": Links;
|
|
26
31
|
};
|
|
27
32
|
|
|
33
|
+
export type PaymentActualsEnvelope = {
|
|
34
|
+
"data": {
|
|
35
|
+
"month": string;
|
|
36
|
+
"currency": string;
|
|
37
|
+
"completed": boolean;
|
|
38
|
+
"people": Array<{
|
|
39
|
+
"user_id": number;
|
|
40
|
+
"name": string;
|
|
41
|
+
"entries": Array<{
|
|
42
|
+
"entry_id": number;
|
|
43
|
+
"project_id": number;
|
|
44
|
+
"project_name": string;
|
|
45
|
+
"spent_date": string;
|
|
46
|
+
"rounded_seconds": number;
|
|
47
|
+
"cost_rate_cents": number | null;
|
|
48
|
+
"selected_seconds": number;
|
|
49
|
+
}>;
|
|
50
|
+
}>;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type ConfirmPaymentActuals = {
|
|
55
|
+
"id": string;
|
|
56
|
+
"user_id": number;
|
|
57
|
+
"month": string;
|
|
58
|
+
"expected_version": number;
|
|
59
|
+
"currency": string;
|
|
60
|
+
"entries": Array<{
|
|
61
|
+
"entry_id": number;
|
|
62
|
+
"project_id": number;
|
|
63
|
+
"project_name": string;
|
|
64
|
+
"spent_date": string;
|
|
65
|
+
"rounded_seconds": number;
|
|
66
|
+
"cost_rate_cents": number | null;
|
|
67
|
+
"selected_seconds": number;
|
|
68
|
+
}>;
|
|
69
|
+
"note": string;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export type StaffPaymentProviderCommand = {
|
|
73
|
+
"id": string;
|
|
74
|
+
"user_id": number | null;
|
|
75
|
+
"expected_version": number;
|
|
76
|
+
"provider": "wise" | "deel" | null;
|
|
77
|
+
"note": string;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export type StaffPaymentProviderEvent = {
|
|
81
|
+
"id": string;
|
|
82
|
+
"user_id": number | null;
|
|
83
|
+
"expected_version": number;
|
|
84
|
+
"provider": "wise" | "deel" | null;
|
|
85
|
+
"note": string;
|
|
86
|
+
"version": number;
|
|
87
|
+
"actor_id": number;
|
|
88
|
+
"actor_name": string;
|
|
89
|
+
"recorded_at": string;
|
|
90
|
+
"request_id": string;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export type StaffPaymentProviderSettings = {
|
|
94
|
+
"default_provider": "wise" | "deel";
|
|
95
|
+
"version": number;
|
|
96
|
+
"events": Array<StaffPaymentProviderEvent>;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export type StaffPaymentCommand = {
|
|
100
|
+
"id": string;
|
|
101
|
+
"user_id": number;
|
|
102
|
+
"month": string;
|
|
103
|
+
"expected_version": number;
|
|
104
|
+
"kind": "amount" | "payment" | "void" | "opening" | "reopen" | "note";
|
|
105
|
+
"amount_cents": number | null;
|
|
106
|
+
"currency": string | null;
|
|
107
|
+
"paid_on": string | null;
|
|
108
|
+
"due_on": string | null;
|
|
109
|
+
"reference": string;
|
|
110
|
+
"note": string;
|
|
111
|
+
"payment_id": string | null;
|
|
112
|
+
"source": "wise" | "deel" | "historical";
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export type StaffPaymentEvent = {
|
|
116
|
+
"id": string;
|
|
117
|
+
"user_id": number;
|
|
118
|
+
"month": string;
|
|
119
|
+
"expected_version": number;
|
|
120
|
+
"kind": "amount" | "payment" | "void" | "opening" | "reopen" | "note";
|
|
121
|
+
"amount_cents": number | null;
|
|
122
|
+
"currency": string | null;
|
|
123
|
+
"paid_on": string | null;
|
|
124
|
+
"due_on": string | null;
|
|
125
|
+
"reference": string;
|
|
126
|
+
"note": string;
|
|
127
|
+
"payment_id": string | null;
|
|
128
|
+
"source": "wise" | "deel" | "historical";
|
|
129
|
+
"version": number;
|
|
130
|
+
"actor_id": number;
|
|
131
|
+
"actor_name": string;
|
|
132
|
+
"recorded_at": string;
|
|
133
|
+
"request_id": string;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export type StaffPaymentRow = {
|
|
137
|
+
"user_id": number;
|
|
138
|
+
"name": string;
|
|
139
|
+
"active": boolean;
|
|
140
|
+
"wise_ready": boolean;
|
|
141
|
+
"deel_ready": boolean;
|
|
142
|
+
"payout_provider": "wise" | "deel";
|
|
143
|
+
"provider_override": "wise" | "deel" | null;
|
|
144
|
+
"provider_version": number;
|
|
145
|
+
"month": string;
|
|
146
|
+
"version": number;
|
|
147
|
+
"amount_cents": number | null;
|
|
148
|
+
"currency": string | null;
|
|
149
|
+
"has_hours": boolean;
|
|
150
|
+
"amount_basis": "ledger" | "contractor_cost";
|
|
151
|
+
"paid_cents": number;
|
|
152
|
+
"balance_cents": number | null;
|
|
153
|
+
"reserved_cents": number;
|
|
154
|
+
"available_cents": number | null;
|
|
155
|
+
"due_on": string | null;
|
|
156
|
+
"settled_through": string | null;
|
|
157
|
+
"status": "in_progress" | "pending" | "partial" | "paid" | "settled";
|
|
158
|
+
"overdue": boolean;
|
|
159
|
+
"events": Array<StaffPaymentEvent>;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export type StaffPaymentReport = {
|
|
163
|
+
"month": string;
|
|
164
|
+
"as_of": string;
|
|
165
|
+
"rows": Array<StaffPaymentRow>;
|
|
166
|
+
"provider_settings": StaffPaymentProviderSettings;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
export type StaffPaymentReportEnvelope = {
|
|
170
|
+
"data": StaffPaymentReport;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export type PaymentSelection = {
|
|
174
|
+
"user_id": number;
|
|
175
|
+
"month": string;
|
|
176
|
+
"amount_cents": number;
|
|
177
|
+
"expected_version": number;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export type PaymentRunCommand = {
|
|
181
|
+
"id": string;
|
|
182
|
+
"name": string;
|
|
183
|
+
"source_currency": string;
|
|
184
|
+
"scheduled_at": string;
|
|
185
|
+
"timezone": string;
|
|
186
|
+
"items": Array<PaymentSelection>;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
export type PaymentQuote = {
|
|
190
|
+
"id": string;
|
|
191
|
+
"profile_id": string;
|
|
192
|
+
"recipient_id": string;
|
|
193
|
+
"recipient_name": string;
|
|
194
|
+
"source_currency": string;
|
|
195
|
+
"target_currency": string;
|
|
196
|
+
"target_cents": number;
|
|
197
|
+
"source_cents": number;
|
|
198
|
+
"fee_cents": number;
|
|
199
|
+
"rate": number;
|
|
200
|
+
"expires_at": string;
|
|
201
|
+
"estimated_arrival": string | null;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export type PaymentDestination = {
|
|
205
|
+
"id": number;
|
|
206
|
+
"external_id": string;
|
|
207
|
+
"kind": "account" | "contact";
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
export type PaymentItem = {
|
|
211
|
+
"user_id": number;
|
|
212
|
+
"month": string;
|
|
213
|
+
"amount_cents": number;
|
|
214
|
+
"expected_version": number;
|
|
215
|
+
"id": string;
|
|
216
|
+
"run_id": string;
|
|
217
|
+
"name": string;
|
|
218
|
+
"currency": string;
|
|
219
|
+
"destination": PaymentDestination;
|
|
220
|
+
"quote": PaymentQuote;
|
|
221
|
+
"execution_quote": PaymentQuote | null;
|
|
222
|
+
"max_source_cents": number;
|
|
223
|
+
"state": "draft" | "queued" | "creating" | "funding" | "processing" | "paid" | "failed" | "attention" | "cancelled";
|
|
224
|
+
"transfer_id": string | null;
|
|
225
|
+
"provider_status": string | null;
|
|
226
|
+
"failure": string | null;
|
|
227
|
+
"attempts": number;
|
|
228
|
+
"next_attempt_at": string;
|
|
229
|
+
"updated_at": string;
|
|
230
|
+
"version": number;
|
|
231
|
+
"lease_token": string | null;
|
|
232
|
+
"lease_until": string | null;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
export type PaymentRun = {
|
|
236
|
+
"id": string;
|
|
237
|
+
"name": string;
|
|
238
|
+
"source_currency": string;
|
|
239
|
+
"scheduled_at": string;
|
|
240
|
+
"timezone": string;
|
|
241
|
+
"state": "draft" | "approved" | "cancelled";
|
|
242
|
+
"actor_id": number;
|
|
243
|
+
"approved_by": number | null;
|
|
244
|
+
"created_at": string;
|
|
245
|
+
"approved_at": string | null;
|
|
246
|
+
"request_id": string;
|
|
247
|
+
"items": Array<PaymentItem>;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
export type PaymentRunApproval = {
|
|
251
|
+
"limits": Array<{
|
|
252
|
+
"item_id": string;
|
|
253
|
+
"max_source_cents": number;
|
|
254
|
+
}>;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
export type PaymentRunEnvelope = {
|
|
258
|
+
"data": PaymentRun;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
export type PaymentRunReport = {
|
|
262
|
+
"from": string;
|
|
263
|
+
"to": string;
|
|
264
|
+
"ledgers": Array<StaffPaymentReport>;
|
|
265
|
+
"runs": Array<PaymentRun>;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
export type PaymentRunReportEnvelope = {
|
|
269
|
+
"data": PaymentRunReport;
|
|
270
|
+
};
|
|
271
|
+
|
|
28
272
|
export type InvoiceReminderPolicy = {
|
|
29
273
|
"first_after_days": number;
|
|
30
274
|
"every_days": number;
|
|
@@ -123,6 +367,7 @@ export type EmailLog = {
|
|
|
123
367
|
"from": EmailRecipient | null;
|
|
124
368
|
"reply_to": Array<EmailRecipient>;
|
|
125
369
|
"to": Array<EmailRecipient>;
|
|
370
|
+
"cc": Array<EmailRecipient>;
|
|
126
371
|
"template": string;
|
|
127
372
|
"subject": string;
|
|
128
373
|
"provider": string | null;
|
|
@@ -398,6 +643,26 @@ export type QuickBooksSettingsInput = {
|
|
|
398
643
|
"allow_online_payment": boolean;
|
|
399
644
|
};
|
|
400
645
|
|
|
646
|
+
export type InvoiceQuickBooksEnvelope = {
|
|
647
|
+
"data": {
|
|
648
|
+
"connected": boolean;
|
|
649
|
+
"invoice": {
|
|
650
|
+
"quickbooks_id": string;
|
|
651
|
+
"mirrored_at": string;
|
|
652
|
+
} | null;
|
|
653
|
+
"payments": Array<{
|
|
654
|
+
"payment_id": number;
|
|
655
|
+
"quickbooks_id": string;
|
|
656
|
+
"mirrored_at": string;
|
|
657
|
+
}>;
|
|
658
|
+
"last_outcome": {
|
|
659
|
+
"kind": "created" | "updated" | "adopted" | "linked" | "refused" | "failed";
|
|
660
|
+
"reason": string | null;
|
|
661
|
+
"at": string;
|
|
662
|
+
} | null;
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
|
|
401
666
|
export type SenderEvidenceRefreshInput = {
|
|
402
667
|
"expected_evidence_version": number;
|
|
403
668
|
};
|
|
@@ -430,10 +695,17 @@ export type OutboxAggregate = {
|
|
|
430
695
|
"sequence": number;
|
|
431
696
|
};
|
|
432
697
|
|
|
698
|
+
export type ActivityLogActor = {
|
|
699
|
+
"type": "user" | "contact" | "system";
|
|
700
|
+
"id": number | null;
|
|
701
|
+
"name": string | null;
|
|
702
|
+
};
|
|
703
|
+
|
|
433
704
|
export type ActivityLog = {
|
|
434
705
|
"event_id": string;
|
|
435
706
|
"event_type": string;
|
|
436
707
|
"aggregate": OutboxAggregate;
|
|
708
|
+
"actor": ActivityLogActor | null;
|
|
437
709
|
"payload": {
|
|
438
710
|
[key: string]: unknown;
|
|
439
711
|
};
|
|
@@ -867,6 +1139,7 @@ export type TimeEntry = {
|
|
|
867
1139
|
};
|
|
868
1140
|
|
|
869
1141
|
export type TimeEntryInput = {
|
|
1142
|
+
"user_id"?: number;
|
|
870
1143
|
"project_id": number;
|
|
871
1144
|
"task_id": number;
|
|
872
1145
|
"spent_date"?: string;
|
|
@@ -940,11 +1213,16 @@ export type TimeEntryNoteSettingsEnvelope = {
|
|
|
940
1213
|
|
|
941
1214
|
export type Profile = {
|
|
942
1215
|
"user_id": number;
|
|
1216
|
+
"first_name"?: string;
|
|
1217
|
+
"last_name"?: string;
|
|
1218
|
+
"email"?: string | null;
|
|
943
1219
|
"timezone": string;
|
|
1220
|
+
"invoice_copy_to_self"?: boolean;
|
|
944
1221
|
};
|
|
945
1222
|
|
|
946
1223
|
export type ProfilePatch = {
|
|
947
1224
|
"timezone"?: string;
|
|
1225
|
+
"invoice_copy_to_self"?: boolean;
|
|
948
1226
|
};
|
|
949
1227
|
|
|
950
1228
|
export type ProfileEnvelope = {
|
|
@@ -952,6 +1230,16 @@ export type ProfileEnvelope = {
|
|
|
952
1230
|
"links": Links;
|
|
953
1231
|
};
|
|
954
1232
|
|
|
1233
|
+
export type AccountDeletionRequest = {
|
|
1234
|
+
"user_id": number;
|
|
1235
|
+
"requested_at": string;
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
export type AccountDeletionRequestEnvelope = {
|
|
1239
|
+
"data": AccountDeletionRequest;
|
|
1240
|
+
"links": Links;
|
|
1241
|
+
};
|
|
1242
|
+
|
|
955
1243
|
export type TimeEntryOption = {
|
|
956
1244
|
"project_id": number;
|
|
957
1245
|
"task_id": number;
|
|
@@ -1385,12 +1673,46 @@ export type EstimateConversionEnvelope = {
|
|
|
1385
1673
|
};
|
|
1386
1674
|
|
|
1387
1675
|
export type InvoiceGenerationInput = {
|
|
1676
|
+
"kind"?: "tracked";
|
|
1388
1677
|
"client_id": number;
|
|
1389
|
-
"from"
|
|
1678
|
+
"from"?: string | null;
|
|
1390
1679
|
"to": string;
|
|
1391
1680
|
"project_ids": Array<number>;
|
|
1392
1681
|
"time_summary_type": "project" | "task" | "people" | "detailed" | null;
|
|
1393
1682
|
"expense_summary_type": "project" | "category" | "people" | "detailed" | null;
|
|
1683
|
+
} | {
|
|
1684
|
+
"kind": "free_form";
|
|
1685
|
+
"client_id": number;
|
|
1686
|
+
} | {
|
|
1687
|
+
"kind": "banded";
|
|
1688
|
+
"client_id": number;
|
|
1689
|
+
"from"?: string | null;
|
|
1690
|
+
"to": string;
|
|
1691
|
+
"project_ids": Array<number>;
|
|
1692
|
+
"line_items": Array<{
|
|
1693
|
+
"kind": string;
|
|
1694
|
+
"description"?: string | null;
|
|
1695
|
+
"quantity": number;
|
|
1696
|
+
"unit_price_cents": number;
|
|
1697
|
+
"project_id"?: number | null;
|
|
1698
|
+
}>;
|
|
1699
|
+
"claim_mode": "all" | "ceiling";
|
|
1700
|
+
"claim_ceiling_seconds"?: number | null;
|
|
1701
|
+
"claim_ceiling_cents"?: number | null;
|
|
1702
|
+
"overage_summary_type"?: "project" | "task" | "people" | "detailed" | null;
|
|
1703
|
+
};
|
|
1704
|
+
|
|
1705
|
+
export type InvoiceBandClaim = {
|
|
1706
|
+
"claimed_entry_count": number;
|
|
1707
|
+
"claimed_seconds": number;
|
|
1708
|
+
"billed_entry_count": number;
|
|
1709
|
+
"billed_seconds": number;
|
|
1710
|
+
};
|
|
1711
|
+
|
|
1712
|
+
export type InvoiceGenerationEnvelope = {
|
|
1713
|
+
"data": Invoice;
|
|
1714
|
+
"band"?: InvoiceBandClaim;
|
|
1715
|
+
"links": Links;
|
|
1394
1716
|
};
|
|
1395
1717
|
|
|
1396
1718
|
export type InvoiceCommandSnapshot = {
|
|
@@ -1492,6 +1814,7 @@ export type InvoiceMessage = {
|
|
|
1492
1814
|
"sent_from": string | null;
|
|
1493
1815
|
"sent_from_email": string | null;
|
|
1494
1816
|
"recipients": Array<InvoiceRecipient>;
|
|
1817
|
+
"cc": Array<InvoiceRecipient>;
|
|
1495
1818
|
"subject": string | null;
|
|
1496
1819
|
"body": string | null;
|
|
1497
1820
|
"attach_pdf": boolean;
|
|
@@ -1540,11 +1863,137 @@ export type InvoiceTransitionInput = {
|
|
|
1540
1863
|
export type InvoiceEmailDeliveryInput = {
|
|
1541
1864
|
"expected_version": number;
|
|
1542
1865
|
"recipients": Array<InvoiceRecipient>;
|
|
1866
|
+
"cc"?: Array<InvoiceRecipient>;
|
|
1867
|
+
"subject"?: string;
|
|
1868
|
+
"message"?: string;
|
|
1869
|
+
"send_me_a_copy"?: boolean;
|
|
1543
1870
|
"sender_identity_id"?: number;
|
|
1544
1871
|
"template_version"?: number;
|
|
1545
1872
|
"confirmed": true;
|
|
1546
1873
|
};
|
|
1547
1874
|
|
|
1875
|
+
export type InvoiceEmailPreviewInput = {
|
|
1876
|
+
"expected_version"?: number;
|
|
1877
|
+
"recipients": Array<InvoiceRecipient>;
|
|
1878
|
+
"cc"?: Array<InvoiceRecipient>;
|
|
1879
|
+
"subject"?: string;
|
|
1880
|
+
"message"?: string;
|
|
1881
|
+
"send_me_a_copy"?: boolean;
|
|
1882
|
+
"sender_identity_id"?: number;
|
|
1883
|
+
"template_version"?: number;
|
|
1884
|
+
"attach_pdf"?: boolean;
|
|
1885
|
+
"attach_files"?: boolean;
|
|
1886
|
+
"append_pdfs"?: boolean;
|
|
1887
|
+
"attach_journal"?: "detailed" | "summary" | false;
|
|
1888
|
+
"journal_formats"?: JournalFormats;
|
|
1889
|
+
};
|
|
1890
|
+
|
|
1891
|
+
export type InvoiceEmailPreviewAttachment = {
|
|
1892
|
+
"kind": "invoice" | "journal" | "file";
|
|
1893
|
+
"filename": string;
|
|
1894
|
+
"content_type": string;
|
|
1895
|
+
"byte_size": number;
|
|
1896
|
+
"appended": Array<string>;
|
|
1897
|
+
"not_appended": "encrypted" | "unreadable" | "empty" | "too_large" | null;
|
|
1898
|
+
};
|
|
1899
|
+
|
|
1900
|
+
export type InvoiceEmailPreviewEnvelope = {
|
|
1901
|
+
"data": {
|
|
1902
|
+
"invoice_id": number;
|
|
1903
|
+
"from": InvoiceRecipient;
|
|
1904
|
+
"reply_to": string | null;
|
|
1905
|
+
"to": Array<InvoiceRecipient>;
|
|
1906
|
+
"cc": Array<InvoiceRecipient>;
|
|
1907
|
+
"send_me_a_copy": boolean;
|
|
1908
|
+
"subject": string;
|
|
1909
|
+
"text": string;
|
|
1910
|
+
"html": string | null;
|
|
1911
|
+
"attachments": Array<InvoiceEmailPreviewAttachment>;
|
|
1912
|
+
};
|
|
1913
|
+
"links": {
|
|
1914
|
+
"document": string;
|
|
1915
|
+
};
|
|
1916
|
+
};
|
|
1917
|
+
|
|
1918
|
+
export type InvoiceEmailPreviewSentEnvelope = {
|
|
1919
|
+
"data": {
|
|
1920
|
+
"invoice_id": number;
|
|
1921
|
+
"delivery_id": number;
|
|
1922
|
+
"to": Array<InvoiceRecipient>;
|
|
1923
|
+
"subject": string;
|
|
1924
|
+
};
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1927
|
+
export type InvoiceEmailDefaultsEnvelope = {
|
|
1928
|
+
"data": {
|
|
1929
|
+
"invoice_id": number;
|
|
1930
|
+
"client_id": number;
|
|
1931
|
+
"company_name": string;
|
|
1932
|
+
"client_name": string;
|
|
1933
|
+
"template_version": number;
|
|
1934
|
+
"subject": string;
|
|
1935
|
+
"message": string;
|
|
1936
|
+
"to": Array<InvoiceRecipient>;
|
|
1937
|
+
"cc": Array<InvoiceRecipient>;
|
|
1938
|
+
"recipients_source": "client" | "contacts";
|
|
1939
|
+
"always_cc": Array<InvoiceRecipient>;
|
|
1940
|
+
"sender": {
|
|
1941
|
+
"name": string;
|
|
1942
|
+
"email": string | null;
|
|
1943
|
+
};
|
|
1944
|
+
"send_me_a_copy": boolean;
|
|
1945
|
+
"delivery": {
|
|
1946
|
+
"available": boolean;
|
|
1947
|
+
"code": string | null;
|
|
1948
|
+
"message": string | null;
|
|
1949
|
+
};
|
|
1950
|
+
};
|
|
1951
|
+
};
|
|
1952
|
+
|
|
1953
|
+
export type InvoiceRecipientLists = {
|
|
1954
|
+
"to": Array<InvoiceRecipient>;
|
|
1955
|
+
"cc": Array<InvoiceRecipient>;
|
|
1956
|
+
};
|
|
1957
|
+
|
|
1958
|
+
export type ClientInvoiceSendingEnvelope = {
|
|
1959
|
+
"data": {
|
|
1960
|
+
"client_id": number;
|
|
1961
|
+
"recipients": InvoiceRecipientLists | null;
|
|
1962
|
+
"contacts": InvoiceRecipientLists;
|
|
1963
|
+
"attach_pdf": boolean | null;
|
|
1964
|
+
"append_pdfs": boolean | null;
|
|
1965
|
+
"attach_files": boolean | null;
|
|
1966
|
+
"attach_journal": "detailed" | "summary" | boolean | null;
|
|
1967
|
+
"journal_formats": JournalFormats | null;
|
|
1968
|
+
"organization": {
|
|
1969
|
+
"attach_pdf": boolean;
|
|
1970
|
+
"append_pdfs": boolean;
|
|
1971
|
+
"attach_files": boolean;
|
|
1972
|
+
"attach_journal": "detailed" | "summary" | boolean;
|
|
1973
|
+
"journal_formats": JournalFormats;
|
|
1974
|
+
};
|
|
1975
|
+
};
|
|
1976
|
+
};
|
|
1977
|
+
|
|
1978
|
+
export type ClientInvoiceSendingInput = {
|
|
1979
|
+
"recipients"?: InvoiceRecipientLists | null;
|
|
1980
|
+
"attach_pdf"?: boolean | null;
|
|
1981
|
+
"append_pdfs"?: boolean | null;
|
|
1982
|
+
"attach_files"?: boolean | null;
|
|
1983
|
+
"attach_journal"?: "detailed" | "summary" | false | null;
|
|
1984
|
+
"journal_formats"?: JournalFormats | null;
|
|
1985
|
+
};
|
|
1986
|
+
|
|
1987
|
+
export type OrganizationInvoiceSendingEnvelope = {
|
|
1988
|
+
"data": {
|
|
1989
|
+
"always_cc": Array<InvoiceRecipient>;
|
|
1990
|
+
};
|
|
1991
|
+
};
|
|
1992
|
+
|
|
1993
|
+
export type OrganizationInvoiceSendingInput = {
|
|
1994
|
+
"always_cc": Array<InvoiceRecipient>;
|
|
1995
|
+
};
|
|
1996
|
+
|
|
1548
1997
|
export type InvoicePayment = {
|
|
1549
1998
|
"id": number;
|
|
1550
1999
|
"invoice_id": number;
|
|
@@ -1819,6 +2268,7 @@ export type RecurringInvoice = {
|
|
|
1819
2268
|
"claim_ceiling_cents": number | null;
|
|
1820
2269
|
"claim_scope": "billable" | "tracked";
|
|
1821
2270
|
"cost_alert_basis_points": number | null;
|
|
2271
|
+
"purchase_order": string | null;
|
|
1822
2272
|
"created_at": string;
|
|
1823
2273
|
"updated_at": string;
|
|
1824
2274
|
};
|
|
@@ -1895,6 +2345,7 @@ export type RecurringInvoiceInput = {
|
|
|
1895
2345
|
"claim_ceiling_cents"?: number | null;
|
|
1896
2346
|
"claim_scope"?: "billable" | "tracked";
|
|
1897
2347
|
"cost_alert_basis_points"?: number | null;
|
|
2348
|
+
"purchase_order"?: string | null;
|
|
1898
2349
|
};
|
|
1899
2350
|
|
|
1900
2351
|
export type MyHoursProject = {
|
|
@@ -1949,6 +2400,7 @@ export type DetailedTimeRow = {
|
|
|
1949
2400
|
"claimed": boolean;
|
|
1950
2401
|
"time_entry_id"?: number;
|
|
1951
2402
|
"invoice_id"?: number | null;
|
|
2403
|
+
"invoice_number"?: string | null;
|
|
1952
2404
|
"notes"?: string | null;
|
|
1953
2405
|
"project_active"?: boolean;
|
|
1954
2406
|
};
|
|
@@ -2833,18 +3285,96 @@ export type OrganizationInvoiceThankYouEnvelope = {
|
|
|
2833
3285
|
};
|
|
2834
3286
|
};
|
|
2835
3287
|
|
|
3288
|
+
export type ReminderPolicy = {
|
|
3289
|
+
"first_after_days": number;
|
|
3290
|
+
"every_days": number;
|
|
3291
|
+
};
|
|
3292
|
+
|
|
3293
|
+
export type InvoiceReminderPreferenceInput = {
|
|
3294
|
+
"reminders": boolean | null;
|
|
3295
|
+
};
|
|
3296
|
+
|
|
3297
|
+
export type InvoiceReminderPreferenceEnvelope = {
|
|
3298
|
+
"data": {
|
|
3299
|
+
"invoice_id": number;
|
|
3300
|
+
"reminders": boolean | null;
|
|
3301
|
+
"organization_reminder_policy": ReminderPolicy | null;
|
|
3302
|
+
"effective": boolean;
|
|
3303
|
+
"next_reminder_at": string | null;
|
|
3304
|
+
};
|
|
3305
|
+
};
|
|
3306
|
+
|
|
3307
|
+
export type OrganizationInvoiceRemindersInput = {
|
|
3308
|
+
"reminder_policy": ReminderPolicy | null;
|
|
3309
|
+
};
|
|
3310
|
+
|
|
3311
|
+
export type OrganizationInvoiceRemindersEnvelope = {
|
|
3312
|
+
"data": {
|
|
3313
|
+
"reminder_policy": ReminderPolicy | null;
|
|
3314
|
+
"applied_to_open_invoices"?: number;
|
|
3315
|
+
};
|
|
3316
|
+
};
|
|
3317
|
+
|
|
3318
|
+
export type JournalFormats = Array<"pdf" | "csv" | "xlsx">;
|
|
3319
|
+
|
|
3320
|
+
export type InvoiceDocumentPreferenceInput = {
|
|
3321
|
+
"attach_pdf"?: boolean | null;
|
|
3322
|
+
"attach_files"?: boolean | null;
|
|
3323
|
+
"append_pdfs"?: boolean | null;
|
|
3324
|
+
"attach_journal"?: "detailed" | "summary" | false | null;
|
|
3325
|
+
"journal_formats"?: JournalFormats | null;
|
|
3326
|
+
};
|
|
3327
|
+
|
|
3328
|
+
export type OrganizationInvoiceDocumentsInput = {
|
|
3329
|
+
"attach_pdf"?: boolean;
|
|
3330
|
+
"attach_files"?: boolean;
|
|
3331
|
+
"append_pdfs"?: boolean;
|
|
3332
|
+
"attach_journal"?: "detailed" | "summary" | false;
|
|
3333
|
+
"journal_formats"?: JournalFormats;
|
|
3334
|
+
};
|
|
3335
|
+
|
|
3336
|
+
export type InvoiceDefaults = {
|
|
3337
|
+
"company_name": string;
|
|
3338
|
+
"company_address": string | null;
|
|
3339
|
+
"notes": string | null;
|
|
3340
|
+
"subject": string | null;
|
|
3341
|
+
};
|
|
3342
|
+
|
|
3343
|
+
export type InvoiceDefaultsEnvelope = {
|
|
3344
|
+
"data": InvoiceDefaults;
|
|
3345
|
+
"links": Links;
|
|
3346
|
+
};
|
|
3347
|
+
|
|
3348
|
+
export type InvoiceDefaultsInput = {
|
|
3349
|
+
"company_name"?: string;
|
|
3350
|
+
"company_address"?: string | null;
|
|
3351
|
+
"notes"?: string | null;
|
|
3352
|
+
"subject"?: string | null;
|
|
3353
|
+
};
|
|
3354
|
+
|
|
2836
3355
|
export type InvoiceDocumentPreferenceEnvelope = {
|
|
2837
3356
|
"data": {
|
|
2838
3357
|
"invoice_id": number;
|
|
2839
3358
|
"attach_pdf": boolean;
|
|
3359
|
+
"client_attach_pdf": boolean | null;
|
|
2840
3360
|
"organization_attach_pdf": boolean;
|
|
2841
3361
|
"effective": boolean;
|
|
2842
3362
|
"attach_files": boolean;
|
|
3363
|
+
"client_attach_files": boolean | null;
|
|
2843
3364
|
"organization_attach_files": boolean;
|
|
2844
3365
|
"effective_files": boolean;
|
|
3366
|
+
"append_pdfs": boolean | null;
|
|
3367
|
+
"client_append_pdfs": boolean | null;
|
|
3368
|
+
"organization_append_pdfs": boolean;
|
|
3369
|
+
"effective_append_pdfs": boolean;
|
|
2845
3370
|
"attach_journal": "detailed" | "summary" | boolean;
|
|
3371
|
+
"client_attach_journal": "detailed" | "summary" | boolean | null;
|
|
2846
3372
|
"organization_attach_journal": "detailed" | "summary" | boolean;
|
|
2847
3373
|
"effective_journal": "detailed" | "summary" | boolean;
|
|
3374
|
+
"journal_formats": JournalFormats | null;
|
|
3375
|
+
"client_journal_formats": JournalFormats | null;
|
|
3376
|
+
"organization_journal_formats": JournalFormats;
|
|
3377
|
+
"effective_journal_formats": JournalFormats;
|
|
2848
3378
|
};
|
|
2849
3379
|
};
|
|
2850
3380
|
|
|
@@ -2852,7 +3382,9 @@ export type OrganizationInvoiceDocumentsEnvelope = {
|
|
|
2852
3382
|
"data": {
|
|
2853
3383
|
"attach_pdf": boolean;
|
|
2854
3384
|
"attach_files": boolean;
|
|
3385
|
+
"append_pdfs": boolean;
|
|
2855
3386
|
"attach_journal": "detailed" | "summary" | boolean;
|
|
3387
|
+
"journal_formats": JournalFormats;
|
|
2856
3388
|
};
|
|
2857
3389
|
};
|
|
2858
3390
|
|
|
@@ -3352,6 +3884,15 @@ export class EzactoClient {
|
|
|
3352
3884
|
});
|
|
3353
3885
|
}
|
|
3354
3886
|
|
|
3887
|
+
async requestAccountDeletion(args: { signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<AccountDeletionRequestEnvelope> {
|
|
3888
|
+
const headers = new Headers(args.headers);
|
|
3889
|
+
|
|
3890
|
+
return this.request<AccountDeletionRequestEnvelope>("POST", "/api/v1/profile/deletion-request", {
|
|
3891
|
+
signal: args.signal,
|
|
3892
|
+
headers,
|
|
3893
|
+
});
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3355
3896
|
async listClients(args: { query?: { "cursor"?: string; "per_page"?: number; "is_active"?: boolean; "updated_since"?: string; "parent_client_id"?: number; "bill_to_client_id"?: number; "q"?: string }; signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<GeneralResourcePage> {
|
|
3356
3897
|
const headers = new Headers(args.headers);
|
|
3357
3898
|
|
|
@@ -3870,10 +4411,11 @@ export class EzactoClient {
|
|
|
3870
4411
|
});
|
|
3871
4412
|
}
|
|
3872
4413
|
|
|
3873
|
-
async listTimeEntryOptions(args: { signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<TimeEntryOptionListEnvelope> {
|
|
4414
|
+
async listTimeEntryOptions(args: { query?: { "user_id"?: number }; signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<TimeEntryOptionListEnvelope> {
|
|
3874
4415
|
const headers = new Headers(args.headers);
|
|
3875
4416
|
|
|
3876
4417
|
return this.request<TimeEntryOptionListEnvelope>("GET", "/api/v1/time-entry-options", {
|
|
4418
|
+
query: args.query,
|
|
3877
4419
|
signal: args.signal,
|
|
3878
4420
|
headers,
|
|
3879
4421
|
});
|
|
@@ -4148,7 +4690,7 @@ export class EzactoClient {
|
|
|
4148
4690
|
});
|
|
4149
4691
|
}
|
|
4150
4692
|
|
|
4151
|
-
async listInvoices(args: { query?: { "cursor"?: string; "per_page"?: number; "state"?: string; "client_id"?: string }; signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<InvoicePage> {
|
|
4693
|
+
async listInvoices(args: { query?: { "cursor"?: string; "per_page"?: number; "state"?: string; "client_id"?: string; "number"?: string }; signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<InvoicePage> {
|
|
4152
4694
|
const headers = new Headers(args.headers);
|
|
4153
4695
|
|
|
4154
4696
|
return this.request<InvoicePage>("GET", "/api/v1/invoices", {
|
|
@@ -4215,10 +4757,10 @@ export class EzactoClient {
|
|
|
4215
4757
|
});
|
|
4216
4758
|
}
|
|
4217
4759
|
|
|
4218
|
-
async generateInvoice(args: { "Idempotency-Key": string; body: InvoiceGenerationInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<
|
|
4760
|
+
async generateInvoice(args: { "Idempotency-Key": string; body: InvoiceGenerationInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoiceGenerationEnvelope> {
|
|
4219
4761
|
const headers = new Headers(args.headers);
|
|
4220
4762
|
if (args["Idempotency-Key"] !== undefined) headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
4221
|
-
return this.request<
|
|
4763
|
+
return this.request<InvoiceGenerationEnvelope>("POST", "/api/v1/invoice-generations", {
|
|
4222
4764
|
body: args.body,
|
|
4223
4765
|
signal: args.signal,
|
|
4224
4766
|
headers,
|
|
@@ -4304,6 +4846,37 @@ export class EzactoClient {
|
|
|
4304
4846
|
});
|
|
4305
4847
|
}
|
|
4306
4848
|
|
|
4849
|
+
async previewInvoiceEmail(args: { "id": number; body: InvoiceEmailPreviewInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoiceEmailPreviewEnvelope> {
|
|
4850
|
+
const headers = new Headers(args.headers);
|
|
4851
|
+
|
|
4852
|
+
return this.request<InvoiceEmailPreviewEnvelope>("POST", "/api/v1/invoices/:id/deliveries/preview".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
4853
|
+
body: args.body,
|
|
4854
|
+
signal: args.signal,
|
|
4855
|
+
headers,
|
|
4856
|
+
});
|
|
4857
|
+
}
|
|
4858
|
+
|
|
4859
|
+
async downloadInvoiceEmailPreviewDocument(args: { "id": number; query?: { "append_pdfs"?: "true" | "false" }; signal?: AbortSignal; headers?: HeadersInit }): Promise<ArrayBuffer> {
|
|
4860
|
+
const headers = new Headers(args.headers);
|
|
4861
|
+
|
|
4862
|
+
return this.request<ArrayBuffer>("GET", "/api/v1/invoices/:id/deliveries/preview/document".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
4863
|
+
query: args.query,
|
|
4864
|
+
signal: args.signal,
|
|
4865
|
+
binary: true,
|
|
4866
|
+
headers,
|
|
4867
|
+
});
|
|
4868
|
+
}
|
|
4869
|
+
|
|
4870
|
+
async sendInvoiceEmailPreview(args: { "id": number; body: InvoiceEmailPreviewInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoiceEmailPreviewSentEnvelope> {
|
|
4871
|
+
const headers = new Headers(args.headers);
|
|
4872
|
+
|
|
4873
|
+
return this.request<InvoiceEmailPreviewSentEnvelope>("POST", "/api/v1/invoices/:id/deliveries/preview/send".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
4874
|
+
body: args.body,
|
|
4875
|
+
signal: args.signal,
|
|
4876
|
+
headers,
|
|
4877
|
+
});
|
|
4878
|
+
}
|
|
4879
|
+
|
|
4307
4880
|
async listInvoicePayments(args: { "id": number; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoicePaymentListEnvelope> {
|
|
4308
4881
|
const headers = new Headers(args.headers);
|
|
4309
4882
|
|
|
@@ -4673,6 +5246,123 @@ export class EzactoClient {
|
|
|
4673
5246
|
});
|
|
4674
5247
|
}
|
|
4675
5248
|
|
|
5249
|
+
async setRecurringInvoiceAttachmentThrough(args: { "recurringInvoiceId": number; "attachmentId": number; body: RecurringAttachmentThroughInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<AttachmentEnvelope> {
|
|
5250
|
+
const headers = new Headers(args.headers);
|
|
5251
|
+
|
|
5252
|
+
return this.request<AttachmentEnvelope>("PATCH", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments/:attachmentId".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
5253
|
+
body: args.body,
|
|
5254
|
+
signal: args.signal,
|
|
5255
|
+
headers,
|
|
5256
|
+
});
|
|
5257
|
+
}
|
|
5258
|
+
|
|
5259
|
+
async removeRecurringInvoiceAttachment(args: { "recurringInvoiceId": number; "attachmentId": number; signal?: AbortSignal; headers?: HeadersInit }): Promise<void> {
|
|
5260
|
+
const headers = new Headers(args.headers);
|
|
5261
|
+
|
|
5262
|
+
return this.request<void>("DELETE", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments/:attachmentId".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
5263
|
+
signal: args.signal,
|
|
5264
|
+
headers,
|
|
5265
|
+
});
|
|
5266
|
+
}
|
|
5267
|
+
|
|
5268
|
+
async getPaymentActuals(args: { query?: { "month"?: string }; signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<PaymentActualsEnvelope> {
|
|
5269
|
+
const headers = new Headers(args.headers);
|
|
5270
|
+
|
|
5271
|
+
return this.request<PaymentActualsEnvelope>("GET", "/api/v1/staff-payments/actuals", {
|
|
5272
|
+
query: args.query,
|
|
5273
|
+
signal: args.signal,
|
|
5274
|
+
headers,
|
|
5275
|
+
});
|
|
5276
|
+
}
|
|
5277
|
+
|
|
5278
|
+
async confirmPaymentActuals(args: { body: ConfirmPaymentActuals; signal?: AbortSignal; headers?: HeadersInit }): Promise<void> {
|
|
5279
|
+
const headers = new Headers(args.headers);
|
|
5280
|
+
|
|
5281
|
+
return this.request<void>("POST", "/api/v1/staff-payments/actuals", {
|
|
5282
|
+
body: args.body,
|
|
5283
|
+
signal: args.signal,
|
|
5284
|
+
headers,
|
|
5285
|
+
});
|
|
5286
|
+
}
|
|
5287
|
+
|
|
5288
|
+
async configureStaffPaymentProvider(args: { body: StaffPaymentProviderCommand; signal?: AbortSignal; headers?: HeadersInit }): Promise<void> {
|
|
5289
|
+
const headers = new Headers(args.headers);
|
|
5290
|
+
|
|
5291
|
+
return this.request<void>("POST", "/api/v1/staff-payments/provider-settings", {
|
|
5292
|
+
body: args.body,
|
|
5293
|
+
signal: args.signal,
|
|
5294
|
+
headers,
|
|
5295
|
+
});
|
|
5296
|
+
}
|
|
5297
|
+
|
|
5298
|
+
async getStaffPaymentReport(args: { query?: { "month"?: string }; signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<StaffPaymentReportEnvelope> {
|
|
5299
|
+
const headers = new Headers(args.headers);
|
|
5300
|
+
|
|
5301
|
+
return this.request<StaffPaymentReportEnvelope>("GET", "/api/v1/staff-payments", {
|
|
5302
|
+
query: args.query,
|
|
5303
|
+
signal: args.signal,
|
|
5304
|
+
headers,
|
|
5305
|
+
});
|
|
5306
|
+
}
|
|
5307
|
+
|
|
5308
|
+
async recordStaffPaymentEvent(args: { body: StaffPaymentCommand; signal?: AbortSignal; headers?: HeadersInit }): Promise<void> {
|
|
5309
|
+
const headers = new Headers(args.headers);
|
|
5310
|
+
|
|
5311
|
+
return this.request<void>("POST", "/api/v1/staff-payments/events", {
|
|
5312
|
+
body: args.body,
|
|
5313
|
+
signal: args.signal,
|
|
5314
|
+
headers,
|
|
5315
|
+
});
|
|
5316
|
+
}
|
|
5317
|
+
|
|
5318
|
+
async getPaymentRunReport(args: { query?: { "from"?: string; "to"?: string }; signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<PaymentRunReportEnvelope> {
|
|
5319
|
+
const headers = new Headers(args.headers);
|
|
5320
|
+
|
|
5321
|
+
return this.request<PaymentRunReportEnvelope>("GET", "/api/v1/payment-runs/report", {
|
|
5322
|
+
query: args.query,
|
|
5323
|
+
signal: args.signal,
|
|
5324
|
+
headers,
|
|
5325
|
+
});
|
|
5326
|
+
}
|
|
5327
|
+
|
|
5328
|
+
async previewPaymentRun(args: { body: PaymentRunCommand; signal?: AbortSignal; headers?: HeadersInit }): Promise<PaymentRunEnvelope> {
|
|
5329
|
+
const headers = new Headers(args.headers);
|
|
5330
|
+
|
|
5331
|
+
return this.request<PaymentRunEnvelope>("POST", "/api/v1/payment-runs/preview", {
|
|
5332
|
+
body: args.body,
|
|
5333
|
+
signal: args.signal,
|
|
5334
|
+
headers,
|
|
5335
|
+
});
|
|
5336
|
+
}
|
|
5337
|
+
|
|
5338
|
+
async approvePaymentRun(args: { "id": string; body: PaymentRunApproval; signal?: AbortSignal; headers?: HeadersInit }): Promise<PaymentRunEnvelope> {
|
|
5339
|
+
const headers = new Headers(args.headers);
|
|
5340
|
+
|
|
5341
|
+
return this.request<PaymentRunEnvelope>("POST", "/api/v1/payment-runs/:id/approve".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
5342
|
+
body: args.body,
|
|
5343
|
+
signal: args.signal,
|
|
5344
|
+
headers,
|
|
5345
|
+
});
|
|
5346
|
+
}
|
|
5347
|
+
|
|
5348
|
+
async cancelPaymentRun(args: { "id": string; signal?: AbortSignal; headers?: HeadersInit }): Promise<PaymentRunEnvelope> {
|
|
5349
|
+
const headers = new Headers(args.headers);
|
|
5350
|
+
|
|
5351
|
+
return this.request<PaymentRunEnvelope>("POST", "/api/v1/payment-runs/:id/cancel".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
5352
|
+
signal: args.signal,
|
|
5353
|
+
headers,
|
|
5354
|
+
});
|
|
5355
|
+
}
|
|
5356
|
+
|
|
5357
|
+
async reconcilePaymentRunItem(args: { "id": string; "itemId": string; signal?: AbortSignal; headers?: HeadersInit }): Promise<PaymentRunEnvelope> {
|
|
5358
|
+
const headers = new Headers(args.headers);
|
|
5359
|
+
|
|
5360
|
+
return this.request<PaymentRunEnvelope>("POST", "/api/v1/payment-runs/:id/items/:itemId/reconcile".replace(":id", encodeURIComponent(String(args["id"]))).replace(":itemId", encodeURIComponent(String(args["itemId"]))), {
|
|
5361
|
+
signal: args.signal,
|
|
5362
|
+
headers,
|
|
5363
|
+
});
|
|
5364
|
+
}
|
|
5365
|
+
|
|
4676
5366
|
async getReportDefinitionRegistry(args: { signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<ReportDefinitionRegistryEnvelope> {
|
|
4677
5367
|
const headers = new Headers(args.headers);
|
|
4678
5368
|
|
|
@@ -4923,7 +5613,7 @@ export class EzactoClient {
|
|
|
4923
5613
|
});
|
|
4924
5614
|
}
|
|
4925
5615
|
|
|
4926
|
-
async getDetailedTimeReport(args: { query: { "from": string; "to": string; "client_id"?: number; "project_id"?: number; "task_id"?: number; "user_id"?: number; "role_id"?: number; "tag_id"?: number; "hours"?: "all" | "billable" | "non_billable" | "uninvoiced" | "claimed" | "unclaimed"; "grain"?: "day" | "entry"; "invoice_state"?: "all" | "invoiced" | "uninvoiced"; "active_projects_only"?: boolean }; signal?: AbortSignal; headers?: HeadersInit }): Promise<DetailedTimeReportEnvelope> {
|
|
5616
|
+
async getDetailedTimeReport(args: { query: { "self"?: boolean; "include_fixed_fee"?: boolean; "direct_client_only"?: boolean; "contractors_only"?: boolean; "currency"?: string; "project_status"?: "all" | "active" | "archived"; "billing_method"?: "non_billable" | "time_materials" | "fixed_fee"; "manager_id"?: number; "from": string; "to": string; "client_id"?: number; "project_id"?: number; "task_id"?: number; "user_id"?: number; "role_id"?: number; "tag_id"?: number; "hours"?: "all" | "billable" | "non_billable" | "uninvoiced" | "claimed" | "unclaimed"; "grain"?: "day" | "entry"; "audience"?: "internal" | "client"; "invoice_state"?: "all" | "invoiced" | "uninvoiced"; "active_projects_only"?: boolean }; signal?: AbortSignal; headers?: HeadersInit }): Promise<DetailedTimeReportEnvelope> {
|
|
4927
5617
|
const headers = new Headers(args.headers);
|
|
4928
5618
|
|
|
4929
5619
|
return this.request<DetailedTimeReportEnvelope>("GET", "/api/v1/reports/detailed-time", {
|
|
@@ -4933,6 +5623,17 @@ export class EzactoClient {
|
|
|
4933
5623
|
});
|
|
4934
5624
|
}
|
|
4935
5625
|
|
|
5626
|
+
async downloadDetailedTimeReport(args: { query: { "self"?: boolean; "include_fixed_fee"?: boolean; "direct_client_only"?: boolean; "contractors_only"?: boolean; "currency"?: string; "project_status"?: "all" | "active" | "archived"; "billing_method"?: "non_billable" | "time_materials" | "fixed_fee"; "manager_id"?: number; "from": string; "to": string; "client_id"?: number; "project_id"?: number; "task_id"?: number; "user_id"?: number; "role_id"?: number; "tag_id"?: number; "hours"?: "all" | "billable" | "non_billable" | "uninvoiced" | "claimed" | "unclaimed"; "grain"?: "day" | "entry"; "audience"?: "internal" | "client"; "invoice_state"?: "all" | "invoiced" | "uninvoiced"; "active_projects_only"?: boolean; "format": "pdf" | "csv" | "xlsx" }; signal?: AbortSignal; headers?: HeadersInit }): Promise<ArrayBuffer> {
|
|
5627
|
+
const headers = new Headers(args.headers);
|
|
5628
|
+
|
|
5629
|
+
return this.request<ArrayBuffer>("GET", "/api/v1/reports/detailed-time/export", {
|
|
5630
|
+
query: args.query,
|
|
5631
|
+
signal: args.signal,
|
|
5632
|
+
binary: true,
|
|
5633
|
+
headers,
|
|
5634
|
+
});
|
|
5635
|
+
}
|
|
5636
|
+
|
|
4936
5637
|
async executeDetailedTimeAction(args: { body: ReportTimeActionInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<ReportTimeActionEnvelope> {
|
|
4937
5638
|
const headers = new Headers(args.headers);
|
|
4938
5639
|
|
|
@@ -5057,6 +5758,24 @@ export class EzactoClient {
|
|
|
5057
5758
|
});
|
|
5058
5759
|
}
|
|
5059
5760
|
|
|
5761
|
+
async getInvoiceQuickBooks(args: { "id": number; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoiceQuickBooksEnvelope> {
|
|
5762
|
+
const headers = new Headers(args.headers);
|
|
5763
|
+
|
|
5764
|
+
return this.request<InvoiceQuickBooksEnvelope>("GET", "/api/v1/invoices/:id/quickbooks".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
5765
|
+
signal: args.signal,
|
|
5766
|
+
headers,
|
|
5767
|
+
});
|
|
5768
|
+
}
|
|
5769
|
+
|
|
5770
|
+
async syncInvoiceQuickBooks(args: { "id": number; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoiceQuickBooksEnvelope> {
|
|
5771
|
+
const headers = new Headers(args.headers);
|
|
5772
|
+
|
|
5773
|
+
return this.request<InvoiceQuickBooksEnvelope>("POST", "/api/v1/invoices/:id/quickbooks/sync".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
5774
|
+
signal: args.signal,
|
|
5775
|
+
headers,
|
|
5776
|
+
});
|
|
5777
|
+
}
|
|
5778
|
+
|
|
5060
5779
|
async getWiseConnection(args: { signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<WiseStatusEnvelope> {
|
|
5061
5780
|
const headers = new Headers(args.headers);
|
|
5062
5781
|
|
|
@@ -5260,10 +5979,58 @@ export class EzactoClient {
|
|
|
5260
5979
|
});
|
|
5261
5980
|
}
|
|
5262
5981
|
|
|
5263
|
-
async setInvoiceDocumentPreference(args: { "id": number; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoiceDocumentPreferenceEnvelope> {
|
|
5982
|
+
async setInvoiceDocumentPreference(args: { "id": number; body: InvoiceDocumentPreferenceInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoiceDocumentPreferenceEnvelope> {
|
|
5264
5983
|
const headers = new Headers(args.headers);
|
|
5265
5984
|
|
|
5266
5985
|
return this.request<InvoiceDocumentPreferenceEnvelope>("POST", "/api/v1/invoices/:id/document-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
5986
|
+
body: args.body,
|
|
5987
|
+
signal: args.signal,
|
|
5988
|
+
headers,
|
|
5989
|
+
});
|
|
5990
|
+
}
|
|
5991
|
+
|
|
5992
|
+
async getInvoiceEmailDefaults(args: { "id": number; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoiceEmailDefaultsEnvelope> {
|
|
5993
|
+
const headers = new Headers(args.headers);
|
|
5994
|
+
|
|
5995
|
+
return this.request<InvoiceEmailDefaultsEnvelope>("GET", "/api/v1/invoices/:id/email-defaults".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
5996
|
+
signal: args.signal,
|
|
5997
|
+
headers,
|
|
5998
|
+
});
|
|
5999
|
+
}
|
|
6000
|
+
|
|
6001
|
+
async getClientInvoiceSending(args: { "id": number; signal?: AbortSignal; headers?: HeadersInit }): Promise<ClientInvoiceSendingEnvelope> {
|
|
6002
|
+
const headers = new Headers(args.headers);
|
|
6003
|
+
|
|
6004
|
+
return this.request<ClientInvoiceSendingEnvelope>("GET", "/api/v1/clients/:id/invoice-sending".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
6005
|
+
signal: args.signal,
|
|
6006
|
+
headers,
|
|
6007
|
+
});
|
|
6008
|
+
}
|
|
6009
|
+
|
|
6010
|
+
async setClientInvoiceSending(args: { "id": number; body: ClientInvoiceSendingInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<ClientInvoiceSendingEnvelope> {
|
|
6011
|
+
const headers = new Headers(args.headers);
|
|
6012
|
+
|
|
6013
|
+
return this.request<ClientInvoiceSendingEnvelope>("POST", "/api/v1/clients/:id/invoice-sending".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
6014
|
+
body: args.body,
|
|
6015
|
+
signal: args.signal,
|
|
6016
|
+
headers,
|
|
6017
|
+
});
|
|
6018
|
+
}
|
|
6019
|
+
|
|
6020
|
+
async getOrganizationInvoiceSending(args: { signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<OrganizationInvoiceSendingEnvelope> {
|
|
6021
|
+
const headers = new Headers(args.headers);
|
|
6022
|
+
|
|
6023
|
+
return this.request<OrganizationInvoiceSendingEnvelope>("GET", "/api/v1/settings/invoice-sending", {
|
|
6024
|
+
signal: args.signal,
|
|
6025
|
+
headers,
|
|
6026
|
+
});
|
|
6027
|
+
}
|
|
6028
|
+
|
|
6029
|
+
async setOrganizationInvoiceSending(args: { body: OrganizationInvoiceSendingInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<OrganizationInvoiceSendingEnvelope> {
|
|
6030
|
+
const headers = new Headers(args.headers);
|
|
6031
|
+
|
|
6032
|
+
return this.request<OrganizationInvoiceSendingEnvelope>("POST", "/api/v1/settings/invoice-sending", {
|
|
6033
|
+
body: args.body,
|
|
5267
6034
|
signal: args.signal,
|
|
5268
6035
|
headers,
|
|
5269
6036
|
});
|
|
@@ -5278,10 +6045,41 @@ export class EzactoClient {
|
|
|
5278
6045
|
});
|
|
5279
6046
|
}
|
|
5280
6047
|
|
|
5281
|
-
async setOrganizationInvoiceDocuments(args: { signal?: AbortSignal; headers?: HeadersInit }
|
|
6048
|
+
async setOrganizationInvoiceDocuments(args: { body: OrganizationInvoiceDocumentsInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<OrganizationInvoiceDocumentsEnvelope> {
|
|
5282
6049
|
const headers = new Headers(args.headers);
|
|
5283
6050
|
|
|
5284
6051
|
return this.request<OrganizationInvoiceDocumentsEnvelope>("POST", "/api/v1/settings/invoice-documents", {
|
|
6052
|
+
body: args.body,
|
|
6053
|
+
signal: args.signal,
|
|
6054
|
+
headers,
|
|
6055
|
+
});
|
|
6056
|
+
}
|
|
6057
|
+
|
|
6058
|
+
async downloadInvoiceHoursReport(args: { "id": number; query: { "format": "pdf" | "csv" | "xlsx"; "detail"?: "detailed" | "summary" }; signal?: AbortSignal; headers?: HeadersInit }): Promise<ArrayBuffer> {
|
|
6059
|
+
const headers = new Headers(args.headers);
|
|
6060
|
+
|
|
6061
|
+
return this.request<ArrayBuffer>("GET", "/api/v1/invoices/:id/hours-report".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
6062
|
+
query: args.query,
|
|
6063
|
+
signal: args.signal,
|
|
6064
|
+
binary: true,
|
|
6065
|
+
headers,
|
|
6066
|
+
});
|
|
6067
|
+
}
|
|
6068
|
+
|
|
6069
|
+
async getInvoiceDefaults(args: { signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<InvoiceDefaultsEnvelope> {
|
|
6070
|
+
const headers = new Headers(args.headers);
|
|
6071
|
+
|
|
6072
|
+
return this.request<InvoiceDefaultsEnvelope>("GET", "/api/v1/settings/invoice-defaults", {
|
|
6073
|
+
signal: args.signal,
|
|
6074
|
+
headers,
|
|
6075
|
+
});
|
|
6076
|
+
}
|
|
6077
|
+
|
|
6078
|
+
async updateInvoiceDefaults(args: { body: InvoiceDefaultsInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoiceDefaultsEnvelope> {
|
|
6079
|
+
const headers = new Headers(args.headers);
|
|
6080
|
+
|
|
6081
|
+
return this.request<InvoiceDefaultsEnvelope>("POST", "/api/v1/settings/invoice-defaults", {
|
|
6082
|
+
body: args.body,
|
|
5285
6083
|
signal: args.signal,
|
|
5286
6084
|
headers,
|
|
5287
6085
|
});
|
|
@@ -5323,6 +6121,44 @@ export class EzactoClient {
|
|
|
5323
6121
|
});
|
|
5324
6122
|
}
|
|
5325
6123
|
|
|
6124
|
+
async getOrganizationInvoiceReminders(args: { signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<OrganizationInvoiceRemindersEnvelope> {
|
|
6125
|
+
const headers = new Headers(args.headers);
|
|
6126
|
+
|
|
6127
|
+
return this.request<OrganizationInvoiceRemindersEnvelope>("GET", "/api/v1/settings/invoice-reminders", {
|
|
6128
|
+
signal: args.signal,
|
|
6129
|
+
headers,
|
|
6130
|
+
});
|
|
6131
|
+
}
|
|
6132
|
+
|
|
6133
|
+
async setOrganizationInvoiceReminders(args: { body: OrganizationInvoiceRemindersInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<OrganizationInvoiceRemindersEnvelope> {
|
|
6134
|
+
const headers = new Headers(args.headers);
|
|
6135
|
+
|
|
6136
|
+
return this.request<OrganizationInvoiceRemindersEnvelope>("POST", "/api/v1/settings/invoice-reminders", {
|
|
6137
|
+
body: args.body,
|
|
6138
|
+
signal: args.signal,
|
|
6139
|
+
headers,
|
|
6140
|
+
});
|
|
6141
|
+
}
|
|
6142
|
+
|
|
6143
|
+
async getInvoiceReminderPreference(args: { "id": number; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoiceReminderPreferenceEnvelope> {
|
|
6144
|
+
const headers = new Headers(args.headers);
|
|
6145
|
+
|
|
6146
|
+
return this.request<InvoiceReminderPreferenceEnvelope>("GET", "/api/v1/invoices/:id/reminder-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
6147
|
+
signal: args.signal,
|
|
6148
|
+
headers,
|
|
6149
|
+
});
|
|
6150
|
+
}
|
|
6151
|
+
|
|
6152
|
+
async setInvoiceReminderPreference(args: { "id": number; body: InvoiceReminderPreferenceInput; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoiceReminderPreferenceEnvelope> {
|
|
6153
|
+
const headers = new Headers(args.headers);
|
|
6154
|
+
|
|
6155
|
+
return this.request<InvoiceReminderPreferenceEnvelope>("POST", "/api/v1/invoices/:id/reminder-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
6156
|
+
body: args.body,
|
|
6157
|
+
signal: args.signal,
|
|
6158
|
+
headers,
|
|
6159
|
+
});
|
|
6160
|
+
}
|
|
6161
|
+
|
|
5326
6162
|
async listIncompleteRecurringInvoices(args: { signal?: AbortSignal; headers?: HeadersInit } = {}): Promise<IncompleteRecurringInvoiceListEnvelope> {
|
|
5327
6163
|
const headers = new Headers(args.headers);
|
|
5328
6164
|
|