@conflict-hq/ezacto-client 0.1.3 → 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 +3770 -122
- package/dist/generated.js +2042 -524
- package/package.json +1 -1
- package/src/generated.ts +8157 -3493
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", {
|
|
@@ -323,6 +446,7 @@ export class EzactoClient {
|
|
|
323
446
|
async requestAccountDeletion(args = {}) {
|
|
324
447
|
const headers = new Headers(args.headers);
|
|
325
448
|
return this.request("POST", "/api/v1/profile/deletion-request", {
|
|
449
|
+
body: args.body,
|
|
326
450
|
signal: args.signal,
|
|
327
451
|
headers,
|
|
328
452
|
});
|
|
@@ -741,6 +865,30 @@ export class EzactoClient {
|
|
|
741
865
|
headers,
|
|
742
866
|
});
|
|
743
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
|
+
}
|
|
744
892
|
async listTimeEntryOptions(args = {}) {
|
|
745
893
|
const headers = new Headers(args.headers);
|
|
746
894
|
return this.request("GET", "/api/v1/time-entry-options", {
|
|
@@ -801,1567 +949,2937 @@ export class EzactoClient {
|
|
|
801
949
|
headers,
|
|
802
950
|
});
|
|
803
951
|
}
|
|
804
|
-
async
|
|
952
|
+
async listCalendarProposals(args = {}) {
|
|
805
953
|
const headers = new Headers(args.headers);
|
|
806
|
-
return this.request("GET", "/api/v1/
|
|
954
|
+
return this.request("GET", "/api/v1/calendar-proposals", {
|
|
807
955
|
query: args.query,
|
|
808
956
|
signal: args.signal,
|
|
809
957
|
headers,
|
|
810
958
|
});
|
|
811
959
|
}
|
|
812
|
-
async
|
|
960
|
+
async acceptCalendarProposal(args) {
|
|
813
961
|
const headers = new Headers(args.headers);
|
|
814
|
-
return this.request("POST", "/api/v1/
|
|
962
|
+
return this.request("POST", "/api/v1/calendar-proposals/:id/accept".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
815
963
|
body: args.body,
|
|
816
964
|
signal: args.signal,
|
|
817
965
|
headers,
|
|
818
966
|
});
|
|
819
967
|
}
|
|
820
|
-
async
|
|
968
|
+
async discardCalendarProposal(args) {
|
|
821
969
|
const headers = new Headers(args.headers);
|
|
822
|
-
return this.request("
|
|
823
|
-
query: args.query,
|
|
970
|
+
return this.request("POST", "/api/v1/calendar-proposals/:id/discard".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
824
971
|
signal: args.signal,
|
|
825
972
|
headers,
|
|
826
973
|
});
|
|
827
974
|
}
|
|
828
|
-
async
|
|
975
|
+
async getCalendarCleanupStatus(args = {}) {
|
|
829
976
|
const headers = new Headers(args.headers);
|
|
830
|
-
return this.request("GET", "/api/v1/
|
|
831
|
-
query: args.query,
|
|
977
|
+
return this.request("GET", "/api/v1/calendar-cleanup-status", {
|
|
832
978
|
signal: args.signal,
|
|
833
979
|
headers,
|
|
834
980
|
});
|
|
835
981
|
}
|
|
836
|
-
async
|
|
982
|
+
async listCalendarConnections(args = {}) {
|
|
837
983
|
const headers = new Headers(args.headers);
|
|
838
|
-
return this.request("GET", "/api/v1/
|
|
984
|
+
return this.request("GET", "/api/v1/calendar-connections", {
|
|
839
985
|
signal: args.signal,
|
|
840
986
|
headers,
|
|
841
987
|
});
|
|
842
988
|
}
|
|
843
|
-
async
|
|
989
|
+
async disconnectCalendarConnection(args) {
|
|
844
990
|
const headers = new Headers(args.headers);
|
|
845
|
-
|
|
846
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
847
|
-
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"]))), {
|
|
848
992
|
body: args.body,
|
|
849
993
|
signal: args.signal,
|
|
850
994
|
headers,
|
|
851
995
|
});
|
|
852
996
|
}
|
|
853
|
-
async
|
|
997
|
+
async refreshCalendarConnection(args) {
|
|
854
998
|
const headers = new Headers(args.headers);
|
|
855
|
-
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,
|
|
856
1001
|
signal: args.signal,
|
|
857
1002
|
headers,
|
|
858
1003
|
});
|
|
859
1004
|
}
|
|
860
|
-
async
|
|
1005
|
+
async listAllocations(args = {}) {
|
|
861
1006
|
const headers = new Headers(args.headers);
|
|
862
|
-
return this.request("
|
|
863
|
-
|
|
1007
|
+
return this.request("GET", "/api/v1/allocations", {
|
|
1008
|
+
query: args.query,
|
|
864
1009
|
signal: args.signal,
|
|
865
1010
|
headers,
|
|
866
1011
|
});
|
|
867
1012
|
}
|
|
868
|
-
async
|
|
1013
|
+
async createAllocation(args) {
|
|
869
1014
|
const headers = new Headers(args.headers);
|
|
870
|
-
return this.request("POST", "/api/v1/
|
|
1015
|
+
return this.request("POST", "/api/v1/allocations", {
|
|
1016
|
+
body: args.body,
|
|
871
1017
|
signal: args.signal,
|
|
872
1018
|
headers,
|
|
873
1019
|
});
|
|
874
1020
|
}
|
|
875
|
-
async
|
|
1021
|
+
async getAllocation(args) {
|
|
876
1022
|
const headers = new Headers(args.headers);
|
|
877
|
-
return this.request("
|
|
878
|
-
body: args.body,
|
|
1023
|
+
return this.request("GET", "/api/v1/allocations/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
879
1024
|
signal: args.signal,
|
|
880
1025
|
headers,
|
|
881
1026
|
});
|
|
882
1027
|
}
|
|
883
|
-
async
|
|
1028
|
+
async updateAllocation(args) {
|
|
884
1029
|
const headers = new Headers(args.headers);
|
|
885
|
-
return this.request("
|
|
1030
|
+
return this.request("PATCH", "/api/v1/allocations/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1031
|
+
body: args.body,
|
|
886
1032
|
signal: args.signal,
|
|
887
1033
|
headers,
|
|
888
1034
|
});
|
|
889
1035
|
}
|
|
890
|
-
async
|
|
1036
|
+
async deleteAllocation(args) {
|
|
891
1037
|
const headers = new Headers(args.headers);
|
|
892
|
-
return this.request("
|
|
1038
|
+
return this.request("DELETE", "/api/v1/allocations/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
893
1039
|
body: args.body,
|
|
894
1040
|
signal: args.signal,
|
|
895
1041
|
headers,
|
|
896
1042
|
});
|
|
897
1043
|
}
|
|
898
|
-
async
|
|
1044
|
+
async getCapacity(args) {
|
|
899
1045
|
const headers = new Headers(args.headers);
|
|
900
|
-
return this.request("GET", "/api/v1/
|
|
1046
|
+
return this.request("GET", "/api/v1/capacity", {
|
|
901
1047
|
query: args.query,
|
|
902
1048
|
signal: args.signal,
|
|
903
1049
|
headers,
|
|
904
1050
|
});
|
|
905
1051
|
}
|
|
906
|
-
async
|
|
1052
|
+
async listTimeOff(args = {}) {
|
|
907
1053
|
const headers = new Headers(args.headers);
|
|
908
|
-
return this.request("GET", "/api/v1/
|
|
1054
|
+
return this.request("GET", "/api/v1/time-off", {
|
|
1055
|
+
query: args.query,
|
|
909
1056
|
signal: args.signal,
|
|
910
1057
|
headers,
|
|
911
1058
|
});
|
|
912
1059
|
}
|
|
913
|
-
async
|
|
1060
|
+
async createTimeOff(args) {
|
|
914
1061
|
const headers = new Headers(args.headers);
|
|
915
|
-
|
|
916
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
917
|
-
return this.request("POST", "/api/v1/timesheet-locks", {
|
|
1062
|
+
return this.request("POST", "/api/v1/time-off", {
|
|
918
1063
|
body: args.body,
|
|
919
1064
|
signal: args.signal,
|
|
920
1065
|
headers,
|
|
921
1066
|
});
|
|
922
1067
|
}
|
|
923
|
-
async
|
|
1068
|
+
async getTimeOff(args) {
|
|
924
1069
|
const headers = new Headers(args.headers);
|
|
925
|
-
return this.request("
|
|
926
|
-
body: args.body,
|
|
1070
|
+
return this.request("GET", "/api/v1/time-off/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
927
1071
|
signal: args.signal,
|
|
928
1072
|
headers,
|
|
929
1073
|
});
|
|
930
1074
|
}
|
|
931
|
-
async
|
|
1075
|
+
async updateTimeOff(args) {
|
|
932
1076
|
const headers = new Headers(args.headers);
|
|
933
|
-
return this.request("
|
|
934
|
-
|
|
1077
|
+
return this.request("PATCH", "/api/v1/time-off/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1078
|
+
body: args.body,
|
|
935
1079
|
signal: args.signal,
|
|
936
1080
|
headers,
|
|
937
1081
|
});
|
|
938
1082
|
}
|
|
939
|
-
async
|
|
1083
|
+
async deleteTimeOff(args) {
|
|
940
1084
|
const headers = new Headers(args.headers);
|
|
941
|
-
return this.request("
|
|
1085
|
+
return this.request("DELETE", "/api/v1/time-off/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
942
1086
|
body: args.body,
|
|
943
1087
|
signal: args.signal,
|
|
944
1088
|
headers,
|
|
945
1089
|
});
|
|
946
1090
|
}
|
|
947
|
-
async
|
|
1091
|
+
async listOrganizationHolidays(args = {}) {
|
|
948
1092
|
const headers = new Headers(args.headers);
|
|
949
|
-
return this.request("GET", "/api/v1/
|
|
1093
|
+
return this.request("GET", "/api/v1/organization-holidays", {
|
|
1094
|
+
query: args.query,
|
|
950
1095
|
signal: args.signal,
|
|
951
1096
|
headers,
|
|
952
1097
|
});
|
|
953
1098
|
}
|
|
954
|
-
async
|
|
1099
|
+
async getOrganizationHoliday(args) {
|
|
955
1100
|
const headers = new Headers(args.headers);
|
|
956
|
-
return this.request("
|
|
957
|
-
body: args.body,
|
|
1101
|
+
return this.request("GET", "/api/v1/organization-holidays/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
958
1102
|
signal: args.signal,
|
|
959
1103
|
headers,
|
|
960
1104
|
});
|
|
961
1105
|
}
|
|
962
|
-
async
|
|
1106
|
+
async createOrganizationHoliday(args) {
|
|
963
1107
|
const headers = new Headers(args.headers);
|
|
964
|
-
return this.request("
|
|
1108
|
+
return this.request("POST", "/api/v1/organization-holidays", {
|
|
1109
|
+
body: args.body,
|
|
965
1110
|
signal: args.signal,
|
|
966
1111
|
headers,
|
|
967
1112
|
});
|
|
968
1113
|
}
|
|
969
|
-
async
|
|
1114
|
+
async updateOrganizationHoliday(args) {
|
|
970
1115
|
const headers = new Headers(args.headers);
|
|
971
|
-
return this.request("
|
|
972
|
-
|
|
1116
|
+
return this.request("PATCH", "/api/v1/organization-holidays/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1117
|
+
body: args.body,
|
|
973
1118
|
signal: args.signal,
|
|
974
1119
|
headers,
|
|
975
1120
|
});
|
|
976
1121
|
}
|
|
977
|
-
async
|
|
1122
|
+
async deleteOrganizationHoliday(args) {
|
|
978
1123
|
const headers = new Headers(args.headers);
|
|
979
|
-
return this.request("
|
|
1124
|
+
return this.request("DELETE", "/api/v1/organization-holidays/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1125
|
+
body: args.body,
|
|
980
1126
|
signal: args.signal,
|
|
981
1127
|
headers,
|
|
982
1128
|
});
|
|
983
1129
|
}
|
|
984
|
-
async
|
|
1130
|
+
async listPlanningPlaceholders(args = {}) {
|
|
985
1131
|
const headers = new Headers(args.headers);
|
|
986
|
-
return this.request("GET", "/api/v1/
|
|
1132
|
+
return this.request("GET", "/api/v1/planning-placeholders", {
|
|
987
1133
|
query: args.query,
|
|
988
1134
|
signal: args.signal,
|
|
989
1135
|
headers,
|
|
990
1136
|
});
|
|
991
1137
|
}
|
|
992
|
-
async
|
|
1138
|
+
async createPlanningPlaceholder(args) {
|
|
993
1139
|
const headers = new Headers(args.headers);
|
|
994
|
-
return this.request("
|
|
1140
|
+
return this.request("POST", "/api/v1/planning-placeholders", {
|
|
1141
|
+
body: args.body,
|
|
995
1142
|
signal: args.signal,
|
|
996
1143
|
headers,
|
|
997
1144
|
});
|
|
998
1145
|
}
|
|
999
|
-
async
|
|
1146
|
+
async updatePlanningPlaceholder(args) {
|
|
1000
1147
|
const headers = new Headers(args.headers);
|
|
1001
|
-
return this.request("
|
|
1148
|
+
return this.request("PATCH", "/api/v1/planning-placeholders/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1149
|
+
body: args.body,
|
|
1002
1150
|
signal: args.signal,
|
|
1003
1151
|
headers,
|
|
1004
1152
|
});
|
|
1005
1153
|
}
|
|
1006
|
-
async
|
|
1154
|
+
async deletePlanningPlaceholder(args) {
|
|
1007
1155
|
const headers = new Headers(args.headers);
|
|
1008
|
-
|
|
1009
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1010
|
-
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"]))), {
|
|
1011
1157
|
body: args.body,
|
|
1012
1158
|
signal: args.signal,
|
|
1013
1159
|
headers,
|
|
1014
1160
|
});
|
|
1015
1161
|
}
|
|
1016
|
-
async
|
|
1162
|
+
async listPlaceholderAllocations(args = {}) {
|
|
1017
1163
|
const headers = new Headers(args.headers);
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
return this.request("POST", "/api/v1/estimates/:id/convert".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1021
|
-
body: args.body,
|
|
1164
|
+
return this.request("GET", "/api/v1/placeholder-allocations", {
|
|
1165
|
+
query: args.query,
|
|
1022
1166
|
signal: args.signal,
|
|
1023
1167
|
headers,
|
|
1024
1168
|
});
|
|
1025
1169
|
}
|
|
1026
|
-
async
|
|
1170
|
+
async createPlaceholderAllocation(args) {
|
|
1027
1171
|
const headers = new Headers(args.headers);
|
|
1028
|
-
|
|
1029
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1030
|
-
return this.request("POST", "/api/v1/invoice-generations", {
|
|
1172
|
+
return this.request("POST", "/api/v1/placeholder-allocations", {
|
|
1031
1173
|
body: args.body,
|
|
1032
1174
|
signal: args.signal,
|
|
1033
1175
|
headers,
|
|
1034
1176
|
});
|
|
1035
1177
|
}
|
|
1036
|
-
async
|
|
1178
|
+
async updatePlaceholderAllocation(args) {
|
|
1037
1179
|
const headers = new Headers(args.headers);
|
|
1038
|
-
|
|
1039
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1040
|
-
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"]))), {
|
|
1041
1181
|
body: args.body,
|
|
1042
1182
|
signal: args.signal,
|
|
1043
1183
|
headers,
|
|
1044
1184
|
});
|
|
1045
1185
|
}
|
|
1046
|
-
async
|
|
1186
|
+
async deletePlaceholderAllocation(args) {
|
|
1047
1187
|
const headers = new Headers(args.headers);
|
|
1048
|
-
|
|
1049
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1050
|
-
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"]))), {
|
|
1051
1189
|
body: args.body,
|
|
1052
1190
|
signal: args.signal,
|
|
1053
1191
|
headers,
|
|
1054
1192
|
});
|
|
1055
1193
|
}
|
|
1056
|
-
async
|
|
1194
|
+
async assignPlaceholderAllocation(args) {
|
|
1057
1195
|
const headers = new Headers(args.headers);
|
|
1058
|
-
|
|
1059
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1060
|
-
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"]))), {
|
|
1061
1197
|
body: args.body,
|
|
1062
1198
|
signal: args.signal,
|
|
1063
1199
|
headers,
|
|
1064
1200
|
});
|
|
1065
1201
|
}
|
|
1066
|
-
async
|
|
1202
|
+
async getResourceCalendarContext(args = {}) {
|
|
1067
1203
|
const headers = new Headers(args.headers);
|
|
1068
|
-
|
|
1069
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1070
|
-
return this.request("DELETE", "/api/v1/invoices/:id/line-items/:lineId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":lineId", encodeURIComponent(String(args["lineId"]))), {
|
|
1071
|
-
body: args.body,
|
|
1204
|
+
return this.request("GET", "/api/v1/resource-calendar/context", {
|
|
1072
1205
|
signal: args.signal,
|
|
1073
1206
|
headers,
|
|
1074
1207
|
});
|
|
1075
1208
|
}
|
|
1076
|
-
async
|
|
1209
|
+
async getResourceCalendar(args) {
|
|
1077
1210
|
const headers = new Headers(args.headers);
|
|
1078
|
-
return this.request("GET", "/api/v1/
|
|
1211
|
+
return this.request("GET", "/api/v1/resource-calendar", {
|
|
1212
|
+
query: args.query,
|
|
1079
1213
|
signal: args.signal,
|
|
1080
1214
|
headers,
|
|
1081
1215
|
});
|
|
1082
1216
|
}
|
|
1083
|
-
async
|
|
1217
|
+
async getResourceCalendarAllocations(args) {
|
|
1084
1218
|
const headers = new Headers(args.headers);
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
return this.request("POST", "/api/v1/invoices/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1088
|
-
body: args.body,
|
|
1219
|
+
return this.request("GET", "/api/v1/resource-calendar/allocations", {
|
|
1220
|
+
query: args.query,
|
|
1089
1221
|
signal: args.signal,
|
|
1090
1222
|
headers,
|
|
1091
1223
|
});
|
|
1092
1224
|
}
|
|
1093
|
-
async
|
|
1225
|
+
async listResourceCalendarProjects(args = {}) {
|
|
1094
1226
|
const headers = new Headers(args.headers);
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
return this.request("POST", "/api/v1/invoices/:id/transitions".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1098
|
-
body: args.body,
|
|
1227
|
+
return this.request("GET", "/api/v1/resource-calendar/projects", {
|
|
1228
|
+
query: args.query,
|
|
1099
1229
|
signal: args.signal,
|
|
1100
1230
|
headers,
|
|
1101
1231
|
});
|
|
1102
1232
|
}
|
|
1103
|
-
async
|
|
1233
|
+
async listCalendarFeeds(args = {}) {
|
|
1104
1234
|
const headers = new Headers(args.headers);
|
|
1105
|
-
|
|
1106
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1107
|
-
return this.request("POST", "/api/v1/invoices/:id/deliveries".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1108
|
-
body: args.body,
|
|
1235
|
+
return this.request("GET", "/api/v1/calendar-feeds", {
|
|
1109
1236
|
signal: args.signal,
|
|
1110
1237
|
headers,
|
|
1111
1238
|
});
|
|
1112
1239
|
}
|
|
1113
|
-
async
|
|
1240
|
+
async createCalendarFeed(args) {
|
|
1114
1241
|
const headers = new Headers(args.headers);
|
|
1115
|
-
return this.request("POST", "/api/v1/
|
|
1242
|
+
return this.request("POST", "/api/v1/calendar-feeds", {
|
|
1116
1243
|
body: args.body,
|
|
1117
1244
|
signal: args.signal,
|
|
1118
1245
|
headers,
|
|
1119
1246
|
});
|
|
1120
1247
|
}
|
|
1121
|
-
async
|
|
1248
|
+
async rotateCalendarFeed(args) {
|
|
1122
1249
|
const headers = new Headers(args.headers);
|
|
1123
|
-
return this.request("
|
|
1124
|
-
query: args.query,
|
|
1250
|
+
return this.request("POST", "/api/v1/calendar-feeds/:id/rotate".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1125
1251
|
signal: args.signal,
|
|
1126
|
-
binary: true,
|
|
1127
1252
|
headers,
|
|
1128
1253
|
});
|
|
1129
1254
|
}
|
|
1130
|
-
async
|
|
1255
|
+
async revokeCalendarFeed(args) {
|
|
1131
1256
|
const headers = new Headers(args.headers);
|
|
1132
|
-
return this.request("
|
|
1133
|
-
body: args.body,
|
|
1257
|
+
return this.request("DELETE", "/api/v1/calendar-feeds/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1134
1258
|
signal: args.signal,
|
|
1135
1259
|
headers,
|
|
1136
1260
|
});
|
|
1137
1261
|
}
|
|
1138
|
-
async
|
|
1262
|
+
async downloadCalendarFeed(args) {
|
|
1139
1263
|
const headers = new Headers(args.headers);
|
|
1140
|
-
return this.request("GET", "/api/v1/
|
|
1264
|
+
return this.request("GET", "/api/v1/calendar-feeds/:id/download".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1141
1265
|
signal: args.signal,
|
|
1266
|
+
binary: true,
|
|
1142
1267
|
headers,
|
|
1143
1268
|
});
|
|
1144
1269
|
}
|
|
1145
|
-
async
|
|
1270
|
+
async listWorkItemConnections(args = {}) {
|
|
1146
1271
|
const headers = new Headers(args.headers);
|
|
1147
|
-
|
|
1148
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1149
|
-
return this.request("POST", "/api/v1/invoices/:id/payments".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1150
|
-
body: args.body,
|
|
1272
|
+
return this.request("GET", "/api/v1/settings/work-item-connections", {
|
|
1151
1273
|
signal: args.signal,
|
|
1152
1274
|
headers,
|
|
1153
1275
|
});
|
|
1154
1276
|
}
|
|
1155
|
-
async
|
|
1277
|
+
async connectWorkItemProvider(args) {
|
|
1156
1278
|
const headers = new Headers(args.headers);
|
|
1157
|
-
|
|
1158
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1159
|
-
return this.request("PATCH", "/api/v1/invoices/:id/payments/:paymentId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":paymentId", encodeURIComponent(String(args["paymentId"]))), {
|
|
1279
|
+
return this.request("POST", "/api/v1/settings/work-item-connections", {
|
|
1160
1280
|
body: args.body,
|
|
1161
1281
|
signal: args.signal,
|
|
1162
1282
|
headers,
|
|
1163
1283
|
});
|
|
1164
1284
|
}
|
|
1165
|
-
async
|
|
1285
|
+
async disconnectWorkItemProvider(args) {
|
|
1166
1286
|
const headers = new Headers(args.headers);
|
|
1167
|
-
|
|
1168
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1169
|
-
return this.request("DELETE", "/api/v1/invoices/:id/payments/:paymentId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":paymentId", encodeURIComponent(String(args["paymentId"]))), {
|
|
1170
|
-
body: args.body,
|
|
1287
|
+
return this.request("POST", "/api/v1/settings/work-item-connections/:id/disconnect".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1171
1288
|
signal: args.signal,
|
|
1172
1289
|
headers,
|
|
1173
1290
|
});
|
|
1174
1291
|
}
|
|
1175
|
-
async
|
|
1292
|
+
async listWorkItemLinks(args = {}) {
|
|
1176
1293
|
const headers = new Headers(args.headers);
|
|
1177
|
-
return this.request("GET", "/api/v1/
|
|
1294
|
+
return this.request("GET", "/api/v1/work-item-links", {
|
|
1178
1295
|
query: args.query,
|
|
1179
1296
|
signal: args.signal,
|
|
1180
1297
|
headers,
|
|
1181
1298
|
});
|
|
1182
1299
|
}
|
|
1183
|
-
async
|
|
1300
|
+
async createWorkItemLink(args) {
|
|
1184
1301
|
const headers = new Headers(args.headers);
|
|
1185
|
-
|
|
1186
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1187
|
-
return this.request("POST", "/api/v1/retainers", {
|
|
1302
|
+
return this.request("POST", "/api/v1/work-item-links", {
|
|
1188
1303
|
body: args.body,
|
|
1189
1304
|
signal: args.signal,
|
|
1190
1305
|
headers,
|
|
1191
1306
|
});
|
|
1192
1307
|
}
|
|
1193
|
-
async
|
|
1308
|
+
async getWorkItemLink(args) {
|
|
1194
1309
|
const headers = new Headers(args.headers);
|
|
1195
|
-
return this.request("GET", "/api/v1/
|
|
1310
|
+
return this.request("GET", "/api/v1/work-item-links/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1196
1311
|
signal: args.signal,
|
|
1197
1312
|
headers,
|
|
1198
1313
|
});
|
|
1199
1314
|
}
|
|
1200
|
-
async
|
|
1315
|
+
async deleteWorkItemLink(args) {
|
|
1201
1316
|
const headers = new Headers(args.headers);
|
|
1202
|
-
return this.request("
|
|
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", {
|
|
1203
1333
|
body: args.body,
|
|
1204
1334
|
signal: args.signal,
|
|
1205
1335
|
headers,
|
|
1206
1336
|
});
|
|
1207
1337
|
}
|
|
1208
|
-
async
|
|
1338
|
+
async listPendingTimesheetSubmissions(args = {}) {
|
|
1209
1339
|
const headers = new Headers(args.headers);
|
|
1210
|
-
return this.request("GET", "/api/v1/
|
|
1340
|
+
return this.request("GET", "/api/v1/timesheet-submissions/pending", {
|
|
1341
|
+
query: args.query,
|
|
1211
1342
|
signal: args.signal,
|
|
1212
1343
|
headers,
|
|
1213
1344
|
});
|
|
1214
1345
|
}
|
|
1215
|
-
async
|
|
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) {
|
|
1216
1362
|
const headers = new Headers(args.headers);
|
|
1217
1363
|
if (args["Idempotency-Key"] !== undefined)
|
|
1218
1364
|
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1219
|
-
return this.request("POST", "/api/v1/
|
|
1365
|
+
return this.request("POST", "/api/v1/timesheet-submissions/bulk-approve", {
|
|
1220
1366
|
body: args.body,
|
|
1221
1367
|
signal: args.signal,
|
|
1222
1368
|
headers,
|
|
1223
1369
|
});
|
|
1224
1370
|
}
|
|
1225
|
-
async
|
|
1371
|
+
async approveTimesheetSubmission(args) {
|
|
1226
1372
|
const headers = new Headers(args.headers);
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
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"]))), {
|
|
1230
1381
|
body: args.body,
|
|
1231
1382
|
signal: args.signal,
|
|
1232
1383
|
headers,
|
|
1233
1384
|
});
|
|
1234
1385
|
}
|
|
1235
|
-
async
|
|
1386
|
+
async unsubmitTimesheetSubmission(args) {
|
|
1236
1387
|
const headers = new Headers(args.headers);
|
|
1237
|
-
return this.request("
|
|
1238
|
-
query: args.query,
|
|
1388
|
+
return this.request("POST", "/api/v1/timesheet-submissions/:id/unsubmit".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1239
1389
|
signal: args.signal,
|
|
1240
1390
|
headers,
|
|
1241
1391
|
});
|
|
1242
1392
|
}
|
|
1243
|
-
async
|
|
1393
|
+
async withdrawTimesheetSubmission(args) {
|
|
1244
1394
|
const headers = new Headers(args.headers);
|
|
1245
|
-
|
|
1246
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1247
|
-
return this.request("POST", "/api/v1/recurring-invoices", {
|
|
1395
|
+
return this.request("POST", "/api/v1/timesheet-submissions/:id/withdraw".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1248
1396
|
body: args.body,
|
|
1249
1397
|
signal: args.signal,
|
|
1250
1398
|
headers,
|
|
1251
1399
|
});
|
|
1252
1400
|
}
|
|
1253
|
-
async
|
|
1401
|
+
async getTimesheetLockPolicy(args = {}) {
|
|
1254
1402
|
const headers = new Headers(args.headers);
|
|
1255
|
-
return this.request("GET", "/api/v1/
|
|
1403
|
+
return this.request("GET", "/api/v1/timesheet-lock-policy", {
|
|
1256
1404
|
signal: args.signal,
|
|
1257
1405
|
headers,
|
|
1258
1406
|
});
|
|
1259
1407
|
}
|
|
1260
|
-
async
|
|
1408
|
+
async updateTimesheetLockPolicy(args) {
|
|
1261
1409
|
const headers = new Headers(args.headers);
|
|
1262
|
-
return this.request("PATCH", "/api/v1/
|
|
1410
|
+
return this.request("PATCH", "/api/v1/timesheet-lock-policy", {
|
|
1263
1411
|
body: args.body,
|
|
1264
1412
|
signal: args.signal,
|
|
1265
1413
|
headers,
|
|
1266
1414
|
});
|
|
1267
1415
|
}
|
|
1268
|
-
async
|
|
1416
|
+
async listTimesheetLocks(args = {}) {
|
|
1269
1417
|
const headers = new Headers(args.headers);
|
|
1270
|
-
return this.request("
|
|
1418
|
+
return this.request("GET", "/api/v1/timesheet-locks", {
|
|
1419
|
+
query: args.query,
|
|
1271
1420
|
signal: args.signal,
|
|
1272
1421
|
headers,
|
|
1273
1422
|
});
|
|
1274
1423
|
}
|
|
1275
|
-
async
|
|
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) {
|
|
1276
1432
|
const headers = new Headers(args.headers);
|
|
1277
1433
|
if (args["Idempotency-Key"] !== undefined)
|
|
1278
1434
|
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1279
|
-
return this.request("POST", "/api/v1/
|
|
1435
|
+
return this.request("POST", "/api/v1/timesheet-locks", {
|
|
1280
1436
|
body: args.body,
|
|
1281
1437
|
signal: args.signal,
|
|
1282
1438
|
headers,
|
|
1283
1439
|
});
|
|
1284
1440
|
}
|
|
1285
|
-
async
|
|
1441
|
+
async unlockTimesheetLock(args) {
|
|
1286
1442
|
const headers = new Headers(args.headers);
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
return this.request("POST", "/api/v1/recurring-invoices/:id/generations".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1443
|
+
return this.request("POST", "/api/v1/timesheet-locks/:id/unlock".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1444
|
+
body: args.body,
|
|
1290
1445
|
signal: args.signal,
|
|
1291
1446
|
headers,
|
|
1292
1447
|
});
|
|
1293
1448
|
}
|
|
1294
|
-
async
|
|
1449
|
+
async listExpenses(args = {}) {
|
|
1295
1450
|
const headers = new Headers(args.headers);
|
|
1296
|
-
return this.request("GET", "/api/v1/
|
|
1451
|
+
return this.request("GET", "/api/v1/expenses", {
|
|
1452
|
+
query: args.query,
|
|
1297
1453
|
signal: args.signal,
|
|
1298
1454
|
headers,
|
|
1299
1455
|
});
|
|
1300
1456
|
}
|
|
1301
|
-
async
|
|
1457
|
+
async createExpense(args) {
|
|
1302
1458
|
const headers = new Headers(args.headers);
|
|
1303
|
-
|
|
1304
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1305
|
-
return this.request("POST", "/api/v1/invoices/:invoiceId/attachments".replace(":invoiceId", encodeURIComponent(String(args["invoiceId"]))), {
|
|
1459
|
+
return this.request("POST", "/api/v1/expenses", {
|
|
1306
1460
|
body: args.body,
|
|
1307
|
-
multipart: true,
|
|
1308
1461
|
signal: args.signal,
|
|
1309
1462
|
headers,
|
|
1310
1463
|
});
|
|
1311
1464
|
}
|
|
1312
|
-
async
|
|
1465
|
+
async getExpense(args) {
|
|
1313
1466
|
const headers = new Headers(args.headers);
|
|
1314
|
-
return this.request("GET", "/api/v1/
|
|
1467
|
+
return this.request("GET", "/api/v1/expenses/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1315
1468
|
signal: args.signal,
|
|
1316
1469
|
headers,
|
|
1317
1470
|
});
|
|
1318
1471
|
}
|
|
1319
|
-
async
|
|
1472
|
+
async updateExpense(args) {
|
|
1320
1473
|
const headers = new Headers(args.headers);
|
|
1321
|
-
return this.request("
|
|
1474
|
+
return this.request("PATCH", "/api/v1/expenses/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1475
|
+
body: args.body,
|
|
1322
1476
|
signal: args.signal,
|
|
1323
|
-
binary: true,
|
|
1324
1477
|
headers,
|
|
1325
1478
|
});
|
|
1326
1479
|
}
|
|
1327
|
-
async
|
|
1480
|
+
async deleteExpense(args) {
|
|
1328
1481
|
const headers = new Headers(args.headers);
|
|
1329
|
-
return this.request("
|
|
1482
|
+
return this.request("DELETE", "/api/v1/expenses/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1330
1483
|
signal: args.signal,
|
|
1331
1484
|
headers,
|
|
1332
1485
|
});
|
|
1333
1486
|
}
|
|
1334
|
-
async
|
|
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) {
|
|
1335
1525
|
const headers = new Headers(args.headers);
|
|
1336
1526
|
if (args["Idempotency-Key"] !== undefined)
|
|
1337
1527
|
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1338
|
-
return this.request("POST", "/api/v1/
|
|
1528
|
+
return this.request("POST", "/api/v1/estimates/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1339
1529
|
body: args.body,
|
|
1340
|
-
multipart: true,
|
|
1341
1530
|
signal: args.signal,
|
|
1342
1531
|
headers,
|
|
1343
1532
|
});
|
|
1344
1533
|
}
|
|
1345
|
-
async
|
|
1534
|
+
async setEstimateExpiry(args) {
|
|
1346
1535
|
const headers = new Headers(args.headers);
|
|
1347
|
-
return this.request("
|
|
1536
|
+
return this.request("PATCH", "/api/v1/estimates/:id/expiry".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1537
|
+
body: args.body,
|
|
1348
1538
|
signal: args.signal,
|
|
1349
1539
|
headers,
|
|
1350
1540
|
});
|
|
1351
1541
|
}
|
|
1352
|
-
async
|
|
1542
|
+
async convertEstimate(args) {
|
|
1353
1543
|
const headers = new Headers(args.headers);
|
|
1354
|
-
|
|
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,
|
|
1355
1548
|
signal: args.signal,
|
|
1356
|
-
binary: true,
|
|
1357
1549
|
headers,
|
|
1358
1550
|
});
|
|
1359
1551
|
}
|
|
1360
|
-
async
|
|
1552
|
+
async generateInvoice(args) {
|
|
1361
1553
|
const headers = new Headers(args.headers);
|
|
1362
|
-
|
|
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,
|
|
1363
1558
|
signal: args.signal,
|
|
1364
1559
|
headers,
|
|
1365
1560
|
});
|
|
1366
1561
|
}
|
|
1367
|
-
async
|
|
1562
|
+
async updateInvoice(args) {
|
|
1368
1563
|
const headers = new Headers(args.headers);
|
|
1369
1564
|
if (args["Idempotency-Key"] !== undefined)
|
|
1370
1565
|
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1371
|
-
|
|
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"]))), {
|
|
1372
1569
|
body: args.body,
|
|
1373
|
-
multipart: true,
|
|
1374
1570
|
signal: args.signal,
|
|
1375
1571
|
headers,
|
|
1376
1572
|
});
|
|
1377
1573
|
}
|
|
1378
|
-
async
|
|
1574
|
+
async createInvoiceLine(args) {
|
|
1379
1575
|
const headers = new Headers(args.headers);
|
|
1380
|
-
|
|
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,
|
|
1381
1582
|
signal: args.signal,
|
|
1382
1583
|
headers,
|
|
1383
1584
|
});
|
|
1384
1585
|
}
|
|
1385
|
-
async
|
|
1586
|
+
async updateInvoiceLine(args) {
|
|
1386
1587
|
const headers = new Headers(args.headers);
|
|
1387
|
-
|
|
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,
|
|
1388
1594
|
signal: args.signal,
|
|
1389
|
-
binary: true,
|
|
1390
1595
|
headers,
|
|
1391
1596
|
});
|
|
1392
1597
|
}
|
|
1393
|
-
async
|
|
1598
|
+
async deleteInvoiceLine(args) {
|
|
1394
1599
|
const headers = new Headers(args.headers);
|
|
1395
|
-
|
|
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,
|
|
1396
1606
|
signal: args.signal,
|
|
1397
1607
|
headers,
|
|
1398
1608
|
});
|
|
1399
1609
|
}
|
|
1400
|
-
async
|
|
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) {
|
|
1401
1618
|
const headers = new Headers(args.headers);
|
|
1402
1619
|
if (args["Idempotency-Key"] !== undefined)
|
|
1403
1620
|
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1404
|
-
return this.request("POST", "/api/v1/
|
|
1621
|
+
return this.request("POST", "/api/v1/invoices/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1405
1622
|
body: args.body,
|
|
1406
|
-
multipart: true,
|
|
1407
1623
|
signal: args.signal,
|
|
1408
1624
|
headers,
|
|
1409
1625
|
});
|
|
1410
1626
|
}
|
|
1411
|
-
async
|
|
1627
|
+
async transitionInvoice(args) {
|
|
1412
1628
|
const headers = new Headers(args.headers);
|
|
1413
|
-
|
|
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,
|
|
1414
1633
|
signal: args.signal,
|
|
1415
1634
|
headers,
|
|
1416
1635
|
});
|
|
1417
1636
|
}
|
|
1418
|
-
async
|
|
1637
|
+
async deliverInvoiceEmail(args) {
|
|
1419
1638
|
const headers = new Headers(args.headers);
|
|
1420
|
-
|
|
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) {
|
|
2921
|
+
const headers = new Headers(args.headers);
|
|
2922
|
+
return this.request("POST", "/api/v1/backup/download-links", {
|
|
2923
|
+
body: args.body,
|
|
2924
|
+
signal: args.signal,
|
|
2925
|
+
headers,
|
|
2926
|
+
});
|
|
2927
|
+
}
|
|
2928
|
+
async getQuickBooksConnection(args = {}) {
|
|
2929
|
+
const headers = new Headers(args.headers);
|
|
2930
|
+
return this.request("GET", "/api/v1/integrations/quickbooks", {
|
|
1421
2931
|
signal: args.signal,
|
|
1422
|
-
binary: true,
|
|
1423
2932
|
headers,
|
|
1424
2933
|
});
|
|
1425
2934
|
}
|
|
1426
|
-
async
|
|
2935
|
+
async startQuickBooksAuthorization(args = {}) {
|
|
1427
2936
|
const headers = new Headers(args.headers);
|
|
1428
|
-
return this.request("
|
|
2937
|
+
return this.request("POST", "/api/v1/integrations/quickbooks/authorize", {
|
|
1429
2938
|
signal: args.signal,
|
|
1430
2939
|
headers,
|
|
1431
2940
|
});
|
|
1432
2941
|
}
|
|
1433
|
-
async
|
|
2942
|
+
async updateQuickBooksSettings(args) {
|
|
1434
2943
|
const headers = new Headers(args.headers);
|
|
1435
|
-
|
|
1436
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1437
|
-
return this.request("POST", "/api/v1/projects/:projectId/attachments".replace(":projectId", encodeURIComponent(String(args["projectId"]))), {
|
|
2944
|
+
return this.request("POST", "/api/v1/integrations/quickbooks/settings", {
|
|
1438
2945
|
body: args.body,
|
|
1439
|
-
multipart: true,
|
|
1440
2946
|
signal: args.signal,
|
|
1441
2947
|
headers,
|
|
1442
2948
|
});
|
|
1443
2949
|
}
|
|
1444
|
-
async
|
|
2950
|
+
async disconnectQuickBooks(args = {}) {
|
|
1445
2951
|
const headers = new Headers(args.headers);
|
|
1446
|
-
return this.request("
|
|
2952
|
+
return this.request("DELETE", "/api/v1/integrations/quickbooks", {
|
|
1447
2953
|
signal: args.signal,
|
|
1448
2954
|
headers,
|
|
1449
2955
|
});
|
|
1450
2956
|
}
|
|
1451
|
-
async
|
|
2957
|
+
async getQuickBooksReconciliation(args = {}) {
|
|
1452
2958
|
const headers = new Headers(args.headers);
|
|
1453
|
-
return this.request("GET", "/api/v1/
|
|
2959
|
+
return this.request("GET", "/api/v1/integrations/quickbooks/reconciliation", {
|
|
1454
2960
|
signal: args.signal,
|
|
1455
|
-
binary: true,
|
|
1456
2961
|
headers,
|
|
1457
2962
|
});
|
|
1458
2963
|
}
|
|
1459
|
-
async
|
|
2964
|
+
async getInvoiceQuickBooks(args) {
|
|
1460
2965
|
const headers = new Headers(args.headers);
|
|
1461
|
-
return this.request("
|
|
1462
|
-
body: args.body,
|
|
2966
|
+
return this.request("GET", "/api/v1/invoices/:id/quickbooks".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1463
2967
|
signal: args.signal,
|
|
1464
2968
|
headers,
|
|
1465
2969
|
});
|
|
1466
2970
|
}
|
|
1467
|
-
async
|
|
2971
|
+
async syncInvoiceQuickBooks(args) {
|
|
1468
2972
|
const headers = new Headers(args.headers);
|
|
1469
|
-
return this.request("
|
|
2973
|
+
return this.request("POST", "/api/v1/invoices/:id/quickbooks/sync".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1470
2974
|
signal: args.signal,
|
|
1471
2975
|
headers,
|
|
1472
2976
|
});
|
|
1473
2977
|
}
|
|
1474
|
-
async
|
|
2978
|
+
async getWiseConnection(args = {}) {
|
|
1475
2979
|
const headers = new Headers(args.headers);
|
|
1476
|
-
return this.request("GET", "/api/v1/
|
|
1477
|
-
query: args.query,
|
|
2980
|
+
return this.request("GET", "/api/v1/integrations/wise", {
|
|
1478
2981
|
signal: args.signal,
|
|
1479
2982
|
headers,
|
|
1480
2983
|
});
|
|
1481
2984
|
}
|
|
1482
|
-
async
|
|
2985
|
+
async listWiseRecipients(args = {}) {
|
|
1483
2986
|
const headers = new Headers(args.headers);
|
|
1484
|
-
return this.request("
|
|
1485
|
-
body: args.body,
|
|
2987
|
+
return this.request("GET", "/api/v1/integrations/wise/recipients", {
|
|
1486
2988
|
signal: args.signal,
|
|
1487
2989
|
headers,
|
|
1488
2990
|
});
|
|
1489
2991
|
}
|
|
1490
|
-
async
|
|
2992
|
+
async onboardWiseRecipient(args) {
|
|
1491
2993
|
const headers = new Headers(args.headers);
|
|
1492
|
-
return this.request("POST", "/api/v1/
|
|
2994
|
+
return this.request("POST", "/api/v1/integrations/wise/recipients", {
|
|
1493
2995
|
body: args.body,
|
|
1494
2996
|
signal: args.signal,
|
|
1495
2997
|
headers,
|
|
1496
2998
|
});
|
|
1497
2999
|
}
|
|
1498
|
-
async
|
|
3000
|
+
async listWisePayoutProposals(args = {}) {
|
|
1499
3001
|
const headers = new Headers(args.headers);
|
|
1500
|
-
return this.request("GET", "/api/v1/
|
|
1501
|
-
query: args.query,
|
|
3002
|
+
return this.request("GET", "/api/v1/integrations/wise/proposals", {
|
|
1502
3003
|
signal: args.signal,
|
|
1503
3004
|
headers,
|
|
1504
3005
|
});
|
|
1505
3006
|
}
|
|
1506
|
-
async
|
|
3007
|
+
async getWisePayoutDestination(args) {
|
|
1507
3008
|
const headers = new Headers(args.headers);
|
|
1508
|
-
return this.request("
|
|
1509
|
-
body: args.body,
|
|
3009
|
+
return this.request("GET", "/api/v1/integrations/wise/destinations/:userId".replace(":userId", encodeURIComponent(String(args["userId"]))), {
|
|
1510
3010
|
signal: args.signal,
|
|
1511
3011
|
headers,
|
|
1512
3012
|
});
|
|
1513
3013
|
}
|
|
1514
|
-
async
|
|
3014
|
+
async removeWisePayoutDestination(args) {
|
|
1515
3015
|
const headers = new Headers(args.headers);
|
|
1516
|
-
return this.request("
|
|
1517
|
-
query: args.query,
|
|
3016
|
+
return this.request("DELETE", "/api/v1/integrations/wise/destinations/:userId".replace(":userId", encodeURIComponent(String(args["userId"]))), {
|
|
1518
3017
|
signal: args.signal,
|
|
1519
3018
|
headers,
|
|
1520
3019
|
});
|
|
1521
3020
|
}
|
|
1522
|
-
async
|
|
3021
|
+
async shareWiseProfile(args) {
|
|
1523
3022
|
const headers = new Headers(args.headers);
|
|
1524
|
-
return this.request("POST", "/api/v1/
|
|
3023
|
+
return this.request("POST", "/api/v1/integrations/wise/contacts", {
|
|
1525
3024
|
body: args.body,
|
|
1526
3025
|
signal: args.signal,
|
|
1527
3026
|
headers,
|
|
1528
3027
|
});
|
|
1529
3028
|
}
|
|
1530
|
-
async
|
|
3029
|
+
async linkWiseRecipient(args) {
|
|
1531
3030
|
const headers = new Headers(args.headers);
|
|
1532
|
-
return this.request("POST", "/api/v1/
|
|
3031
|
+
return this.request("POST", "/api/v1/integrations/wise/recipients/link", {
|
|
1533
3032
|
body: args.body,
|
|
1534
3033
|
signal: args.signal,
|
|
1535
3034
|
headers,
|
|
1536
3035
|
});
|
|
1537
3036
|
}
|
|
1538
|
-
async
|
|
3037
|
+
async unlinkWiseRecipient(args) {
|
|
1539
3038
|
const headers = new Headers(args.headers);
|
|
1540
|
-
return this.request("
|
|
3039
|
+
return this.request("DELETE", "/api/v1/integrations/wise/recipients/:accountId".replace(":accountId", encodeURIComponent(String(args["accountId"]))), {
|
|
1541
3040
|
signal: args.signal,
|
|
1542
3041
|
headers,
|
|
1543
3042
|
});
|
|
1544
3043
|
}
|
|
1545
|
-
async
|
|
3044
|
+
async listSsoProvisioningDomains(args = {}) {
|
|
1546
3045
|
const headers = new Headers(args.headers);
|
|
1547
|
-
return this.request("
|
|
3046
|
+
return this.request("GET", "/api/v1/settings/sso-domains", {
|
|
1548
3047
|
signal: args.signal,
|
|
1549
3048
|
headers,
|
|
1550
3049
|
});
|
|
1551
3050
|
}
|
|
1552
|
-
async
|
|
3051
|
+
async addSsoProvisioningDomain(args) {
|
|
1553
3052
|
const headers = new Headers(args.headers);
|
|
1554
|
-
return this.request("
|
|
3053
|
+
return this.request("POST", "/api/v1/settings/sso-domains", {
|
|
3054
|
+
body: args.body,
|
|
1555
3055
|
signal: args.signal,
|
|
1556
3056
|
headers,
|
|
1557
3057
|
});
|
|
1558
3058
|
}
|
|
1559
|
-
async
|
|
3059
|
+
async removeSsoProvisioningDomain(args) {
|
|
1560
3060
|
const headers = new Headers(args.headers);
|
|
1561
|
-
return this.request("
|
|
1562
|
-
query: args.query,
|
|
3061
|
+
return this.request("DELETE", "/api/v1/settings/sso-domains/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1563
3062
|
signal: args.signal,
|
|
1564
3063
|
headers,
|
|
1565
3064
|
});
|
|
1566
3065
|
}
|
|
1567
|
-
async
|
|
3066
|
+
async verifySsoProvisioningDomain(args) {
|
|
1568
3067
|
const headers = new Headers(args.headers);
|
|
1569
|
-
return this.request("POST", "/api/v1/
|
|
1570
|
-
body: args.body,
|
|
3068
|
+
return this.request("POST", "/api/v1/settings/sso-domains/:id/verify".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1571
3069
|
signal: args.signal,
|
|
1572
3070
|
headers,
|
|
1573
3071
|
});
|
|
1574
3072
|
}
|
|
1575
|
-
async
|
|
3073
|
+
async getBrand(args = {}) {
|
|
1576
3074
|
const headers = new Headers(args.headers);
|
|
1577
|
-
return this.request("
|
|
1578
|
-
body: args.body,
|
|
3075
|
+
return this.request("GET", "/api/v1/brand", {
|
|
1579
3076
|
signal: args.signal,
|
|
1580
3077
|
headers,
|
|
1581
3078
|
});
|
|
1582
3079
|
}
|
|
1583
|
-
async
|
|
3080
|
+
async listBrandAssets(args = {}) {
|
|
1584
3081
|
const headers = new Headers(args.headers);
|
|
1585
|
-
return this.request("GET", "/api/v1/
|
|
3082
|
+
return this.request("GET", "/api/v1/settings/brand-assets", {
|
|
1586
3083
|
signal: args.signal,
|
|
1587
3084
|
headers,
|
|
1588
3085
|
});
|
|
1589
3086
|
}
|
|
1590
|
-
async
|
|
3087
|
+
async removeBrandAsset(args) {
|
|
1591
3088
|
const headers = new Headers(args.headers);
|
|
1592
|
-
return this.request("
|
|
1593
|
-
body: args.body,
|
|
3089
|
+
return this.request("DELETE", "/api/v1/settings/brand-assets/:slot".replace(":slot", encodeURIComponent(String(args["slot"]))), {
|
|
1594
3090
|
signal: args.signal,
|
|
1595
3091
|
headers,
|
|
1596
3092
|
});
|
|
1597
3093
|
}
|
|
1598
|
-
async
|
|
3094
|
+
async getInstanceTheme(args = {}) {
|
|
1599
3095
|
const headers = new Headers(args.headers);
|
|
1600
|
-
return this.request("
|
|
3096
|
+
return this.request("GET", "/api/v1/settings/theme", {
|
|
1601
3097
|
signal: args.signal,
|
|
1602
3098
|
headers,
|
|
1603
3099
|
});
|
|
1604
3100
|
}
|
|
1605
|
-
async
|
|
3101
|
+
async setInstanceTheme(args) {
|
|
1606
3102
|
const headers = new Headers(args.headers);
|
|
1607
|
-
return this.request("POST", "/api/v1/
|
|
3103
|
+
return this.request("POST", "/api/v1/settings/theme", {
|
|
3104
|
+
body: args.body,
|
|
1608
3105
|
signal: args.signal,
|
|
1609
3106
|
headers,
|
|
1610
3107
|
});
|
|
1611
3108
|
}
|
|
1612
|
-
async
|
|
3109
|
+
async clearInstanceTheme(args = {}) {
|
|
1613
3110
|
const headers = new Headers(args.headers);
|
|
1614
|
-
return this.request("
|
|
3111
|
+
return this.request("DELETE", "/api/v1/settings/theme", {
|
|
1615
3112
|
signal: args.signal,
|
|
1616
3113
|
headers,
|
|
1617
3114
|
});
|
|
1618
3115
|
}
|
|
1619
|
-
async
|
|
3116
|
+
async getInvoicePaymentLink(args) {
|
|
1620
3117
|
const headers = new Headers(args.headers);
|
|
1621
|
-
return this.request("
|
|
3118
|
+
return this.request("POST", "/api/v1/invoices/:id/payment-link".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1622
3119
|
signal: args.signal,
|
|
1623
3120
|
headers,
|
|
1624
3121
|
});
|
|
1625
3122
|
}
|
|
1626
|
-
async
|
|
3123
|
+
async releaseInvoicedTime(args) {
|
|
1627
3124
|
const headers = new Headers(args.headers);
|
|
1628
|
-
return this.request("POST", "/api/v1/
|
|
3125
|
+
return this.request("POST", "/api/v1/invoices/:id/released-time".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1629
3126
|
signal: args.signal,
|
|
1630
3127
|
headers,
|
|
1631
3128
|
});
|
|
1632
3129
|
}
|
|
1633
|
-
async
|
|
3130
|
+
async getInvoiceDocumentPreference(args) {
|
|
1634
3131
|
const headers = new Headers(args.headers);
|
|
1635
|
-
return this.request("
|
|
3132
|
+
return this.request("GET", "/api/v1/invoices/:id/document-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1636
3133
|
signal: args.signal,
|
|
1637
3134
|
headers,
|
|
1638
3135
|
});
|
|
1639
3136
|
}
|
|
1640
|
-
async
|
|
3137
|
+
async setInvoiceDocumentPreference(args) {
|
|
1641
3138
|
const headers = new Headers(args.headers);
|
|
1642
|
-
return this.request("POST", "/api/v1/
|
|
3139
|
+
return this.request("POST", "/api/v1/invoices/:id/document-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3140
|
+
body: args.body,
|
|
1643
3141
|
signal: args.signal,
|
|
1644
3142
|
headers,
|
|
1645
3143
|
});
|
|
1646
3144
|
}
|
|
1647
|
-
async
|
|
3145
|
+
async getInvoiceEmailDefaults(args) {
|
|
1648
3146
|
const headers = new Headers(args.headers);
|
|
1649
|
-
return this.request("GET", "/api/v1/
|
|
1650
|
-
query: args.query,
|
|
3147
|
+
return this.request("GET", "/api/v1/invoices/:id/email-defaults".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1651
3148
|
signal: args.signal,
|
|
1652
3149
|
headers,
|
|
1653
3150
|
});
|
|
1654
3151
|
}
|
|
1655
|
-
async
|
|
3152
|
+
async getClientInvoiceSending(args) {
|
|
1656
3153
|
const headers = new Headers(args.headers);
|
|
1657
|
-
return this.request("GET", "/api/v1/
|
|
1658
|
-
query: args.query,
|
|
3154
|
+
return this.request("GET", "/api/v1/clients/:id/invoice-sending".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1659
3155
|
signal: args.signal,
|
|
1660
3156
|
headers,
|
|
1661
3157
|
});
|
|
1662
3158
|
}
|
|
1663
|
-
async
|
|
3159
|
+
async setClientInvoiceSending(args) {
|
|
1664
3160
|
const headers = new Headers(args.headers);
|
|
1665
|
-
return this.request("
|
|
1666
|
-
|
|
3161
|
+
return this.request("POST", "/api/v1/clients/:id/invoice-sending".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3162
|
+
body: args.body,
|
|
1667
3163
|
signal: args.signal,
|
|
1668
3164
|
headers,
|
|
1669
3165
|
});
|
|
1670
3166
|
}
|
|
1671
|
-
async
|
|
3167
|
+
async getOrganizationInvoiceSending(args = {}) {
|
|
1672
3168
|
const headers = new Headers(args.headers);
|
|
1673
|
-
return this.request("GET", "/api/v1/
|
|
1674
|
-
query: args.query,
|
|
3169
|
+
return this.request("GET", "/api/v1/settings/invoice-sending", {
|
|
1675
3170
|
signal: args.signal,
|
|
1676
3171
|
headers,
|
|
1677
3172
|
});
|
|
1678
3173
|
}
|
|
1679
|
-
async
|
|
3174
|
+
async setOrganizationInvoiceSending(args) {
|
|
1680
3175
|
const headers = new Headers(args.headers);
|
|
1681
|
-
return this.request("
|
|
1682
|
-
|
|
3176
|
+
return this.request("POST", "/api/v1/settings/invoice-sending", {
|
|
3177
|
+
body: args.body,
|
|
1683
3178
|
signal: args.signal,
|
|
1684
3179
|
headers,
|
|
1685
3180
|
});
|
|
1686
3181
|
}
|
|
1687
|
-
async
|
|
3182
|
+
async getOrganizationInvoiceDocuments(args = {}) {
|
|
1688
3183
|
const headers = new Headers(args.headers);
|
|
1689
|
-
return this.request("GET", "/api/v1/
|
|
1690
|
-
query: args.query,
|
|
3184
|
+
return this.request("GET", "/api/v1/settings/invoice-documents", {
|
|
1691
3185
|
signal: args.signal,
|
|
1692
3186
|
headers,
|
|
1693
3187
|
});
|
|
1694
3188
|
}
|
|
1695
|
-
async
|
|
3189
|
+
async setOrganizationInvoiceDocuments(args) {
|
|
1696
3190
|
const headers = new Headers(args.headers);
|
|
1697
|
-
return this.request("
|
|
1698
|
-
|
|
3191
|
+
return this.request("POST", "/api/v1/settings/invoice-documents", {
|
|
3192
|
+
body: args.body,
|
|
1699
3193
|
signal: args.signal,
|
|
1700
3194
|
headers,
|
|
1701
3195
|
});
|
|
1702
3196
|
}
|
|
1703
|
-
async
|
|
3197
|
+
async downloadInvoiceHoursReport(args) {
|
|
1704
3198
|
const headers = new Headers(args.headers);
|
|
1705
|
-
return this.request("GET", "/api/v1/
|
|
3199
|
+
return this.request("GET", "/api/v1/invoices/:id/hours-report".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1706
3200
|
query: args.query,
|
|
1707
3201
|
signal: args.signal,
|
|
3202
|
+
binary: true,
|
|
1708
3203
|
headers,
|
|
1709
3204
|
});
|
|
1710
3205
|
}
|
|
1711
|
-
async
|
|
3206
|
+
async getInvoiceHoursReconciliation(args) {
|
|
1712
3207
|
const headers = new Headers(args.headers);
|
|
1713
|
-
return this.request("GET", "/api/v1/
|
|
3208
|
+
return this.request("GET", "/api/v1/invoices/:id/hours-reconciliation".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1714
3209
|
signal: args.signal,
|
|
1715
3210
|
headers,
|
|
1716
3211
|
});
|
|
1717
3212
|
}
|
|
1718
|
-
async
|
|
3213
|
+
async releaseInvoiceLineTime(args) {
|
|
1719
3214
|
const headers = new Headers(args.headers);
|
|
1720
|
-
return this.request("POST", "/api/v1/
|
|
3215
|
+
return this.request("POST", "/api/v1/invoices/:id/hours-reconciliation/release".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1721
3216
|
body: args.body,
|
|
1722
3217
|
signal: args.signal,
|
|
1723
3218
|
headers,
|
|
1724
3219
|
});
|
|
1725
3220
|
}
|
|
1726
|
-
async
|
|
3221
|
+
async getInvoiceDefaults(args = {}) {
|
|
1727
3222
|
const headers = new Headers(args.headers);
|
|
1728
|
-
return this.request("GET", "/api/v1/
|
|
1729
|
-
query: args.query,
|
|
3223
|
+
return this.request("GET", "/api/v1/settings/invoice-defaults", {
|
|
1730
3224
|
signal: args.signal,
|
|
1731
3225
|
headers,
|
|
1732
3226
|
});
|
|
1733
3227
|
}
|
|
1734
|
-
async
|
|
3228
|
+
async updateInvoiceDefaults(args) {
|
|
1735
3229
|
const headers = new Headers(args.headers);
|
|
1736
|
-
return this.request("
|
|
1737
|
-
|
|
3230
|
+
return this.request("POST", "/api/v1/settings/invoice-defaults", {
|
|
3231
|
+
body: args.body,
|
|
1738
3232
|
signal: args.signal,
|
|
1739
3233
|
headers,
|
|
1740
3234
|
});
|
|
1741
3235
|
}
|
|
1742
|
-
async
|
|
3236
|
+
async getNotificationSettings(args = {}) {
|
|
1743
3237
|
const headers = new Headers(args.headers);
|
|
1744
|
-
return this.request("GET", "/api/v1/
|
|
1745
|
-
query: args.query,
|
|
3238
|
+
return this.request("GET", "/api/v1/settings/notifications", {
|
|
1746
3239
|
signal: args.signal,
|
|
1747
3240
|
headers,
|
|
1748
3241
|
});
|
|
1749
3242
|
}
|
|
1750
|
-
async
|
|
3243
|
+
async setNotificationSettings(args) {
|
|
1751
3244
|
const headers = new Headers(args.headers);
|
|
1752
|
-
return this.request("
|
|
1753
|
-
|
|
3245
|
+
return this.request("POST", "/api/v1/settings/notifications", {
|
|
3246
|
+
body: args.body,
|
|
1754
3247
|
signal: args.signal,
|
|
1755
3248
|
headers,
|
|
1756
3249
|
});
|
|
1757
3250
|
}
|
|
1758
|
-
async
|
|
3251
|
+
async getTimesheetAutoApproval(args = {}) {
|
|
1759
3252
|
const headers = new Headers(args.headers);
|
|
1760
|
-
return this.request("GET", "/api/v1/
|
|
1761
|
-
query: args.query,
|
|
3253
|
+
return this.request("GET", "/api/v1/settings/timesheet-auto-approval", {
|
|
1762
3254
|
signal: args.signal,
|
|
1763
|
-
binary: true,
|
|
1764
3255
|
headers,
|
|
1765
3256
|
});
|
|
1766
3257
|
}
|
|
1767
|
-
async
|
|
3258
|
+
async setTimesheetAutoApproval(args) {
|
|
1768
3259
|
const headers = new Headers(args.headers);
|
|
1769
|
-
return this.request("POST", "/api/v1/
|
|
3260
|
+
return this.request("POST", "/api/v1/settings/timesheet-auto-approval", {
|
|
1770
3261
|
body: args.body,
|
|
1771
3262
|
signal: args.signal,
|
|
1772
3263
|
headers,
|
|
1773
3264
|
});
|
|
1774
3265
|
}
|
|
1775
|
-
async
|
|
3266
|
+
async getInvoiceThankYouPreference(args) {
|
|
1776
3267
|
const headers = new Headers(args.headers);
|
|
1777
|
-
return this.request("GET", "/api/v1/
|
|
1778
|
-
query: args.query,
|
|
3268
|
+
return this.request("GET", "/api/v1/invoices/:id/thank-you-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1779
3269
|
signal: args.signal,
|
|
1780
3270
|
headers,
|
|
1781
3271
|
});
|
|
1782
3272
|
}
|
|
1783
|
-
async
|
|
3273
|
+
async setInvoiceThankYouPreference(args) {
|
|
1784
3274
|
const headers = new Headers(args.headers);
|
|
1785
|
-
return this.request("
|
|
1786
|
-
query: args.query,
|
|
3275
|
+
return this.request("POST", "/api/v1/invoices/:id/thank-you-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1787
3276
|
signal: args.signal,
|
|
1788
3277
|
headers,
|
|
1789
3278
|
});
|
|
1790
3279
|
}
|
|
1791
|
-
async
|
|
3280
|
+
async getOrganizationInvoiceThankYou(args = {}) {
|
|
1792
3281
|
const headers = new Headers(args.headers);
|
|
1793
|
-
return this.request("GET", "/api/v1/
|
|
1794
|
-
query: args.query,
|
|
3282
|
+
return this.request("GET", "/api/v1/settings/invoice-thank-you", {
|
|
1795
3283
|
signal: args.signal,
|
|
1796
3284
|
headers,
|
|
1797
3285
|
});
|
|
1798
3286
|
}
|
|
1799
|
-
async
|
|
3287
|
+
async setOrganizationInvoiceThankYou(args = {}) {
|
|
1800
3288
|
const headers = new Headers(args.headers);
|
|
1801
|
-
return this.request("
|
|
3289
|
+
return this.request("POST", "/api/v1/settings/invoice-thank-you", {
|
|
1802
3290
|
signal: args.signal,
|
|
1803
3291
|
headers,
|
|
1804
3292
|
});
|
|
1805
3293
|
}
|
|
1806
|
-
async
|
|
3294
|
+
async getOrganizationInvoiceReminders(args = {}) {
|
|
1807
3295
|
const headers = new Headers(args.headers);
|
|
1808
|
-
return this.request("
|
|
1809
|
-
body: args.body,
|
|
3296
|
+
return this.request("GET", "/api/v1/settings/invoice-reminders", {
|
|
1810
3297
|
signal: args.signal,
|
|
1811
3298
|
headers,
|
|
1812
3299
|
});
|
|
1813
3300
|
}
|
|
1814
|
-
async
|
|
3301
|
+
async setOrganizationInvoiceReminders(args) {
|
|
1815
3302
|
const headers = new Headers(args.headers);
|
|
1816
|
-
return this.request("
|
|
3303
|
+
return this.request("POST", "/api/v1/settings/invoice-reminders", {
|
|
3304
|
+
body: args.body,
|
|
1817
3305
|
signal: args.signal,
|
|
1818
3306
|
headers,
|
|
1819
3307
|
});
|
|
1820
3308
|
}
|
|
1821
|
-
async
|
|
3309
|
+
async getInvoiceReminderPreference(args) {
|
|
1822
3310
|
const headers = new Headers(args.headers);
|
|
1823
|
-
return this.request("
|
|
1824
|
-
body: args.body,
|
|
3311
|
+
return this.request("GET", "/api/v1/invoices/:id/reminder-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1825
3312
|
signal: args.signal,
|
|
1826
3313
|
headers,
|
|
1827
3314
|
});
|
|
1828
3315
|
}
|
|
1829
|
-
async
|
|
3316
|
+
async setInvoiceReminderPreference(args) {
|
|
1830
3317
|
const headers = new Headers(args.headers);
|
|
1831
|
-
return this.request("
|
|
3318
|
+
return this.request("POST", "/api/v1/invoices/:id/reminder-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3319
|
+
body: args.body,
|
|
1832
3320
|
signal: args.signal,
|
|
1833
3321
|
headers,
|
|
1834
3322
|
});
|
|
1835
3323
|
}
|
|
1836
|
-
async
|
|
3324
|
+
async listIncompleteRecurringInvoices(args = {}) {
|
|
1837
3325
|
const headers = new Headers(args.headers);
|
|
1838
|
-
return this.request("GET", "/api/v1/
|
|
3326
|
+
return this.request("GET", "/api/v1/recurring-invoices/incomplete", {
|
|
1839
3327
|
signal: args.signal,
|
|
1840
3328
|
headers,
|
|
1841
3329
|
});
|
|
1842
3330
|
}
|
|
1843
|
-
async
|
|
3331
|
+
async completeRecurringInvoiceDefinition(args) {
|
|
1844
3332
|
const headers = new Headers(args.headers);
|
|
1845
|
-
return this.request("POST", "/api/v1/
|
|
3333
|
+
return this.request("POST", "/api/v1/recurring-invoices/:id/completion".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1846
3334
|
signal: args.signal,
|
|
1847
3335
|
headers,
|
|
1848
3336
|
});
|
|
1849
3337
|
}
|
|
1850
|
-
async
|
|
1851
|
-
const headers = new Headers(args.headers);
|
|
1852
|
-
return this.request("
|
|
1853
|
-
body: args.body,
|
|
3338
|
+
async listPayoutAccounts(args) {
|
|
3339
|
+
const headers = new Headers(args.headers);
|
|
3340
|
+
return this.request("GET", "/api/v1/users/:id/payout-accounts".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1854
3341
|
signal: args.signal,
|
|
1855
3342
|
headers,
|
|
1856
3343
|
});
|
|
1857
3344
|
}
|
|
1858
|
-
async
|
|
3345
|
+
async linkPayoutAccount(args) {
|
|
1859
3346
|
const headers = new Headers(args.headers);
|
|
1860
|
-
return this.request("
|
|
3347
|
+
return this.request("POST", "/api/v1/users/:id/payout-accounts".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3348
|
+
body: args.body,
|
|
1861
3349
|
signal: args.signal,
|
|
1862
3350
|
headers,
|
|
1863
3351
|
});
|
|
1864
3352
|
}
|
|
1865
|
-
async
|
|
3353
|
+
async detachPayoutAccount(args) {
|
|
1866
3354
|
const headers = new Headers(args.headers);
|
|
1867
|
-
return this.request("
|
|
3355
|
+
return this.request("DELETE", "/api/v1/payout-accounts/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1868
3356
|
signal: args.signal,
|
|
1869
3357
|
headers,
|
|
1870
3358
|
});
|
|
1871
3359
|
}
|
|
1872
|
-
async
|
|
3360
|
+
async listPayoutProviders(args = {}) {
|
|
1873
3361
|
const headers = new Headers(args.headers);
|
|
1874
|
-
return this.request("
|
|
3362
|
+
return this.request("GET", "/api/v1/payout-providers", {
|
|
1875
3363
|
signal: args.signal,
|
|
1876
3364
|
headers,
|
|
1877
3365
|
});
|
|
1878
3366
|
}
|
|
1879
|
-
async
|
|
3367
|
+
async setPayoutProviderEnabled(args) {
|
|
1880
3368
|
const headers = new Headers(args.headers);
|
|
1881
|
-
return this.request("
|
|
3369
|
+
return this.request("PATCH", "/api/v1/payout-providers/:provider".replace(":provider", encodeURIComponent(String(args["provider"]))), {
|
|
3370
|
+
body: args.body,
|
|
1882
3371
|
signal: args.signal,
|
|
1883
3372
|
headers,
|
|
1884
3373
|
});
|
|
1885
3374
|
}
|
|
1886
|
-
async
|
|
3375
|
+
async getPayoutPreference(args) {
|
|
1887
3376
|
const headers = new Headers(args.headers);
|
|
1888
|
-
return this.request("GET", "/api/v1/
|
|
3377
|
+
return this.request("GET", "/api/v1/users/:id/payout-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1889
3378
|
signal: args.signal,
|
|
1890
3379
|
headers,
|
|
1891
3380
|
});
|
|
1892
3381
|
}
|
|
1893
|
-
async
|
|
3382
|
+
async setPayoutPreference(args) {
|
|
1894
3383
|
const headers = new Headers(args.headers);
|
|
1895
|
-
return this.request("
|
|
3384
|
+
return this.request("PATCH", "/api/v1/users/:id/payout-preference".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1896
3385
|
body: args.body,
|
|
1897
3386
|
signal: args.signal,
|
|
1898
3387
|
headers,
|
|
1899
3388
|
});
|
|
1900
3389
|
}
|
|
1901
|
-
async
|
|
3390
|
+
async listPayoutPreferences(args = {}) {
|
|
1902
3391
|
const headers = new Headers(args.headers);
|
|
1903
|
-
return this.request("GET", "/api/v1/
|
|
3392
|
+
return this.request("GET", "/api/v1/payout-preferences", {
|
|
1904
3393
|
signal: args.signal,
|
|
1905
3394
|
headers,
|
|
1906
3395
|
});
|
|
1907
3396
|
}
|
|
1908
|
-
async
|
|
3397
|
+
async getBillStatus(args = {}) {
|
|
1909
3398
|
const headers = new Headers(args.headers);
|
|
1910
|
-
return this.request("GET", "/api/v1/integrations/
|
|
3399
|
+
return this.request("GET", "/api/v1/integrations/bill", {
|
|
1911
3400
|
signal: args.signal,
|
|
1912
3401
|
headers,
|
|
1913
3402
|
});
|
|
1914
3403
|
}
|
|
1915
|
-
async
|
|
3404
|
+
async getBillClientDelivery(args) {
|
|
1916
3405
|
const headers = new Headers(args.headers);
|
|
1917
|
-
return this.request("
|
|
3406
|
+
return this.request("GET", "/api/v1/integrations/bill/clients/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1918
3407
|
signal: args.signal,
|
|
1919
3408
|
headers,
|
|
1920
3409
|
});
|
|
1921
3410
|
}
|
|
1922
|
-
async
|
|
3411
|
+
async setBillClientDelivery(args) {
|
|
1923
3412
|
const headers = new Headers(args.headers);
|
|
1924
|
-
return this.request("POST", "/api/v1/integrations/
|
|
3413
|
+
return this.request("POST", "/api/v1/integrations/bill/clients/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1925
3414
|
body: args.body,
|
|
1926
3415
|
signal: args.signal,
|
|
1927
3416
|
headers,
|
|
1928
3417
|
});
|
|
1929
3418
|
}
|
|
1930
|
-
async
|
|
3419
|
+
async getTwoFactorStatus(args = {}) {
|
|
1931
3420
|
const headers = new Headers(args.headers);
|
|
1932
|
-
return this.request("
|
|
1933
|
-
body: args.body,
|
|
3421
|
+
return this.request("GET", "/api/v1/two-factor", {
|
|
1934
3422
|
signal: args.signal,
|
|
1935
3423
|
headers,
|
|
1936
3424
|
});
|
|
1937
3425
|
}
|
|
1938
|
-
async
|
|
3426
|
+
async beginTwoFactorEnrolment(args = {}) {
|
|
1939
3427
|
const headers = new Headers(args.headers);
|
|
1940
|
-
return this.request("
|
|
3428
|
+
return this.request("POST", "/api/v1/two-factor", {
|
|
1941
3429
|
signal: args.signal,
|
|
1942
3430
|
headers,
|
|
1943
3431
|
});
|
|
1944
3432
|
}
|
|
1945
|
-
async
|
|
3433
|
+
async confirmTwoFactorEnrolment(args) {
|
|
1946
3434
|
const headers = new Headers(args.headers);
|
|
1947
|
-
return this.request("
|
|
3435
|
+
return this.request("POST", "/api/v1/two-factor/confirm", {
|
|
3436
|
+
body: args.body,
|
|
1948
3437
|
signal: args.signal,
|
|
1949
3438
|
headers,
|
|
1950
3439
|
});
|
|
1951
3440
|
}
|
|
1952
|
-
async
|
|
3441
|
+
async disableTwoFactor(args) {
|
|
1953
3442
|
const headers = new Headers(args.headers);
|
|
1954
|
-
return this.request("
|
|
3443
|
+
return this.request("DELETE", "/api/v1/two-factor", {
|
|
1955
3444
|
body: args.body,
|
|
1956
3445
|
signal: args.signal,
|
|
1957
3446
|
headers,
|
|
1958
3447
|
});
|
|
1959
3448
|
}
|
|
1960
|
-
async
|
|
3449
|
+
async enableTwoFactorEmail(args = {}) {
|
|
1961
3450
|
const headers = new Headers(args.headers);
|
|
1962
|
-
return this.request("
|
|
3451
|
+
return this.request("POST", "/api/v1/two-factor/email", {
|
|
1963
3452
|
signal: args.signal,
|
|
1964
3453
|
headers,
|
|
1965
3454
|
});
|
|
1966
3455
|
}
|
|
1967
|
-
async
|
|
3456
|
+
async disableTwoFactorEmail(args = {}) {
|
|
1968
3457
|
const headers = new Headers(args.headers);
|
|
1969
|
-
return this.request("
|
|
3458
|
+
return this.request("DELETE", "/api/v1/two-factor/email", {
|
|
1970
3459
|
signal: args.signal,
|
|
1971
3460
|
headers,
|
|
1972
3461
|
});
|
|
1973
3462
|
}
|
|
1974
|
-
async
|
|
3463
|
+
async getUserTwoFactorEmail(args) {
|
|
1975
3464
|
const headers = new Headers(args.headers);
|
|
1976
|
-
return this.request("GET", "/api/v1/
|
|
3465
|
+
return this.request("GET", "/api/v1/users/:id/two-factor/email".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1977
3466
|
signal: args.signal,
|
|
1978
3467
|
headers,
|
|
1979
3468
|
});
|
|
1980
3469
|
}
|
|
1981
|
-
async
|
|
3470
|
+
async disableUserTwoFactorEmail(args) {
|
|
1982
3471
|
const headers = new Headers(args.headers);
|
|
1983
|
-
return this.request("
|
|
3472
|
+
return this.request("DELETE", "/api/v1/users/:id/two-factor/email".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1984
3473
|
signal: args.signal,
|
|
1985
3474
|
headers,
|
|
1986
3475
|
});
|
|
1987
3476
|
}
|
|
1988
|
-
async
|
|
3477
|
+
async addUserEmail(args) {
|
|
1989
3478
|
const headers = new Headers(args.headers);
|
|
1990
|
-
return this.request("
|
|
3479
|
+
return this.request("POST", "/api/v1/users/:id/emails".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3480
|
+
body: args.body,
|
|
1991
3481
|
signal: args.signal,
|
|
1992
3482
|
headers,
|
|
1993
3483
|
});
|
|
1994
3484
|
}
|
|
1995
|
-
async
|
|
3485
|
+
async getTeamStatus(args = {}) {
|
|
1996
3486
|
const headers = new Headers(args.headers);
|
|
1997
|
-
return this.request("GET", "/api/v1/
|
|
3487
|
+
return this.request("GET", "/api/v1/team/status", {
|
|
1998
3488
|
signal: args.signal,
|
|
1999
3489
|
headers,
|
|
2000
3490
|
});
|
|
2001
3491
|
}
|
|
2002
|
-
async
|
|
3492
|
+
async listTeamPeople(args) {
|
|
2003
3493
|
const headers = new Headers(args.headers);
|
|
2004
|
-
return this.request("
|
|
2005
|
-
|
|
3494
|
+
return this.request("GET", "/api/v1/team/people", {
|
|
3495
|
+
query: args.query,
|
|
2006
3496
|
signal: args.signal,
|
|
2007
3497
|
headers,
|
|
2008
3498
|
});
|
|
2009
3499
|
}
|
|
2010
|
-
async
|
|
3500
|
+
async getTeamPerson(args) {
|
|
2011
3501
|
const headers = new Headers(args.headers);
|
|
2012
|
-
return this.request("
|
|
3502
|
+
return this.request("GET", "/api/v1/team/people/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2013
3503
|
signal: args.signal,
|
|
2014
3504
|
headers,
|
|
2015
3505
|
});
|
|
2016
3506
|
}
|
|
2017
|
-
async
|
|
3507
|
+
async getTeamCatalog(args = {}) {
|
|
2018
3508
|
const headers = new Headers(args.headers);
|
|
2019
|
-
return this.request("
|
|
3509
|
+
return this.request("GET", "/api/v1/team/catalog", {
|
|
2020
3510
|
signal: args.signal,
|
|
2021
3511
|
headers,
|
|
2022
3512
|
});
|
|
2023
3513
|
}
|
|
2024
|
-
async
|
|
3514
|
+
async updateTeamPerson(args) {
|
|
2025
3515
|
const headers = new Headers(args.headers);
|
|
2026
|
-
|
|
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,
|
|
2027
3520
|
signal: args.signal,
|
|
2028
3521
|
headers,
|
|
2029
3522
|
});
|
|
2030
3523
|
}
|
|
2031
|
-
async
|
|
3524
|
+
async replaceTeamPersonProjectAssignments(args) {
|
|
2032
3525
|
const headers = new Headers(args.headers);
|
|
2033
|
-
|
|
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,
|
|
2034
3530
|
signal: args.signal,
|
|
2035
3531
|
headers,
|
|
2036
3532
|
});
|
|
2037
3533
|
}
|
|
2038
|
-
async
|
|
3534
|
+
async updateTeamPersonNotifications(args) {
|
|
2039
3535
|
const headers = new Headers(args.headers);
|
|
2040
|
-
|
|
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"]))), {
|
|
2041
3539
|
body: args.body,
|
|
2042
3540
|
signal: args.signal,
|
|
2043
3541
|
headers,
|
|
2044
3542
|
});
|
|
2045
3543
|
}
|
|
2046
|
-
async
|
|
3544
|
+
async appendTeamPersonRate(args) {
|
|
2047
3545
|
const headers = new Headers(args.headers);
|
|
2048
|
-
|
|
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,
|
|
2049
3550
|
signal: args.signal,
|
|
2050
3551
|
headers,
|
|
2051
3552
|
});
|
|
2052
3553
|
}
|
|
2053
|
-
async
|
|
3554
|
+
async removeTeamPersonRate(args) {
|
|
2054
3555
|
const headers = new Headers(args.headers);
|
|
2055
|
-
|
|
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,
|
|
2056
3560
|
signal: args.signal,
|
|
2057
3561
|
headers,
|
|
2058
3562
|
});
|
|
2059
3563
|
}
|
|
2060
|
-
async
|
|
3564
|
+
async backfillTeamPersonCostRate(args) {
|
|
2061
3565
|
const headers = new Headers(args.headers);
|
|
2062
|
-
|
|
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"]))), {
|
|
2063
3569
|
body: args.body,
|
|
2064
3570
|
signal: args.signal,
|
|
2065
3571
|
headers,
|
|
2066
3572
|
});
|
|
2067
3573
|
}
|
|
2068
|
-
async
|
|
3574
|
+
async listClientAncestors(args) {
|
|
2069
3575
|
const headers = new Headers(args.headers);
|
|
2070
|
-
return this.request("GET", "/api/v1/
|
|
3576
|
+
return this.request("GET", "/api/v1/clients/:id/ancestors".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2071
3577
|
signal: args.signal,
|
|
2072
3578
|
headers,
|
|
2073
3579
|
});
|
|
2074
3580
|
}
|
|
2075
|
-
async
|
|
3581
|
+
async listClientDescendants(args) {
|
|
2076
3582
|
const headers = new Headers(args.headers);
|
|
2077
|
-
return this.request("
|
|
2078
|
-
body: args.body,
|
|
3583
|
+
return this.request("GET", "/api/v1/clients/:id/descendants".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2079
3584
|
signal: args.signal,
|
|
2080
3585
|
headers,
|
|
2081
3586
|
});
|
|
2082
3587
|
}
|
|
2083
|
-
async
|
|
3588
|
+
async getClientRateCard(args) {
|
|
2084
3589
|
const headers = new Headers(args.headers);
|
|
2085
|
-
return this.request("GET", "/api/v1/
|
|
3590
|
+
return this.request("GET", "/api/v1/clients/:id/rate-card".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2086
3591
|
signal: args.signal,
|
|
2087
3592
|
headers,
|
|
2088
3593
|
});
|
|
2089
3594
|
}
|
|
2090
|
-
async
|
|
3595
|
+
async createClientRateCard(args) {
|
|
2091
3596
|
const headers = new Headers(args.headers);
|
|
2092
|
-
return this.request("POST", "/api/v1/
|
|
3597
|
+
return this.request("POST", "/api/v1/clients/:id/rate-card".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2093
3598
|
body: args.body,
|
|
2094
3599
|
signal: args.signal,
|
|
2095
3600
|
headers,
|
|
2096
3601
|
});
|
|
2097
3602
|
}
|
|
2098
|
-
async
|
|
3603
|
+
async createClientRateCardVersion(args) {
|
|
2099
3604
|
const headers = new Headers(args.headers);
|
|
2100
|
-
return this.request("
|
|
2101
|
-
|
|
3605
|
+
return this.request("POST", "/api/v1/clients/:id/rate-card/versions".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3606
|
+
body: args.body,
|
|
2102
3607
|
signal: args.signal,
|
|
2103
|
-
binary: true,
|
|
2104
3608
|
headers,
|
|
2105
3609
|
});
|
|
2106
3610
|
}
|
|
2107
|
-
async
|
|
3611
|
+
async getClientEffectiveRateCard(args) {
|
|
2108
3612
|
const headers = new Headers(args.headers);
|
|
2109
|
-
return this.request("GET", "/api/v1/
|
|
3613
|
+
return this.request("GET", "/api/v1/clients/:id/effective-rate-card".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3614
|
+
query: args.query,
|
|
2110
3615
|
signal: args.signal,
|
|
2111
3616
|
headers,
|
|
2112
3617
|
});
|
|
2113
3618
|
}
|
|
2114
|
-
async
|
|
3619
|
+
async listEstimateTemplates(args = {}) {
|
|
2115
3620
|
const headers = new Headers(args.headers);
|
|
2116
|
-
return this.request("
|
|
2117
|
-
body: args.body,
|
|
3621
|
+
return this.request("GET", "/api/v1/estimate-templates", {
|
|
2118
3622
|
signal: args.signal,
|
|
2119
3623
|
headers,
|
|
2120
3624
|
});
|
|
2121
3625
|
}
|
|
2122
|
-
async
|
|
3626
|
+
async createEstimateTemplate(args) {
|
|
2123
3627
|
const headers = new Headers(args.headers);
|
|
2124
|
-
return this.request("
|
|
3628
|
+
return this.request("POST", "/api/v1/estimate-templates", {
|
|
3629
|
+
body: args.body,
|
|
2125
3630
|
signal: args.signal,
|
|
2126
3631
|
headers,
|
|
2127
3632
|
});
|
|
2128
3633
|
}
|
|
2129
|
-
async
|
|
3634
|
+
async updateEstimateTemplate(args) {
|
|
2130
3635
|
const headers = new Headers(args.headers);
|
|
2131
|
-
return this.request("
|
|
3636
|
+
return this.request("PATCH", "/api/v1/estimate-templates/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
3637
|
+
body: args.body,
|
|
2132
3638
|
signal: args.signal,
|
|
2133
3639
|
headers,
|
|
2134
3640
|
});
|
|
2135
3641
|
}
|
|
2136
|
-
async
|
|
3642
|
+
async createEstimateDraft(args) {
|
|
2137
3643
|
const headers = new Headers(args.headers);
|
|
2138
|
-
|
|
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,
|
|
2139
3648
|
signal: args.signal,
|
|
2140
3649
|
headers,
|
|
2141
3650
|
});
|
|
2142
3651
|
}
|
|
2143
|
-
async
|
|
3652
|
+
async getMigrationLoadStatus(args) {
|
|
2144
3653
|
const headers = new Headers(args.headers);
|
|
2145
|
-
return this.request("
|
|
3654
|
+
return this.request("GET", "/api/v1/migration-loads/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2146
3655
|
signal: args.signal,
|
|
2147
3656
|
headers,
|
|
2148
3657
|
});
|
|
2149
3658
|
}
|
|
2150
|
-
async
|
|
3659
|
+
async sendInvoiceElevationEmailCode(args) {
|
|
2151
3660
|
const headers = new Headers(args.headers);
|
|
2152
|
-
return this.request("
|
|
3661
|
+
return this.request("POST", "/api/v1/invoice-elevations/email-code", {
|
|
3662
|
+
body: args.body,
|
|
2153
3663
|
signal: args.signal,
|
|
2154
3664
|
headers,
|
|
2155
3665
|
});
|
|
2156
3666
|
}
|
|
2157
|
-
async
|
|
3667
|
+
async createInvoiceElevation(args) {
|
|
2158
3668
|
const headers = new Headers(args.headers);
|
|
2159
|
-
return this.request("POST", "/api/v1/
|
|
3669
|
+
return this.request("POST", "/api/v1/invoice-elevations", {
|
|
2160
3670
|
body: args.body,
|
|
2161
3671
|
signal: args.signal,
|
|
2162
3672
|
headers,
|
|
2163
3673
|
});
|
|
2164
3674
|
}
|
|
2165
|
-
async
|
|
3675
|
+
async verifyInvoiceElevation(args) {
|
|
2166
3676
|
const headers = new Headers(args.headers);
|
|
2167
|
-
return this.request("
|
|
3677
|
+
return this.request("POST", "/api/v1/invoice-elevations/verify", {
|
|
3678
|
+
body: args.body,
|
|
2168
3679
|
signal: args.signal,
|
|
2169
3680
|
headers,
|
|
2170
3681
|
});
|
|
2171
3682
|
}
|
|
2172
|
-
async
|
|
3683
|
+
async revokeInvoiceElevation(args) {
|
|
2173
3684
|
const headers = new Headers(args.headers);
|
|
2174
|
-
return this.request("
|
|
2175
|
-
body: args.body,
|
|
3685
|
+
return this.request("DELETE", "/api/v1/invoice-elevations/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2176
3686
|
signal: args.signal,
|
|
2177
3687
|
headers,
|
|
2178
3688
|
});
|
|
2179
3689
|
}
|
|
2180
|
-
async
|
|
3690
|
+
async unlinkElevatedInvoiceTime(args) {
|
|
2181
3691
|
const headers = new Headers(args.headers);
|
|
2182
|
-
|
|
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,
|
|
2183
3698
|
signal: args.signal,
|
|
2184
3699
|
headers,
|
|
2185
3700
|
});
|
|
2186
3701
|
}
|
|
2187
|
-
async
|
|
3702
|
+
async listWebhookSubscriptions(args = {}) {
|
|
2188
3703
|
const headers = new Headers(args.headers);
|
|
2189
|
-
return this.request("
|
|
3704
|
+
return this.request("GET", "/api/v1/webhook-subscriptions", {
|
|
2190
3705
|
signal: args.signal,
|
|
2191
3706
|
headers,
|
|
2192
3707
|
});
|
|
2193
3708
|
}
|
|
2194
|
-
async
|
|
3709
|
+
async createWebhookSubscription(args) {
|
|
2195
3710
|
const headers = new Headers(args.headers);
|
|
2196
|
-
|
|
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,
|
|
2197
3715
|
signal: args.signal,
|
|
2198
3716
|
headers,
|
|
2199
3717
|
});
|
|
2200
3718
|
}
|
|
2201
|
-
async
|
|
3719
|
+
async setWebhookSubscriptionActive(args) {
|
|
2202
3720
|
const headers = new Headers(args.headers);
|
|
2203
|
-
|
|
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"]))), {
|
|
2204
3724
|
body: args.body,
|
|
2205
3725
|
signal: args.signal,
|
|
2206
3726
|
headers,
|
|
2207
3727
|
});
|
|
2208
3728
|
}
|
|
2209
|
-
async
|
|
3729
|
+
async rotateWebhookSecret(args) {
|
|
2210
3730
|
const headers = new Headers(args.headers);
|
|
2211
|
-
|
|
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,
|
|
2212
3735
|
signal: args.signal,
|
|
2213
3736
|
headers,
|
|
2214
3737
|
});
|
|
2215
3738
|
}
|
|
2216
|
-
async
|
|
3739
|
+
async deleteWebhookSubscription(args) {
|
|
2217
3740
|
const headers = new Headers(args.headers);
|
|
2218
|
-
|
|
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,
|
|
2219
3745
|
signal: args.signal,
|
|
2220
3746
|
headers,
|
|
2221
3747
|
});
|
|
2222
3748
|
}
|
|
2223
|
-
async
|
|
3749
|
+
async listWebhookDeliveries(args = {}) {
|
|
2224
3750
|
const headers = new Headers(args.headers);
|
|
2225
|
-
return this.request("GET", "/api/v1/
|
|
3751
|
+
return this.request("GET", "/api/v1/webhook-deliveries", {
|
|
3752
|
+
query: args.query,
|
|
2226
3753
|
signal: args.signal,
|
|
2227
3754
|
headers,
|
|
2228
3755
|
});
|
|
2229
3756
|
}
|
|
2230
|
-
async
|
|
3757
|
+
async replayWebhookDelivery(args) {
|
|
2231
3758
|
const headers = new Headers(args.headers);
|
|
2232
|
-
|
|
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"]))), {
|
|
2233
3762
|
body: args.body,
|
|
2234
3763
|
signal: args.signal,
|
|
2235
3764
|
headers,
|
|
2236
3765
|
});
|
|
2237
3766
|
}
|
|
2238
|
-
async
|
|
3767
|
+
async getCsvImportCapabilities(args = {}) {
|
|
2239
3768
|
const headers = new Headers(args.headers);
|
|
2240
|
-
return this.request("GET", "/api/v1/
|
|
3769
|
+
return this.request("GET", "/api/v1/csv-import-capabilities", {
|
|
2241
3770
|
signal: args.signal,
|
|
2242
3771
|
headers,
|
|
2243
3772
|
});
|
|
2244
3773
|
}
|
|
2245
|
-
async
|
|
3774
|
+
async uploadCsvImport(args) {
|
|
2246
3775
|
const headers = new Headers(args.headers);
|
|
2247
|
-
|
|
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,
|
|
2248
3783
|
signal: args.signal,
|
|
2249
3784
|
headers,
|
|
2250
3785
|
});
|
|
2251
3786
|
}
|
|
2252
|
-
async
|
|
3787
|
+
async getCsvImportMapping(args) {
|
|
2253
3788
|
const headers = new Headers(args.headers);
|
|
2254
|
-
return this.request("
|
|
2255
|
-
body: args.body,
|
|
3789
|
+
return this.request("GET", "/api/v1/csv-imports/:runId/mapping".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2256
3790
|
signal: args.signal,
|
|
2257
3791
|
headers,
|
|
2258
3792
|
});
|
|
2259
3793
|
}
|
|
2260
|
-
async
|
|
3794
|
+
async mapCsvImport(args) {
|
|
2261
3795
|
const headers = new Headers(args.headers);
|
|
2262
|
-
return this.request("
|
|
3796
|
+
return this.request("PATCH", "/api/v1/csv-imports/:runId/mapping".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2263
3797
|
body: args.body,
|
|
2264
3798
|
signal: args.signal,
|
|
2265
3799
|
headers,
|
|
2266
3800
|
});
|
|
2267
3801
|
}
|
|
2268
|
-
async
|
|
3802
|
+
async previewCsvImport(args) {
|
|
2269
3803
|
const headers = new Headers(args.headers);
|
|
2270
|
-
return this.request("POST", "/api/v1/
|
|
3804
|
+
return this.request("POST", "/api/v1/csv-imports/:runId/preview".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2271
3805
|
body: args.body,
|
|
2272
3806
|
signal: args.signal,
|
|
2273
3807
|
headers,
|
|
2274
3808
|
});
|
|
2275
3809
|
}
|
|
2276
|
-
async
|
|
3810
|
+
async getCsvImport(args) {
|
|
2277
3811
|
const headers = new Headers(args.headers);
|
|
2278
|
-
return this.request("GET", "/api/v1/
|
|
3812
|
+
return this.request("GET", "/api/v1/csv-imports/:runId".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2279
3813
|
signal: args.signal,
|
|
2280
3814
|
headers,
|
|
2281
3815
|
});
|
|
2282
3816
|
}
|
|
2283
|
-
async
|
|
3817
|
+
async listCsvImportErrors(args) {
|
|
2284
3818
|
const headers = new Headers(args.headers);
|
|
2285
|
-
return this.request("GET", "/api/v1/
|
|
3819
|
+
return this.request("GET", "/api/v1/csv-imports/:runId/errors".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2286
3820
|
query: args.query,
|
|
2287
3821
|
signal: args.signal,
|
|
2288
3822
|
headers,
|
|
2289
3823
|
});
|
|
2290
3824
|
}
|
|
2291
|
-
async
|
|
2292
|
-
const headers = new Headers(args.headers);
|
|
2293
|
-
return this.request("GET", "/api/v1/team/people/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2294
|
-
signal: args.signal,
|
|
2295
|
-
headers,
|
|
2296
|
-
});
|
|
2297
|
-
}
|
|
2298
|
-
async getTeamCatalog(args = {}) {
|
|
3825
|
+
async listCsvImportCatalog(args) {
|
|
2299
3826
|
const headers = new Headers(args.headers);
|
|
2300
|
-
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,
|
|
2301
3829
|
signal: args.signal,
|
|
2302
3830
|
headers,
|
|
2303
3831
|
});
|
|
2304
3832
|
}
|
|
2305
|
-
async
|
|
3833
|
+
async downloadCsvImportDiagnostics(args) {
|
|
2306
3834
|
const headers = new Headers(args.headers);
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
return this.request("PATCH", "/api/v1/team/people/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2310
|
-
body: args.body,
|
|
3835
|
+
return this.request("GET", "/api/v1/csv-imports/:runId/diagnostics".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
3836
|
+
query: args.query,
|
|
2311
3837
|
signal: args.signal,
|
|
3838
|
+
binary: true,
|
|
2312
3839
|
headers,
|
|
2313
3840
|
});
|
|
2314
3841
|
}
|
|
2315
|
-
async
|
|
3842
|
+
async purgeCsvImportInput(args) {
|
|
2316
3843
|
const headers = new Headers(args.headers);
|
|
2317
|
-
|
|
2318
|
-
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2319
|
-
return this.request("POST", "/api/v1/team/people/:id/project-assignments/replace".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2320
|
-
body: args.body,
|
|
3844
|
+
return this.request("DELETE", "/api/v1/csv-imports/:runId/input".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2321
3845
|
signal: args.signal,
|
|
2322
3846
|
headers,
|
|
2323
3847
|
});
|
|
2324
3848
|
}
|
|
2325
|
-
async
|
|
3849
|
+
async applyCsvImport(args) {
|
|
2326
3850
|
const headers = new Headers(args.headers);
|
|
2327
3851
|
if (args["Idempotency-Key"] !== undefined)
|
|
2328
3852
|
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2329
|
-
return this.request("POST", "/api/v1/
|
|
3853
|
+
return this.request("POST", "/api/v1/csv-imports/:runId/apply".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2330
3854
|
body: args.body,
|
|
2331
3855
|
signal: args.signal,
|
|
2332
3856
|
headers,
|
|
2333
3857
|
});
|
|
2334
3858
|
}
|
|
2335
|
-
async
|
|
3859
|
+
async resumeCsvImport(args) {
|
|
2336
3860
|
const headers = new Headers(args.headers);
|
|
2337
3861
|
if (args["Idempotency-Key"] !== undefined)
|
|
2338
3862
|
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2339
|
-
return this.request("POST", "/api/v1/
|
|
3863
|
+
return this.request("POST", "/api/v1/csv-imports/:runId/resume".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2340
3864
|
body: args.body,
|
|
2341
3865
|
signal: args.signal,
|
|
2342
3866
|
headers,
|
|
2343
3867
|
});
|
|
2344
3868
|
}
|
|
2345
|
-
async
|
|
3869
|
+
async cancelCsvImport(args) {
|
|
2346
3870
|
const headers = new Headers(args.headers);
|
|
2347
3871
|
if (args["Idempotency-Key"] !== undefined)
|
|
2348
3872
|
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
2349
|
-
return this.request("
|
|
3873
|
+
return this.request("POST", "/api/v1/csv-imports/:runId/cancel".replace(":runId", encodeURIComponent(String(args["runId"]))), {
|
|
2350
3874
|
body: args.body,
|
|
2351
3875
|
signal: args.signal,
|
|
2352
3876
|
headers,
|
|
2353
3877
|
});
|
|
2354
3878
|
}
|
|
2355
|
-
async
|
|
2356
|
-
const headers = new Headers(args.headers);
|
|
2357
|
-
return this.request("GET", "/api/v1/clients/:id/ancestors".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
2358
|
-
signal: args.signal,
|
|
2359
|
-
headers,
|
|
2360
|
-
});
|
|
2361
|
-
}
|
|
2362
|
-
async listClientDescendants(args) {
|
|
3879
|
+
async getCsvImportApply(args) {
|
|
2363
3880
|
const headers = new Headers(args.headers);
|
|
2364
|
-
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,
|
|
2365
3883
|
signal: args.signal,
|
|
2366
3884
|
headers,
|
|
2367
3885
|
});
|