@conflict-hq/ezacto-client 0.1.2 → 0.1.4
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 +4409 -65
- package/dist/generated.js +2223 -463
- package/package.json +1 -1
- package/src/generated.ts +8467 -2967
package/dist/generated.js
CHANGED
|
@@ -42,17 +42,31 @@ export class EzactoClient {
|
|
|
42
42
|
requestHeaders.forEach((value, name) => headers.set(name, value));
|
|
43
43
|
if (this.token !== undefined)
|
|
44
44
|
headers.set("authorization", `Bearer ${this.token}`);
|
|
45
|
+
let encodedBody;
|
|
46
|
+
if (options.body !== undefined) {
|
|
47
|
+
if (options.rawBody === true) {
|
|
48
|
+
// Copy only this view's bytes, never an entire shared backing buffer.
|
|
49
|
+
if (options.body instanceof Uint8Array)
|
|
50
|
+
encodedBody = new Uint8Array(options.body);
|
|
51
|
+
else if (options.body instanceof Blob)
|
|
52
|
+
encodedBody = options.body;
|
|
53
|
+
else
|
|
54
|
+
throw new TypeError("Binary request body must be a Blob or Uint8Array.");
|
|
55
|
+
}
|
|
56
|
+
else
|
|
57
|
+
encodedBody = options.multipart === true ? options.body : JSON.stringify(options.body);
|
|
58
|
+
}
|
|
45
59
|
if (options.multipart === true)
|
|
46
60
|
headers.delete("content-type");
|
|
47
61
|
else if (options.body !== undefined)
|
|
48
|
-
headers.set("content-type", "application/json");
|
|
62
|
+
headers.set("content-type", options.rawBody === true ? "application/octet-stream" : "application/json");
|
|
49
63
|
const response = await this.fetchImplementation(url, {
|
|
50
64
|
method,
|
|
51
65
|
headers,
|
|
52
66
|
...(options.signal === undefined ? {} : { signal: options.signal }),
|
|
53
|
-
...(
|
|
67
|
+
...(encodedBody === undefined
|
|
54
68
|
? {}
|
|
55
|
-
: { body:
|
|
69
|
+
: { body: encodedBody }),
|
|
56
70
|
});
|
|
57
71
|
if (response.ok && options.binary === true)
|
|
58
72
|
return await response.arrayBuffer();
|
|
@@ -71,6 +85,45 @@ export class EzactoClient {
|
|
|
71
85
|
}
|
|
72
86
|
return body;
|
|
73
87
|
}
|
|
88
|
+
async recoverProjectMissingRates(args) {
|
|
89
|
+
const headers = new Headers(args.headers);
|
|
90
|
+
return this.request("POST", "/api/v1/projects/:id/missing-rates".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
91
|
+
body: args.body,
|
|
92
|
+
signal: args.signal,
|
|
93
|
+
headers,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
async getNativeAppleCapabilities(args = {}) {
|
|
97
|
+
const headers = new Headers(args.headers);
|
|
98
|
+
return this.request("GET", "/auth/apple/native-capabilities", {
|
|
99
|
+
signal: args.signal,
|
|
100
|
+
headers,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
async signInNativeApple(args) {
|
|
104
|
+
const headers = new Headers(args.headers);
|
|
105
|
+
return this.request("POST", "/auth/apple", {
|
|
106
|
+
body: args.body,
|
|
107
|
+
signal: args.signal,
|
|
108
|
+
headers,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
async rebindAppleCleanup(args) {
|
|
112
|
+
const headers = new Headers(args.headers);
|
|
113
|
+
return this.request("POST", "/auth/apple/deletion-requests/:id/binding".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
114
|
+
body: args.body,
|
|
115
|
+
signal: args.signal,
|
|
116
|
+
headers,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
async acceptAppleRevocation(args) {
|
|
120
|
+
const headers = new Headers(args.headers);
|
|
121
|
+
return this.request("POST", "/auth/apple/deletion-requests/:id/revocation".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
122
|
+
body: args.body,
|
|
123
|
+
signal: args.signal,
|
|
124
|
+
headers,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
74
127
|
async signup(args) {
|
|
75
128
|
const headers = new Headers(args.headers);
|
|
76
129
|
return this.request("POST", "/auth/signup", {
|
|
@@ -103,6 +156,14 @@ export class EzactoClient {
|
|
|
103
156
|
headers,
|
|
104
157
|
});
|
|
105
158
|
}
|
|
159
|
+
async sendTwoFactorEmailCode(args) {
|
|
160
|
+
const headers = new Headers(args.headers);
|
|
161
|
+
return this.request("POST", "/auth/two-factor/email-code", {
|
|
162
|
+
body: args.body,
|
|
163
|
+
signal: args.signal,
|
|
164
|
+
headers,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
106
167
|
async requestPasswordReset(args) {
|
|
107
168
|
const headers = new Headers(args.headers);
|
|
108
169
|
return this.request("POST", "/auth/password/forgot", {
|
|
@@ -134,6 +195,22 @@ export class EzactoClient {
|
|
|
134
195
|
headers,
|
|
135
196
|
});
|
|
136
197
|
}
|
|
198
|
+
async listEmailSuppressions(args = {}) {
|
|
199
|
+
const headers = new Headers(args.headers);
|
|
200
|
+
return this.request("GET", "/api/v1/email-suppressions", {
|
|
201
|
+
query: args.query,
|
|
202
|
+
signal: args.signal,
|
|
203
|
+
headers,
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
async liftEmailSuppression(args) {
|
|
207
|
+
const headers = new Headers(args.headers);
|
|
208
|
+
return this.request("POST", "/api/v1/email-suppressions/:id/lift".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
209
|
+
body: args.body,
|
|
210
|
+
signal: args.signal,
|
|
211
|
+
headers,
|
|
212
|
+
});
|
|
213
|
+
}
|
|
137
214
|
async getEmailHealth(args = {}) {
|
|
138
215
|
const headers = new Headers(args.headers);
|
|
139
216
|
return this.request("GET", "/api/v1/email-health", {
|
|
@@ -239,6 +316,13 @@ export class EzactoClient {
|
|
|
239
316
|
headers,
|
|
240
317
|
});
|
|
241
318
|
}
|
|
319
|
+
async getActivityLogStatus(args = {}) {
|
|
320
|
+
const headers = new Headers(args.headers);
|
|
321
|
+
return this.request("GET", "/api/v1/activity-log/status", {
|
|
322
|
+
signal: args.signal,
|
|
323
|
+
headers,
|
|
324
|
+
});
|
|
325
|
+
}
|
|
242
326
|
async listActivityLog(args = {}) {
|
|
243
327
|
const headers = new Headers(args.headers);
|
|
244
328
|
return this.request("GET", "/api/v1/activity-log", {
|
|
@@ -247,6 +331,30 @@ export class EzactoClient {
|
|
|
247
331
|
headers,
|
|
248
332
|
});
|
|
249
333
|
}
|
|
334
|
+
async exportActivityLog(args = {}) {
|
|
335
|
+
const headers = new Headers(args.headers);
|
|
336
|
+
return this.request("GET", "/api/v1/activity-log/export", {
|
|
337
|
+
query: args.query,
|
|
338
|
+
signal: args.signal,
|
|
339
|
+
binary: true,
|
|
340
|
+
headers,
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
async listRollableActivityYears(args = {}) {
|
|
344
|
+
const headers = new Headers(args.headers);
|
|
345
|
+
return this.request("GET", "/api/v1/activity-log/rolls", {
|
|
346
|
+
signal: args.signal,
|
|
347
|
+
headers,
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
async rollActivityYear(args) {
|
|
351
|
+
const headers = new Headers(args.headers);
|
|
352
|
+
return this.request("POST", "/api/v1/activity-log/rolls", {
|
|
353
|
+
body: args.body,
|
|
354
|
+
signal: args.signal,
|
|
355
|
+
headers,
|
|
356
|
+
});
|
|
357
|
+
}
|
|
250
358
|
async listOutboxDeliveries(args = {}) {
|
|
251
359
|
const headers = new Headers(args.headers);
|
|
252
360
|
return this.request("GET", "/api/v1/outbox-deliveries", {
|
|
@@ -312,6 +420,21 @@ export class EzactoClient {
|
|
|
312
420
|
headers,
|
|
313
421
|
});
|
|
314
422
|
}
|
|
423
|
+
async getProfileNotifications(args = {}) {
|
|
424
|
+
const headers = new Headers(args.headers);
|
|
425
|
+
return this.request("GET", "/api/v1/profile/notifications", {
|
|
426
|
+
signal: args.signal,
|
|
427
|
+
headers,
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
async updateProfileNotifications(args) {
|
|
431
|
+
const headers = new Headers(args.headers);
|
|
432
|
+
return this.request("POST", "/api/v1/profile/notifications", {
|
|
433
|
+
body: args.body,
|
|
434
|
+
signal: args.signal,
|
|
435
|
+
headers,
|
|
436
|
+
});
|
|
437
|
+
}
|
|
315
438
|
async updateProfile(args) {
|
|
316
439
|
const headers = new Headers(args.headers);
|
|
317
440
|
return this.request("PATCH", "/api/v1/profile", {
|
|
@@ -320,6 +443,14 @@ export class EzactoClient {
|
|
|
320
443
|
headers,
|
|
321
444
|
});
|
|
322
445
|
}
|
|
446
|
+
async requestAccountDeletion(args = {}) {
|
|
447
|
+
const headers = new Headers(args.headers);
|
|
448
|
+
return this.request("POST", "/api/v1/profile/deletion-request", {
|
|
449
|
+
body: args.body,
|
|
450
|
+
signal: args.signal,
|
|
451
|
+
headers,
|
|
452
|
+
});
|
|
453
|
+
}
|
|
323
454
|
async listClients(args = {}) {
|
|
324
455
|
const headers = new Headers(args.headers);
|
|
325
456
|
return this.request("GET", "/api/v1/clients", {
|
|
@@ -734,9 +865,34 @@ export class EzactoClient {
|
|
|
734
865
|
headers,
|
|
735
866
|
});
|
|
736
867
|
}
|
|
868
|
+
async updateTimeEntryRoundingSettings(args) {
|
|
869
|
+
const headers = new Headers(args.headers);
|
|
870
|
+
return this.request("PATCH", "/api/v1/time-entry-rounding-settings", {
|
|
871
|
+
body: args.body,
|
|
872
|
+
signal: args.signal,
|
|
873
|
+
headers,
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
async previewTimeRoundingRecalculation(args = {}) {
|
|
877
|
+
const headers = new Headers(args.headers);
|
|
878
|
+
return this.request("GET", "/api/v1/time-rounding-recalculation", {
|
|
879
|
+
query: args.query,
|
|
880
|
+
signal: args.signal,
|
|
881
|
+
headers,
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
async applyTimeRoundingRecalculation(args) {
|
|
885
|
+
const headers = new Headers(args.headers);
|
|
886
|
+
return this.request("POST", "/api/v1/time-rounding-recalculation", {
|
|
887
|
+
body: args.body,
|
|
888
|
+
signal: args.signal,
|
|
889
|
+
headers,
|
|
890
|
+
});
|
|
891
|
+
}
|
|
737
892
|
async listTimeEntryOptions(args = {}) {
|
|
738
893
|
const headers = new Headers(args.headers);
|
|
739
894
|
return this.request("GET", "/api/v1/time-entry-options", {
|
|
895
|
+
query: args.query,
|
|
740
896
|
signal: args.signal,
|
|
741
897
|
headers,
|
|
742
898
|
});
|
|
@@ -793,1333 +949,2937 @@ export class EzactoClient {
|
|
|
793
949
|
headers,
|
|
794
950
|
});
|
|
795
951
|
}
|
|
796
|
-
async
|
|
952
|
+
async listCalendarProposals(args = {}) {
|
|
797
953
|
const headers = new Headers(args.headers);
|
|
798
|
-
return this.request("GET", "/api/v1/
|
|
954
|
+
return this.request("GET", "/api/v1/calendar-proposals", {
|
|
799
955
|
query: args.query,
|
|
800
956
|
signal: args.signal,
|
|
801
957
|
headers,
|
|
802
958
|
});
|
|
803
959
|
}
|
|
804
|
-
async
|
|
960
|
+
async acceptCalendarProposal(args) {
|
|
805
961
|
const headers = new Headers(args.headers);
|
|
806
|
-
return this.request("POST", "/api/v1/
|
|
962
|
+
return this.request("POST", "/api/v1/calendar-proposals/:id/accept".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
807
963
|
body: args.body,
|
|
808
964
|
signal: args.signal,
|
|
809
965
|
headers,
|
|
810
966
|
});
|
|
811
967
|
}
|
|
812
|
-
async
|
|
968
|
+
async discardCalendarProposal(args) {
|
|
813
969
|
const headers = new Headers(args.headers);
|
|
814
|
-
return this.request("
|
|
815
|
-
query: args.query,
|
|
970
|
+
return this.request("POST", "/api/v1/calendar-proposals/:id/discard".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
816
971
|
signal: args.signal,
|
|
817
972
|
headers,
|
|
818
973
|
});
|
|
819
974
|
}
|
|
820
|
-
async
|
|
975
|
+
async getCalendarCleanupStatus(args = {}) {
|
|
821
976
|
const headers = new Headers(args.headers);
|
|
822
|
-
return this.request("GET", "/api/v1/
|
|
823
|
-
query: args.query,
|
|
977
|
+
return this.request("GET", "/api/v1/calendar-cleanup-status", {
|
|
824
978
|
signal: args.signal,
|
|
825
979
|
headers,
|
|
826
980
|
});
|
|
827
981
|
}
|
|
828
|
-
async
|
|
982
|
+
async listCalendarConnections(args = {}) {
|
|
829
983
|
const headers = new Headers(args.headers);
|
|
830
|
-
return this.request("GET", "/api/v1/
|
|
984
|
+
return this.request("GET", "/api/v1/calendar-connections", {
|
|
831
985
|
signal: args.signal,
|
|
832
986
|
headers,
|
|
833
987
|
});
|
|
834
988
|
}
|
|
835
|
-
async
|
|
989
|
+
async disconnectCalendarConnection(args) {
|
|
836
990
|
const headers = new Headers(args.headers);
|
|
837
|
-
|
|
838
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
839
|
-
return this.request("POST", "/api/v1/timesheet-submissions/bulk-approve", {
|
|
991
|
+
return this.request("DELETE", "/api/v1/calendar-connections/:provider".replace(":provider", encodeURIComponent(String(args["provider"]))), {
|
|
840
992
|
body: args.body,
|
|
841
993
|
signal: args.signal,
|
|
842
994
|
headers,
|
|
843
995
|
});
|
|
844
996
|
}
|
|
845
|
-
async
|
|
997
|
+
async refreshCalendarConnection(args) {
|
|
846
998
|
const headers = new Headers(args.headers);
|
|
847
|
-
return this.request("POST", "/api/v1/
|
|
999
|
+
return this.request("POST", "/api/v1/calendar-connections/:provider/refresh".replace(":provider", encodeURIComponent(String(args["provider"]))), {
|
|
1000
|
+
body: args.body,
|
|
848
1001
|
signal: args.signal,
|
|
849
1002
|
headers,
|
|
850
1003
|
});
|
|
851
1004
|
}
|
|
852
|
-
async
|
|
1005
|
+
async listAllocations(args = {}) {
|
|
853
1006
|
const headers = new Headers(args.headers);
|
|
854
|
-
return this.request("
|
|
855
|
-
|
|
1007
|
+
return this.request("GET", "/api/v1/allocations", {
|
|
1008
|
+
query: args.query,
|
|
856
1009
|
signal: args.signal,
|
|
857
1010
|
headers,
|
|
858
1011
|
});
|
|
859
1012
|
}
|
|
860
|
-
async
|
|
1013
|
+
async createAllocation(args) {
|
|
861
1014
|
const headers = new Headers(args.headers);
|
|
862
|
-
return this.request("POST", "/api/v1/
|
|
1015
|
+
return this.request("POST", "/api/v1/allocations", {
|
|
1016
|
+
body: args.body,
|
|
863
1017
|
signal: args.signal,
|
|
864
1018
|
headers,
|
|
865
1019
|
});
|
|
866
1020
|
}
|
|
867
|
-
async
|
|
1021
|
+
async getAllocation(args) {
|
|
868
1022
|
const headers = new Headers(args.headers);
|
|
869
|
-
return this.request("
|
|
870
|
-
body: args.body,
|
|
1023
|
+
return this.request("GET", "/api/v1/allocations/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
871
1024
|
signal: args.signal,
|
|
872
1025
|
headers,
|
|
873
1026
|
});
|
|
874
1027
|
}
|
|
875
|
-
async
|
|
1028
|
+
async updateAllocation(args) {
|
|
876
1029
|
const headers = new Headers(args.headers);
|
|
877
|
-
return this.request("
|
|
1030
|
+
return this.request("PATCH", "/api/v1/allocations/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1031
|
+
body: args.body,
|
|
878
1032
|
signal: args.signal,
|
|
879
1033
|
headers,
|
|
880
1034
|
});
|
|
881
1035
|
}
|
|
882
|
-
async
|
|
1036
|
+
async deleteAllocation(args) {
|
|
883
1037
|
const headers = new Headers(args.headers);
|
|
884
|
-
return this.request("
|
|
1038
|
+
return this.request("DELETE", "/api/v1/allocations/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
885
1039
|
body: args.body,
|
|
886
1040
|
signal: args.signal,
|
|
887
1041
|
headers,
|
|
888
1042
|
});
|
|
889
1043
|
}
|
|
890
|
-
async
|
|
1044
|
+
async getCapacity(args) {
|
|
891
1045
|
const headers = new Headers(args.headers);
|
|
892
|
-
return this.request("GET", "/api/v1/
|
|
1046
|
+
return this.request("GET", "/api/v1/capacity", {
|
|
893
1047
|
query: args.query,
|
|
894
1048
|
signal: args.signal,
|
|
895
1049
|
headers,
|
|
896
1050
|
});
|
|
897
1051
|
}
|
|
898
|
-
async
|
|
1052
|
+
async listTimeOff(args = {}) {
|
|
899
1053
|
const headers = new Headers(args.headers);
|
|
900
|
-
return this.request("GET", "/api/v1/
|
|
1054
|
+
return this.request("GET", "/api/v1/time-off", {
|
|
1055
|
+
query: args.query,
|
|
901
1056
|
signal: args.signal,
|
|
902
1057
|
headers,
|
|
903
1058
|
});
|
|
904
1059
|
}
|
|
905
|
-
async
|
|
1060
|
+
async createTimeOff(args) {
|
|
906
1061
|
const headers = new Headers(args.headers);
|
|
907
|
-
|
|
908
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
909
|
-
return this.request("POST", "/api/v1/timesheet-locks", {
|
|
1062
|
+
return this.request("POST", "/api/v1/time-off", {
|
|
910
1063
|
body: args.body,
|
|
911
1064
|
signal: args.signal,
|
|
912
1065
|
headers,
|
|
913
1066
|
});
|
|
914
1067
|
}
|
|
915
|
-
async
|
|
1068
|
+
async getTimeOff(args) {
|
|
916
1069
|
const headers = new Headers(args.headers);
|
|
917
|
-
return this.request("
|
|
918
|
-
body: args.body,
|
|
1070
|
+
return this.request("GET", "/api/v1/time-off/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
919
1071
|
signal: args.signal,
|
|
920
1072
|
headers,
|
|
921
1073
|
});
|
|
922
1074
|
}
|
|
923
|
-
async
|
|
1075
|
+
async updateTimeOff(args) {
|
|
924
1076
|
const headers = new Headers(args.headers);
|
|
925
|
-
return this.request("
|
|
926
|
-
|
|
1077
|
+
return this.request("PATCH", "/api/v1/time-off/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1078
|
+
body: args.body,
|
|
927
1079
|
signal: args.signal,
|
|
928
1080
|
headers,
|
|
929
1081
|
});
|
|
930
1082
|
}
|
|
931
|
-
async
|
|
1083
|
+
async deleteTimeOff(args) {
|
|
932
1084
|
const headers = new Headers(args.headers);
|
|
933
|
-
return this.request("
|
|
1085
|
+
return this.request("DELETE", "/api/v1/time-off/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
934
1086
|
body: args.body,
|
|
935
1087
|
signal: args.signal,
|
|
936
1088
|
headers,
|
|
937
1089
|
});
|
|
938
1090
|
}
|
|
939
|
-
async
|
|
1091
|
+
async listOrganizationHolidays(args = {}) {
|
|
940
1092
|
const headers = new Headers(args.headers);
|
|
941
|
-
return this.request("GET", "/api/v1/
|
|
1093
|
+
return this.request("GET", "/api/v1/organization-holidays", {
|
|
1094
|
+
query: args.query,
|
|
942
1095
|
signal: args.signal,
|
|
943
1096
|
headers,
|
|
944
1097
|
});
|
|
945
1098
|
}
|
|
946
|
-
async
|
|
1099
|
+
async getOrganizationHoliday(args) {
|
|
947
1100
|
const headers = new Headers(args.headers);
|
|
948
|
-
return this.request("
|
|
949
|
-
body: args.body,
|
|
1101
|
+
return this.request("GET", "/api/v1/organization-holidays/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
950
1102
|
signal: args.signal,
|
|
951
1103
|
headers,
|
|
952
1104
|
});
|
|
953
1105
|
}
|
|
954
|
-
async
|
|
1106
|
+
async createOrganizationHoliday(args) {
|
|
955
1107
|
const headers = new Headers(args.headers);
|
|
956
|
-
return this.request("
|
|
1108
|
+
return this.request("POST", "/api/v1/organization-holidays", {
|
|
1109
|
+
body: args.body,
|
|
957
1110
|
signal: args.signal,
|
|
958
1111
|
headers,
|
|
959
1112
|
});
|
|
960
1113
|
}
|
|
961
|
-
async
|
|
1114
|
+
async updateOrganizationHoliday(args) {
|
|
962
1115
|
const headers = new Headers(args.headers);
|
|
963
|
-
return this.request("
|
|
964
|
-
|
|
1116
|
+
return this.request("PATCH", "/api/v1/organization-holidays/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1117
|
+
body: args.body,
|
|
965
1118
|
signal: args.signal,
|
|
966
1119
|
headers,
|
|
967
1120
|
});
|
|
968
1121
|
}
|
|
969
|
-
async
|
|
1122
|
+
async deleteOrganizationHoliday(args) {
|
|
970
1123
|
const headers = new Headers(args.headers);
|
|
971
|
-
return this.request("
|
|
1124
|
+
return this.request("DELETE", "/api/v1/organization-holidays/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1125
|
+
body: args.body,
|
|
972
1126
|
signal: args.signal,
|
|
973
1127
|
headers,
|
|
974
1128
|
});
|
|
975
1129
|
}
|
|
976
|
-
async
|
|
1130
|
+
async listPlanningPlaceholders(args = {}) {
|
|
977
1131
|
const headers = new Headers(args.headers);
|
|
978
|
-
return this.request("GET", "/api/v1/
|
|
1132
|
+
return this.request("GET", "/api/v1/planning-placeholders", {
|
|
979
1133
|
query: args.query,
|
|
980
1134
|
signal: args.signal,
|
|
981
1135
|
headers,
|
|
982
1136
|
});
|
|
983
1137
|
}
|
|
984
|
-
async
|
|
1138
|
+
async createPlanningPlaceholder(args) {
|
|
985
1139
|
const headers = new Headers(args.headers);
|
|
986
|
-
return this.request("
|
|
1140
|
+
return this.request("POST", "/api/v1/planning-placeholders", {
|
|
1141
|
+
body: args.body,
|
|
987
1142
|
signal: args.signal,
|
|
988
1143
|
headers,
|
|
989
1144
|
});
|
|
990
1145
|
}
|
|
991
|
-
async
|
|
1146
|
+
async updatePlanningPlaceholder(args) {
|
|
992
1147
|
const headers = new Headers(args.headers);
|
|
993
|
-
return this.request("
|
|
1148
|
+
return this.request("PATCH", "/api/v1/planning-placeholders/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1149
|
+
body: args.body,
|
|
994
1150
|
signal: args.signal,
|
|
995
1151
|
headers,
|
|
996
1152
|
});
|
|
997
1153
|
}
|
|
998
|
-
async
|
|
1154
|
+
async deletePlanningPlaceholder(args) {
|
|
999
1155
|
const headers = new Headers(args.headers);
|
|
1000
|
-
|
|
1001
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1002
|
-
return this.request("POST", "/api/v1/estimates/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1156
|
+
return this.request("DELETE", "/api/v1/planning-placeholders/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1003
1157
|
body: args.body,
|
|
1004
1158
|
signal: args.signal,
|
|
1005
1159
|
headers,
|
|
1006
1160
|
});
|
|
1007
1161
|
}
|
|
1008
|
-
async
|
|
1162
|
+
async listPlaceholderAllocations(args = {}) {
|
|
1009
1163
|
const headers = new Headers(args.headers);
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
return this.request("POST", "/api/v1/estimates/:id/convert".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1013
|
-
body: args.body,
|
|
1164
|
+
return this.request("GET", "/api/v1/placeholder-allocations", {
|
|
1165
|
+
query: args.query,
|
|
1014
1166
|
signal: args.signal,
|
|
1015
1167
|
headers,
|
|
1016
1168
|
});
|
|
1017
1169
|
}
|
|
1018
|
-
async
|
|
1170
|
+
async createPlaceholderAllocation(args) {
|
|
1019
1171
|
const headers = new Headers(args.headers);
|
|
1020
|
-
|
|
1021
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1022
|
-
return this.request("POST", "/api/v1/invoice-generations", {
|
|
1172
|
+
return this.request("POST", "/api/v1/placeholder-allocations", {
|
|
1023
1173
|
body: args.body,
|
|
1024
1174
|
signal: args.signal,
|
|
1025
1175
|
headers,
|
|
1026
1176
|
});
|
|
1027
1177
|
}
|
|
1028
|
-
async
|
|
1178
|
+
async updatePlaceholderAllocation(args) {
|
|
1029
1179
|
const headers = new Headers(args.headers);
|
|
1030
|
-
|
|
1031
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1032
|
-
return this.request("PATCH", "/api/v1/invoices/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1180
|
+
return this.request("PATCH", "/api/v1/placeholder-allocations/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1033
1181
|
body: args.body,
|
|
1034
1182
|
signal: args.signal,
|
|
1035
1183
|
headers,
|
|
1036
1184
|
});
|
|
1037
1185
|
}
|
|
1038
|
-
async
|
|
1186
|
+
async deletePlaceholderAllocation(args) {
|
|
1039
1187
|
const headers = new Headers(args.headers);
|
|
1040
|
-
|
|
1041
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1042
|
-
return this.request("POST", "/api/v1/invoices/:id/line-items".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1188
|
+
return this.request("DELETE", "/api/v1/placeholder-allocations/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1043
1189
|
body: args.body,
|
|
1044
1190
|
signal: args.signal,
|
|
1045
1191
|
headers,
|
|
1046
1192
|
});
|
|
1047
1193
|
}
|
|
1048
|
-
async
|
|
1194
|
+
async assignPlaceholderAllocation(args) {
|
|
1049
1195
|
const headers = new Headers(args.headers);
|
|
1050
|
-
|
|
1051
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1052
|
-
return this.request("PATCH", "/api/v1/invoices/:id/line-items/:lineId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":lineId", encodeURIComponent(String(args["lineId"]))), {
|
|
1196
|
+
return this.request("POST", "/api/v1/placeholder-allocations/:id/assign".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1053
1197
|
body: args.body,
|
|
1054
1198
|
signal: args.signal,
|
|
1055
1199
|
headers,
|
|
1056
1200
|
});
|
|
1057
1201
|
}
|
|
1058
|
-
async
|
|
1202
|
+
async getResourceCalendarContext(args = {}) {
|
|
1059
1203
|
const headers = new Headers(args.headers);
|
|
1060
|
-
|
|
1061
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1062
|
-
return this.request("DELETE", "/api/v1/invoices/:id/line-items/:lineId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":lineId", encodeURIComponent(String(args["lineId"]))), {
|
|
1063
|
-
body: args.body,
|
|
1204
|
+
return this.request("GET", "/api/v1/resource-calendar/context", {
|
|
1064
1205
|
signal: args.signal,
|
|
1065
1206
|
headers,
|
|
1066
1207
|
});
|
|
1067
1208
|
}
|
|
1068
|
-
async
|
|
1209
|
+
async getResourceCalendar(args) {
|
|
1069
1210
|
const headers = new Headers(args.headers);
|
|
1070
|
-
return this.request("GET", "/api/v1/
|
|
1211
|
+
return this.request("GET", "/api/v1/resource-calendar", {
|
|
1212
|
+
query: args.query,
|
|
1071
1213
|
signal: args.signal,
|
|
1072
1214
|
headers,
|
|
1073
1215
|
});
|
|
1074
1216
|
}
|
|
1075
|
-
async
|
|
1217
|
+
async getResourceCalendarAllocations(args) {
|
|
1076
1218
|
const headers = new Headers(args.headers);
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
return this.request("POST", "/api/v1/invoices/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1080
|
-
body: args.body,
|
|
1219
|
+
return this.request("GET", "/api/v1/resource-calendar/allocations", {
|
|
1220
|
+
query: args.query,
|
|
1081
1221
|
signal: args.signal,
|
|
1082
1222
|
headers,
|
|
1083
1223
|
});
|
|
1084
1224
|
}
|
|
1085
|
-
async
|
|
1225
|
+
async listResourceCalendarProjects(args = {}) {
|
|
1086
1226
|
const headers = new Headers(args.headers);
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
return this.request("POST", "/api/v1/invoices/:id/transitions".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1090
|
-
body: args.body,
|
|
1227
|
+
return this.request("GET", "/api/v1/resource-calendar/projects", {
|
|
1228
|
+
query: args.query,
|
|
1091
1229
|
signal: args.signal,
|
|
1092
1230
|
headers,
|
|
1093
1231
|
});
|
|
1094
1232
|
}
|
|
1095
|
-
async
|
|
1233
|
+
async listCalendarFeeds(args = {}) {
|
|
1096
1234
|
const headers = new Headers(args.headers);
|
|
1097
|
-
|
|
1098
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1099
|
-
return this.request("POST", "/api/v1/invoices/:id/deliveries".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1100
|
-
body: args.body,
|
|
1235
|
+
return this.request("GET", "/api/v1/calendar-feeds", {
|
|
1101
1236
|
signal: args.signal,
|
|
1102
1237
|
headers,
|
|
1103
1238
|
});
|
|
1104
1239
|
}
|
|
1105
|
-
async
|
|
1240
|
+
async createCalendarFeed(args) {
|
|
1106
1241
|
const headers = new Headers(args.headers);
|
|
1107
|
-
return this.request("
|
|
1242
|
+
return this.request("POST", "/api/v1/calendar-feeds", {
|
|
1243
|
+
body: args.body,
|
|
1108
1244
|
signal: args.signal,
|
|
1109
1245
|
headers,
|
|
1110
1246
|
});
|
|
1111
1247
|
}
|
|
1112
|
-
async
|
|
1248
|
+
async rotateCalendarFeed(args) {
|
|
1113
1249
|
const headers = new Headers(args.headers);
|
|
1114
|
-
|
|
1115
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1116
|
-
return this.request("POST", "/api/v1/invoices/:id/payments".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1117
|
-
body: args.body,
|
|
1250
|
+
return this.request("POST", "/api/v1/calendar-feeds/:id/rotate".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1118
1251
|
signal: args.signal,
|
|
1119
1252
|
headers,
|
|
1120
1253
|
});
|
|
1121
1254
|
}
|
|
1122
|
-
async
|
|
1255
|
+
async revokeCalendarFeed(args) {
|
|
1123
1256
|
const headers = new Headers(args.headers);
|
|
1124
|
-
|
|
1125
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1126
|
-
return this.request("PATCH", "/api/v1/invoices/:id/payments/:paymentId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":paymentId", encodeURIComponent(String(args["paymentId"]))), {
|
|
1127
|
-
body: args.body,
|
|
1257
|
+
return this.request("DELETE", "/api/v1/calendar-feeds/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1128
1258
|
signal: args.signal,
|
|
1129
1259
|
headers,
|
|
1130
1260
|
});
|
|
1131
1261
|
}
|
|
1132
|
-
async
|
|
1262
|
+
async downloadCalendarFeed(args) {
|
|
1133
1263
|
const headers = new Headers(args.headers);
|
|
1134
|
-
|
|
1135
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1136
|
-
return this.request("DELETE", "/api/v1/invoices/:id/payments/:paymentId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":paymentId", encodeURIComponent(String(args["paymentId"]))), {
|
|
1137
|
-
body: args.body,
|
|
1264
|
+
return this.request("GET", "/api/v1/calendar-feeds/:id/download".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1138
1265
|
signal: args.signal,
|
|
1266
|
+
binary: true,
|
|
1139
1267
|
headers,
|
|
1140
1268
|
});
|
|
1141
1269
|
}
|
|
1142
|
-
async
|
|
1270
|
+
async listWorkItemConnections(args = {}) {
|
|
1143
1271
|
const headers = new Headers(args.headers);
|
|
1144
|
-
return this.request("GET", "/api/v1/
|
|
1272
|
+
return this.request("GET", "/api/v1/settings/work-item-connections", {
|
|
1273
|
+
signal: args.signal,
|
|
1274
|
+
headers,
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
async connectWorkItemProvider(args) {
|
|
1278
|
+
const headers = new Headers(args.headers);
|
|
1279
|
+
return this.request("POST", "/api/v1/settings/work-item-connections", {
|
|
1280
|
+
body: args.body,
|
|
1281
|
+
signal: args.signal,
|
|
1282
|
+
headers,
|
|
1283
|
+
});
|
|
1284
|
+
}
|
|
1285
|
+
async disconnectWorkItemProvider(args) {
|
|
1286
|
+
const headers = new Headers(args.headers);
|
|
1287
|
+
return this.request("POST", "/api/v1/settings/work-item-connections/:id/disconnect".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1288
|
+
signal: args.signal,
|
|
1289
|
+
headers,
|
|
1290
|
+
});
|
|
1291
|
+
}
|
|
1292
|
+
async listWorkItemLinks(args = {}) {
|
|
1293
|
+
const headers = new Headers(args.headers);
|
|
1294
|
+
return this.request("GET", "/api/v1/work-item-links", {
|
|
1145
1295
|
query: args.query,
|
|
1146
1296
|
signal: args.signal,
|
|
1147
1297
|
headers,
|
|
1148
1298
|
});
|
|
1149
1299
|
}
|
|
1150
|
-
async
|
|
1300
|
+
async createWorkItemLink(args) {
|
|
1301
|
+
const headers = new Headers(args.headers);
|
|
1302
|
+
return this.request("POST", "/api/v1/work-item-links", {
|
|
1303
|
+
body: args.body,
|
|
1304
|
+
signal: args.signal,
|
|
1305
|
+
headers,
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1308
|
+
async getWorkItemLink(args) {
|
|
1309
|
+
const headers = new Headers(args.headers);
|
|
1310
|
+
return this.request("GET", "/api/v1/work-item-links/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1311
|
+
signal: args.signal,
|
|
1312
|
+
headers,
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
async deleteWorkItemLink(args) {
|
|
1316
|
+
const headers = new Headers(args.headers);
|
|
1317
|
+
return this.request("DELETE", "/api/v1/work-item-links/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1318
|
+
signal: args.signal,
|
|
1319
|
+
headers,
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
async listTimesheetSubmissions(args = {}) {
|
|
1323
|
+
const headers = new Headers(args.headers);
|
|
1324
|
+
return this.request("GET", "/api/v1/timesheet-submissions", {
|
|
1325
|
+
query: args.query,
|
|
1326
|
+
signal: args.signal,
|
|
1327
|
+
headers,
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
async submitTimesheet(args) {
|
|
1331
|
+
const headers = new Headers(args.headers);
|
|
1332
|
+
return this.request("POST", "/api/v1/timesheet-submissions", {
|
|
1333
|
+
body: args.body,
|
|
1334
|
+
signal: args.signal,
|
|
1335
|
+
headers,
|
|
1336
|
+
});
|
|
1337
|
+
}
|
|
1338
|
+
async listPendingTimesheetSubmissions(args = {}) {
|
|
1339
|
+
const headers = new Headers(args.headers);
|
|
1340
|
+
return this.request("GET", "/api/v1/timesheet-submissions/pending", {
|
|
1341
|
+
query: args.query,
|
|
1342
|
+
signal: args.signal,
|
|
1343
|
+
headers,
|
|
1344
|
+
});
|
|
1345
|
+
}
|
|
1346
|
+
async listApprovedTimesheetSubmissions(args = {}) {
|
|
1347
|
+
const headers = new Headers(args.headers);
|
|
1348
|
+
return this.request("GET", "/api/v1/timesheet-submissions/approved", {
|
|
1349
|
+
query: args.query,
|
|
1350
|
+
signal: args.signal,
|
|
1351
|
+
headers,
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1354
|
+
async getTimesheetSubmission(args) {
|
|
1355
|
+
const headers = new Headers(args.headers);
|
|
1356
|
+
return this.request("GET", "/api/v1/timesheet-submissions/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1357
|
+
signal: args.signal,
|
|
1358
|
+
headers,
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
async bulkApproveTimesheetSubmissions(args) {
|
|
1151
1362
|
const headers = new Headers(args.headers);
|
|
1152
1363
|
if (args["Idempotency-Key"] !== undefined)
|
|
1153
1364
|
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1154
|
-
return this.request("POST", "/api/v1/
|
|
1365
|
+
return this.request("POST", "/api/v1/timesheet-submissions/bulk-approve", {
|
|
1155
1366
|
body: args.body,
|
|
1156
1367
|
signal: args.signal,
|
|
1157
1368
|
headers,
|
|
1158
1369
|
});
|
|
1159
1370
|
}
|
|
1160
|
-
async
|
|
1371
|
+
async approveTimesheetSubmission(args) {
|
|
1372
|
+
const headers = new Headers(args.headers);
|
|
1373
|
+
return this.request("POST", "/api/v1/timesheet-submissions/:id/approve".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1374
|
+
signal: args.signal,
|
|
1375
|
+
headers,
|
|
1376
|
+
});
|
|
1377
|
+
}
|
|
1378
|
+
async rejectTimesheetSubmission(args) {
|
|
1379
|
+
const headers = new Headers(args.headers);
|
|
1380
|
+
return this.request("POST", "/api/v1/timesheet-submissions/:id/reject".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1381
|
+
body: args.body,
|
|
1382
|
+
signal: args.signal,
|
|
1383
|
+
headers,
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
async unsubmitTimesheetSubmission(args) {
|
|
1387
|
+
const headers = new Headers(args.headers);
|
|
1388
|
+
return this.request("POST", "/api/v1/timesheet-submissions/:id/unsubmit".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1389
|
+
signal: args.signal,
|
|
1390
|
+
headers,
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
async withdrawTimesheetSubmission(args) {
|
|
1394
|
+
const headers = new Headers(args.headers);
|
|
1395
|
+
return this.request("POST", "/api/v1/timesheet-submissions/:id/withdraw".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1396
|
+
body: args.body,
|
|
1397
|
+
signal: args.signal,
|
|
1398
|
+
headers,
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
async getTimesheetLockPolicy(args = {}) {
|
|
1402
|
+
const headers = new Headers(args.headers);
|
|
1403
|
+
return this.request("GET", "/api/v1/timesheet-lock-policy", {
|
|
1404
|
+
signal: args.signal,
|
|
1405
|
+
headers,
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
async updateTimesheetLockPolicy(args) {
|
|
1409
|
+
const headers = new Headers(args.headers);
|
|
1410
|
+
return this.request("PATCH", "/api/v1/timesheet-lock-policy", {
|
|
1411
|
+
body: args.body,
|
|
1412
|
+
signal: args.signal,
|
|
1413
|
+
headers,
|
|
1414
|
+
});
|
|
1415
|
+
}
|
|
1416
|
+
async listTimesheetLocks(args = {}) {
|
|
1417
|
+
const headers = new Headers(args.headers);
|
|
1418
|
+
return this.request("GET", "/api/v1/timesheet-locks", {
|
|
1419
|
+
query: args.query,
|
|
1420
|
+
signal: args.signal,
|
|
1421
|
+
headers,
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
async getTimesheetLock(args) {
|
|
1425
|
+
const headers = new Headers(args.headers);
|
|
1426
|
+
return this.request("GET", "/api/v1/timesheet-locks/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1427
|
+
signal: args.signal,
|
|
1428
|
+
headers,
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1431
|
+
async createTimesheetManualLock(args) {
|
|
1432
|
+
const headers = new Headers(args.headers);
|
|
1433
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1434
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1435
|
+
return this.request("POST", "/api/v1/timesheet-locks", {
|
|
1436
|
+
body: args.body,
|
|
1437
|
+
signal: args.signal,
|
|
1438
|
+
headers,
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
async unlockTimesheetLock(args) {
|
|
1442
|
+
const headers = new Headers(args.headers);
|
|
1443
|
+
return this.request("POST", "/api/v1/timesheet-locks/:id/unlock".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1444
|
+
body: args.body,
|
|
1445
|
+
signal: args.signal,
|
|
1446
|
+
headers,
|
|
1447
|
+
});
|
|
1448
|
+
}
|
|
1449
|
+
async listExpenses(args = {}) {
|
|
1450
|
+
const headers = new Headers(args.headers);
|
|
1451
|
+
return this.request("GET", "/api/v1/expenses", {
|
|
1452
|
+
query: args.query,
|
|
1453
|
+
signal: args.signal,
|
|
1454
|
+
headers,
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
async createExpense(args) {
|
|
1458
|
+
const headers = new Headers(args.headers);
|
|
1459
|
+
return this.request("POST", "/api/v1/expenses", {
|
|
1460
|
+
body: args.body,
|
|
1461
|
+
signal: args.signal,
|
|
1462
|
+
headers,
|
|
1463
|
+
});
|
|
1464
|
+
}
|
|
1465
|
+
async getExpense(args) {
|
|
1466
|
+
const headers = new Headers(args.headers);
|
|
1467
|
+
return this.request("GET", "/api/v1/expenses/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1468
|
+
signal: args.signal,
|
|
1469
|
+
headers,
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1472
|
+
async updateExpense(args) {
|
|
1473
|
+
const headers = new Headers(args.headers);
|
|
1474
|
+
return this.request("PATCH", "/api/v1/expenses/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1475
|
+
body: args.body,
|
|
1476
|
+
signal: args.signal,
|
|
1477
|
+
headers,
|
|
1478
|
+
});
|
|
1479
|
+
}
|
|
1480
|
+
async deleteExpense(args) {
|
|
1481
|
+
const headers = new Headers(args.headers);
|
|
1482
|
+
return this.request("DELETE", "/api/v1/expenses/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1483
|
+
signal: args.signal,
|
|
1484
|
+
headers,
|
|
1485
|
+
});
|
|
1486
|
+
}
|
|
1487
|
+
async listInvoices(args = {}) {
|
|
1488
|
+
const headers = new Headers(args.headers);
|
|
1489
|
+
return this.request("GET", "/api/v1/invoices", {
|
|
1490
|
+
query: args.query,
|
|
1491
|
+
signal: args.signal,
|
|
1492
|
+
headers,
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
async getInvoice(args) {
|
|
1496
|
+
const headers = new Headers(args.headers);
|
|
1497
|
+
return this.request("GET", "/api/v1/invoices/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1498
|
+
signal: args.signal,
|
|
1499
|
+
headers,
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
async listEstimates(args = {}) {
|
|
1503
|
+
const headers = new Headers(args.headers);
|
|
1504
|
+
return this.request("GET", "/api/v1/estimates", {
|
|
1505
|
+
query: args.query,
|
|
1506
|
+
signal: args.signal,
|
|
1507
|
+
headers,
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1510
|
+
async getEstimate(args) {
|
|
1511
|
+
const headers = new Headers(args.headers);
|
|
1512
|
+
return this.request("GET", "/api/v1/estimates/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1513
|
+
signal: args.signal,
|
|
1514
|
+
headers,
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
async listEstimateMessages(args) {
|
|
1518
|
+
const headers = new Headers(args.headers);
|
|
1519
|
+
return this.request("GET", "/api/v1/estimates/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1520
|
+
signal: args.signal,
|
|
1521
|
+
headers,
|
|
1522
|
+
});
|
|
1523
|
+
}
|
|
1524
|
+
async createEstimateMessage(args) {
|
|
1525
|
+
const headers = new Headers(args.headers);
|
|
1526
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1527
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1528
|
+
return this.request("POST", "/api/v1/estimates/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1529
|
+
body: args.body,
|
|
1530
|
+
signal: args.signal,
|
|
1531
|
+
headers,
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
async setEstimateExpiry(args) {
|
|
1535
|
+
const headers = new Headers(args.headers);
|
|
1536
|
+
return this.request("PATCH", "/api/v1/estimates/:id/expiry".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1537
|
+
body: args.body,
|
|
1538
|
+
signal: args.signal,
|
|
1539
|
+
headers,
|
|
1540
|
+
});
|
|
1541
|
+
}
|
|
1542
|
+
async convertEstimate(args) {
|
|
1543
|
+
const headers = new Headers(args.headers);
|
|
1544
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1545
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1546
|
+
return this.request("POST", "/api/v1/estimates/:id/convert".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1547
|
+
body: args.body,
|
|
1548
|
+
signal: args.signal,
|
|
1549
|
+
headers,
|
|
1550
|
+
});
|
|
1551
|
+
}
|
|
1552
|
+
async generateInvoice(args) {
|
|
1553
|
+
const headers = new Headers(args.headers);
|
|
1554
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1555
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1556
|
+
return this.request("POST", "/api/v1/invoice-generations", {
|
|
1557
|
+
body: args.body,
|
|
1558
|
+
signal: args.signal,
|
|
1559
|
+
headers,
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
async updateInvoice(args) {
|
|
1563
|
+
const headers = new Headers(args.headers);
|
|
1564
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1565
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1566
|
+
if (args["X-Ezacto-Invoice-Elevation"] !== undefined)
|
|
1567
|
+
headers.set("X-Ezacto-Invoice-Elevation", String(args["X-Ezacto-Invoice-Elevation"]));
|
|
1568
|
+
return this.request("PATCH", "/api/v1/invoices/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1569
|
+
body: args.body,
|
|
1570
|
+
signal: args.signal,
|
|
1571
|
+
headers,
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
async createInvoiceLine(args) {
|
|
1575
|
+
const headers = new Headers(args.headers);
|
|
1576
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1577
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1578
|
+
if (args["X-Ezacto-Invoice-Elevation"] !== undefined)
|
|
1579
|
+
headers.set("X-Ezacto-Invoice-Elevation", String(args["X-Ezacto-Invoice-Elevation"]));
|
|
1580
|
+
return this.request("POST", "/api/v1/invoices/:id/line-items".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1581
|
+
body: args.body,
|
|
1582
|
+
signal: args.signal,
|
|
1583
|
+
headers,
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
async updateInvoiceLine(args) {
|
|
1587
|
+
const headers = new Headers(args.headers);
|
|
1588
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1589
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1590
|
+
if (args["X-Ezacto-Invoice-Elevation"] !== undefined)
|
|
1591
|
+
headers.set("X-Ezacto-Invoice-Elevation", String(args["X-Ezacto-Invoice-Elevation"]));
|
|
1592
|
+
return this.request("PATCH", "/api/v1/invoices/:id/line-items/:lineId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":lineId", encodeURIComponent(String(args["lineId"]))), {
|
|
1593
|
+
body: args.body,
|
|
1594
|
+
signal: args.signal,
|
|
1595
|
+
headers,
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1598
|
+
async deleteInvoiceLine(args) {
|
|
1599
|
+
const headers = new Headers(args.headers);
|
|
1600
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1601
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1602
|
+
if (args["X-Ezacto-Invoice-Elevation"] !== undefined)
|
|
1603
|
+
headers.set("X-Ezacto-Invoice-Elevation", String(args["X-Ezacto-Invoice-Elevation"]));
|
|
1604
|
+
return this.request("DELETE", "/api/v1/invoices/:id/line-items/:lineId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":lineId", encodeURIComponent(String(args["lineId"]))), {
|
|
1605
|
+
body: args.body,
|
|
1606
|
+
signal: args.signal,
|
|
1607
|
+
headers,
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
async listInvoiceMessages(args) {
|
|
1611
|
+
const headers = new Headers(args.headers);
|
|
1612
|
+
return this.request("GET", "/api/v1/invoices/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1613
|
+
signal: args.signal,
|
|
1614
|
+
headers,
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
async createInvoiceMessage(args) {
|
|
1618
|
+
const headers = new Headers(args.headers);
|
|
1619
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1620
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1621
|
+
return this.request("POST", "/api/v1/invoices/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1622
|
+
body: args.body,
|
|
1623
|
+
signal: args.signal,
|
|
1624
|
+
headers,
|
|
1625
|
+
});
|
|
1626
|
+
}
|
|
1627
|
+
async transitionInvoice(args) {
|
|
1628
|
+
const headers = new Headers(args.headers);
|
|
1629
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1630
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1631
|
+
return this.request("POST", "/api/v1/invoices/:id/transitions".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1632
|
+
body: args.body,
|
|
1633
|
+
signal: args.signal,
|
|
1634
|
+
headers,
|
|
1635
|
+
});
|
|
1636
|
+
}
|
|
1637
|
+
async deliverInvoiceEmail(args) {
|
|
1638
|
+
const headers = new Headers(args.headers);
|
|
1639
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1640
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1641
|
+
return this.request("POST", "/api/v1/invoices/:id/deliveries".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1642
|
+
body: args.body,
|
|
1643
|
+
signal: args.signal,
|
|
1644
|
+
headers,
|
|
1645
|
+
});
|
|
1646
|
+
}
|
|
1647
|
+
async previewInvoiceEmail(args) {
|
|
1648
|
+
const headers = new Headers(args.headers);
|
|
1649
|
+
return this.request("POST", "/api/v1/invoices/:id/deliveries/preview".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1650
|
+
body: args.body,
|
|
1651
|
+
signal: args.signal,
|
|
1652
|
+
headers,
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
async downloadInvoiceEmailPreviewDocument(args) {
|
|
1656
|
+
const headers = new Headers(args.headers);
|
|
1657
|
+
return this.request("GET", "/api/v1/invoices/:id/deliveries/preview/document".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1658
|
+
query: args.query,
|
|
1659
|
+
signal: args.signal,
|
|
1660
|
+
binary: true,
|
|
1661
|
+
headers,
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
async sendInvoiceEmailPreview(args) {
|
|
1665
|
+
const headers = new Headers(args.headers);
|
|
1666
|
+
return this.request("POST", "/api/v1/invoices/:id/deliveries/preview/send".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1667
|
+
body: args.body,
|
|
1668
|
+
signal: args.signal,
|
|
1669
|
+
headers,
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
async listInvoicePayments(args) {
|
|
1673
|
+
const headers = new Headers(args.headers);
|
|
1674
|
+
return this.request("GET", "/api/v1/invoices/:id/payments".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1675
|
+
signal: args.signal,
|
|
1676
|
+
headers,
|
|
1677
|
+
});
|
|
1678
|
+
}
|
|
1679
|
+
async recordInvoicePayment(args) {
|
|
1680
|
+
const headers = new Headers(args.headers);
|
|
1681
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1682
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1683
|
+
return this.request("POST", "/api/v1/invoices/:id/payments".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1684
|
+
body: args.body,
|
|
1685
|
+
signal: args.signal,
|
|
1686
|
+
headers,
|
|
1687
|
+
});
|
|
1688
|
+
}
|
|
1689
|
+
async updateInvoicePayment(args) {
|
|
1690
|
+
const headers = new Headers(args.headers);
|
|
1691
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1692
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1693
|
+
return this.request("PATCH", "/api/v1/invoices/:id/payments/:paymentId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":paymentId", encodeURIComponent(String(args["paymentId"]))), {
|
|
1694
|
+
body: args.body,
|
|
1695
|
+
signal: args.signal,
|
|
1696
|
+
headers,
|
|
1697
|
+
});
|
|
1698
|
+
}
|
|
1699
|
+
async deleteInvoicePayment(args) {
|
|
1700
|
+
const headers = new Headers(args.headers);
|
|
1701
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1702
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1703
|
+
return this.request("DELETE", "/api/v1/invoices/:id/payments/:paymentId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":paymentId", encodeURIComponent(String(args["paymentId"]))), {
|
|
1704
|
+
body: args.body,
|
|
1705
|
+
signal: args.signal,
|
|
1706
|
+
headers,
|
|
1707
|
+
});
|
|
1708
|
+
}
|
|
1709
|
+
async listRetainers(args = {}) {
|
|
1710
|
+
const headers = new Headers(args.headers);
|
|
1711
|
+
return this.request("GET", "/api/v1/retainers", {
|
|
1712
|
+
query: args.query,
|
|
1713
|
+
signal: args.signal,
|
|
1714
|
+
headers,
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
async createRetainer(args) {
|
|
1718
|
+
const headers = new Headers(args.headers);
|
|
1719
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1720
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1721
|
+
return this.request("POST", "/api/v1/retainers", {
|
|
1722
|
+
body: args.body,
|
|
1723
|
+
signal: args.signal,
|
|
1724
|
+
headers,
|
|
1725
|
+
});
|
|
1726
|
+
}
|
|
1727
|
+
async getRetainer(args) {
|
|
1728
|
+
const headers = new Headers(args.headers);
|
|
1729
|
+
return this.request("GET", "/api/v1/retainers/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1730
|
+
signal: args.signal,
|
|
1731
|
+
headers,
|
|
1732
|
+
});
|
|
1733
|
+
}
|
|
1734
|
+
async updateRetainer(args) {
|
|
1735
|
+
const headers = new Headers(args.headers);
|
|
1736
|
+
return this.request("PATCH", "/api/v1/retainers/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1737
|
+
body: args.body,
|
|
1738
|
+
signal: args.signal,
|
|
1739
|
+
headers,
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
async listRetainerLedger(args) {
|
|
1743
|
+
const headers = new Headers(args.headers);
|
|
1744
|
+
return this.request("GET", "/api/v1/retainers/:id/ledger".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1745
|
+
signal: args.signal,
|
|
1746
|
+
headers,
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1749
|
+
async appendRetainerLedger(args) {
|
|
1750
|
+
const headers = new Headers(args.headers);
|
|
1751
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1752
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1753
|
+
return this.request("POST", "/api/v1/retainers/:id/ledger".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1754
|
+
body: args.body,
|
|
1755
|
+
signal: args.signal,
|
|
1756
|
+
headers,
|
|
1757
|
+
});
|
|
1758
|
+
}
|
|
1759
|
+
async drawDownRetainer(args) {
|
|
1760
|
+
const headers = new Headers(args.headers);
|
|
1761
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1762
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1763
|
+
return this.request("POST", "/api/v1/retainers/:id/drawdowns".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1764
|
+
body: args.body,
|
|
1765
|
+
signal: args.signal,
|
|
1766
|
+
headers,
|
|
1767
|
+
});
|
|
1768
|
+
}
|
|
1769
|
+
async listRecurringInvoices(args = {}) {
|
|
1770
|
+
const headers = new Headers(args.headers);
|
|
1771
|
+
return this.request("GET", "/api/v1/recurring-invoices", {
|
|
1772
|
+
query: args.query,
|
|
1773
|
+
signal: args.signal,
|
|
1774
|
+
headers,
|
|
1775
|
+
});
|
|
1776
|
+
}
|
|
1777
|
+
async createRecurringInvoice(args) {
|
|
1778
|
+
const headers = new Headers(args.headers);
|
|
1779
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1780
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1781
|
+
return this.request("POST", "/api/v1/recurring-invoices", {
|
|
1782
|
+
body: args.body,
|
|
1783
|
+
signal: args.signal,
|
|
1784
|
+
headers,
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1787
|
+
async getRecurringInvoice(args) {
|
|
1788
|
+
const headers = new Headers(args.headers);
|
|
1789
|
+
return this.request("GET", "/api/v1/recurring-invoices/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1790
|
+
signal: args.signal,
|
|
1791
|
+
headers,
|
|
1792
|
+
});
|
|
1793
|
+
}
|
|
1794
|
+
async updateRecurringInvoice(args) {
|
|
1795
|
+
const headers = new Headers(args.headers);
|
|
1796
|
+
return this.request("PATCH", "/api/v1/recurring-invoices/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1797
|
+
body: args.body,
|
|
1798
|
+
signal: args.signal,
|
|
1799
|
+
headers,
|
|
1800
|
+
});
|
|
1801
|
+
}
|
|
1802
|
+
async deleteRecurringInvoice(args) {
|
|
1803
|
+
const headers = new Headers(args.headers);
|
|
1804
|
+
return this.request("DELETE", "/api/v1/recurring-invoices/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1805
|
+
signal: args.signal,
|
|
1806
|
+
headers,
|
|
1807
|
+
});
|
|
1808
|
+
}
|
|
1809
|
+
async backfillRecurringInvoiceClaims(args) {
|
|
1810
|
+
const headers = new Headers(args.headers);
|
|
1811
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1812
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1813
|
+
return this.request("POST", "/api/v1/recurring-invoices/:id/claim-backfill".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1814
|
+
body: args.body,
|
|
1815
|
+
signal: args.signal,
|
|
1816
|
+
headers,
|
|
1817
|
+
});
|
|
1818
|
+
}
|
|
1819
|
+
async generateRecurringInvoice(args) {
|
|
1820
|
+
const headers = new Headers(args.headers);
|
|
1821
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1822
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1823
|
+
return this.request("POST", "/api/v1/recurring-invoices/:id/generations".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1824
|
+
signal: args.signal,
|
|
1825
|
+
headers,
|
|
1826
|
+
});
|
|
1827
|
+
}
|
|
1828
|
+
async listInvoiceAttachments(args) {
|
|
1829
|
+
const headers = new Headers(args.headers);
|
|
1830
|
+
return this.request("GET", "/api/v1/invoices/:invoiceId/attachments".replace(":invoiceId", encodeURIComponent(String(args["invoiceId"]))), {
|
|
1831
|
+
signal: args.signal,
|
|
1832
|
+
headers,
|
|
1833
|
+
});
|
|
1834
|
+
}
|
|
1835
|
+
async createInvoiceAttachment(args) {
|
|
1836
|
+
const headers = new Headers(args.headers);
|
|
1837
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1838
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1839
|
+
return this.request("POST", "/api/v1/invoices/:invoiceId/attachments".replace(":invoiceId", encodeURIComponent(String(args["invoiceId"]))), {
|
|
1840
|
+
body: args.body,
|
|
1841
|
+
multipart: true,
|
|
1842
|
+
signal: args.signal,
|
|
1843
|
+
headers,
|
|
1844
|
+
});
|
|
1845
|
+
}
|
|
1846
|
+
async getInvoiceAttachment(args) {
|
|
1847
|
+
const headers = new Headers(args.headers);
|
|
1848
|
+
return this.request("GET", "/api/v1/invoices/:invoiceId/attachments/:attachmentId".replace(":invoiceId", encodeURIComponent(String(args["invoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1849
|
+
signal: args.signal,
|
|
1850
|
+
headers,
|
|
1851
|
+
});
|
|
1852
|
+
}
|
|
1853
|
+
async downloadInvoiceAttachment(args) {
|
|
1854
|
+
const headers = new Headers(args.headers);
|
|
1855
|
+
return this.request("GET", "/api/v1/invoices/:invoiceId/attachments/:attachmentId/content".replace(":invoiceId", encodeURIComponent(String(args["invoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1856
|
+
signal: args.signal,
|
|
1857
|
+
binary: true,
|
|
1858
|
+
headers,
|
|
1859
|
+
});
|
|
1860
|
+
}
|
|
1861
|
+
async listRecurringInvoiceAttachments(args) {
|
|
1862
|
+
const headers = new Headers(args.headers);
|
|
1863
|
+
return this.request("GET", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))), {
|
|
1864
|
+
signal: args.signal,
|
|
1865
|
+
headers,
|
|
1866
|
+
});
|
|
1867
|
+
}
|
|
1868
|
+
async createRecurringInvoiceAttachment(args) {
|
|
1869
|
+
const headers = new Headers(args.headers);
|
|
1870
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1871
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1872
|
+
return this.request("POST", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))), {
|
|
1873
|
+
body: args.body,
|
|
1874
|
+
multipart: true,
|
|
1875
|
+
signal: args.signal,
|
|
1876
|
+
headers,
|
|
1877
|
+
});
|
|
1878
|
+
}
|
|
1879
|
+
async getRecurringInvoiceAttachment(args) {
|
|
1880
|
+
const headers = new Headers(args.headers);
|
|
1881
|
+
return this.request("GET", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments/:attachmentId".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1882
|
+
signal: args.signal,
|
|
1883
|
+
headers,
|
|
1884
|
+
});
|
|
1885
|
+
}
|
|
1886
|
+
async downloadRecurringInvoiceAttachment(args) {
|
|
1887
|
+
const headers = new Headers(args.headers);
|
|
1888
|
+
return this.request("GET", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments/:attachmentId/content".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1889
|
+
signal: args.signal,
|
|
1890
|
+
binary: true,
|
|
1891
|
+
headers,
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1894
|
+
async listEstimateAttachments(args) {
|
|
1895
|
+
const headers = new Headers(args.headers);
|
|
1896
|
+
return this.request("GET", "/api/v1/estimates/:estimateId/attachments".replace(":estimateId", encodeURIComponent(String(args["estimateId"]))), {
|
|
1897
|
+
signal: args.signal,
|
|
1898
|
+
headers,
|
|
1899
|
+
});
|
|
1900
|
+
}
|
|
1901
|
+
async createEstimateAttachment(args) {
|
|
1902
|
+
const headers = new Headers(args.headers);
|
|
1903
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1904
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1905
|
+
return this.request("POST", "/api/v1/estimates/:estimateId/attachments".replace(":estimateId", encodeURIComponent(String(args["estimateId"]))), {
|
|
1906
|
+
body: args.body,
|
|
1907
|
+
multipart: true,
|
|
1908
|
+
signal: args.signal,
|
|
1909
|
+
headers,
|
|
1910
|
+
});
|
|
1911
|
+
}
|
|
1912
|
+
async getEstimateAttachment(args) {
|
|
1913
|
+
const headers = new Headers(args.headers);
|
|
1914
|
+
return this.request("GET", "/api/v1/estimates/:estimateId/attachments/:attachmentId".replace(":estimateId", encodeURIComponent(String(args["estimateId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1915
|
+
signal: args.signal,
|
|
1916
|
+
headers,
|
|
1917
|
+
});
|
|
1918
|
+
}
|
|
1919
|
+
async downloadEstimateAttachment(args) {
|
|
1920
|
+
const headers = new Headers(args.headers);
|
|
1921
|
+
return this.request("GET", "/api/v1/estimates/:estimateId/attachments/:attachmentId/content".replace(":estimateId", encodeURIComponent(String(args["estimateId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1922
|
+
signal: args.signal,
|
|
1923
|
+
binary: true,
|
|
1924
|
+
headers,
|
|
1925
|
+
});
|
|
1926
|
+
}
|
|
1927
|
+
async listExpenseAttachments(args) {
|
|
1928
|
+
const headers = new Headers(args.headers);
|
|
1929
|
+
return this.request("GET", "/api/v1/expenses/:expenseId/attachments".replace(":expenseId", encodeURIComponent(String(args["expenseId"]))), {
|
|
1930
|
+
signal: args.signal,
|
|
1931
|
+
headers,
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
async createExpenseAttachment(args) {
|
|
1935
|
+
const headers = new Headers(args.headers);
|
|
1936
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1937
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1938
|
+
return this.request("POST", "/api/v1/expenses/:expenseId/attachments".replace(":expenseId", encodeURIComponent(String(args["expenseId"]))), {
|
|
1939
|
+
body: args.body,
|
|
1940
|
+
multipart: true,
|
|
1941
|
+
signal: args.signal,
|
|
1942
|
+
headers,
|
|
1943
|
+
});
|
|
1944
|
+
}
|
|
1945
|
+
async getExpenseAttachment(args) {
|
|
1946
|
+
const headers = new Headers(args.headers);
|
|
1947
|
+
return this.request("GET", "/api/v1/expenses/:expenseId/attachments/:attachmentId".replace(":expenseId", encodeURIComponent(String(args["expenseId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1948
|
+
signal: args.signal,
|
|
1949
|
+
headers,
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
async downloadExpenseAttachment(args) {
|
|
1953
|
+
const headers = new Headers(args.headers);
|
|
1954
|
+
return this.request("GET", "/api/v1/expenses/:expenseId/attachments/:attachmentId/content".replace(":expenseId", encodeURIComponent(String(args["expenseId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1955
|
+
signal: args.signal,
|
|
1956
|
+
binary: true,
|
|
1957
|
+
headers,
|
|
1958
|
+
});
|
|
1959
|
+
}
|
|
1960
|
+
async listProjectAttachments(args) {
|
|
1961
|
+
const headers = new Headers(args.headers);
|
|
1962
|
+
return this.request("GET", "/api/v1/projects/:projectId/attachments".replace(":projectId", encodeURIComponent(String(args["projectId"]))), {
|
|
1963
|
+
signal: args.signal,
|
|
1964
|
+
headers,
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1967
|
+
async createProjectAttachment(args) {
|
|
1968
|
+
const headers = new Headers(args.headers);
|
|
1969
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1970
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1971
|
+
return this.request("POST", "/api/v1/projects/:projectId/attachments".replace(":projectId", encodeURIComponent(String(args["projectId"]))), {
|
|
1972
|
+
body: args.body,
|
|
1973
|
+
multipart: true,
|
|
1974
|
+
signal: args.signal,
|
|
1975
|
+
headers,
|
|
1976
|
+
});
|
|
1977
|
+
}
|
|
1978
|
+
async getProjectAttachment(args) {
|
|
1979
|
+
const headers = new Headers(args.headers);
|
|
1980
|
+
return this.request("GET", "/api/v1/projects/:projectId/attachments/:attachmentId".replace(":projectId", encodeURIComponent(String(args["projectId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1981
|
+
signal: args.signal,
|
|
1982
|
+
headers,
|
|
1983
|
+
});
|
|
1984
|
+
}
|
|
1985
|
+
async downloadProjectAttachment(args) {
|
|
1986
|
+
const headers = new Headers(args.headers);
|
|
1987
|
+
return this.request("GET", "/api/v1/projects/:projectId/attachments/:attachmentId/content".replace(":projectId", encodeURIComponent(String(args["projectId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1988
|
+
signal: args.signal,
|
|
1989
|
+
binary: true,
|
|
1990
|
+
headers,
|
|
1991
|
+
});
|
|
1992
|
+
}
|
|
1993
|
+
async setRecurringInvoiceAttachmentThrough(args) {
|
|
1994
|
+
const headers = new Headers(args.headers);
|
|
1995
|
+
return this.request("PATCH", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments/:attachmentId".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1996
|
+
body: args.body,
|
|
1997
|
+
signal: args.signal,
|
|
1998
|
+
headers,
|
|
1999
|
+
});
|
|
2000
|
+
}
|
|
2001
|
+
async removeRecurringInvoiceAttachment(args) {
|
|
2002
|
+
const headers = new Headers(args.headers);
|
|
2003
|
+
return this.request("DELETE", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments/:attachmentId".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
2004
|
+
signal: args.signal,
|
|
2005
|
+
headers,
|
|
2006
|
+
});
|
|
2007
|
+
}
|
|
2008
|
+
async getPaymentActuals(args = {}) {
|
|
2009
|
+
const headers = new Headers(args.headers);
|
|
2010
|
+
return this.request("GET", "/api/v1/staff-payments/actuals", {
|
|
2011
|
+
query: args.query,
|
|
2012
|
+
signal: args.signal,
|
|
2013
|
+
headers,
|
|
2014
|
+
});
|
|
2015
|
+
}
|
|
2016
|
+
async getPaymentReconciliation(args = {}) {
|
|
2017
|
+
const headers = new Headers(args.headers);
|
|
2018
|
+
return this.request("GET", "/api/v1/staff-payments/reconciliation", {
|
|
2019
|
+
query: args.query,
|
|
2020
|
+
signal: args.signal,
|
|
2021
|
+
headers,
|
|
2022
|
+
});
|
|
2023
|
+
}
|
|
2024
|
+
async confirmPaymentActuals(args) {
|
|
2025
|
+
const headers = new Headers(args.headers);
|
|
2026
|
+
return this.request("POST", "/api/v1/staff-payments/actuals", {
|
|
2027
|
+
body: args.body,
|
|
2028
|
+
signal: args.signal,
|
|
2029
|
+
headers,
|
|
2030
|
+
});
|
|
2031
|
+
}
|
|
2032
|
+
async configureStaffPaymentProvider(args) {
|
|
2033
|
+
const headers = new Headers(args.headers);
|
|
2034
|
+
return this.request("POST", "/api/v1/staff-payments/provider-settings", {
|
|
2035
|
+
body: args.body,
|
|
2036
|
+
signal: args.signal,
|
|
2037
|
+
headers,
|
|
2038
|
+
});
|
|
2039
|
+
}
|
|
2040
|
+
async getStaffPaymentReport(args = {}) {
|
|
2041
|
+
const headers = new Headers(args.headers);
|
|
2042
|
+
return this.request("GET", "/api/v1/staff-payments", {
|
|
2043
|
+
query: args.query,
|
|
2044
|
+
signal: args.signal,
|
|
2045
|
+
headers,
|
|
2046
|
+
});
|
|
2047
|
+
}
|
|
2048
|
+
async recordStaffPaymentEvent(args) {
|
|
2049
|
+
const headers = new Headers(args.headers);
|
|
2050
|
+
return this.request("POST", "/api/v1/staff-payments/events", {
|
|
2051
|
+
body: args.body,
|
|
2052
|
+
signal: args.signal,
|
|
2053
|
+
headers,
|
|
2054
|
+
});
|
|
2055
|
+
}
|
|
2056
|
+
async getPaymentAllocationReport(args = {}) {
|
|
2057
|
+
const headers = new Headers(args.headers);
|
|
2058
|
+
return this.request("GET", "/api/v1/staff-payments/allocations", {
|
|
2059
|
+
query: args.query,
|
|
2060
|
+
signal: args.signal,
|
|
2061
|
+
headers,
|
|
2062
|
+
});
|
|
2063
|
+
}
|
|
2064
|
+
async previewPaymentAllocation(args) {
|
|
2065
|
+
const headers = new Headers(args.headers);
|
|
2066
|
+
return this.request("POST", "/api/v1/staff-payments/allocations/preview", {
|
|
2067
|
+
body: args.body,
|
|
2068
|
+
signal: args.signal,
|
|
2069
|
+
headers,
|
|
2070
|
+
});
|
|
2071
|
+
}
|
|
2072
|
+
async allocatePayment(args) {
|
|
2073
|
+
const headers = new Headers(args.headers);
|
|
2074
|
+
return this.request("POST", "/api/v1/staff-payments/allocations", {
|
|
2075
|
+
body: args.body,
|
|
2076
|
+
signal: args.signal,
|
|
2077
|
+
headers,
|
|
2078
|
+
});
|
|
2079
|
+
}
|
|
2080
|
+
async reversePaymentAllocation(args) {
|
|
2081
|
+
const headers = new Headers(args.headers);
|
|
2082
|
+
return this.request("POST", "/api/v1/staff-payments/allocations/reversals", {
|
|
2083
|
+
body: args.body,
|
|
2084
|
+
signal: args.signal,
|
|
2085
|
+
headers,
|
|
2086
|
+
});
|
|
2087
|
+
}
|
|
2088
|
+
async getMyPayments(args = {}) {
|
|
2089
|
+
const headers = new Headers(args.headers);
|
|
2090
|
+
return this.request("GET", "/api/v1/me/payments", {
|
|
2091
|
+
query: args.query,
|
|
2092
|
+
signal: args.signal,
|
|
2093
|
+
headers,
|
|
2094
|
+
});
|
|
2095
|
+
}
|
|
2096
|
+
async listInvoiceProviderAlerts(args) {
|
|
2097
|
+
const headers = new Headers(args.headers);
|
|
2098
|
+
return this.request("GET", "/api/v1/invoices/:id/provider-alerts".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2099
|
+
signal: args.signal,
|
|
2100
|
+
headers,
|
|
2101
|
+
});
|
|
2102
|
+
}
|
|
2103
|
+
async reviewInvoiceProviderAlert(args) {
|
|
2104
|
+
const headers = new Headers(args.headers);
|
|
2105
|
+
return this.request("POST", "/api/v1/invoices/:id/provider-alerts/:alertId/review".replace(":id", encodeURIComponent(String(args["id"]))).replace(":alertId", encodeURIComponent(String(args["alertId"]))), {
|
|
2106
|
+
body: args.body,
|
|
2107
|
+
signal: args.signal,
|
|
2108
|
+
headers,
|
|
2109
|
+
});
|
|
2110
|
+
}
|
|
2111
|
+
async getBankFeedStatus(args = {}) {
|
|
2112
|
+
const headers = new Headers(args.headers);
|
|
2113
|
+
return this.request("GET", "/api/v1/bank-feed-status", {
|
|
2114
|
+
signal: args.signal,
|
|
2115
|
+
headers,
|
|
2116
|
+
});
|
|
2117
|
+
}
|
|
2118
|
+
async syncBankFeeds(args) {
|
|
2119
|
+
const headers = new Headers(args.headers);
|
|
2120
|
+
return this.request("POST", "/api/v1/bank-feeds/sync", {
|
|
2121
|
+
body: args.body,
|
|
2122
|
+
signal: args.signal,
|
|
2123
|
+
headers,
|
|
2124
|
+
});
|
|
2125
|
+
}
|
|
2126
|
+
async listBankDepositAccounts(args = {}) {
|
|
2127
|
+
const headers = new Headers(args.headers);
|
|
2128
|
+
return this.request("GET", "/api/v1/bank-deposit-accounts", {
|
|
2129
|
+
signal: args.signal,
|
|
2130
|
+
headers,
|
|
2131
|
+
});
|
|
2132
|
+
}
|
|
2133
|
+
async listBankDeposits(args = {}) {
|
|
2134
|
+
const headers = new Headers(args.headers);
|
|
2135
|
+
return this.request("GET", "/api/v1/bank-deposits", {
|
|
2136
|
+
query: args.query,
|
|
2137
|
+
signal: args.signal,
|
|
2138
|
+
headers,
|
|
2139
|
+
});
|
|
2140
|
+
}
|
|
2141
|
+
async listBankDepositInvoices(args) {
|
|
2142
|
+
const headers = new Headers(args.headers);
|
|
2143
|
+
return this.request("GET", "/api/v1/bank-deposits/:id/invoices".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2144
|
+
query: args.query,
|
|
2145
|
+
signal: args.signal,
|
|
2146
|
+
headers,
|
|
2147
|
+
});
|
|
2148
|
+
}
|
|
2149
|
+
async assignBankDeposit(args) {
|
|
2150
|
+
const headers = new Headers(args.headers);
|
|
2151
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
2152
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2153
|
+
return this.request("POST", "/api/v1/bank-deposits/:id/assign".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2154
|
+
body: args.body,
|
|
2155
|
+
signal: args.signal,
|
|
2156
|
+
headers,
|
|
2157
|
+
});
|
|
2158
|
+
}
|
|
2159
|
+
async rejectBankDeposit(args) {
|
|
2160
|
+
const headers = new Headers(args.headers);
|
|
2161
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
2162
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2163
|
+
return this.request("POST", "/api/v1/bank-deposits/:id/reject".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2164
|
+
body: args.body,
|
|
2165
|
+
signal: args.signal,
|
|
2166
|
+
headers,
|
|
2167
|
+
});
|
|
2168
|
+
}
|
|
2169
|
+
async reopenBankDeposit(args) {
|
|
2170
|
+
const headers = new Headers(args.headers);
|
|
2171
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
2172
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2173
|
+
return this.request("POST", "/api/v1/bank-deposits/:id/reopen".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2174
|
+
body: args.body,
|
|
2175
|
+
signal: args.signal,
|
|
2176
|
+
headers,
|
|
2177
|
+
});
|
|
2178
|
+
}
|
|
2179
|
+
async confirmBankDeposit(args) {
|
|
2180
|
+
const headers = new Headers(args.headers);
|
|
2181
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
2182
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2183
|
+
return this.request("POST", "/api/v1/bank-deposits/:id/confirm".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2184
|
+
body: args.body,
|
|
2185
|
+
signal: args.signal,
|
|
2186
|
+
headers,
|
|
2187
|
+
});
|
|
2188
|
+
}
|
|
2189
|
+
async verifyBankDepositSource(args) {
|
|
2190
|
+
const headers = new Headers(args.headers);
|
|
2191
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
2192
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2193
|
+
return this.request("POST", "/api/v1/bank-deposits/:id/verify-source".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2194
|
+
body: args.body,
|
|
2195
|
+
signal: args.signal,
|
|
2196
|
+
headers,
|
|
2197
|
+
});
|
|
2198
|
+
}
|
|
2199
|
+
async getDeelSync(args = {}) {
|
|
2200
|
+
const headers = new Headers(args.headers);
|
|
2201
|
+
return this.request("GET", "/api/v1/deel-sync", {
|
|
2202
|
+
signal: args.signal,
|
|
2203
|
+
headers,
|
|
2204
|
+
});
|
|
2205
|
+
}
|
|
2206
|
+
async updateDeelSyncSettings(args) {
|
|
2207
|
+
const headers = new Headers(args.headers);
|
|
2208
|
+
return this.request("PATCH", "/api/v1/deel-sync/settings", {
|
|
2209
|
+
body: args.body,
|
|
2210
|
+
signal: args.signal,
|
|
2211
|
+
headers,
|
|
2212
|
+
});
|
|
2213
|
+
}
|
|
2214
|
+
async previewDeelSync(args) {
|
|
2215
|
+
const headers = new Headers(args.headers);
|
|
2216
|
+
return this.request("POST", "/api/v1/deel-sync/preview", {
|
|
2217
|
+
body: args.body,
|
|
2218
|
+
signal: args.signal,
|
|
2219
|
+
headers,
|
|
2220
|
+
});
|
|
2221
|
+
}
|
|
2222
|
+
async runDeelSync(args) {
|
|
2223
|
+
const headers = new Headers(args.headers);
|
|
2224
|
+
return this.request("POST", "/api/v1/deel-sync/runs", {
|
|
2225
|
+
body: args.body,
|
|
2226
|
+
signal: args.signal,
|
|
2227
|
+
headers,
|
|
2228
|
+
});
|
|
2229
|
+
}
|
|
2230
|
+
async refreshDeelPaymentStatus(args) {
|
|
2231
|
+
const headers = new Headers(args.headers);
|
|
2232
|
+
return this.request("POST", "/api/v1/deel-staging/payment-status", {
|
|
2233
|
+
body: args.body,
|
|
2234
|
+
signal: args.signal,
|
|
2235
|
+
headers,
|
|
2236
|
+
});
|
|
2237
|
+
}
|
|
2238
|
+
async getDeelStaging(args = {}) {
|
|
2239
|
+
const headers = new Headers(args.headers);
|
|
2240
|
+
return this.request("GET", "/api/v1/deel-staging", {
|
|
2241
|
+
signal: args.signal,
|
|
2242
|
+
headers,
|
|
2243
|
+
});
|
|
2244
|
+
}
|
|
2245
|
+
async previewDeelStaging(args) {
|
|
2246
|
+
const headers = new Headers(args.headers);
|
|
2247
|
+
return this.request("POST", "/api/v1/deel-staging/preview", {
|
|
2248
|
+
body: args.body,
|
|
2249
|
+
signal: args.signal,
|
|
2250
|
+
headers,
|
|
2251
|
+
});
|
|
2252
|
+
}
|
|
2253
|
+
async stageDeelHours(args) {
|
|
2254
|
+
const headers = new Headers(args.headers);
|
|
2255
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
2256
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2257
|
+
return this.request("POST", "/api/v1/deel-staging/commands", {
|
|
2258
|
+
body: args.body,
|
|
2259
|
+
signal: args.signal,
|
|
2260
|
+
headers,
|
|
2261
|
+
});
|
|
2262
|
+
}
|
|
2263
|
+
async getDeelStageStatus(args) {
|
|
2264
|
+
const headers = new Headers(args.headers);
|
|
2265
|
+
return this.request("POST", "/api/v1/deel-staging/status", {
|
|
2266
|
+
body: args.body,
|
|
2267
|
+
signal: args.signal,
|
|
2268
|
+
headers,
|
|
2269
|
+
});
|
|
2270
|
+
}
|
|
2271
|
+
async getPaymentRunReport(args = {}) {
|
|
2272
|
+
const headers = new Headers(args.headers);
|
|
2273
|
+
return this.request("GET", "/api/v1/payment-runs/report", {
|
|
2274
|
+
query: args.query,
|
|
2275
|
+
signal: args.signal,
|
|
2276
|
+
headers,
|
|
2277
|
+
});
|
|
2278
|
+
}
|
|
2279
|
+
async previewPaymentRun(args) {
|
|
2280
|
+
const headers = new Headers(args.headers);
|
|
2281
|
+
return this.request("POST", "/api/v1/payment-runs/preview", {
|
|
2282
|
+
body: args.body,
|
|
2283
|
+
signal: args.signal,
|
|
2284
|
+
headers,
|
|
2285
|
+
});
|
|
2286
|
+
}
|
|
2287
|
+
async approvePaymentRun(args) {
|
|
2288
|
+
const headers = new Headers(args.headers);
|
|
2289
|
+
return this.request("POST", "/api/v1/payment-runs/:id/approve".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2290
|
+
body: args.body,
|
|
2291
|
+
signal: args.signal,
|
|
2292
|
+
headers,
|
|
2293
|
+
});
|
|
2294
|
+
}
|
|
2295
|
+
async cancelPaymentRun(args) {
|
|
2296
|
+
const headers = new Headers(args.headers);
|
|
2297
|
+
return this.request("POST", "/api/v1/payment-runs/:id/cancel".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2298
|
+
signal: args.signal,
|
|
2299
|
+
headers,
|
|
2300
|
+
});
|
|
2301
|
+
}
|
|
2302
|
+
async reconcilePaymentRunItem(args) {
|
|
2303
|
+
const headers = new Headers(args.headers);
|
|
2304
|
+
return this.request("POST", "/api/v1/payment-runs/:id/items/:itemId/reconcile".replace(":id", encodeURIComponent(String(args["id"]))).replace(":itemId", encodeURIComponent(String(args["itemId"]))), {
|
|
2305
|
+
signal: args.signal,
|
|
2306
|
+
headers,
|
|
2307
|
+
});
|
|
2308
|
+
}
|
|
2309
|
+
async getAdvanceCreditReport(args = {}) {
|
|
2310
|
+
const headers = new Headers(args.headers);
|
|
2311
|
+
return this.request("GET", "/api/v1/payment-runs/advances", {
|
|
2312
|
+
query: args.query,
|
|
2313
|
+
signal: args.signal,
|
|
2314
|
+
headers,
|
|
2315
|
+
});
|
|
2316
|
+
}
|
|
2317
|
+
async applyAdvanceCredit(args) {
|
|
2318
|
+
const headers = new Headers(args.headers);
|
|
2319
|
+
return this.request("POST", "/api/v1/payment-runs/advances/applications", {
|
|
2320
|
+
body: args.body,
|
|
2321
|
+
signal: args.signal,
|
|
2322
|
+
headers,
|
|
2323
|
+
});
|
|
2324
|
+
}
|
|
2325
|
+
async reverseAdvanceCredit(args) {
|
|
2326
|
+
const headers = new Headers(args.headers);
|
|
2327
|
+
return this.request("POST", "/api/v1/payment-runs/advances/reversals", {
|
|
2328
|
+
body: args.body,
|
|
2329
|
+
signal: args.signal,
|
|
2330
|
+
headers,
|
|
2331
|
+
});
|
|
2332
|
+
}
|
|
2333
|
+
async returnAdvanceCredit(args) {
|
|
2334
|
+
const headers = new Headers(args.headers);
|
|
2335
|
+
return this.request("POST", "/api/v1/payment-runs/advances/returns", {
|
|
2336
|
+
body: args.body,
|
|
2337
|
+
signal: args.signal,
|
|
2338
|
+
headers,
|
|
2339
|
+
});
|
|
2340
|
+
}
|
|
2341
|
+
async getStaffInvoiceReport(args = {}) {
|
|
2342
|
+
const headers = new Headers(args.headers);
|
|
2343
|
+
return this.request("GET", "/api/v1/staff-invoices", {
|
|
2344
|
+
query: args.query,
|
|
2345
|
+
signal: args.signal,
|
|
2346
|
+
headers,
|
|
2347
|
+
});
|
|
2348
|
+
}
|
|
2349
|
+
async getMyStaffInvoices(args = {}) {
|
|
2350
|
+
const headers = new Headers(args.headers);
|
|
2351
|
+
return this.request("GET", "/api/v1/me/staff-invoices", {
|
|
2352
|
+
query: args.query,
|
|
2353
|
+
signal: args.signal,
|
|
2354
|
+
headers,
|
|
2355
|
+
});
|
|
2356
|
+
}
|
|
2357
|
+
async saveStaffInvoice(args) {
|
|
2358
|
+
const headers = new Headers(args.headers);
|
|
2359
|
+
return this.request("POST", "/api/v1/staff-invoices", {
|
|
2360
|
+
body: args.body,
|
|
2361
|
+
signal: args.signal,
|
|
2362
|
+
headers,
|
|
2363
|
+
});
|
|
2364
|
+
}
|
|
2365
|
+
async uploadStaffInvoiceDocument(args) {
|
|
2366
|
+
const headers = new Headers(args.headers);
|
|
2367
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
2368
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2369
|
+
return this.request("POST", "/api/v1/staff-invoices/:invoiceId/documents".replace(":invoiceId", encodeURIComponent(String(args["invoiceId"]))), {
|
|
2370
|
+
query: args.query,
|
|
2371
|
+
body: args.body,
|
|
2372
|
+
multipart: true,
|
|
2373
|
+
signal: args.signal,
|
|
2374
|
+
headers,
|
|
2375
|
+
});
|
|
2376
|
+
}
|
|
2377
|
+
async getStaffInvoiceDocumentContent(args) {
|
|
2378
|
+
const headers = new Headers(args.headers);
|
|
2379
|
+
return this.request("GET", "/api/v1/staff-invoices/:invoiceId/documents/:documentId/content".replace(":invoiceId", encodeURIComponent(String(args["invoiceId"]))).replace(":documentId", encodeURIComponent(String(args["documentId"]))), {
|
|
2380
|
+
signal: args.signal,
|
|
2381
|
+
binary: true,
|
|
2382
|
+
headers,
|
|
2383
|
+
});
|
|
2384
|
+
}
|
|
2385
|
+
async getContractorReview(args = {}) {
|
|
2386
|
+
const headers = new Headers(args.headers);
|
|
2387
|
+
return this.request("GET", "/api/v1/staff-payments/contractor-review", {
|
|
2388
|
+
query: args.query,
|
|
2389
|
+
signal: args.signal,
|
|
2390
|
+
headers,
|
|
2391
|
+
});
|
|
2392
|
+
}
|
|
2393
|
+
async getContractorAcceptances(args = {}) {
|
|
2394
|
+
const headers = new Headers(args.headers);
|
|
2395
|
+
return this.request("GET", "/api/v1/staff-payments/contractor-review/acceptances", {
|
|
2396
|
+
query: args.query,
|
|
2397
|
+
signal: args.signal,
|
|
2398
|
+
headers,
|
|
2399
|
+
});
|
|
2400
|
+
}
|
|
2401
|
+
async acceptContractorReview(args = {}) {
|
|
2402
|
+
const headers = new Headers(args.headers);
|
|
2403
|
+
return this.request("POST", "/api/v1/staff-payments/contractor-review/acceptances", {
|
|
2404
|
+
body: args.body,
|
|
2405
|
+
signal: args.signal,
|
|
2406
|
+
headers,
|
|
2407
|
+
});
|
|
2408
|
+
}
|
|
2409
|
+
async consumeScheduledReviewLink(args) {
|
|
2410
|
+
const headers = new Headers(args.headers);
|
|
2411
|
+
return this.request("POST", "/api/v1/scheduled-runs/:id/review-link".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2412
|
+
body: args.body,
|
|
2413
|
+
signal: args.signal,
|
|
2414
|
+
headers,
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2417
|
+
async downloadScheduledRunReport(args) {
|
|
2418
|
+
const headers = new Headers(args.headers);
|
|
2419
|
+
return this.request("GET", "/api/v1/scheduled-runs/:id/items/:itemId/report".replace(":id", encodeURIComponent(String(args["id"]))).replace(":itemId", encodeURIComponent(String(args["itemId"]))), {
|
|
2420
|
+
signal: args.signal,
|
|
2421
|
+
binary: true,
|
|
2422
|
+
headers,
|
|
2423
|
+
});
|
|
2424
|
+
}
|
|
2425
|
+
async retryScheduledRun(args) {
|
|
2426
|
+
const headers = new Headers(args.headers);
|
|
2427
|
+
return this.request("POST", "/api/v1/scheduled-runs/:id/retry".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2428
|
+
signal: args.signal,
|
|
2429
|
+
headers,
|
|
2430
|
+
});
|
|
2431
|
+
}
|
|
2432
|
+
async getScheduledRun(args) {
|
|
2433
|
+
const headers = new Headers(args.headers);
|
|
2434
|
+
return this.request("GET", "/api/v1/scheduled-runs/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2435
|
+
signal: args.signal,
|
|
2436
|
+
headers,
|
|
2437
|
+
});
|
|
2438
|
+
}
|
|
2439
|
+
async confirmScheduledRun(args) {
|
|
2440
|
+
const headers = new Headers(args.headers);
|
|
2441
|
+
return this.request("POST", "/api/v1/scheduled-runs/:id/confirm".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2442
|
+
body: args.body,
|
|
2443
|
+
signal: args.signal,
|
|
2444
|
+
headers,
|
|
2445
|
+
});
|
|
2446
|
+
}
|
|
2447
|
+
async cancelScheduledRun(args) {
|
|
2448
|
+
const headers = new Headers(args.headers);
|
|
2449
|
+
return this.request("POST", "/api/v1/scheduled-runs/:id/cancel".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2450
|
+
signal: args.signal,
|
|
2451
|
+
headers,
|
|
2452
|
+
});
|
|
2453
|
+
}
|
|
2454
|
+
async listScheduledJobs(args = {}) {
|
|
2455
|
+
const headers = new Headers(args.headers);
|
|
2456
|
+
return this.request("GET", "/api/v1/scheduled-jobs", {
|
|
2457
|
+
query: args.query,
|
|
2458
|
+
signal: args.signal,
|
|
2459
|
+
headers,
|
|
2460
|
+
});
|
|
2461
|
+
}
|
|
2462
|
+
async getScheduledJob(args) {
|
|
2463
|
+
const headers = new Headers(args.headers);
|
|
2464
|
+
return this.request("GET", "/api/v1/scheduled-jobs/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2465
|
+
signal: args.signal,
|
|
2466
|
+
headers,
|
|
2467
|
+
});
|
|
2468
|
+
}
|
|
2469
|
+
async createScheduledJob(args) {
|
|
2470
|
+
const headers = new Headers(args.headers);
|
|
2471
|
+
return this.request("POST", "/api/v1/scheduled-jobs", {
|
|
2472
|
+
body: args.body,
|
|
2473
|
+
signal: args.signal,
|
|
2474
|
+
headers,
|
|
2475
|
+
});
|
|
2476
|
+
}
|
|
2477
|
+
async updateScheduledJob(args) {
|
|
2478
|
+
const headers = new Headers(args.headers);
|
|
2479
|
+
return this.request("PATCH", "/api/v1/scheduled-jobs/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2480
|
+
body: args.body,
|
|
2481
|
+
signal: args.signal,
|
|
2482
|
+
headers,
|
|
2483
|
+
});
|
|
2484
|
+
}
|
|
2485
|
+
async getReportDefinitionRegistry(args = {}) {
|
|
2486
|
+
const headers = new Headers(args.headers);
|
|
2487
|
+
return this.request("GET", "/api/v1/report-definitions/registry", {
|
|
2488
|
+
signal: args.signal,
|
|
2489
|
+
headers,
|
|
2490
|
+
});
|
|
2491
|
+
}
|
|
2492
|
+
async listSavedReports(args = {}) {
|
|
2493
|
+
const headers = new Headers(args.headers);
|
|
2494
|
+
return this.request("GET", "/api/v1/report-definitions", {
|
|
2495
|
+
query: args.query,
|
|
2496
|
+
signal: args.signal,
|
|
2497
|
+
headers,
|
|
2498
|
+
});
|
|
2499
|
+
}
|
|
2500
|
+
async createSavedReport(args) {
|
|
2501
|
+
const headers = new Headers(args.headers);
|
|
2502
|
+
return this.request("POST", "/api/v1/report-definitions", {
|
|
2503
|
+
body: args.body,
|
|
2504
|
+
signal: args.signal,
|
|
2505
|
+
headers,
|
|
2506
|
+
});
|
|
2507
|
+
}
|
|
2508
|
+
async createReportView(args) {
|
|
2509
|
+
const headers = new Headers(args.headers);
|
|
2510
|
+
return this.request("POST", "/api/v1/report-views", {
|
|
2511
|
+
body: args.body,
|
|
2512
|
+
signal: args.signal,
|
|
2513
|
+
headers,
|
|
2514
|
+
});
|
|
2515
|
+
}
|
|
2516
|
+
async previewReportDefinition(args) {
|
|
2517
|
+
const headers = new Headers(args.headers);
|
|
2518
|
+
return this.request("POST", "/api/v1/report-definitions/preview", {
|
|
2519
|
+
body: args.body,
|
|
2520
|
+
signal: args.signal,
|
|
2521
|
+
headers,
|
|
2522
|
+
});
|
|
2523
|
+
}
|
|
2524
|
+
async getSavedReport(args) {
|
|
2525
|
+
const headers = new Headers(args.headers);
|
|
2526
|
+
return this.request("GET", "/api/v1/report-definitions/:reportId".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
|
|
2527
|
+
signal: args.signal,
|
|
2528
|
+
headers,
|
|
2529
|
+
});
|
|
2530
|
+
}
|
|
2531
|
+
async updateSavedReport(args) {
|
|
2532
|
+
const headers = new Headers(args.headers);
|
|
2533
|
+
return this.request("PATCH", "/api/v1/report-definitions/:reportId".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
|
|
2534
|
+
body: args.body,
|
|
2535
|
+
signal: args.signal,
|
|
2536
|
+
headers,
|
|
2537
|
+
});
|
|
2538
|
+
}
|
|
2539
|
+
async deleteSavedReport(args) {
|
|
2540
|
+
const headers = new Headers(args.headers);
|
|
2541
|
+
return this.request("DELETE", "/api/v1/report-definitions/:reportId".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
|
|
2542
|
+
signal: args.signal,
|
|
2543
|
+
headers,
|
|
2544
|
+
});
|
|
2545
|
+
}
|
|
2546
|
+
async duplicateSavedReport(args) {
|
|
2547
|
+
const headers = new Headers(args.headers);
|
|
2548
|
+
return this.request("POST", "/api/v1/report-definitions/:reportId/duplicate".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
|
|
2549
|
+
signal: args.signal,
|
|
2550
|
+
headers,
|
|
2551
|
+
});
|
|
2552
|
+
}
|
|
2553
|
+
async pinSavedReport(args) {
|
|
2554
|
+
const headers = new Headers(args.headers);
|
|
2555
|
+
return this.request("POST", "/api/v1/report-definitions/:reportId/pin".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
|
|
2556
|
+
signal: args.signal,
|
|
2557
|
+
headers,
|
|
2558
|
+
});
|
|
2559
|
+
}
|
|
2560
|
+
async unpinSavedReport(args) {
|
|
2561
|
+
const headers = new Headers(args.headers);
|
|
2562
|
+
return this.request("DELETE", "/api/v1/report-definitions/:reportId/pin".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
|
|
2563
|
+
signal: args.signal,
|
|
2564
|
+
headers,
|
|
2565
|
+
});
|
|
2566
|
+
}
|
|
2567
|
+
async shareSavedReport(args) {
|
|
2568
|
+
const headers = new Headers(args.headers);
|
|
2569
|
+
return this.request("POST", "/api/v1/report-definitions/:reportId/shares/:userId".replace(":reportId", encodeURIComponent(String(args["reportId"]))).replace(":userId", encodeURIComponent(String(args["userId"]))), {
|
|
2570
|
+
signal: args.signal,
|
|
2571
|
+
headers,
|
|
2572
|
+
});
|
|
2573
|
+
}
|
|
2574
|
+
async unshareSavedReport(args) {
|
|
2575
|
+
const headers = new Headers(args.headers);
|
|
2576
|
+
return this.request("DELETE", "/api/v1/report-definitions/:reportId/shares/:userId".replace(":reportId", encodeURIComponent(String(args["reportId"]))).replace(":userId", encodeURIComponent(String(args["userId"]))), {
|
|
2577
|
+
signal: args.signal,
|
|
2578
|
+
headers,
|
|
2579
|
+
});
|
|
2580
|
+
}
|
|
2581
|
+
async shareSavedReportWithRole(args) {
|
|
2582
|
+
const headers = new Headers(args.headers);
|
|
2583
|
+
return this.request("POST", "/api/v1/report-definitions/:reportId/role-shares/:profile".replace(":reportId", encodeURIComponent(String(args["reportId"]))).replace(":profile", encodeURIComponent(String(args["profile"]))), {
|
|
2584
|
+
signal: args.signal,
|
|
2585
|
+
headers,
|
|
2586
|
+
});
|
|
2587
|
+
}
|
|
2588
|
+
async unshareSavedReportWithRole(args) {
|
|
2589
|
+
const headers = new Headers(args.headers);
|
|
2590
|
+
return this.request("DELETE", "/api/v1/report-definitions/:reportId/role-shares/:profile".replace(":reportId", encodeURIComponent(String(args["reportId"]))).replace(":profile", encodeURIComponent(String(args["profile"]))), {
|
|
2591
|
+
signal: args.signal,
|
|
2592
|
+
headers,
|
|
2593
|
+
});
|
|
2594
|
+
}
|
|
2595
|
+
async runSavedReport(args) {
|
|
2596
|
+
const headers = new Headers(args.headers);
|
|
2597
|
+
return this.request("POST", "/api/v1/report-definitions/:reportId/run".replace(":reportId", encodeURIComponent(String(args["reportId"]))), {
|
|
2598
|
+
signal: args.signal,
|
|
2599
|
+
headers,
|
|
2600
|
+
});
|
|
2601
|
+
}
|
|
2602
|
+
async getMyHoursReport(args) {
|
|
2603
|
+
const headers = new Headers(args.headers);
|
|
2604
|
+
return this.request("GET", "/api/v1/reports/my-hours", {
|
|
2605
|
+
query: args.query,
|
|
2606
|
+
signal: args.signal,
|
|
2607
|
+
headers,
|
|
2608
|
+
});
|
|
2609
|
+
}
|
|
2610
|
+
async getTimeReport(args) {
|
|
2611
|
+
const headers = new Headers(args.headers);
|
|
2612
|
+
return this.request("GET", "/api/v1/reports/time", {
|
|
2613
|
+
query: args.query,
|
|
2614
|
+
signal: args.signal,
|
|
2615
|
+
headers,
|
|
2616
|
+
});
|
|
2617
|
+
}
|
|
2618
|
+
async getInvoicedReport(args) {
|
|
2619
|
+
const headers = new Headers(args.headers);
|
|
2620
|
+
return this.request("GET", "/api/v1/reports/invoiced", {
|
|
2621
|
+
query: args.query,
|
|
2622
|
+
signal: args.signal,
|
|
2623
|
+
headers,
|
|
2624
|
+
});
|
|
2625
|
+
}
|
|
2626
|
+
async getPaymentsReceivedReport(args) {
|
|
2627
|
+
const headers = new Headers(args.headers);
|
|
2628
|
+
return this.request("GET", "/api/v1/reports/payments-received", {
|
|
2629
|
+
query: args.query,
|
|
2630
|
+
signal: args.signal,
|
|
2631
|
+
headers,
|
|
2632
|
+
});
|
|
2633
|
+
}
|
|
2634
|
+
async getReceivablesReport(args) {
|
|
2635
|
+
const headers = new Headers(args.headers);
|
|
2636
|
+
return this.request("GET", "/api/v1/reports/receivables", {
|
|
2637
|
+
query: args.query,
|
|
2638
|
+
signal: args.signal,
|
|
2639
|
+
headers,
|
|
2640
|
+
});
|
|
2641
|
+
}
|
|
2642
|
+
async getContractorCostReport(args) {
|
|
2643
|
+
const headers = new Headers(args.headers);
|
|
2644
|
+
return this.request("GET", "/api/v1/reports/contractor", {
|
|
2645
|
+
query: args.query,
|
|
2646
|
+
signal: args.signal,
|
|
2647
|
+
headers,
|
|
2648
|
+
});
|
|
2649
|
+
}
|
|
2650
|
+
async getMonthEndManifest(args) {
|
|
2651
|
+
const headers = new Headers(args.headers);
|
|
2652
|
+
return this.request("GET", "/api/v1/reports/month-end", {
|
|
2653
|
+
query: args.query,
|
|
2654
|
+
signal: args.signal,
|
|
2655
|
+
headers,
|
|
2656
|
+
});
|
|
2657
|
+
}
|
|
2658
|
+
async getBandedMonthReport(args) {
|
|
2659
|
+
const headers = new Headers(args.headers);
|
|
2660
|
+
return this.request("GET", "/api/v1/reports/banded-months", {
|
|
2661
|
+
query: args.query,
|
|
2662
|
+
signal: args.signal,
|
|
2663
|
+
headers,
|
|
2664
|
+
});
|
|
2665
|
+
}
|
|
2666
|
+
async getBandCostAlert(args = {}) {
|
|
2667
|
+
const headers = new Headers(args.headers);
|
|
2668
|
+
return this.request("GET", "/api/v1/reports/band-cost-alert", {
|
|
2669
|
+
signal: args.signal,
|
|
2670
|
+
headers,
|
|
2671
|
+
});
|
|
2672
|
+
}
|
|
2673
|
+
async setBandCostAlert(args) {
|
|
2674
|
+
const headers = new Headers(args.headers);
|
|
2675
|
+
return this.request("POST", "/api/v1/reports/band-cost-alert", {
|
|
2676
|
+
body: args.body,
|
|
2677
|
+
signal: args.signal,
|
|
2678
|
+
headers,
|
|
2679
|
+
});
|
|
2680
|
+
}
|
|
2681
|
+
async getProfitabilityReport(args) {
|
|
2682
|
+
const headers = new Headers(args.headers);
|
|
2683
|
+
return this.request("GET", "/api/v1/reports/profitability", {
|
|
2684
|
+
query: args.query,
|
|
2685
|
+
signal: args.signal,
|
|
2686
|
+
headers,
|
|
2687
|
+
});
|
|
2688
|
+
}
|
|
2689
|
+
async getDetailedExpenseReport(args) {
|
|
2690
|
+
const headers = new Headers(args.headers);
|
|
2691
|
+
return this.request("GET", "/api/v1/reports/detailed-expense", {
|
|
2692
|
+
query: args.query,
|
|
2693
|
+
signal: args.signal,
|
|
2694
|
+
headers,
|
|
2695
|
+
});
|
|
2696
|
+
}
|
|
2697
|
+
async getUninvoicedReport(args) {
|
|
2698
|
+
const headers = new Headers(args.headers);
|
|
2699
|
+
return this.request("GET", "/api/v1/reports/uninvoiced", {
|
|
2700
|
+
query: args.query,
|
|
2701
|
+
signal: args.signal,
|
|
2702
|
+
headers,
|
|
2703
|
+
});
|
|
2704
|
+
}
|
|
2705
|
+
async getDetailedTimeReport(args) {
|
|
2706
|
+
const headers = new Headers(args.headers);
|
|
2707
|
+
return this.request("GET", "/api/v1/reports/detailed-time", {
|
|
2708
|
+
query: args.query,
|
|
2709
|
+
signal: args.signal,
|
|
2710
|
+
headers,
|
|
2711
|
+
});
|
|
2712
|
+
}
|
|
2713
|
+
async downloadDetailedTimeReport(args) {
|
|
2714
|
+
const headers = new Headers(args.headers);
|
|
2715
|
+
return this.request("GET", "/api/v1/reports/detailed-time/export", {
|
|
2716
|
+
query: args.query,
|
|
2717
|
+
signal: args.signal,
|
|
2718
|
+
binary: true,
|
|
2719
|
+
headers,
|
|
2720
|
+
});
|
|
2721
|
+
}
|
|
2722
|
+
async executeDetailedTimeAction(args) {
|
|
2723
|
+
const headers = new Headers(args.headers);
|
|
2724
|
+
return this.request("POST", "/api/v1/reports/detailed-time/actions", {
|
|
2725
|
+
body: args.body,
|
|
2726
|
+
signal: args.signal,
|
|
2727
|
+
headers,
|
|
2728
|
+
});
|
|
2729
|
+
}
|
|
2730
|
+
async getClientRollupReport(args) {
|
|
2731
|
+
const headers = new Headers(args.headers);
|
|
2732
|
+
return this.request("GET", "/api/v1/reports/client-rollups/:clientId".replace(":clientId", encodeURIComponent(String(args["clientId"]))), {
|
|
2733
|
+
query: args.query,
|
|
2734
|
+
signal: args.signal,
|
|
2735
|
+
headers,
|
|
2736
|
+
});
|
|
2737
|
+
}
|
|
2738
|
+
async listProjectBudgetSummaries(args) {
|
|
2739
|
+
const headers = new Headers(args.headers);
|
|
2740
|
+
return this.request("GET", "/api/v1/reports/project-budgets", {
|
|
2741
|
+
query: args.query,
|
|
2742
|
+
signal: args.signal,
|
|
2743
|
+
headers,
|
|
2744
|
+
});
|
|
2745
|
+
}
|
|
2746
|
+
async getProjectBudgetReport(args) {
|
|
2747
|
+
const headers = new Headers(args.headers);
|
|
2748
|
+
return this.request("GET", "/api/v1/reports/project-budget/:projectId".replace(":projectId", encodeURIComponent(String(args["projectId"]))), {
|
|
2749
|
+
query: args.query,
|
|
2750
|
+
signal: args.signal,
|
|
2751
|
+
headers,
|
|
2752
|
+
});
|
|
2753
|
+
}
|
|
2754
|
+
async listModules(args = {}) {
|
|
2755
|
+
const headers = new Headers(args.headers);
|
|
2756
|
+
return this.request("GET", "/api/v1/admin/modules", {
|
|
2757
|
+
signal: args.signal,
|
|
2758
|
+
headers,
|
|
2759
|
+
});
|
|
2760
|
+
}
|
|
2761
|
+
async updateModule(args) {
|
|
2762
|
+
const headers = new Headers(args.headers);
|
|
2763
|
+
return this.request("PATCH", "/api/v1/admin/modules/:module".replace(":module", encodeURIComponent(String(args["module"]))), {
|
|
2764
|
+
body: args.body,
|
|
2765
|
+
signal: args.signal,
|
|
2766
|
+
headers,
|
|
2767
|
+
});
|
|
2768
|
+
}
|
|
2769
|
+
async listSignInMethods(args = {}) {
|
|
2770
|
+
const headers = new Headers(args.headers);
|
|
2771
|
+
return this.request("GET", "/api/v1/admin/sign-in-methods", {
|
|
2772
|
+
signal: args.signal,
|
|
2773
|
+
headers,
|
|
2774
|
+
});
|
|
2775
|
+
}
|
|
2776
|
+
async updateSignInMethod(args) {
|
|
2777
|
+
const headers = new Headers(args.headers);
|
|
2778
|
+
return this.request("PATCH", "/api/v1/admin/sign-in-methods/:method".replace(":method", encodeURIComponent(String(args["method"]))), {
|
|
2779
|
+
body: args.body,
|
|
2780
|
+
signal: args.signal,
|
|
2781
|
+
headers,
|
|
2782
|
+
});
|
|
2783
|
+
}
|
|
2784
|
+
async getAccountRetentionPolicy(args = {}) {
|
|
2785
|
+
const headers = new Headers(args.headers);
|
|
2786
|
+
return this.request("GET", "/api/v1/profile/retention-policy", {
|
|
2787
|
+
signal: args.signal,
|
|
2788
|
+
headers,
|
|
2789
|
+
});
|
|
2790
|
+
}
|
|
2791
|
+
async publishAccountRetentionPolicy(args) {
|
|
2792
|
+
const headers = new Headers(args.headers);
|
|
2793
|
+
return this.request("POST", "/api/v1/admin/retention-policy", {
|
|
2794
|
+
body: args.body,
|
|
2795
|
+
signal: args.signal,
|
|
2796
|
+
headers,
|
|
2797
|
+
});
|
|
2798
|
+
}
|
|
2799
|
+
async readAccountDeletionTrackingStatus(args) {
|
|
2800
|
+
const headers = new Headers(args.headers);
|
|
2801
|
+
return this.request("POST", "/account-deletion/requests/:id/status".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2802
|
+
body: args.body,
|
|
2803
|
+
signal: args.signal,
|
|
2804
|
+
headers,
|
|
2805
|
+
});
|
|
2806
|
+
}
|
|
2807
|
+
async listDueRetentionReviews(args = {}) {
|
|
2808
|
+
const headers = new Headers(args.headers);
|
|
2809
|
+
return this.request("GET", "/api/v1/admin/retention-reviews", {
|
|
2810
|
+
query: args.query,
|
|
2811
|
+
signal: args.signal,
|
|
2812
|
+
headers,
|
|
2813
|
+
});
|
|
2814
|
+
}
|
|
2815
|
+
async readRetentionReviews(args) {
|
|
2816
|
+
const headers = new Headers(args.headers);
|
|
2817
|
+
return this.request("GET", "/api/v1/admin/deletion-requests/:id/retention-reviews".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2818
|
+
signal: args.signal,
|
|
2819
|
+
headers,
|
|
2820
|
+
});
|
|
2821
|
+
}
|
|
2822
|
+
async recordRetentionReview(args) {
|
|
2823
|
+
const headers = new Headers(args.headers);
|
|
2824
|
+
return this.request("PATCH", "/api/v1/admin/deletion-requests/:id/retention-reviews/:area".replace(":id", encodeURIComponent(String(args["id"]))).replace(":area", encodeURIComponent(String(args["area"]))), {
|
|
2825
|
+
body: args.body,
|
|
2826
|
+
signal: args.signal,
|
|
2827
|
+
headers,
|
|
2828
|
+
});
|
|
2829
|
+
}
|
|
2830
|
+
async completeReviewedDeletionRequest(args) {
|
|
2831
|
+
const headers = new Headers(args.headers);
|
|
2832
|
+
return this.request("POST", "/api/v1/admin/deletion-requests/:id/completion".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2833
|
+
body: args.body,
|
|
2834
|
+
signal: args.signal,
|
|
2835
|
+
headers,
|
|
2836
|
+
});
|
|
2837
|
+
}
|
|
2838
|
+
async previewAccountClosure(args) {
|
|
2839
|
+
const headers = new Headers(args.headers);
|
|
2840
|
+
return this.request("GET", "/api/v1/admin/deletion-requests/:id/closure".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2841
|
+
signal: args.signal,
|
|
2842
|
+
headers,
|
|
2843
|
+
});
|
|
2844
|
+
}
|
|
2845
|
+
async closeAccountAccess(args) {
|
|
2846
|
+
const headers = new Headers(args.headers);
|
|
2847
|
+
return this.request("POST", "/api/v1/admin/deletion-requests/:id/closure".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2848
|
+
body: args.body,
|
|
2849
|
+
signal: args.signal,
|
|
2850
|
+
headers,
|
|
2851
|
+
});
|
|
2852
|
+
}
|
|
2853
|
+
async retryAccountAppleCleanup(args) {
|
|
2854
|
+
const headers = new Headers(args.headers);
|
|
2855
|
+
return this.request("POST", "/api/v1/admin/deletion-requests/:id/apple-cleanup".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2856
|
+
body: args.body,
|
|
2857
|
+
signal: args.signal,
|
|
2858
|
+
headers,
|
|
2859
|
+
});
|
|
2860
|
+
}
|
|
2861
|
+
async getAccountDeletionRequest(args = {}) {
|
|
2862
|
+
const headers = new Headers(args.headers);
|
|
2863
|
+
return this.request("GET", "/api/v1/profile/deletion-request", {
|
|
2864
|
+
signal: args.signal,
|
|
2865
|
+
headers,
|
|
2866
|
+
});
|
|
2867
|
+
}
|
|
2868
|
+
async listAccountDeletionRequests(args = {}) {
|
|
2869
|
+
const headers = new Headers(args.headers);
|
|
2870
|
+
return this.request("GET", "/api/v1/admin/deletion-requests", {
|
|
2871
|
+
query: args.query,
|
|
2872
|
+
signal: args.signal,
|
|
2873
|
+
headers,
|
|
2874
|
+
});
|
|
2875
|
+
}
|
|
2876
|
+
async getAccountDeletionRequestForAdmin(args) {
|
|
2877
|
+
const headers = new Headers(args.headers);
|
|
2878
|
+
return this.request("GET", "/api/v1/admin/deletion-requests/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2879
|
+
signal: args.signal,
|
|
2880
|
+
headers,
|
|
2881
|
+
});
|
|
2882
|
+
}
|
|
2883
|
+
async updateAccountDeletionRequest(args) {
|
|
2884
|
+
const headers = new Headers(args.headers);
|
|
2885
|
+
return this.request("PATCH", "/api/v1/admin/deletion-requests/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2886
|
+
body: args.body,
|
|
2887
|
+
signal: args.signal,
|
|
2888
|
+
headers,
|
|
2889
|
+
});
|
|
2890
|
+
}
|
|
2891
|
+
async retryAccountDeletionNotification(args) {
|
|
2892
|
+
const headers = new Headers(args.headers);
|
|
2893
|
+
return this.request("POST", "/api/v1/admin/deletion-requests/:id/notification".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2894
|
+
signal: args.signal,
|
|
2895
|
+
headers,
|
|
2896
|
+
});
|
|
2897
|
+
}
|
|
2898
|
+
async checkOffsiteBackupDestination(args = {}) {
|
|
2899
|
+
const headers = new Headers(args.headers);
|
|
2900
|
+
return this.request("POST", "/api/v1/backup/offsite/check", {
|
|
2901
|
+
signal: args.signal,
|
|
2902
|
+
headers,
|
|
2903
|
+
});
|
|
2904
|
+
}
|
|
2905
|
+
async getBackupStatus(args = {}) {
|
|
2906
|
+
const headers = new Headers(args.headers);
|
|
2907
|
+
return this.request("GET", "/api/v1/backup/status", {
|
|
2908
|
+
signal: args.signal,
|
|
2909
|
+
headers,
|
|
2910
|
+
});
|
|
2911
|
+
}
|
|
2912
|
+
async listBackupRuns(args = {}) {
|
|
2913
|
+
const headers = new Headers(args.headers);
|
|
2914
|
+
return this.request("GET", "/api/v1/backup/runs", {
|
|
2915
|
+
query: args.query,
|
|
2916
|
+
signal: args.signal,
|
|
2917
|
+
headers,
|
|
2918
|
+
});
|
|
2919
|
+
}
|
|
2920
|
+
async createBackupDownloadLink(args) {
|
|
1161
2921
|
const headers = new Headers(args.headers);
|
|
1162
|
-
return this.request("
|
|
2922
|
+
return this.request("POST", "/api/v1/backup/download-links", {
|
|
2923
|
+
body: args.body,
|
|
1163
2924
|
signal: args.signal,
|
|
1164
2925
|
headers,
|
|
1165
2926
|
});
|
|
1166
2927
|
}
|
|
1167
|
-
async
|
|
2928
|
+
async getQuickBooksConnection(args = {}) {
|
|
1168
2929
|
const headers = new Headers(args.headers);
|
|
1169
|
-
return this.request("
|
|
1170
|
-
body: args.body,
|
|
2930
|
+
return this.request("GET", "/api/v1/integrations/quickbooks", {
|
|
1171
2931
|
signal: args.signal,
|
|
1172
2932
|
headers,
|
|
1173
2933
|
});
|
|
1174
2934
|
}
|
|
1175
|
-
async
|
|
2935
|
+
async startQuickBooksAuthorization(args = {}) {
|
|
1176
2936
|
const headers = new Headers(args.headers);
|
|
1177
|
-
return this.request("
|
|
2937
|
+
return this.request("POST", "/api/v1/integrations/quickbooks/authorize", {
|
|
1178
2938
|
signal: args.signal,
|
|
1179
2939
|
headers,
|
|
1180
2940
|
});
|
|
1181
2941
|
}
|
|
1182
|
-
async
|
|
2942
|
+
async updateQuickBooksSettings(args) {
|
|
1183
2943
|
const headers = new Headers(args.headers);
|
|
1184
|
-
|
|
1185
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1186
|
-
return this.request("POST", "/api/v1/retainers/:id/ledger".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2944
|
+
return this.request("POST", "/api/v1/integrations/quickbooks/settings", {
|
|
1187
2945
|
body: args.body,
|
|
1188
2946
|
signal: args.signal,
|
|
1189
2947
|
headers,
|
|
1190
2948
|
});
|
|
1191
2949
|
}
|
|
1192
|
-
async
|
|
2950
|
+
async disconnectQuickBooks(args = {}) {
|
|
1193
2951
|
const headers = new Headers(args.headers);
|
|
1194
|
-
|
|
1195
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1196
|
-
return this.request("POST", "/api/v1/retainers/:id/drawdowns".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1197
|
-
body: args.body,
|
|
2952
|
+
return this.request("DELETE", "/api/v1/integrations/quickbooks", {
|
|
1198
2953
|
signal: args.signal,
|
|
1199
2954
|
headers,
|
|
1200
2955
|
});
|
|
1201
2956
|
}
|
|
1202
|
-
async
|
|
2957
|
+
async getQuickBooksReconciliation(args = {}) {
|
|
1203
2958
|
const headers = new Headers(args.headers);
|
|
1204
|
-
return this.request("GET", "/api/v1/
|
|
1205
|
-
query: args.query,
|
|
2959
|
+
return this.request("GET", "/api/v1/integrations/quickbooks/reconciliation", {
|
|
1206
2960
|
signal: args.signal,
|
|
1207
2961
|
headers,
|
|
1208
2962
|
});
|
|
1209
2963
|
}
|
|
1210
|
-
async
|
|
2964
|
+
async getInvoiceQuickBooks(args) {
|
|
1211
2965
|
const headers = new Headers(args.headers);
|
|
1212
|
-
|
|
1213
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1214
|
-
return this.request("POST", "/api/v1/recurring-invoices", {
|
|
1215
|
-
body: args.body,
|
|
2966
|
+
return this.request("GET", "/api/v1/invoices/:id/quickbooks".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1216
2967
|
signal: args.signal,
|
|
1217
2968
|
headers,
|
|
1218
2969
|
});
|
|
1219
2970
|
}
|
|
1220
|
-
async
|
|
2971
|
+
async syncInvoiceQuickBooks(args) {
|
|
1221
2972
|
const headers = new Headers(args.headers);
|
|
1222
|
-
return this.request("
|
|
2973
|
+
return this.request("POST", "/api/v1/invoices/:id/quickbooks/sync".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1223
2974
|
signal: args.signal,
|
|
1224
2975
|
headers,
|
|
1225
2976
|
});
|
|
1226
2977
|
}
|
|
1227
|
-
async
|
|
2978
|
+
async getWiseConnection(args = {}) {
|
|
1228
2979
|
const headers = new Headers(args.headers);
|
|
1229
|
-
return this.request("
|
|
1230
|
-
body: args.body,
|
|
2980
|
+
return this.request("GET", "/api/v1/integrations/wise", {
|
|
1231
2981
|
signal: args.signal,
|
|
1232
2982
|
headers,
|
|
1233
2983
|
});
|
|
1234
2984
|
}
|
|
1235
|
-
async
|
|
2985
|
+
async listWiseRecipients(args = {}) {
|
|
1236
2986
|
const headers = new Headers(args.headers);
|
|
1237
|
-
return this.request("
|
|
2987
|
+
return this.request("GET", "/api/v1/integrations/wise/recipients", {
|
|
1238
2988
|
signal: args.signal,
|
|
1239
2989
|
headers,
|
|
1240
2990
|
});
|
|
1241
2991
|
}
|
|
1242
|
-
async
|
|
2992
|
+
async onboardWiseRecipient(args) {
|
|
1243
2993
|
const headers = new Headers(args.headers);
|
|
1244
|
-
|
|
1245
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1246
|
-
return this.request("POST", "/api/v1/recurring-invoices/:id/claim-backfill".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2994
|
+
return this.request("POST", "/api/v1/integrations/wise/recipients", {
|
|
1247
2995
|
body: args.body,
|
|
1248
2996
|
signal: args.signal,
|
|
1249
2997
|
headers,
|
|
1250
2998
|
});
|
|
1251
2999
|
}
|
|
1252
|
-
async
|
|
3000
|
+
async listWisePayoutProposals(args = {}) {
|
|
1253
3001
|
const headers = new Headers(args.headers);
|
|
1254
|
-
|
|
1255
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1256
|
-
return this.request("POST", "/api/v1/recurring-invoices/:id/generations".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3002
|
+
return this.request("GET", "/api/v1/integrations/wise/proposals", {
|
|
1257
3003
|
signal: args.signal,
|
|
1258
3004
|
headers,
|
|
1259
3005
|
});
|
|
1260
3006
|
}
|
|
1261
|
-
async
|
|
3007
|
+
async getWisePayoutDestination(args) {
|
|
1262
3008
|
const headers = new Headers(args.headers);
|
|
1263
|
-
return this.request("GET", "/api/v1/
|
|
3009
|
+
return this.request("GET", "/api/v1/integrations/wise/destinations/:userId".replace(":userId", encodeURIComponent(String(args["userId"]))), {
|
|
1264
3010
|
signal: args.signal,
|
|
1265
3011
|
headers,
|
|
1266
3012
|
});
|
|
1267
3013
|
}
|
|
1268
|
-
async
|
|
3014
|
+
async removeWisePayoutDestination(args) {
|
|
1269
3015
|
const headers = new Headers(args.headers);
|
|
1270
|
-
|
|
1271
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1272
|
-
return this.request("POST", "/api/v1/invoices/:invoiceId/attachments".replace(":invoiceId", encodeURIComponent(String(args["invoiceId"]))), {
|
|
1273
|
-
body: args.body,
|
|
1274
|
-
multipart: true,
|
|
3016
|
+
return this.request("DELETE", "/api/v1/integrations/wise/destinations/:userId".replace(":userId", encodeURIComponent(String(args["userId"]))), {
|
|
1275
3017
|
signal: args.signal,
|
|
1276
3018
|
headers,
|
|
1277
3019
|
});
|
|
1278
3020
|
}
|
|
1279
|
-
async
|
|
3021
|
+
async shareWiseProfile(args) {
|
|
1280
3022
|
const headers = new Headers(args.headers);
|
|
1281
|
-
return this.request("
|
|
3023
|
+
return this.request("POST", "/api/v1/integrations/wise/contacts", {
|
|
3024
|
+
body: args.body,
|
|
1282
3025
|
signal: args.signal,
|
|
1283
3026
|
headers,
|
|
1284
3027
|
});
|
|
1285
3028
|
}
|
|
1286
|
-
async
|
|
3029
|
+
async linkWiseRecipient(args) {
|
|
1287
3030
|
const headers = new Headers(args.headers);
|
|
1288
|
-
return this.request("
|
|
3031
|
+
return this.request("POST", "/api/v1/integrations/wise/recipients/link", {
|
|
3032
|
+
body: args.body,
|
|
1289
3033
|
signal: args.signal,
|
|
1290
|
-
binary: true,
|
|
1291
3034
|
headers,
|
|
1292
3035
|
});
|
|
1293
3036
|
}
|
|
1294
|
-
async
|
|
3037
|
+
async unlinkWiseRecipient(args) {
|
|
1295
3038
|
const headers = new Headers(args.headers);
|
|
1296
|
-
return this.request("
|
|
3039
|
+
return this.request("DELETE", "/api/v1/integrations/wise/recipients/:accountId".replace(":accountId", encodeURIComponent(String(args["accountId"]))), {
|
|
1297
3040
|
signal: args.signal,
|
|
1298
3041
|
headers,
|
|
1299
3042
|
});
|
|
1300
3043
|
}
|
|
1301
|
-
async
|
|
3044
|
+
async listSsoProvisioningDomains(args = {}) {
|
|
1302
3045
|
const headers = new Headers(args.headers);
|
|
1303
|
-
|
|
1304
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1305
|
-
return this.request("POST", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))), {
|
|
1306
|
-
body: args.body,
|
|
1307
|
-
multipart: true,
|
|
3046
|
+
return this.request("GET", "/api/v1/settings/sso-domains", {
|
|
1308
3047
|
signal: args.signal,
|
|
1309
3048
|
headers,
|
|
1310
3049
|
});
|
|
1311
3050
|
}
|
|
1312
|
-
async
|
|
3051
|
+
async addSsoProvisioningDomain(args) {
|
|
1313
3052
|
const headers = new Headers(args.headers);
|
|
1314
|
-
return this.request("
|
|
3053
|
+
return this.request("POST", "/api/v1/settings/sso-domains", {
|
|
3054
|
+
body: args.body,
|
|
1315
3055
|
signal: args.signal,
|
|
1316
3056
|
headers,
|
|
1317
3057
|
});
|
|
1318
3058
|
}
|
|
1319
|
-
async
|
|
3059
|
+
async removeSsoProvisioningDomain(args) {
|
|
1320
3060
|
const headers = new Headers(args.headers);
|
|
1321
|
-
return this.request("
|
|
3061
|
+
return this.request("DELETE", "/api/v1/settings/sso-domains/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1322
3062
|
signal: args.signal,
|
|
1323
|
-
binary: true,
|
|
1324
3063
|
headers,
|
|
1325
3064
|
});
|
|
1326
3065
|
}
|
|
1327
|
-
async
|
|
3066
|
+
async verifySsoProvisioningDomain(args) {
|
|
1328
3067
|
const headers = new Headers(args.headers);
|
|
1329
|
-
return this.request("
|
|
3068
|
+
return this.request("POST", "/api/v1/settings/sso-domains/:id/verify".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1330
3069
|
signal: args.signal,
|
|
1331
3070
|
headers,
|
|
1332
3071
|
});
|
|
1333
3072
|
}
|
|
1334
|
-
async
|
|
3073
|
+
async getBrand(args = {}) {
|
|
1335
3074
|
const headers = new Headers(args.headers);
|
|
1336
|
-
|
|
1337
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1338
|
-
return this.request("POST", "/api/v1/estimates/:estimateId/attachments".replace(":estimateId", encodeURIComponent(String(args["estimateId"]))), {
|
|
1339
|
-
body: args.body,
|
|
1340
|
-
multipart: true,
|
|
3075
|
+
return this.request("GET", "/api/v1/brand", {
|
|
1341
3076
|
signal: args.signal,
|
|
1342
3077
|
headers,
|
|
1343
3078
|
});
|
|
1344
3079
|
}
|
|
1345
|
-
async
|
|
3080
|
+
async listBrandAssets(args = {}) {
|
|
1346
3081
|
const headers = new Headers(args.headers);
|
|
1347
|
-
return this.request("GET", "/api/v1/
|
|
3082
|
+
return this.request("GET", "/api/v1/settings/brand-assets", {
|
|
1348
3083
|
signal: args.signal,
|
|
1349
3084
|
headers,
|
|
1350
3085
|
});
|
|
1351
3086
|
}
|
|
1352
|
-
async
|
|
3087
|
+
async removeBrandAsset(args) {
|
|
1353
3088
|
const headers = new Headers(args.headers);
|
|
1354
|
-
return this.request("
|
|
3089
|
+
return this.request("DELETE", "/api/v1/settings/brand-assets/:slot".replace(":slot", encodeURIComponent(String(args["slot"]))), {
|
|
1355
3090
|
signal: args.signal,
|
|
1356
|
-
binary: true,
|
|
1357
3091
|
headers,
|
|
1358
3092
|
});
|
|
1359
3093
|
}
|
|
1360
|
-
async
|
|
3094
|
+
async getInstanceTheme(args = {}) {
|
|
1361
3095
|
const headers = new Headers(args.headers);
|
|
1362
|
-
return this.request("GET", "/api/v1/
|
|
3096
|
+
return this.request("GET", "/api/v1/settings/theme", {
|
|
1363
3097
|
signal: args.signal,
|
|
1364
3098
|
headers,
|
|
1365
3099
|
});
|
|
1366
3100
|
}
|
|
1367
|
-
async
|
|
3101
|
+
async setInstanceTheme(args) {
|
|
1368
3102
|
const headers = new Headers(args.headers);
|
|
1369
|
-
|
|
1370
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1371
|
-
return this.request("POST", "/api/v1/expenses/:expenseId/attachments".replace(":expenseId", encodeURIComponent(String(args["expenseId"]))), {
|
|
3103
|
+
return this.request("POST", "/api/v1/settings/theme", {
|
|
1372
3104
|
body: args.body,
|
|
1373
|
-
multipart: true,
|
|
1374
3105
|
signal: args.signal,
|
|
1375
3106
|
headers,
|
|
1376
3107
|
});
|
|
1377
3108
|
}
|
|
1378
|
-
async
|
|
3109
|
+
async clearInstanceTheme(args = {}) {
|
|
1379
3110
|
const headers = new Headers(args.headers);
|
|
1380
|
-
return this.request("
|
|
3111
|
+
return this.request("DELETE", "/api/v1/settings/theme", {
|
|
1381
3112
|
signal: args.signal,
|
|
1382
3113
|
headers,
|
|
1383
3114
|
});
|
|
1384
3115
|
}
|
|
1385
|
-
async
|
|
3116
|
+
async getInvoicePaymentLink(args) {
|
|
1386
3117
|
const headers = new Headers(args.headers);
|
|
1387
|
-
return this.request("
|
|
3118
|
+
return this.request("POST", "/api/v1/invoices/:id/payment-link".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1388
3119
|
signal: args.signal,
|
|
1389
|
-
binary: true,
|
|
1390
3120
|
headers,
|
|
1391
3121
|
});
|
|
1392
3122
|
}
|
|
1393
|
-
async
|
|
3123
|
+
async releaseInvoicedTime(args) {
|
|
1394
3124
|
const headers = new Headers(args.headers);
|
|
1395
|
-
return this.request("
|
|
3125
|
+
return this.request("POST", "/api/v1/invoices/:id/released-time".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1396
3126
|
signal: args.signal,
|
|
1397
3127
|
headers,
|
|
1398
3128
|
});
|
|
1399
3129
|
}
|
|
1400
|
-
async
|
|
3130
|
+
async getInvoiceDocumentPreference(args) {
|
|
1401
3131
|
const headers = new Headers(args.headers);
|
|
1402
|
-
|
|
1403
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1404
|
-
return this.request("POST", "/api/v1/projects/:projectId/attachments".replace(":projectId", encodeURIComponent(String(args["projectId"]))), {
|
|
1405
|
-
body: args.body,
|
|
1406
|
-
multipart: true,
|
|
3132
|
+
return this.request("GET", "/api/v1/invoices/:id/document-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1407
3133
|
signal: args.signal,
|
|
1408
3134
|
headers,
|
|
1409
3135
|
});
|
|
1410
3136
|
}
|
|
1411
|
-
async
|
|
3137
|
+
async setInvoiceDocumentPreference(args) {
|
|
1412
3138
|
const headers = new Headers(args.headers);
|
|
1413
|
-
return this.request("
|
|
3139
|
+
return this.request("POST", "/api/v1/invoices/:id/document-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3140
|
+
body: args.body,
|
|
1414
3141
|
signal: args.signal,
|
|
1415
3142
|
headers,
|
|
1416
3143
|
});
|
|
1417
3144
|
}
|
|
1418
|
-
async
|
|
3145
|
+
async getInvoiceEmailDefaults(args) {
|
|
1419
3146
|
const headers = new Headers(args.headers);
|
|
1420
|
-
return this.request("GET", "/api/v1/
|
|
3147
|
+
return this.request("GET", "/api/v1/invoices/:id/email-defaults".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1421
3148
|
signal: args.signal,
|
|
1422
|
-
binary: true,
|
|
1423
3149
|
headers,
|
|
1424
3150
|
});
|
|
1425
3151
|
}
|
|
1426
|
-
async
|
|
3152
|
+
async getClientInvoiceSending(args) {
|
|
1427
3153
|
const headers = new Headers(args.headers);
|
|
1428
|
-
return this.request("GET", "/api/v1/
|
|
3154
|
+
return this.request("GET", "/api/v1/clients/:id/invoice-sending".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1429
3155
|
signal: args.signal,
|
|
1430
3156
|
headers,
|
|
1431
3157
|
});
|
|
1432
3158
|
}
|
|
1433
|
-
async
|
|
3159
|
+
async setClientInvoiceSending(args) {
|
|
1434
3160
|
const headers = new Headers(args.headers);
|
|
1435
|
-
return this.request("
|
|
1436
|
-
|
|
3161
|
+
return this.request("POST", "/api/v1/clients/:id/invoice-sending".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3162
|
+
body: args.body,
|
|
1437
3163
|
signal: args.signal,
|
|
1438
3164
|
headers,
|
|
1439
3165
|
});
|
|
1440
3166
|
}
|
|
1441
|
-
async
|
|
3167
|
+
async getOrganizationInvoiceSending(args = {}) {
|
|
1442
3168
|
const headers = new Headers(args.headers);
|
|
1443
|
-
return this.request("
|
|
1444
|
-
body: args.body,
|
|
3169
|
+
return this.request("GET", "/api/v1/settings/invoice-sending", {
|
|
1445
3170
|
signal: args.signal,
|
|
1446
3171
|
headers,
|
|
1447
3172
|
});
|
|
1448
3173
|
}
|
|
1449
|
-
async
|
|
3174
|
+
async setOrganizationInvoiceSending(args) {
|
|
1450
3175
|
const headers = new Headers(args.headers);
|
|
1451
|
-
return this.request("POST", "/api/v1/
|
|
3176
|
+
return this.request("POST", "/api/v1/settings/invoice-sending", {
|
|
1452
3177
|
body: args.body,
|
|
1453
3178
|
signal: args.signal,
|
|
1454
3179
|
headers,
|
|
1455
3180
|
});
|
|
1456
3181
|
}
|
|
1457
|
-
async
|
|
3182
|
+
async getOrganizationInvoiceDocuments(args = {}) {
|
|
1458
3183
|
const headers = new Headers(args.headers);
|
|
1459
|
-
return this.request("GET", "/api/v1/
|
|
3184
|
+
return this.request("GET", "/api/v1/settings/invoice-documents", {
|
|
1460
3185
|
signal: args.signal,
|
|
1461
3186
|
headers,
|
|
1462
3187
|
});
|
|
1463
3188
|
}
|
|
1464
|
-
async
|
|
3189
|
+
async setOrganizationInvoiceDocuments(args) {
|
|
1465
3190
|
const headers = new Headers(args.headers);
|
|
1466
|
-
return this.request("
|
|
3191
|
+
return this.request("POST", "/api/v1/settings/invoice-documents", {
|
|
1467
3192
|
body: args.body,
|
|
1468
3193
|
signal: args.signal,
|
|
1469
3194
|
headers,
|
|
1470
3195
|
});
|
|
1471
3196
|
}
|
|
1472
|
-
async
|
|
3197
|
+
async downloadInvoiceHoursReport(args) {
|
|
1473
3198
|
const headers = new Headers(args.headers);
|
|
1474
|
-
return this.request("
|
|
3199
|
+
return this.request("GET", "/api/v1/invoices/:id/hours-report".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3200
|
+
query: args.query,
|
|
1475
3201
|
signal: args.signal,
|
|
3202
|
+
binary: true,
|
|
1476
3203
|
headers,
|
|
1477
3204
|
});
|
|
1478
3205
|
}
|
|
1479
|
-
async
|
|
3206
|
+
async getInvoiceHoursReconciliation(args) {
|
|
1480
3207
|
const headers = new Headers(args.headers);
|
|
1481
|
-
return this.request("
|
|
3208
|
+
return this.request("GET", "/api/v1/invoices/:id/hours-reconciliation".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1482
3209
|
signal: args.signal,
|
|
1483
3210
|
headers,
|
|
1484
3211
|
});
|
|
1485
3212
|
}
|
|
1486
|
-
async
|
|
3213
|
+
async releaseInvoiceLineTime(args) {
|
|
1487
3214
|
const headers = new Headers(args.headers);
|
|
1488
|
-
return this.request("POST", "/api/v1/
|
|
3215
|
+
return this.request("POST", "/api/v1/invoices/:id/hours-reconciliation/release".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3216
|
+
body: args.body,
|
|
1489
3217
|
signal: args.signal,
|
|
1490
3218
|
headers,
|
|
1491
3219
|
});
|
|
1492
3220
|
}
|
|
1493
|
-
async
|
|
3221
|
+
async getInvoiceDefaults(args = {}) {
|
|
1494
3222
|
const headers = new Headers(args.headers);
|
|
1495
|
-
return this.request("
|
|
3223
|
+
return this.request("GET", "/api/v1/settings/invoice-defaults", {
|
|
1496
3224
|
signal: args.signal,
|
|
1497
3225
|
headers,
|
|
1498
3226
|
});
|
|
1499
3227
|
}
|
|
1500
|
-
async
|
|
3228
|
+
async updateInvoiceDefaults(args) {
|
|
1501
3229
|
const headers = new Headers(args.headers);
|
|
1502
|
-
return this.request("POST", "/api/v1/
|
|
3230
|
+
return this.request("POST", "/api/v1/settings/invoice-defaults", {
|
|
3231
|
+
body: args.body,
|
|
1503
3232
|
signal: args.signal,
|
|
1504
3233
|
headers,
|
|
1505
3234
|
});
|
|
1506
3235
|
}
|
|
1507
|
-
async
|
|
3236
|
+
async getNotificationSettings(args = {}) {
|
|
1508
3237
|
const headers = new Headers(args.headers);
|
|
1509
|
-
return this.request("
|
|
3238
|
+
return this.request("GET", "/api/v1/settings/notifications", {
|
|
1510
3239
|
signal: args.signal,
|
|
1511
3240
|
headers,
|
|
1512
3241
|
});
|
|
1513
3242
|
}
|
|
1514
|
-
async
|
|
3243
|
+
async setNotificationSettings(args) {
|
|
1515
3244
|
const headers = new Headers(args.headers);
|
|
1516
|
-
return this.request("POST", "/api/v1/
|
|
3245
|
+
return this.request("POST", "/api/v1/settings/notifications", {
|
|
3246
|
+
body: args.body,
|
|
1517
3247
|
signal: args.signal,
|
|
1518
3248
|
headers,
|
|
1519
3249
|
});
|
|
1520
3250
|
}
|
|
1521
|
-
async
|
|
3251
|
+
async getTimesheetAutoApproval(args = {}) {
|
|
1522
3252
|
const headers = new Headers(args.headers);
|
|
1523
|
-
return this.request("GET", "/api/v1/
|
|
1524
|
-
query: args.query,
|
|
3253
|
+
return this.request("GET", "/api/v1/settings/timesheet-auto-approval", {
|
|
1525
3254
|
signal: args.signal,
|
|
1526
3255
|
headers,
|
|
1527
3256
|
});
|
|
1528
3257
|
}
|
|
1529
|
-
async
|
|
3258
|
+
async setTimesheetAutoApproval(args) {
|
|
1530
3259
|
const headers = new Headers(args.headers);
|
|
1531
|
-
return this.request("
|
|
1532
|
-
|
|
3260
|
+
return this.request("POST", "/api/v1/settings/timesheet-auto-approval", {
|
|
3261
|
+
body: args.body,
|
|
1533
3262
|
signal: args.signal,
|
|
1534
3263
|
headers,
|
|
1535
3264
|
});
|
|
1536
3265
|
}
|
|
1537
|
-
async
|
|
3266
|
+
async getInvoiceThankYouPreference(args) {
|
|
1538
3267
|
const headers = new Headers(args.headers);
|
|
1539
|
-
return this.request("GET", "/api/v1/
|
|
1540
|
-
query: args.query,
|
|
3268
|
+
return this.request("GET", "/api/v1/invoices/:id/thank-you-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1541
3269
|
signal: args.signal,
|
|
1542
3270
|
headers,
|
|
1543
3271
|
});
|
|
1544
3272
|
}
|
|
1545
|
-
async
|
|
3273
|
+
async setInvoiceThankYouPreference(args) {
|
|
1546
3274
|
const headers = new Headers(args.headers);
|
|
1547
|
-
return this.request("
|
|
1548
|
-
query: args.query,
|
|
3275
|
+
return this.request("POST", "/api/v1/invoices/:id/thank-you-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1549
3276
|
signal: args.signal,
|
|
1550
3277
|
headers,
|
|
1551
3278
|
});
|
|
1552
3279
|
}
|
|
1553
|
-
async
|
|
3280
|
+
async getOrganizationInvoiceThankYou(args = {}) {
|
|
1554
3281
|
const headers = new Headers(args.headers);
|
|
1555
|
-
return this.request("GET", "/api/v1/
|
|
1556
|
-
query: args.query,
|
|
3282
|
+
return this.request("GET", "/api/v1/settings/invoice-thank-you", {
|
|
1557
3283
|
signal: args.signal,
|
|
1558
3284
|
headers,
|
|
1559
3285
|
});
|
|
1560
3286
|
}
|
|
1561
|
-
async
|
|
3287
|
+
async setOrganizationInvoiceThankYou(args = {}) {
|
|
1562
3288
|
const headers = new Headers(args.headers);
|
|
1563
|
-
return this.request("
|
|
1564
|
-
query: args.query,
|
|
3289
|
+
return this.request("POST", "/api/v1/settings/invoice-thank-you", {
|
|
1565
3290
|
signal: args.signal,
|
|
1566
3291
|
headers,
|
|
1567
3292
|
});
|
|
1568
3293
|
}
|
|
1569
|
-
async
|
|
3294
|
+
async getOrganizationInvoiceReminders(args = {}) {
|
|
1570
3295
|
const headers = new Headers(args.headers);
|
|
1571
|
-
return this.request("GET", "/api/v1/
|
|
1572
|
-
query: args.query,
|
|
3296
|
+
return this.request("GET", "/api/v1/settings/invoice-reminders", {
|
|
1573
3297
|
signal: args.signal,
|
|
1574
3298
|
headers,
|
|
1575
3299
|
});
|
|
1576
3300
|
}
|
|
1577
|
-
async
|
|
3301
|
+
async setOrganizationInvoiceReminders(args) {
|
|
1578
3302
|
const headers = new Headers(args.headers);
|
|
1579
|
-
return this.request("
|
|
1580
|
-
|
|
3303
|
+
return this.request("POST", "/api/v1/settings/invoice-reminders", {
|
|
3304
|
+
body: args.body,
|
|
1581
3305
|
signal: args.signal,
|
|
1582
3306
|
headers,
|
|
1583
3307
|
});
|
|
1584
3308
|
}
|
|
1585
|
-
async
|
|
3309
|
+
async getInvoiceReminderPreference(args) {
|
|
1586
3310
|
const headers = new Headers(args.headers);
|
|
1587
|
-
return this.request("GET", "/api/v1/
|
|
3311
|
+
return this.request("GET", "/api/v1/invoices/:id/reminder-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1588
3312
|
signal: args.signal,
|
|
1589
3313
|
headers,
|
|
1590
3314
|
});
|
|
1591
3315
|
}
|
|
1592
|
-
async
|
|
3316
|
+
async setInvoiceReminderPreference(args) {
|
|
1593
3317
|
const headers = new Headers(args.headers);
|
|
1594
|
-
return this.request("POST", "/api/v1/
|
|
3318
|
+
return this.request("POST", "/api/v1/invoices/:id/reminder-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1595
3319
|
body: args.body,
|
|
1596
3320
|
signal: args.signal,
|
|
1597
3321
|
headers,
|
|
1598
3322
|
});
|
|
1599
3323
|
}
|
|
1600
|
-
async
|
|
3324
|
+
async listIncompleteRecurringInvoices(args = {}) {
|
|
1601
3325
|
const headers = new Headers(args.headers);
|
|
1602
|
-
return this.request("GET", "/api/v1/
|
|
1603
|
-
query: args.query,
|
|
3326
|
+
return this.request("GET", "/api/v1/recurring-invoices/incomplete", {
|
|
1604
3327
|
signal: args.signal,
|
|
1605
3328
|
headers,
|
|
1606
3329
|
});
|
|
1607
3330
|
}
|
|
1608
|
-
async
|
|
3331
|
+
async completeRecurringInvoiceDefinition(args) {
|
|
1609
3332
|
const headers = new Headers(args.headers);
|
|
1610
|
-
return this.request("
|
|
1611
|
-
query: args.query,
|
|
3333
|
+
return this.request("POST", "/api/v1/recurring-invoices/:id/completion".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1612
3334
|
signal: args.signal,
|
|
1613
3335
|
headers,
|
|
1614
3336
|
});
|
|
1615
3337
|
}
|
|
1616
|
-
async
|
|
3338
|
+
async listPayoutAccounts(args) {
|
|
1617
3339
|
const headers = new Headers(args.headers);
|
|
1618
|
-
return this.request("GET", "/api/v1/
|
|
1619
|
-
|
|
3340
|
+
return this.request("GET", "/api/v1/users/:id/payout-accounts".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3341
|
+
signal: args.signal,
|
|
3342
|
+
headers,
|
|
3343
|
+
});
|
|
3344
|
+
}
|
|
3345
|
+
async linkPayoutAccount(args) {
|
|
3346
|
+
const headers = new Headers(args.headers);
|
|
3347
|
+
return this.request("POST", "/api/v1/users/:id/payout-accounts".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3348
|
+
body: args.body,
|
|
1620
3349
|
signal: args.signal,
|
|
1621
3350
|
headers,
|
|
1622
3351
|
});
|
|
1623
3352
|
}
|
|
1624
|
-
async
|
|
3353
|
+
async detachPayoutAccount(args) {
|
|
1625
3354
|
const headers = new Headers(args.headers);
|
|
1626
|
-
return this.request("
|
|
1627
|
-
query: args.query,
|
|
3355
|
+
return this.request("DELETE", "/api/v1/payout-accounts/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1628
3356
|
signal: args.signal,
|
|
1629
3357
|
headers,
|
|
1630
3358
|
});
|
|
1631
3359
|
}
|
|
1632
|
-
async
|
|
3360
|
+
async listPayoutProviders(args = {}) {
|
|
1633
3361
|
const headers = new Headers(args.headers);
|
|
1634
|
-
return this.request("
|
|
1635
|
-
body: args.body,
|
|
3362
|
+
return this.request("GET", "/api/v1/payout-providers", {
|
|
1636
3363
|
signal: args.signal,
|
|
1637
3364
|
headers,
|
|
1638
3365
|
});
|
|
1639
3366
|
}
|
|
1640
|
-
async
|
|
3367
|
+
async setPayoutProviderEnabled(args) {
|
|
1641
3368
|
const headers = new Headers(args.headers);
|
|
1642
|
-
return this.request("
|
|
1643
|
-
|
|
3369
|
+
return this.request("PATCH", "/api/v1/payout-providers/:provider".replace(":provider", encodeURIComponent(String(args["provider"]))), {
|
|
3370
|
+
body: args.body,
|
|
1644
3371
|
signal: args.signal,
|
|
1645
3372
|
headers,
|
|
1646
3373
|
});
|
|
1647
3374
|
}
|
|
1648
|
-
async
|
|
3375
|
+
async getPayoutPreference(args) {
|
|
1649
3376
|
const headers = new Headers(args.headers);
|
|
1650
|
-
return this.request("GET", "/api/v1/
|
|
1651
|
-
query: args.query,
|
|
3377
|
+
return this.request("GET", "/api/v1/users/:id/payout-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1652
3378
|
signal: args.signal,
|
|
1653
3379
|
headers,
|
|
1654
3380
|
});
|
|
1655
3381
|
}
|
|
1656
|
-
async
|
|
3382
|
+
async setPayoutPreference(args) {
|
|
1657
3383
|
const headers = new Headers(args.headers);
|
|
1658
|
-
return this.request("
|
|
1659
|
-
|
|
3384
|
+
return this.request("PATCH", "/api/v1/users/:id/payout-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3385
|
+
body: args.body,
|
|
1660
3386
|
signal: args.signal,
|
|
1661
3387
|
headers,
|
|
1662
3388
|
});
|
|
1663
3389
|
}
|
|
1664
|
-
async
|
|
3390
|
+
async listPayoutPreferences(args = {}) {
|
|
1665
3391
|
const headers = new Headers(args.headers);
|
|
1666
|
-
return this.request("GET", "/api/v1/
|
|
3392
|
+
return this.request("GET", "/api/v1/payout-preferences", {
|
|
1667
3393
|
signal: args.signal,
|
|
1668
3394
|
headers,
|
|
1669
3395
|
});
|
|
1670
3396
|
}
|
|
1671
|
-
async
|
|
3397
|
+
async getBillStatus(args = {}) {
|
|
1672
3398
|
const headers = new Headers(args.headers);
|
|
1673
|
-
return this.request("
|
|
1674
|
-
body: args.body,
|
|
3399
|
+
return this.request("GET", "/api/v1/integrations/bill", {
|
|
1675
3400
|
signal: args.signal,
|
|
1676
3401
|
headers,
|
|
1677
3402
|
});
|
|
1678
3403
|
}
|
|
1679
|
-
async
|
|
3404
|
+
async getBillClientDelivery(args) {
|
|
1680
3405
|
const headers = new Headers(args.headers);
|
|
1681
|
-
return this.request("GET", "/api/v1/
|
|
3406
|
+
return this.request("GET", "/api/v1/integrations/bill/clients/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1682
3407
|
signal: args.signal,
|
|
1683
3408
|
headers,
|
|
1684
3409
|
});
|
|
1685
3410
|
}
|
|
1686
|
-
async
|
|
3411
|
+
async setBillClientDelivery(args) {
|
|
1687
3412
|
const headers = new Headers(args.headers);
|
|
1688
|
-
return this.request("
|
|
3413
|
+
return this.request("POST", "/api/v1/integrations/bill/clients/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1689
3414
|
body: args.body,
|
|
1690
3415
|
signal: args.signal,
|
|
1691
3416
|
headers,
|
|
1692
3417
|
});
|
|
1693
3418
|
}
|
|
1694
|
-
async
|
|
3419
|
+
async getTwoFactorStatus(args = {}) {
|
|
1695
3420
|
const headers = new Headers(args.headers);
|
|
1696
|
-
return this.request("GET", "/api/v1/
|
|
3421
|
+
return this.request("GET", "/api/v1/two-factor", {
|
|
1697
3422
|
signal: args.signal,
|
|
1698
3423
|
headers,
|
|
1699
3424
|
});
|
|
1700
3425
|
}
|
|
1701
|
-
async
|
|
3426
|
+
async beginTwoFactorEnrolment(args = {}) {
|
|
1702
3427
|
const headers = new Headers(args.headers);
|
|
1703
|
-
return this.request("
|
|
3428
|
+
return this.request("POST", "/api/v1/two-factor", {
|
|
1704
3429
|
signal: args.signal,
|
|
1705
3430
|
headers,
|
|
1706
3431
|
});
|
|
1707
3432
|
}
|
|
1708
|
-
async
|
|
3433
|
+
async confirmTwoFactorEnrolment(args) {
|
|
1709
3434
|
const headers = new Headers(args.headers);
|
|
1710
|
-
return this.request("POST", "/api/v1/
|
|
3435
|
+
return this.request("POST", "/api/v1/two-factor/confirm", {
|
|
3436
|
+
body: args.body,
|
|
1711
3437
|
signal: args.signal,
|
|
1712
3438
|
headers,
|
|
1713
3439
|
});
|
|
1714
3440
|
}
|
|
1715
|
-
async
|
|
3441
|
+
async disableTwoFactor(args) {
|
|
1716
3442
|
const headers = new Headers(args.headers);
|
|
1717
|
-
return this.request("
|
|
3443
|
+
return this.request("DELETE", "/api/v1/two-factor", {
|
|
1718
3444
|
body: args.body,
|
|
1719
3445
|
signal: args.signal,
|
|
1720
3446
|
headers,
|
|
1721
3447
|
});
|
|
1722
3448
|
}
|
|
1723
|
-
async
|
|
3449
|
+
async enableTwoFactorEmail(args = {}) {
|
|
1724
3450
|
const headers = new Headers(args.headers);
|
|
1725
|
-
return this.request("
|
|
3451
|
+
return this.request("POST", "/api/v1/two-factor/email", {
|
|
1726
3452
|
signal: args.signal,
|
|
1727
3453
|
headers,
|
|
1728
3454
|
});
|
|
1729
3455
|
}
|
|
1730
|
-
async
|
|
3456
|
+
async disableTwoFactorEmail(args = {}) {
|
|
1731
3457
|
const headers = new Headers(args.headers);
|
|
1732
|
-
return this.request("
|
|
3458
|
+
return this.request("DELETE", "/api/v1/two-factor/email", {
|
|
1733
3459
|
signal: args.signal,
|
|
1734
3460
|
headers,
|
|
1735
3461
|
});
|
|
1736
3462
|
}
|
|
1737
|
-
async
|
|
3463
|
+
async getUserTwoFactorEmail(args) {
|
|
1738
3464
|
const headers = new Headers(args.headers);
|
|
1739
|
-
return this.request("GET", "/api/v1/
|
|
3465
|
+
return this.request("GET", "/api/v1/users/:id/two-factor/email".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1740
3466
|
signal: args.signal,
|
|
1741
3467
|
headers,
|
|
1742
3468
|
});
|
|
1743
3469
|
}
|
|
1744
|
-
async
|
|
3470
|
+
async disableUserTwoFactorEmail(args) {
|
|
1745
3471
|
const headers = new Headers(args.headers);
|
|
1746
|
-
return this.request("
|
|
1747
|
-
body: args.body,
|
|
3472
|
+
return this.request("DELETE", "/api/v1/users/:id/two-factor/email".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1748
3473
|
signal: args.signal,
|
|
1749
3474
|
headers,
|
|
1750
3475
|
});
|
|
1751
3476
|
}
|
|
1752
|
-
async
|
|
3477
|
+
async addUserEmail(args) {
|
|
1753
3478
|
const headers = new Headers(args.headers);
|
|
1754
|
-
return this.request("
|
|
3479
|
+
return this.request("POST", "/api/v1/users/:id/emails".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3480
|
+
body: args.body,
|
|
1755
3481
|
signal: args.signal,
|
|
1756
3482
|
headers,
|
|
1757
3483
|
});
|
|
1758
3484
|
}
|
|
1759
|
-
async
|
|
3485
|
+
async getTeamStatus(args = {}) {
|
|
1760
3486
|
const headers = new Headers(args.headers);
|
|
1761
|
-
return this.request("GET", "/api/v1/
|
|
3487
|
+
return this.request("GET", "/api/v1/team/status", {
|
|
1762
3488
|
signal: args.signal,
|
|
1763
3489
|
headers,
|
|
1764
3490
|
});
|
|
1765
3491
|
}
|
|
1766
|
-
async
|
|
3492
|
+
async listTeamPeople(args) {
|
|
1767
3493
|
const headers = new Headers(args.headers);
|
|
1768
|
-
return this.request("
|
|
3494
|
+
return this.request("GET", "/api/v1/team/people", {
|
|
3495
|
+
query: args.query,
|
|
1769
3496
|
signal: args.signal,
|
|
1770
3497
|
headers,
|
|
1771
3498
|
});
|
|
1772
3499
|
}
|
|
1773
|
-
async
|
|
3500
|
+
async getTeamPerson(args) {
|
|
1774
3501
|
const headers = new Headers(args.headers);
|
|
1775
|
-
return this.request("
|
|
1776
|
-
body: args.body,
|
|
3502
|
+
return this.request("GET", "/api/v1/team/people/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1777
3503
|
signal: args.signal,
|
|
1778
3504
|
headers,
|
|
1779
3505
|
});
|
|
1780
3506
|
}
|
|
1781
|
-
async
|
|
3507
|
+
async getTeamCatalog(args = {}) {
|
|
1782
3508
|
const headers = new Headers(args.headers);
|
|
1783
|
-
return this.request("
|
|
1784
|
-
body: args.body,
|
|
3509
|
+
return this.request("GET", "/api/v1/team/catalog", {
|
|
1785
3510
|
signal: args.signal,
|
|
1786
3511
|
headers,
|
|
1787
3512
|
});
|
|
1788
3513
|
}
|
|
1789
|
-
async
|
|
3514
|
+
async updateTeamPerson(args) {
|
|
1790
3515
|
const headers = new Headers(args.headers);
|
|
1791
|
-
|
|
3516
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3517
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3518
|
+
return this.request("PATCH", "/api/v1/team/people/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3519
|
+
body: args.body,
|
|
1792
3520
|
signal: args.signal,
|
|
1793
3521
|
headers,
|
|
1794
3522
|
});
|
|
1795
3523
|
}
|
|
1796
|
-
async
|
|
3524
|
+
async replaceTeamPersonProjectAssignments(args) {
|
|
1797
3525
|
const headers = new Headers(args.headers);
|
|
1798
|
-
|
|
3526
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3527
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3528
|
+
return this.request("POST", "/api/v1/team/people/:id/project-assignments/replace".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3529
|
+
body: args.body,
|
|
1799
3530
|
signal: args.signal,
|
|
1800
3531
|
headers,
|
|
1801
3532
|
});
|
|
1802
3533
|
}
|
|
1803
|
-
async
|
|
3534
|
+
async updateTeamPersonNotifications(args) {
|
|
1804
3535
|
const headers = new Headers(args.headers);
|
|
1805
|
-
|
|
3536
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3537
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3538
|
+
return this.request("POST", "/api/v1/team/people/:id/notifications".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1806
3539
|
body: args.body,
|
|
1807
3540
|
signal: args.signal,
|
|
1808
3541
|
headers,
|
|
1809
3542
|
});
|
|
1810
3543
|
}
|
|
1811
|
-
async
|
|
3544
|
+
async appendTeamPersonRate(args) {
|
|
1812
3545
|
const headers = new Headers(args.headers);
|
|
1813
|
-
|
|
3546
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3547
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3548
|
+
return this.request("POST", "/api/v1/team/people/:id/rates".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3549
|
+
body: args.body,
|
|
1814
3550
|
signal: args.signal,
|
|
1815
3551
|
headers,
|
|
1816
3552
|
});
|
|
1817
3553
|
}
|
|
1818
|
-
async
|
|
3554
|
+
async removeTeamPersonRate(args) {
|
|
1819
3555
|
const headers = new Headers(args.headers);
|
|
1820
|
-
|
|
3556
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3557
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3558
|
+
return this.request("DELETE", "/api/v1/team/people/:id/rates/:rateId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":rateId", encodeURIComponent(String(args["rateId"]))), {
|
|
3559
|
+
body: args.body,
|
|
1821
3560
|
signal: args.signal,
|
|
1822
3561
|
headers,
|
|
1823
3562
|
});
|
|
1824
3563
|
}
|
|
1825
|
-
async
|
|
3564
|
+
async backfillTeamPersonCostRate(args) {
|
|
1826
3565
|
const headers = new Headers(args.headers);
|
|
1827
|
-
|
|
3566
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3567
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3568
|
+
return this.request("POST", "/api/v1/team/people/:id/cost-rate-backfill".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3569
|
+
body: args.body,
|
|
1828
3570
|
signal: args.signal,
|
|
1829
3571
|
headers,
|
|
1830
3572
|
});
|
|
1831
3573
|
}
|
|
1832
|
-
async
|
|
3574
|
+
async listClientAncestors(args) {
|
|
1833
3575
|
const headers = new Headers(args.headers);
|
|
1834
|
-
return this.request("GET", "/api/v1/
|
|
3576
|
+
return this.request("GET", "/api/v1/clients/:id/ancestors".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1835
3577
|
signal: args.signal,
|
|
1836
3578
|
headers,
|
|
1837
3579
|
});
|
|
1838
3580
|
}
|
|
1839
|
-
async
|
|
3581
|
+
async listClientDescendants(args) {
|
|
1840
3582
|
const headers = new Headers(args.headers);
|
|
1841
|
-
return this.request("
|
|
3583
|
+
return this.request("GET", "/api/v1/clients/:id/descendants".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1842
3584
|
signal: args.signal,
|
|
1843
3585
|
headers,
|
|
1844
3586
|
});
|
|
1845
3587
|
}
|
|
1846
|
-
async
|
|
3588
|
+
async getClientRateCard(args) {
|
|
1847
3589
|
const headers = new Headers(args.headers);
|
|
1848
|
-
return this.request("GET", "/api/v1/
|
|
3590
|
+
return this.request("GET", "/api/v1/clients/:id/rate-card".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1849
3591
|
signal: args.signal,
|
|
1850
3592
|
headers,
|
|
1851
3593
|
});
|
|
1852
3594
|
}
|
|
1853
|
-
async
|
|
3595
|
+
async createClientRateCard(args) {
|
|
1854
3596
|
const headers = new Headers(args.headers);
|
|
1855
|
-
return this.request("POST", "/api/v1/
|
|
3597
|
+
return this.request("POST", "/api/v1/clients/:id/rate-card".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1856
3598
|
body: args.body,
|
|
1857
3599
|
signal: args.signal,
|
|
1858
3600
|
headers,
|
|
1859
3601
|
});
|
|
1860
3602
|
}
|
|
1861
|
-
async
|
|
3603
|
+
async createClientRateCardVersion(args) {
|
|
1862
3604
|
const headers = new Headers(args.headers);
|
|
1863
|
-
return this.request("
|
|
3605
|
+
return this.request("POST", "/api/v1/clients/:id/rate-card/versions".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3606
|
+
body: args.body,
|
|
1864
3607
|
signal: args.signal,
|
|
1865
3608
|
headers,
|
|
1866
3609
|
});
|
|
1867
3610
|
}
|
|
1868
|
-
async
|
|
3611
|
+
async getClientEffectiveRateCard(args) {
|
|
1869
3612
|
const headers = new Headers(args.headers);
|
|
1870
|
-
return this.request("
|
|
3613
|
+
return this.request("GET", "/api/v1/clients/:id/effective-rate-card".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3614
|
+
query: args.query,
|
|
1871
3615
|
signal: args.signal,
|
|
1872
3616
|
headers,
|
|
1873
3617
|
});
|
|
1874
3618
|
}
|
|
1875
|
-
async
|
|
3619
|
+
async listEstimateTemplates(args = {}) {
|
|
1876
3620
|
const headers = new Headers(args.headers);
|
|
1877
|
-
return this.request("
|
|
3621
|
+
return this.request("GET", "/api/v1/estimate-templates", {
|
|
1878
3622
|
signal: args.signal,
|
|
1879
3623
|
headers,
|
|
1880
3624
|
});
|
|
1881
3625
|
}
|
|
1882
|
-
async
|
|
3626
|
+
async createEstimateTemplate(args) {
|
|
1883
3627
|
const headers = new Headers(args.headers);
|
|
1884
|
-
return this.request("
|
|
3628
|
+
return this.request("POST", "/api/v1/estimate-templates", {
|
|
3629
|
+
body: args.body,
|
|
1885
3630
|
signal: args.signal,
|
|
1886
3631
|
headers,
|
|
1887
3632
|
});
|
|
1888
3633
|
}
|
|
1889
|
-
async
|
|
3634
|
+
async updateEstimateTemplate(args) {
|
|
1890
3635
|
const headers = new Headers(args.headers);
|
|
1891
|
-
return this.request("
|
|
3636
|
+
return this.request("PATCH", "/api/v1/estimate-templates/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3637
|
+
body: args.body,
|
|
1892
3638
|
signal: args.signal,
|
|
1893
3639
|
headers,
|
|
1894
3640
|
});
|
|
1895
3641
|
}
|
|
1896
|
-
async
|
|
3642
|
+
async createEstimateDraft(args) {
|
|
1897
3643
|
const headers = new Headers(args.headers);
|
|
1898
|
-
|
|
3644
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3645
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3646
|
+
return this.request("POST", "/api/v1/estimates", {
|
|
3647
|
+
body: args.body,
|
|
1899
3648
|
signal: args.signal,
|
|
1900
3649
|
headers,
|
|
1901
3650
|
});
|
|
1902
3651
|
}
|
|
1903
|
-
async
|
|
3652
|
+
async getMigrationLoadStatus(args) {
|
|
1904
3653
|
const headers = new Headers(args.headers);
|
|
1905
|
-
return this.request("
|
|
3654
|
+
return this.request("GET", "/api/v1/migration-loads/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1906
3655
|
signal: args.signal,
|
|
1907
3656
|
headers,
|
|
1908
3657
|
});
|
|
1909
3658
|
}
|
|
1910
|
-
async
|
|
3659
|
+
async sendInvoiceElevationEmailCode(args) {
|
|
1911
3660
|
const headers = new Headers(args.headers);
|
|
1912
|
-
return this.request("
|
|
3661
|
+
return this.request("POST", "/api/v1/invoice-elevations/email-code", {
|
|
3662
|
+
body: args.body,
|
|
1913
3663
|
signal: args.signal,
|
|
1914
3664
|
headers,
|
|
1915
3665
|
});
|
|
1916
3666
|
}
|
|
1917
|
-
async
|
|
3667
|
+
async createInvoiceElevation(args) {
|
|
1918
3668
|
const headers = new Headers(args.headers);
|
|
1919
|
-
return this.request("POST", "/api/v1/
|
|
3669
|
+
return this.request("POST", "/api/v1/invoice-elevations", {
|
|
3670
|
+
body: args.body,
|
|
1920
3671
|
signal: args.signal,
|
|
1921
3672
|
headers,
|
|
1922
3673
|
});
|
|
1923
3674
|
}
|
|
1924
|
-
async
|
|
3675
|
+
async verifyInvoiceElevation(args) {
|
|
1925
3676
|
const headers = new Headers(args.headers);
|
|
1926
|
-
return this.request("
|
|
3677
|
+
return this.request("POST", "/api/v1/invoice-elevations/verify", {
|
|
3678
|
+
body: args.body,
|
|
1927
3679
|
signal: args.signal,
|
|
1928
3680
|
headers,
|
|
1929
3681
|
});
|
|
1930
3682
|
}
|
|
1931
|
-
async
|
|
3683
|
+
async revokeInvoiceElevation(args) {
|
|
1932
3684
|
const headers = new Headers(args.headers);
|
|
1933
|
-
return this.request("
|
|
3685
|
+
return this.request("DELETE", "/api/v1/invoice-elevations/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1934
3686
|
signal: args.signal,
|
|
1935
3687
|
headers,
|
|
1936
3688
|
});
|
|
1937
3689
|
}
|
|
1938
|
-
async
|
|
3690
|
+
async unlinkElevatedInvoiceTime(args) {
|
|
1939
3691
|
const headers = new Headers(args.headers);
|
|
1940
|
-
|
|
3692
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3693
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3694
|
+
if (args["X-Ezacto-Invoice-Elevation"] !== undefined)
|
|
3695
|
+
headers.set("X-Ezacto-Invoice-Elevation", String(args["X-Ezacto-Invoice-Elevation"]));
|
|
3696
|
+
return this.request("POST", "/api/v1/invoices/:id/unlink-time".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3697
|
+
body: args.body,
|
|
1941
3698
|
signal: args.signal,
|
|
1942
3699
|
headers,
|
|
1943
3700
|
});
|
|
1944
3701
|
}
|
|
1945
|
-
async
|
|
3702
|
+
async listWebhookSubscriptions(args = {}) {
|
|
1946
3703
|
const headers = new Headers(args.headers);
|
|
1947
|
-
return this.request("
|
|
3704
|
+
return this.request("GET", "/api/v1/webhook-subscriptions", {
|
|
1948
3705
|
signal: args.signal,
|
|
1949
3706
|
headers,
|
|
1950
3707
|
});
|
|
1951
3708
|
}
|
|
1952
|
-
async
|
|
3709
|
+
async createWebhookSubscription(args) {
|
|
1953
3710
|
const headers = new Headers(args.headers);
|
|
1954
|
-
|
|
3711
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3712
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3713
|
+
return this.request("POST", "/api/v1/webhook-subscriptions", {
|
|
3714
|
+
body: args.body,
|
|
1955
3715
|
signal: args.signal,
|
|
1956
3716
|
headers,
|
|
1957
3717
|
});
|
|
1958
3718
|
}
|
|
1959
|
-
async
|
|
3719
|
+
async setWebhookSubscriptionActive(args) {
|
|
1960
3720
|
const headers = new Headers(args.headers);
|
|
1961
|
-
|
|
3721
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3722
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3723
|
+
return this.request("PATCH", "/api/v1/webhook-subscriptions/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1962
3724
|
body: args.body,
|
|
1963
3725
|
signal: args.signal,
|
|
1964
3726
|
headers,
|
|
1965
3727
|
});
|
|
1966
3728
|
}
|
|
1967
|
-
async
|
|
3729
|
+
async rotateWebhookSecret(args) {
|
|
1968
3730
|
const headers = new Headers(args.headers);
|
|
1969
|
-
|
|
3731
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3732
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3733
|
+
return this.request("POST", "/api/v1/webhook-subscriptions/:id/rotate-secret".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3734
|
+
body: args.body,
|
|
1970
3735
|
signal: args.signal,
|
|
1971
3736
|
headers,
|
|
1972
3737
|
});
|
|
1973
3738
|
}
|
|
1974
|
-
async
|
|
3739
|
+
async deleteWebhookSubscription(args) {
|
|
1975
3740
|
const headers = new Headers(args.headers);
|
|
1976
|
-
|
|
3741
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3742
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3743
|
+
return this.request("DELETE", "/api/v1/webhook-subscriptions/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3744
|
+
body: args.body,
|
|
1977
3745
|
signal: args.signal,
|
|
1978
3746
|
headers,
|
|
1979
3747
|
});
|
|
1980
3748
|
}
|
|
1981
|
-
async
|
|
3749
|
+
async listWebhookDeliveries(args = {}) {
|
|
1982
3750
|
const headers = new Headers(args.headers);
|
|
1983
|
-
return this.request("GET", "/api/v1/
|
|
3751
|
+
return this.request("GET", "/api/v1/webhook-deliveries", {
|
|
3752
|
+
query: args.query,
|
|
1984
3753
|
signal: args.signal,
|
|
1985
3754
|
headers,
|
|
1986
3755
|
});
|
|
1987
3756
|
}
|
|
1988
|
-
async
|
|
3757
|
+
async replayWebhookDelivery(args) {
|
|
1989
3758
|
const headers = new Headers(args.headers);
|
|
1990
|
-
|
|
3759
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
3760
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
3761
|
+
return this.request("POST", "/api/v1/webhook-deliveries/:id/replay".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1991
3762
|
body: args.body,
|
|
1992
3763
|
signal: args.signal,
|
|
1993
3764
|
headers,
|
|
1994
3765
|
});
|
|
1995
3766
|
}
|
|
1996
|
-
async
|
|
3767
|
+
async getCsvImportCapabilities(args = {}) {
|
|
1997
3768
|
const headers = new Headers(args.headers);
|
|
1998
|
-
return this.request("GET", "/api/v1/
|
|
3769
|
+
return this.request("GET", "/api/v1/csv-import-capabilities", {
|
|
1999
3770
|
signal: args.signal,
|
|
2000
3771
|
headers,
|
|
2001
3772
|
});
|
|
2002
3773
|
}
|
|
2003
|
-
async
|
|
3774
|
+
async uploadCsvImport(args) {
|
|
2004
3775
|
const headers = new Headers(args.headers);
|
|
2005
|
-
|
|
3776
|
+
if (args["X-CSV-SHA256"] !== undefined)
|
|
3777
|
+
headers.set("X-CSV-SHA256", String(args["X-CSV-SHA256"]));
|
|
3778
|
+
if (args["X-CSV-Bytes"] !== undefined)
|
|
3779
|
+
headers.set("X-CSV-Bytes", String(args["X-CSV-Bytes"]));
|
|
3780
|
+
return this.request("POST", "/api/v1/csv-imports", {
|
|
3781
|
+
body: args.body,
|
|
3782
|
+
rawBody: true,
|
|
2006
3783
|
signal: args.signal,
|
|
2007
3784
|
headers,
|
|
2008
3785
|
});
|
|
2009
3786
|
}
|
|
2010
|
-
async
|
|
3787
|
+
async getCsvImportMapping(args) {
|
|
2011
3788
|
const headers = new Headers(args.headers);
|
|
2012
|
-
return this.request("
|
|
2013
|
-
body: args.body,
|
|
3789
|
+
return this.request("GET", "/api/v1/csv-imports/:runId/mapping".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2014
3790
|
signal: args.signal,
|
|
2015
3791
|
headers,
|
|
2016
3792
|
});
|
|
2017
3793
|
}
|
|
2018
|
-
async
|
|
3794
|
+
async mapCsvImport(args) {
|
|
2019
3795
|
const headers = new Headers(args.headers);
|
|
2020
|
-
return this.request("
|
|
3796
|
+
return this.request("PATCH", "/api/v1/csv-imports/:runId/mapping".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2021
3797
|
body: args.body,
|
|
2022
3798
|
signal: args.signal,
|
|
2023
3799
|
headers,
|
|
2024
3800
|
});
|
|
2025
3801
|
}
|
|
2026
|
-
async
|
|
3802
|
+
async previewCsvImport(args) {
|
|
2027
3803
|
const headers = new Headers(args.headers);
|
|
2028
|
-
return this.request("POST", "/api/v1/
|
|
3804
|
+
return this.request("POST", "/api/v1/csv-imports/:runId/preview".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2029
3805
|
body: args.body,
|
|
2030
3806
|
signal: args.signal,
|
|
2031
3807
|
headers,
|
|
2032
3808
|
});
|
|
2033
3809
|
}
|
|
2034
|
-
async
|
|
3810
|
+
async getCsvImport(args) {
|
|
2035
3811
|
const headers = new Headers(args.headers);
|
|
2036
|
-
return this.request("GET", "/api/v1/
|
|
3812
|
+
return this.request("GET", "/api/v1/csv-imports/:runId".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2037
3813
|
signal: args.signal,
|
|
2038
3814
|
headers,
|
|
2039
3815
|
});
|
|
2040
3816
|
}
|
|
2041
|
-
async
|
|
3817
|
+
async listCsvImportErrors(args) {
|
|
2042
3818
|
const headers = new Headers(args.headers);
|
|
2043
|
-
return this.request("GET", "/api/v1/
|
|
3819
|
+
return this.request("GET", "/api/v1/csv-imports/:runId/errors".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2044
3820
|
query: args.query,
|
|
2045
3821
|
signal: args.signal,
|
|
2046
3822
|
headers,
|
|
2047
3823
|
});
|
|
2048
3824
|
}
|
|
2049
|
-
async
|
|
2050
|
-
const headers = new Headers(args.headers);
|
|
2051
|
-
return this.request("GET", "/api/v1/team/people/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2052
|
-
signal: args.signal,
|
|
2053
|
-
headers,
|
|
2054
|
-
});
|
|
2055
|
-
}
|
|
2056
|
-
async getTeamCatalog(args = {}) {
|
|
3825
|
+
async listCsvImportCatalog(args) {
|
|
2057
3826
|
const headers = new Headers(args.headers);
|
|
2058
|
-
return this.request("GET", "/api/v1/
|
|
3827
|
+
return this.request("GET", "/api/v1/csv-imports/:runId/catalog".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
3828
|
+
query: args.query,
|
|
2059
3829
|
signal: args.signal,
|
|
2060
3830
|
headers,
|
|
2061
3831
|
});
|
|
2062
3832
|
}
|
|
2063
|
-
async
|
|
3833
|
+
async downloadCsvImportDiagnostics(args) {
|
|
2064
3834
|
const headers = new Headers(args.headers);
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
return this.request("PATCH", "/api/v1/team/people/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2068
|
-
body: args.body,
|
|
3835
|
+
return this.request("GET", "/api/v1/csv-imports/:runId/diagnostics".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
3836
|
+
query: args.query,
|
|
2069
3837
|
signal: args.signal,
|
|
3838
|
+
binary: true,
|
|
2070
3839
|
headers,
|
|
2071
3840
|
});
|
|
2072
3841
|
}
|
|
2073
|
-
async
|
|
3842
|
+
async purgeCsvImportInput(args) {
|
|
2074
3843
|
const headers = new Headers(args.headers);
|
|
2075
|
-
|
|
2076
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2077
|
-
return this.request("POST", "/api/v1/team/people/:id/project-assignments/replace".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2078
|
-
body: args.body,
|
|
3844
|
+
return this.request("DELETE", "/api/v1/csv-imports/:runId/input".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2079
3845
|
signal: args.signal,
|
|
2080
3846
|
headers,
|
|
2081
3847
|
});
|
|
2082
3848
|
}
|
|
2083
|
-
async
|
|
3849
|
+
async applyCsvImport(args) {
|
|
2084
3850
|
const headers = new Headers(args.headers);
|
|
2085
3851
|
if (args["Idempotency-Key"] !== undefined)
|
|
2086
3852
|
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2087
|
-
return this.request("POST", "/api/v1/
|
|
3853
|
+
return this.request("POST", "/api/v1/csv-imports/:runId/apply".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2088
3854
|
body: args.body,
|
|
2089
3855
|
signal: args.signal,
|
|
2090
3856
|
headers,
|
|
2091
3857
|
});
|
|
2092
3858
|
}
|
|
2093
|
-
async
|
|
3859
|
+
async resumeCsvImport(args) {
|
|
2094
3860
|
const headers = new Headers(args.headers);
|
|
2095
3861
|
if (args["Idempotency-Key"] !== undefined)
|
|
2096
3862
|
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2097
|
-
return this.request("POST", "/api/v1/
|
|
3863
|
+
return this.request("POST", "/api/v1/csv-imports/:runId/resume".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2098
3864
|
body: args.body,
|
|
2099
3865
|
signal: args.signal,
|
|
2100
3866
|
headers,
|
|
2101
3867
|
});
|
|
2102
3868
|
}
|
|
2103
|
-
async
|
|
3869
|
+
async cancelCsvImport(args) {
|
|
2104
3870
|
const headers = new Headers(args.headers);
|
|
2105
3871
|
if (args["Idempotency-Key"] !== undefined)
|
|
2106
3872
|
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2107
|
-
return this.request("
|
|
3873
|
+
return this.request("POST", "/api/v1/csv-imports/:runId/cancel".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2108
3874
|
body: args.body,
|
|
2109
3875
|
signal: args.signal,
|
|
2110
3876
|
headers,
|
|
2111
3877
|
});
|
|
2112
3878
|
}
|
|
2113
|
-
async
|
|
2114
|
-
const headers = new Headers(args.headers);
|
|
2115
|
-
return this.request("GET", "/api/v1/clients/:id/ancestors".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2116
|
-
signal: args.signal,
|
|
2117
|
-
headers,
|
|
2118
|
-
});
|
|
2119
|
-
}
|
|
2120
|
-
async listClientDescendants(args) {
|
|
3879
|
+
async getCsvImportApply(args) {
|
|
2121
3880
|
const headers = new Headers(args.headers);
|
|
2122
|
-
return this.request("GET", "/api/v1/
|
|
3881
|
+
return this.request("GET", "/api/v1/csv-imports/:runId/apply".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
3882
|
+
query: args.query,
|
|
2123
3883
|
signal: args.signal,
|
|
2124
3884
|
headers,
|
|
2125
3885
|
});
|