@conflict-hq/ezacto-client 0.1.0
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 +3421 -0
- package/dist/generated.js +1754 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +54 -0
- package/src/generated.ts +4465 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,1754 @@
|
|
|
1
|
+
// Generated by scripts/generate-api-contract.mjs. Do not edit by hand.
|
|
2
|
+
export class EzactoApiError extends Error {
|
|
3
|
+
status;
|
|
4
|
+
body;
|
|
5
|
+
requestId;
|
|
6
|
+
constructor(status, body, requestId) {
|
|
7
|
+
super(`ezacto API request failed with status ${status}`);
|
|
8
|
+
this.name = "EzactoApiError";
|
|
9
|
+
this.status = status;
|
|
10
|
+
this.body = body;
|
|
11
|
+
this.requestId = requestId;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class EzactoClient {
|
|
15
|
+
baseUrl;
|
|
16
|
+
token;
|
|
17
|
+
fetchImplementation;
|
|
18
|
+
defaultHeaders;
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this.baseUrl = options.baseUrl.endsWith("/")
|
|
21
|
+
? options.baseUrl
|
|
22
|
+
: `${options.baseUrl}/`;
|
|
23
|
+
this.token = options.token;
|
|
24
|
+
this.fetchImplementation = options.fetch ?? globalThis.fetch;
|
|
25
|
+
this.defaultHeaders = new Headers(options.headers);
|
|
26
|
+
}
|
|
27
|
+
async request(method, path, options) {
|
|
28
|
+
const url = new URL(path.replace(/^\//, ""), this.baseUrl);
|
|
29
|
+
for (const [name, value] of Object.entries(options.query ?? {})) {
|
|
30
|
+
if (value !== undefined)
|
|
31
|
+
url.searchParams.set(name, String(value));
|
|
32
|
+
}
|
|
33
|
+
const headers = new Headers(this.defaultHeaders);
|
|
34
|
+
const requestHeaders = new Headers(options.headers);
|
|
35
|
+
requestHeaders.forEach((value, name) => headers.set(name, value));
|
|
36
|
+
if (this.token !== undefined)
|
|
37
|
+
headers.set("authorization", `Bearer ${this.token}`);
|
|
38
|
+
if (options.multipart === true)
|
|
39
|
+
headers.delete("content-type");
|
|
40
|
+
else if (options.body !== undefined)
|
|
41
|
+
headers.set("content-type", "application/json");
|
|
42
|
+
const response = await this.fetchImplementation(url, {
|
|
43
|
+
method,
|
|
44
|
+
headers,
|
|
45
|
+
...(options.signal === undefined ? {} : { signal: options.signal }),
|
|
46
|
+
...(options.body === undefined
|
|
47
|
+
? {}
|
|
48
|
+
: { body: options.multipart === true ? options.body : JSON.stringify(options.body) }),
|
|
49
|
+
});
|
|
50
|
+
if (response.ok && options.binary === true)
|
|
51
|
+
return await response.arrayBuffer();
|
|
52
|
+
const text = await response.text();
|
|
53
|
+
let body = undefined;
|
|
54
|
+
if (text.length > 0) {
|
|
55
|
+
try {
|
|
56
|
+
body = JSON.parse(text);
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
body = text;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (!response.ok) {
|
|
63
|
+
throw new EzactoApiError(response.status, body, response.headers.get("x-request-id"));
|
|
64
|
+
}
|
|
65
|
+
return body;
|
|
66
|
+
}
|
|
67
|
+
async signup(args) {
|
|
68
|
+
const headers = new Headers(args.headers);
|
|
69
|
+
return this.request("POST", "/auth/signup", {
|
|
70
|
+
body: args.body,
|
|
71
|
+
signal: args.signal,
|
|
72
|
+
headers,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
async verifyEmail(args) {
|
|
76
|
+
const headers = new Headers(args.headers);
|
|
77
|
+
return this.request("POST", "/auth/verify-email", {
|
|
78
|
+
body: args.body,
|
|
79
|
+
signal: args.signal,
|
|
80
|
+
headers,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
async signIn(args) {
|
|
84
|
+
const headers = new Headers(args.headers);
|
|
85
|
+
return this.request("POST", "/auth/sign-in", {
|
|
86
|
+
body: args.body,
|
|
87
|
+
signal: args.signal,
|
|
88
|
+
headers,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
async requestPasswordReset(args) {
|
|
92
|
+
const headers = new Headers(args.headers);
|
|
93
|
+
return this.request("POST", "/auth/password/forgot", {
|
|
94
|
+
body: args.body,
|
|
95
|
+
signal: args.signal,
|
|
96
|
+
headers,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
async resetPassword(args) {
|
|
100
|
+
const headers = new Headers(args.headers);
|
|
101
|
+
return this.request("POST", "/auth/password/reset", {
|
|
102
|
+
body: args.body,
|
|
103
|
+
signal: args.signal,
|
|
104
|
+
headers,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
async listSessions(args = {}) {
|
|
108
|
+
const headers = new Headers(args.headers);
|
|
109
|
+
return this.request("GET", "/api/v1/sessions", {
|
|
110
|
+
signal: args.signal,
|
|
111
|
+
headers,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
async listEmailLog(args = {}) {
|
|
115
|
+
const headers = new Headers(args.headers);
|
|
116
|
+
return this.request("GET", "/api/v1/email-log", {
|
|
117
|
+
query: args.query,
|
|
118
|
+
signal: args.signal,
|
|
119
|
+
headers,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
async getEmailHealth(args = {}) {
|
|
123
|
+
const headers = new Headers(args.headers);
|
|
124
|
+
return this.request("GET", "/api/v1/email-health", {
|
|
125
|
+
signal: args.signal,
|
|
126
|
+
headers,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
async listEmailTemplateVariables(args = {}) {
|
|
130
|
+
const headers = new Headers(args.headers);
|
|
131
|
+
return this.request("GET", "/api/v1/email-template-variables", {
|
|
132
|
+
signal: args.signal,
|
|
133
|
+
headers,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
async listEmailTemplates(args = {}) {
|
|
137
|
+
const headers = new Headers(args.headers);
|
|
138
|
+
return this.request("GET", "/api/v1/email-templates", {
|
|
139
|
+
signal: args.signal,
|
|
140
|
+
headers,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
async listEmailTemplateVersions(args) {
|
|
144
|
+
const headers = new Headers(args.headers);
|
|
145
|
+
return this.request("GET", "/api/v1/email-templates/:kind/versions".replace(":kind", encodeURIComponent(String(args["kind"]))), {
|
|
146
|
+
signal: args.signal,
|
|
147
|
+
headers,
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
async createEmailTemplateVersion(args) {
|
|
151
|
+
const headers = new Headers(args.headers);
|
|
152
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
153
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
154
|
+
return this.request("POST", "/api/v1/email-templates/:kind/versions".replace(":kind", encodeURIComponent(String(args["kind"]))), {
|
|
155
|
+
body: args.body,
|
|
156
|
+
signal: args.signal,
|
|
157
|
+
headers,
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
async listSenderIdentities(args = {}) {
|
|
161
|
+
const headers = new Headers(args.headers);
|
|
162
|
+
return this.request("GET", "/api/v1/sender-identities", {
|
|
163
|
+
signal: args.signal,
|
|
164
|
+
headers,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
async createSenderIdentity(args) {
|
|
168
|
+
const headers = new Headers(args.headers);
|
|
169
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
170
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
171
|
+
return this.request("POST", "/api/v1/sender-identities", {
|
|
172
|
+
body: args.body,
|
|
173
|
+
signal: args.signal,
|
|
174
|
+
headers,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
async updateSenderIdentity(args) {
|
|
178
|
+
const headers = new Headers(args.headers);
|
|
179
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
180
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
181
|
+
return this.request("PATCH", "/api/v1/sender-identities/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
182
|
+
body: args.body,
|
|
183
|
+
signal: args.signal,
|
|
184
|
+
headers,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
async setDefaultSenderIdentity(args) {
|
|
188
|
+
const headers = new Headers(args.headers);
|
|
189
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
190
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
191
|
+
return this.request("POST", "/api/v1/sender-identities/:id/default".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
192
|
+
body: args.body,
|
|
193
|
+
signal: args.signal,
|
|
194
|
+
headers,
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
async archiveSenderIdentity(args) {
|
|
198
|
+
const headers = new Headers(args.headers);
|
|
199
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
200
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
201
|
+
return this.request("POST", "/api/v1/sender-identities/:id/archive".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
202
|
+
body: args.body,
|
|
203
|
+
signal: args.signal,
|
|
204
|
+
headers,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
async refreshSenderIdentityEvidence(args) {
|
|
208
|
+
const headers = new Headers(args.headers);
|
|
209
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
210
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
211
|
+
return this.request("POST", "/api/v1/sender-identities/:id/refresh".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
212
|
+
body: args.body,
|
|
213
|
+
signal: args.signal,
|
|
214
|
+
headers,
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
async testSendEmailTemplate(args) {
|
|
218
|
+
const headers = new Headers(args.headers);
|
|
219
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
220
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
221
|
+
return this.request("POST", "/api/v1/sender-identities/:id/test-send".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
222
|
+
body: args.body,
|
|
223
|
+
signal: args.signal,
|
|
224
|
+
headers,
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
async listActivityLog(args = {}) {
|
|
228
|
+
const headers = new Headers(args.headers);
|
|
229
|
+
return this.request("GET", "/api/v1/activity-log", {
|
|
230
|
+
query: args.query,
|
|
231
|
+
signal: args.signal,
|
|
232
|
+
headers,
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
async listOutboxDeliveries(args = {}) {
|
|
236
|
+
const headers = new Headers(args.headers);
|
|
237
|
+
return this.request("GET", "/api/v1/outbox-deliveries", {
|
|
238
|
+
query: args.query,
|
|
239
|
+
signal: args.signal,
|
|
240
|
+
headers,
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
async retryOutboxDelivery(args) {
|
|
244
|
+
const headers = new Headers(args.headers);
|
|
245
|
+
return this.request("POST", "/api/v1/outbox-deliveries/:subscriberId/:eventId/retry".replace(":subscriberId", encodeURIComponent(String(args["subscriberId"]))).replace(":eventId", encodeURIComponent(String(args["eventId"]))), {
|
|
246
|
+
signal: args.signal,
|
|
247
|
+
headers,
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
async revokeSession(args) {
|
|
251
|
+
const headers = new Headers(args.headers);
|
|
252
|
+
return this.request("DELETE", "/api/v1/sessions/:sessionId".replace(":sessionId", encodeURIComponent(String(args["sessionId"]))), {
|
|
253
|
+
signal: args.signal,
|
|
254
|
+
headers,
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
async getApiRoot(args = {}) {
|
|
258
|
+
const headers = new Headers(args.headers);
|
|
259
|
+
return this.request("GET", "/api/v1", {
|
|
260
|
+
signal: args.signal,
|
|
261
|
+
headers,
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
async getWhoami(args = {}) {
|
|
265
|
+
const headers = new Headers(args.headers);
|
|
266
|
+
return this.request("GET", "/api/v1/whoami", {
|
|
267
|
+
signal: args.signal,
|
|
268
|
+
headers,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
async listApiTokens(args = {}) {
|
|
272
|
+
const headers = new Headers(args.headers);
|
|
273
|
+
return this.request("GET", "/api/v1/api-tokens", {
|
|
274
|
+
signal: args.signal,
|
|
275
|
+
headers,
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
async createApiToken(args) {
|
|
279
|
+
const headers = new Headers(args.headers);
|
|
280
|
+
return this.request("POST", "/api/v1/api-tokens", {
|
|
281
|
+
body: args.body,
|
|
282
|
+
signal: args.signal,
|
|
283
|
+
headers,
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
async revokeApiToken(args) {
|
|
287
|
+
const headers = new Headers(args.headers);
|
|
288
|
+
return this.request("DELETE", "/api/v1/api-tokens/:tokenId".replace(":tokenId", encodeURIComponent(String(args["tokenId"]))), {
|
|
289
|
+
signal: args.signal,
|
|
290
|
+
headers,
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
async listClients(args = {}) {
|
|
294
|
+
const headers = new Headers(args.headers);
|
|
295
|
+
return this.request("GET", "/api/v1/clients", {
|
|
296
|
+
query: args.query,
|
|
297
|
+
signal: args.signal,
|
|
298
|
+
headers,
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
async createClient(args) {
|
|
302
|
+
const headers = new Headers(args.headers);
|
|
303
|
+
return this.request("POST", "/api/v1/clients", {
|
|
304
|
+
body: args.body,
|
|
305
|
+
signal: args.signal,
|
|
306
|
+
headers,
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
async getClient(args) {
|
|
310
|
+
const headers = new Headers(args.headers);
|
|
311
|
+
return this.request("GET", "/api/v1/clients/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
312
|
+
signal: args.signal,
|
|
313
|
+
headers,
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
async updateClient(args) {
|
|
317
|
+
const headers = new Headers(args.headers);
|
|
318
|
+
return this.request("PATCH", "/api/v1/clients/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
319
|
+
body: args.body,
|
|
320
|
+
signal: args.signal,
|
|
321
|
+
headers,
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
async deleteClient(args) {
|
|
325
|
+
const headers = new Headers(args.headers);
|
|
326
|
+
return this.request("DELETE", "/api/v1/clients/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
327
|
+
signal: args.signal,
|
|
328
|
+
headers,
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
async listContacts(args = {}) {
|
|
332
|
+
const headers = new Headers(args.headers);
|
|
333
|
+
return this.request("GET", "/api/v1/contacts", {
|
|
334
|
+
query: args.query,
|
|
335
|
+
signal: args.signal,
|
|
336
|
+
headers,
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
async createContact(args) {
|
|
340
|
+
const headers = new Headers(args.headers);
|
|
341
|
+
return this.request("POST", "/api/v1/contacts", {
|
|
342
|
+
body: args.body,
|
|
343
|
+
signal: args.signal,
|
|
344
|
+
headers,
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
async getContact(args) {
|
|
348
|
+
const headers = new Headers(args.headers);
|
|
349
|
+
return this.request("GET", "/api/v1/contacts/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
350
|
+
signal: args.signal,
|
|
351
|
+
headers,
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
async updateContact(args) {
|
|
355
|
+
const headers = new Headers(args.headers);
|
|
356
|
+
return this.request("PATCH", "/api/v1/contacts/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
357
|
+
body: args.body,
|
|
358
|
+
signal: args.signal,
|
|
359
|
+
headers,
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
async deleteContact(args) {
|
|
363
|
+
const headers = new Headers(args.headers);
|
|
364
|
+
return this.request("DELETE", "/api/v1/contacts/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
365
|
+
signal: args.signal,
|
|
366
|
+
headers,
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
async listExpenseCategories(args = {}) {
|
|
370
|
+
const headers = new Headers(args.headers);
|
|
371
|
+
return this.request("GET", "/api/v1/expense-categories", {
|
|
372
|
+
query: args.query,
|
|
373
|
+
signal: args.signal,
|
|
374
|
+
headers,
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
async createExpenseCategory(args) {
|
|
378
|
+
const headers = new Headers(args.headers);
|
|
379
|
+
return this.request("POST", "/api/v1/expense-categories", {
|
|
380
|
+
body: args.body,
|
|
381
|
+
signal: args.signal,
|
|
382
|
+
headers,
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
async getExpenseCategory(args) {
|
|
386
|
+
const headers = new Headers(args.headers);
|
|
387
|
+
return this.request("GET", "/api/v1/expense-categories/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
388
|
+
signal: args.signal,
|
|
389
|
+
headers,
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
async updateExpenseCategory(args) {
|
|
393
|
+
const headers = new Headers(args.headers);
|
|
394
|
+
return this.request("PATCH", "/api/v1/expense-categories/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
395
|
+
body: args.body,
|
|
396
|
+
signal: args.signal,
|
|
397
|
+
headers,
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
async deleteExpenseCategory(args) {
|
|
401
|
+
const headers = new Headers(args.headers);
|
|
402
|
+
return this.request("DELETE", "/api/v1/expense-categories/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
403
|
+
signal: args.signal,
|
|
404
|
+
headers,
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
async listProjects(args = {}) {
|
|
408
|
+
const headers = new Headers(args.headers);
|
|
409
|
+
return this.request("GET", "/api/v1/projects", {
|
|
410
|
+
query: args.query,
|
|
411
|
+
signal: args.signal,
|
|
412
|
+
headers,
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
async createProject(args) {
|
|
416
|
+
const headers = new Headers(args.headers);
|
|
417
|
+
return this.request("POST", "/api/v1/projects", {
|
|
418
|
+
body: args.body,
|
|
419
|
+
signal: args.signal,
|
|
420
|
+
headers,
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
async getProject(args) {
|
|
424
|
+
const headers = new Headers(args.headers);
|
|
425
|
+
return this.request("GET", "/api/v1/projects/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
426
|
+
signal: args.signal,
|
|
427
|
+
headers,
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
async updateProject(args) {
|
|
431
|
+
const headers = new Headers(args.headers);
|
|
432
|
+
return this.request("PATCH", "/api/v1/projects/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
433
|
+
body: args.body,
|
|
434
|
+
signal: args.signal,
|
|
435
|
+
headers,
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
async deleteProject(args) {
|
|
439
|
+
const headers = new Headers(args.headers);
|
|
440
|
+
return this.request("DELETE", "/api/v1/projects/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
441
|
+
signal: args.signal,
|
|
442
|
+
headers,
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
async listTasks(args = {}) {
|
|
446
|
+
const headers = new Headers(args.headers);
|
|
447
|
+
return this.request("GET", "/api/v1/tasks", {
|
|
448
|
+
query: args.query,
|
|
449
|
+
signal: args.signal,
|
|
450
|
+
headers,
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
async createTask(args) {
|
|
454
|
+
const headers = new Headers(args.headers);
|
|
455
|
+
return this.request("POST", "/api/v1/tasks", {
|
|
456
|
+
body: args.body,
|
|
457
|
+
signal: args.signal,
|
|
458
|
+
headers,
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
async getTask(args) {
|
|
462
|
+
const headers = new Headers(args.headers);
|
|
463
|
+
return this.request("GET", "/api/v1/tasks/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
464
|
+
signal: args.signal,
|
|
465
|
+
headers,
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
async updateTask(args) {
|
|
469
|
+
const headers = new Headers(args.headers);
|
|
470
|
+
return this.request("PATCH", "/api/v1/tasks/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
471
|
+
body: args.body,
|
|
472
|
+
signal: args.signal,
|
|
473
|
+
headers,
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
async deleteTask(args) {
|
|
477
|
+
const headers = new Headers(args.headers);
|
|
478
|
+
return this.request("DELETE", "/api/v1/tasks/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
479
|
+
signal: args.signal,
|
|
480
|
+
headers,
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
async listTaskAssignments(args = {}) {
|
|
484
|
+
const headers = new Headers(args.headers);
|
|
485
|
+
return this.request("GET", "/api/v1/task-assignments", {
|
|
486
|
+
query: args.query,
|
|
487
|
+
signal: args.signal,
|
|
488
|
+
headers,
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
async createTaskAssignment(args) {
|
|
492
|
+
const headers = new Headers(args.headers);
|
|
493
|
+
return this.request("POST", "/api/v1/task-assignments", {
|
|
494
|
+
body: args.body,
|
|
495
|
+
signal: args.signal,
|
|
496
|
+
headers,
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
async getTaskAssignment(args) {
|
|
500
|
+
const headers = new Headers(args.headers);
|
|
501
|
+
return this.request("GET", "/api/v1/task-assignments/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
502
|
+
signal: args.signal,
|
|
503
|
+
headers,
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
async updateTaskAssignment(args) {
|
|
507
|
+
const headers = new Headers(args.headers);
|
|
508
|
+
return this.request("PATCH", "/api/v1/task-assignments/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
509
|
+
body: args.body,
|
|
510
|
+
signal: args.signal,
|
|
511
|
+
headers,
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
async deleteTaskAssignment(args) {
|
|
515
|
+
const headers = new Headers(args.headers);
|
|
516
|
+
return this.request("DELETE", "/api/v1/task-assignments/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
517
|
+
signal: args.signal,
|
|
518
|
+
headers,
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
async listUserAssignments(args = {}) {
|
|
522
|
+
const headers = new Headers(args.headers);
|
|
523
|
+
return this.request("GET", "/api/v1/user-assignments", {
|
|
524
|
+
query: args.query,
|
|
525
|
+
signal: args.signal,
|
|
526
|
+
headers,
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
async createUserAssignment(args) {
|
|
530
|
+
const headers = new Headers(args.headers);
|
|
531
|
+
return this.request("POST", "/api/v1/user-assignments", {
|
|
532
|
+
body: args.body,
|
|
533
|
+
signal: args.signal,
|
|
534
|
+
headers,
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
async getUserAssignment(args) {
|
|
538
|
+
const headers = new Headers(args.headers);
|
|
539
|
+
return this.request("GET", "/api/v1/user-assignments/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
540
|
+
signal: args.signal,
|
|
541
|
+
headers,
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
async updateUserAssignment(args) {
|
|
545
|
+
const headers = new Headers(args.headers);
|
|
546
|
+
return this.request("PATCH", "/api/v1/user-assignments/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
547
|
+
body: args.body,
|
|
548
|
+
signal: args.signal,
|
|
549
|
+
headers,
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
async deleteUserAssignment(args) {
|
|
553
|
+
const headers = new Headers(args.headers);
|
|
554
|
+
return this.request("DELETE", "/api/v1/user-assignments/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
555
|
+
signal: args.signal,
|
|
556
|
+
headers,
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
async listUsers(args = {}) {
|
|
560
|
+
const headers = new Headers(args.headers);
|
|
561
|
+
return this.request("GET", "/api/v1/users", {
|
|
562
|
+
query: args.query,
|
|
563
|
+
signal: args.signal,
|
|
564
|
+
headers,
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
async createUser(args) {
|
|
568
|
+
const headers = new Headers(args.headers);
|
|
569
|
+
return this.request("POST", "/api/v1/users", {
|
|
570
|
+
body: args.body,
|
|
571
|
+
signal: args.signal,
|
|
572
|
+
headers,
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
async getUser(args) {
|
|
576
|
+
const headers = new Headers(args.headers);
|
|
577
|
+
return this.request("GET", "/api/v1/users/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
578
|
+
signal: args.signal,
|
|
579
|
+
headers,
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
async updateUser(args) {
|
|
583
|
+
const headers = new Headers(args.headers);
|
|
584
|
+
return this.request("PATCH", "/api/v1/users/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
585
|
+
body: args.body,
|
|
586
|
+
signal: args.signal,
|
|
587
|
+
headers,
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
async deleteUser(args) {
|
|
591
|
+
const headers = new Headers(args.headers);
|
|
592
|
+
return this.request("DELETE", "/api/v1/users/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
593
|
+
signal: args.signal,
|
|
594
|
+
headers,
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
async listRoles(args = {}) {
|
|
598
|
+
const headers = new Headers(args.headers);
|
|
599
|
+
return this.request("GET", "/api/v1/roles", {
|
|
600
|
+
query: args.query,
|
|
601
|
+
signal: args.signal,
|
|
602
|
+
headers,
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
async createRole(args) {
|
|
606
|
+
const headers = new Headers(args.headers);
|
|
607
|
+
return this.request("POST", "/api/v1/roles", {
|
|
608
|
+
body: args.body,
|
|
609
|
+
signal: args.signal,
|
|
610
|
+
headers,
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
async getRole(args) {
|
|
614
|
+
const headers = new Headers(args.headers);
|
|
615
|
+
return this.request("GET", "/api/v1/roles/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
616
|
+
signal: args.signal,
|
|
617
|
+
headers,
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
async updateRole(args) {
|
|
621
|
+
const headers = new Headers(args.headers);
|
|
622
|
+
return this.request("PATCH", "/api/v1/roles/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
623
|
+
body: args.body,
|
|
624
|
+
signal: args.signal,
|
|
625
|
+
headers,
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
async deleteRole(args) {
|
|
629
|
+
const headers = new Headers(args.headers);
|
|
630
|
+
return this.request("DELETE", "/api/v1/roles/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
631
|
+
signal: args.signal,
|
|
632
|
+
headers,
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
async listBillableRates(args) {
|
|
636
|
+
const headers = new Headers(args.headers);
|
|
637
|
+
return this.request("GET", "/api/v1/users/:userId/billable-rates".replace(":userId", encodeURIComponent(String(args["userId"]))), {
|
|
638
|
+
query: args.query,
|
|
639
|
+
signal: args.signal,
|
|
640
|
+
headers,
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
async appendBillableRate(args) {
|
|
644
|
+
const headers = new Headers(args.headers);
|
|
645
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
646
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
647
|
+
return this.request("POST", "/api/v1/users/:userId/billable-rates".replace(":userId", encodeURIComponent(String(args["userId"]))), {
|
|
648
|
+
body: args.body,
|
|
649
|
+
signal: args.signal,
|
|
650
|
+
headers,
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
async getBillableRate(args) {
|
|
654
|
+
const headers = new Headers(args.headers);
|
|
655
|
+
return this.request("GET", "/api/v1/users/:userId/billable-rates/:id".replace(":userId", encodeURIComponent(String(args["userId"]))).replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
656
|
+
signal: args.signal,
|
|
657
|
+
headers,
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
async listCostRates(args) {
|
|
661
|
+
const headers = new Headers(args.headers);
|
|
662
|
+
return this.request("GET", "/api/v1/users/:userId/cost-rates".replace(":userId", encodeURIComponent(String(args["userId"]))), {
|
|
663
|
+
query: args.query,
|
|
664
|
+
signal: args.signal,
|
|
665
|
+
headers,
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
async appendCostRate(args) {
|
|
669
|
+
const headers = new Headers(args.headers);
|
|
670
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
671
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
672
|
+
return this.request("POST", "/api/v1/users/:userId/cost-rates".replace(":userId", encodeURIComponent(String(args["userId"]))), {
|
|
673
|
+
body: args.body,
|
|
674
|
+
signal: args.signal,
|
|
675
|
+
headers,
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
async getCostRate(args) {
|
|
679
|
+
const headers = new Headers(args.headers);
|
|
680
|
+
return this.request("GET", "/api/v1/users/:userId/cost-rates/:id".replace(":userId", encodeURIComponent(String(args["userId"]))).replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
681
|
+
signal: args.signal,
|
|
682
|
+
headers,
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
async getTimeEntrySettings(args = {}) {
|
|
686
|
+
const headers = new Headers(args.headers);
|
|
687
|
+
return this.request("GET", "/api/v1/time-entry-settings", {
|
|
688
|
+
signal: args.signal,
|
|
689
|
+
headers,
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
async getTimeEntryNoteSettings(args = {}) {
|
|
693
|
+
const headers = new Headers(args.headers);
|
|
694
|
+
return this.request("GET", "/api/v1/time-entry-note-settings", {
|
|
695
|
+
signal: args.signal,
|
|
696
|
+
headers,
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
async updateTimeEntryNoteSettings(args) {
|
|
700
|
+
const headers = new Headers(args.headers);
|
|
701
|
+
return this.request("PATCH", "/api/v1/time-entry-note-settings", {
|
|
702
|
+
body: args.body,
|
|
703
|
+
signal: args.signal,
|
|
704
|
+
headers,
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
async listTimeEntryOptions(args = {}) {
|
|
708
|
+
const headers = new Headers(args.headers);
|
|
709
|
+
return this.request("GET", "/api/v1/time-entry-options", {
|
|
710
|
+
signal: args.signal,
|
|
711
|
+
headers,
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
async listTimeEntries(args = {}) {
|
|
715
|
+
const headers = new Headers(args.headers);
|
|
716
|
+
return this.request("GET", "/api/v1/time-entries", {
|
|
717
|
+
query: args.query,
|
|
718
|
+
signal: args.signal,
|
|
719
|
+
headers,
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
async createTimeEntry(args) {
|
|
723
|
+
const headers = new Headers(args.headers);
|
|
724
|
+
return this.request("POST", "/api/v1/time-entries", {
|
|
725
|
+
body: args.body,
|
|
726
|
+
signal: args.signal,
|
|
727
|
+
headers,
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
async getTimeEntry(args) {
|
|
731
|
+
const headers = new Headers(args.headers);
|
|
732
|
+
return this.request("GET", "/api/v1/time-entries/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
733
|
+
signal: args.signal,
|
|
734
|
+
headers,
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
async updateTimeEntry(args) {
|
|
738
|
+
const headers = new Headers(args.headers);
|
|
739
|
+
return this.request("PATCH", "/api/v1/time-entries/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
740
|
+
body: args.body,
|
|
741
|
+
signal: args.signal,
|
|
742
|
+
headers,
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
async deleteTimeEntry(args) {
|
|
746
|
+
const headers = new Headers(args.headers);
|
|
747
|
+
return this.request("DELETE", "/api/v1/time-entries/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
748
|
+
signal: args.signal,
|
|
749
|
+
headers,
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
async stopTimeEntry(args) {
|
|
753
|
+
const headers = new Headers(args.headers);
|
|
754
|
+
return this.request("POST", "/api/v1/time-entries/:id/stop".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
755
|
+
signal: args.signal,
|
|
756
|
+
headers,
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
async restartTimeEntry(args) {
|
|
760
|
+
const headers = new Headers(args.headers);
|
|
761
|
+
return this.request("POST", "/api/v1/time-entries/:id/restart".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
762
|
+
signal: args.signal,
|
|
763
|
+
headers,
|
|
764
|
+
});
|
|
765
|
+
}
|
|
766
|
+
async listTimesheetSubmissions(args = {}) {
|
|
767
|
+
const headers = new Headers(args.headers);
|
|
768
|
+
return this.request("GET", "/api/v1/timesheet-submissions", {
|
|
769
|
+
query: args.query,
|
|
770
|
+
signal: args.signal,
|
|
771
|
+
headers,
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
async submitTimesheet(args) {
|
|
775
|
+
const headers = new Headers(args.headers);
|
|
776
|
+
return this.request("POST", "/api/v1/timesheet-submissions", {
|
|
777
|
+
body: args.body,
|
|
778
|
+
signal: args.signal,
|
|
779
|
+
headers,
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
async listPendingTimesheetSubmissions(args = {}) {
|
|
783
|
+
const headers = new Headers(args.headers);
|
|
784
|
+
return this.request("GET", "/api/v1/timesheet-submissions/pending", {
|
|
785
|
+
query: args.query,
|
|
786
|
+
signal: args.signal,
|
|
787
|
+
headers,
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
async listApprovedTimesheetSubmissions(args = {}) {
|
|
791
|
+
const headers = new Headers(args.headers);
|
|
792
|
+
return this.request("GET", "/api/v1/timesheet-submissions/approved", {
|
|
793
|
+
query: args.query,
|
|
794
|
+
signal: args.signal,
|
|
795
|
+
headers,
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
async getTimesheetSubmission(args) {
|
|
799
|
+
const headers = new Headers(args.headers);
|
|
800
|
+
return this.request("GET", "/api/v1/timesheet-submissions/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
801
|
+
signal: args.signal,
|
|
802
|
+
headers,
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
async bulkApproveTimesheetSubmissions(args) {
|
|
806
|
+
const headers = new Headers(args.headers);
|
|
807
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
808
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
809
|
+
return this.request("POST", "/api/v1/timesheet-submissions/bulk-approve", {
|
|
810
|
+
body: args.body,
|
|
811
|
+
signal: args.signal,
|
|
812
|
+
headers,
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
async approveTimesheetSubmission(args) {
|
|
816
|
+
const headers = new Headers(args.headers);
|
|
817
|
+
return this.request("POST", "/api/v1/timesheet-submissions/:id/approve".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
818
|
+
signal: args.signal,
|
|
819
|
+
headers,
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
async rejectTimesheetSubmission(args) {
|
|
823
|
+
const headers = new Headers(args.headers);
|
|
824
|
+
return this.request("POST", "/api/v1/timesheet-submissions/:id/reject".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
825
|
+
body: args.body,
|
|
826
|
+
signal: args.signal,
|
|
827
|
+
headers,
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
async unsubmitTimesheetSubmission(args) {
|
|
831
|
+
const headers = new Headers(args.headers);
|
|
832
|
+
return this.request("POST", "/api/v1/timesheet-submissions/:id/unsubmit".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
833
|
+
signal: args.signal,
|
|
834
|
+
headers,
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
async withdrawTimesheetSubmission(args) {
|
|
838
|
+
const headers = new Headers(args.headers);
|
|
839
|
+
return this.request("POST", "/api/v1/timesheet-submissions/:id/withdraw".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
840
|
+
body: args.body,
|
|
841
|
+
signal: args.signal,
|
|
842
|
+
headers,
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
async getTimesheetLockPolicy(args = {}) {
|
|
846
|
+
const headers = new Headers(args.headers);
|
|
847
|
+
return this.request("GET", "/api/v1/timesheet-lock-policy", {
|
|
848
|
+
signal: args.signal,
|
|
849
|
+
headers,
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
async updateTimesheetLockPolicy(args) {
|
|
853
|
+
const headers = new Headers(args.headers);
|
|
854
|
+
return this.request("PATCH", "/api/v1/timesheet-lock-policy", {
|
|
855
|
+
body: args.body,
|
|
856
|
+
signal: args.signal,
|
|
857
|
+
headers,
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
async listTimesheetLocks(args = {}) {
|
|
861
|
+
const headers = new Headers(args.headers);
|
|
862
|
+
return this.request("GET", "/api/v1/timesheet-locks", {
|
|
863
|
+
query: args.query,
|
|
864
|
+
signal: args.signal,
|
|
865
|
+
headers,
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
async getTimesheetLock(args) {
|
|
869
|
+
const headers = new Headers(args.headers);
|
|
870
|
+
return this.request("GET", "/api/v1/timesheet-locks/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
871
|
+
signal: args.signal,
|
|
872
|
+
headers,
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
async createTimesheetManualLock(args) {
|
|
876
|
+
const headers = new Headers(args.headers);
|
|
877
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
878
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
879
|
+
return this.request("POST", "/api/v1/timesheet-locks", {
|
|
880
|
+
body: args.body,
|
|
881
|
+
signal: args.signal,
|
|
882
|
+
headers,
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
async unlockTimesheetLock(args) {
|
|
886
|
+
const headers = new Headers(args.headers);
|
|
887
|
+
return this.request("POST", "/api/v1/timesheet-locks/:id/unlock".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
888
|
+
body: args.body,
|
|
889
|
+
signal: args.signal,
|
|
890
|
+
headers,
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
async listExpenses(args = {}) {
|
|
894
|
+
const headers = new Headers(args.headers);
|
|
895
|
+
return this.request("GET", "/api/v1/expenses", {
|
|
896
|
+
query: args.query,
|
|
897
|
+
signal: args.signal,
|
|
898
|
+
headers,
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
async createExpense(args) {
|
|
902
|
+
const headers = new Headers(args.headers);
|
|
903
|
+
return this.request("POST", "/api/v1/expenses", {
|
|
904
|
+
body: args.body,
|
|
905
|
+
signal: args.signal,
|
|
906
|
+
headers,
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
async getExpense(args) {
|
|
910
|
+
const headers = new Headers(args.headers);
|
|
911
|
+
return this.request("GET", "/api/v1/expenses/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
912
|
+
signal: args.signal,
|
|
913
|
+
headers,
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
async updateExpense(args) {
|
|
917
|
+
const headers = new Headers(args.headers);
|
|
918
|
+
return this.request("PATCH", "/api/v1/expenses/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
919
|
+
body: args.body,
|
|
920
|
+
signal: args.signal,
|
|
921
|
+
headers,
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
async deleteExpense(args) {
|
|
925
|
+
const headers = new Headers(args.headers);
|
|
926
|
+
return this.request("DELETE", "/api/v1/expenses/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
927
|
+
signal: args.signal,
|
|
928
|
+
headers,
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
async listInvoices(args = {}) {
|
|
932
|
+
const headers = new Headers(args.headers);
|
|
933
|
+
return this.request("GET", "/api/v1/invoices", {
|
|
934
|
+
query: args.query,
|
|
935
|
+
signal: args.signal,
|
|
936
|
+
headers,
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
async getInvoice(args) {
|
|
940
|
+
const headers = new Headers(args.headers);
|
|
941
|
+
return this.request("GET", "/api/v1/invoices/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
942
|
+
signal: args.signal,
|
|
943
|
+
headers,
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
async listEstimates(args = {}) {
|
|
947
|
+
const headers = new Headers(args.headers);
|
|
948
|
+
return this.request("GET", "/api/v1/estimates", {
|
|
949
|
+
query: args.query,
|
|
950
|
+
signal: args.signal,
|
|
951
|
+
headers,
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
async getEstimate(args) {
|
|
955
|
+
const headers = new Headers(args.headers);
|
|
956
|
+
return this.request("GET", "/api/v1/estimates/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
957
|
+
signal: args.signal,
|
|
958
|
+
headers,
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
async listEstimateMessages(args) {
|
|
962
|
+
const headers = new Headers(args.headers);
|
|
963
|
+
return this.request("GET", "/api/v1/estimates/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
964
|
+
signal: args.signal,
|
|
965
|
+
headers,
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
async createEstimateMessage(args) {
|
|
969
|
+
const headers = new Headers(args.headers);
|
|
970
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
971
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
972
|
+
return this.request("POST", "/api/v1/estimates/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
973
|
+
body: args.body,
|
|
974
|
+
signal: args.signal,
|
|
975
|
+
headers,
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
async convertEstimate(args) {
|
|
979
|
+
const headers = new Headers(args.headers);
|
|
980
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
981
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
982
|
+
return this.request("POST", "/api/v1/estimates/:id/convert".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
983
|
+
body: args.body,
|
|
984
|
+
signal: args.signal,
|
|
985
|
+
headers,
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
async generateInvoice(args) {
|
|
989
|
+
const headers = new Headers(args.headers);
|
|
990
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
991
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
992
|
+
return this.request("POST", "/api/v1/invoice-generations", {
|
|
993
|
+
body: args.body,
|
|
994
|
+
signal: args.signal,
|
|
995
|
+
headers,
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
async updateInvoice(args) {
|
|
999
|
+
const headers = new Headers(args.headers);
|
|
1000
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1001
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1002
|
+
return this.request("PATCH", "/api/v1/invoices/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1003
|
+
body: args.body,
|
|
1004
|
+
signal: args.signal,
|
|
1005
|
+
headers,
|
|
1006
|
+
});
|
|
1007
|
+
}
|
|
1008
|
+
async createInvoiceLine(args) {
|
|
1009
|
+
const headers = new Headers(args.headers);
|
|
1010
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1011
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1012
|
+
return this.request("POST", "/api/v1/invoices/:id/line-items".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1013
|
+
body: args.body,
|
|
1014
|
+
signal: args.signal,
|
|
1015
|
+
headers,
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
async updateInvoiceLine(args) {
|
|
1019
|
+
const headers = new Headers(args.headers);
|
|
1020
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1021
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1022
|
+
return this.request("PATCH", "/api/v1/invoices/:id/line-items/:lineId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":lineId", encodeURIComponent(String(args["lineId"]))), {
|
|
1023
|
+
body: args.body,
|
|
1024
|
+
signal: args.signal,
|
|
1025
|
+
headers,
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
async deleteInvoiceLine(args) {
|
|
1029
|
+
const headers = new Headers(args.headers);
|
|
1030
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1031
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1032
|
+
return this.request("DELETE", "/api/v1/invoices/:id/line-items/:lineId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":lineId", encodeURIComponent(String(args["lineId"]))), {
|
|
1033
|
+
body: args.body,
|
|
1034
|
+
signal: args.signal,
|
|
1035
|
+
headers,
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
1038
|
+
async listInvoiceMessages(args) {
|
|
1039
|
+
const headers = new Headers(args.headers);
|
|
1040
|
+
return this.request("GET", "/api/v1/invoices/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1041
|
+
signal: args.signal,
|
|
1042
|
+
headers,
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
async createInvoiceMessage(args) {
|
|
1046
|
+
const headers = new Headers(args.headers);
|
|
1047
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1048
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1049
|
+
return this.request("POST", "/api/v1/invoices/:id/messages".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1050
|
+
body: args.body,
|
|
1051
|
+
signal: args.signal,
|
|
1052
|
+
headers,
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
async transitionInvoice(args) {
|
|
1056
|
+
const headers = new Headers(args.headers);
|
|
1057
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1058
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1059
|
+
return this.request("POST", "/api/v1/invoices/:id/transitions".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1060
|
+
body: args.body,
|
|
1061
|
+
signal: args.signal,
|
|
1062
|
+
headers,
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
async deliverInvoiceEmail(args) {
|
|
1066
|
+
const headers = new Headers(args.headers);
|
|
1067
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1068
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1069
|
+
return this.request("POST", "/api/v1/invoices/:id/deliveries".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1070
|
+
body: args.body,
|
|
1071
|
+
signal: args.signal,
|
|
1072
|
+
headers,
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
async listInvoicePayments(args) {
|
|
1076
|
+
const headers = new Headers(args.headers);
|
|
1077
|
+
return this.request("GET", "/api/v1/invoices/:id/payments".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1078
|
+
signal: args.signal,
|
|
1079
|
+
headers,
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
async recordInvoicePayment(args) {
|
|
1083
|
+
const headers = new Headers(args.headers);
|
|
1084
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1085
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1086
|
+
return this.request("POST", "/api/v1/invoices/:id/payments".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1087
|
+
body: args.body,
|
|
1088
|
+
signal: args.signal,
|
|
1089
|
+
headers,
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
async updateInvoicePayment(args) {
|
|
1093
|
+
const headers = new Headers(args.headers);
|
|
1094
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1095
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1096
|
+
return this.request("PATCH", "/api/v1/invoices/:id/payments/:paymentId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":paymentId", encodeURIComponent(String(args["paymentId"]))), {
|
|
1097
|
+
body: args.body,
|
|
1098
|
+
signal: args.signal,
|
|
1099
|
+
headers,
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
async deleteInvoicePayment(args) {
|
|
1103
|
+
const headers = new Headers(args.headers);
|
|
1104
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1105
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1106
|
+
return this.request("DELETE", "/api/v1/invoices/:id/payments/:paymentId".replace(":id", encodeURIComponent(String(args["id"]))).replace(":paymentId", encodeURIComponent(String(args["paymentId"]))), {
|
|
1107
|
+
body: args.body,
|
|
1108
|
+
signal: args.signal,
|
|
1109
|
+
headers,
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
async listRetainers(args = {}) {
|
|
1113
|
+
const headers = new Headers(args.headers);
|
|
1114
|
+
return this.request("GET", "/api/v1/retainers", {
|
|
1115
|
+
query: args.query,
|
|
1116
|
+
signal: args.signal,
|
|
1117
|
+
headers,
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
async createRetainer(args) {
|
|
1121
|
+
const headers = new Headers(args.headers);
|
|
1122
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1123
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1124
|
+
return this.request("POST", "/api/v1/retainers", {
|
|
1125
|
+
body: args.body,
|
|
1126
|
+
signal: args.signal,
|
|
1127
|
+
headers,
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
async getRetainer(args) {
|
|
1131
|
+
const headers = new Headers(args.headers);
|
|
1132
|
+
return this.request("GET", "/api/v1/retainers/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1133
|
+
signal: args.signal,
|
|
1134
|
+
headers,
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
async updateRetainer(args) {
|
|
1138
|
+
const headers = new Headers(args.headers);
|
|
1139
|
+
return this.request("PATCH", "/api/v1/retainers/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1140
|
+
body: args.body,
|
|
1141
|
+
signal: args.signal,
|
|
1142
|
+
headers,
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
async listRetainerLedger(args) {
|
|
1146
|
+
const headers = new Headers(args.headers);
|
|
1147
|
+
return this.request("GET", "/api/v1/retainers/:id/ledger".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1148
|
+
signal: args.signal,
|
|
1149
|
+
headers,
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
async appendRetainerLedger(args) {
|
|
1153
|
+
const headers = new Headers(args.headers);
|
|
1154
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1155
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1156
|
+
return this.request("POST", "/api/v1/retainers/:id/ledger".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1157
|
+
body: args.body,
|
|
1158
|
+
signal: args.signal,
|
|
1159
|
+
headers,
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
async drawDownRetainer(args) {
|
|
1163
|
+
const headers = new Headers(args.headers);
|
|
1164
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1165
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1166
|
+
return this.request("POST", "/api/v1/retainers/:id/drawdowns".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1167
|
+
body: args.body,
|
|
1168
|
+
signal: args.signal,
|
|
1169
|
+
headers,
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1172
|
+
async listRecurringInvoices(args = {}) {
|
|
1173
|
+
const headers = new Headers(args.headers);
|
|
1174
|
+
return this.request("GET", "/api/v1/recurring-invoices", {
|
|
1175
|
+
query: args.query,
|
|
1176
|
+
signal: args.signal,
|
|
1177
|
+
headers,
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1180
|
+
async createRecurringInvoice(args) {
|
|
1181
|
+
const headers = new Headers(args.headers);
|
|
1182
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1183
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1184
|
+
return this.request("POST", "/api/v1/recurring-invoices", {
|
|
1185
|
+
body: args.body,
|
|
1186
|
+
signal: args.signal,
|
|
1187
|
+
headers,
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
async getRecurringInvoice(args) {
|
|
1191
|
+
const headers = new Headers(args.headers);
|
|
1192
|
+
return this.request("GET", "/api/v1/recurring-invoices/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1193
|
+
signal: args.signal,
|
|
1194
|
+
headers,
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
async updateRecurringInvoice(args) {
|
|
1198
|
+
const headers = new Headers(args.headers);
|
|
1199
|
+
return this.request("PATCH", "/api/v1/recurring-invoices/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1200
|
+
body: args.body,
|
|
1201
|
+
signal: args.signal,
|
|
1202
|
+
headers,
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
async deleteRecurringInvoice(args) {
|
|
1206
|
+
const headers = new Headers(args.headers);
|
|
1207
|
+
return this.request("DELETE", "/api/v1/recurring-invoices/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1208
|
+
signal: args.signal,
|
|
1209
|
+
headers,
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
async generateRecurringInvoice(args) {
|
|
1213
|
+
const headers = new Headers(args.headers);
|
|
1214
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1215
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1216
|
+
return this.request("POST", "/api/v1/recurring-invoices/:id/generations".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1217
|
+
signal: args.signal,
|
|
1218
|
+
headers,
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
async listInvoiceAttachments(args) {
|
|
1222
|
+
const headers = new Headers(args.headers);
|
|
1223
|
+
return this.request("GET", "/api/v1/invoices/:invoiceId/attachments".replace(":invoiceId", encodeURIComponent(String(args["invoiceId"]))), {
|
|
1224
|
+
signal: args.signal,
|
|
1225
|
+
headers,
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
async createInvoiceAttachment(args) {
|
|
1229
|
+
const headers = new Headers(args.headers);
|
|
1230
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1231
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1232
|
+
return this.request("POST", "/api/v1/invoices/:invoiceId/attachments".replace(":invoiceId", encodeURIComponent(String(args["invoiceId"]))), {
|
|
1233
|
+
body: args.body,
|
|
1234
|
+
multipart: true,
|
|
1235
|
+
signal: args.signal,
|
|
1236
|
+
headers,
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
async getInvoiceAttachment(args) {
|
|
1240
|
+
const headers = new Headers(args.headers);
|
|
1241
|
+
return this.request("GET", "/api/v1/invoices/:invoiceId/attachments/:attachmentId".replace(":invoiceId", encodeURIComponent(String(args["invoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1242
|
+
signal: args.signal,
|
|
1243
|
+
headers,
|
|
1244
|
+
});
|
|
1245
|
+
}
|
|
1246
|
+
async downloadInvoiceAttachment(args) {
|
|
1247
|
+
const headers = new Headers(args.headers);
|
|
1248
|
+
return this.request("GET", "/api/v1/invoices/:invoiceId/attachments/:attachmentId/content".replace(":invoiceId", encodeURIComponent(String(args["invoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1249
|
+
signal: args.signal,
|
|
1250
|
+
binary: true,
|
|
1251
|
+
headers,
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
async listRecurringInvoiceAttachments(args) {
|
|
1255
|
+
const headers = new Headers(args.headers);
|
|
1256
|
+
return this.request("GET", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))), {
|
|
1257
|
+
signal: args.signal,
|
|
1258
|
+
headers,
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
async createRecurringInvoiceAttachment(args) {
|
|
1262
|
+
const headers = new Headers(args.headers);
|
|
1263
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1264
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1265
|
+
return this.request("POST", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))), {
|
|
1266
|
+
body: args.body,
|
|
1267
|
+
multipart: true,
|
|
1268
|
+
signal: args.signal,
|
|
1269
|
+
headers,
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
async getRecurringInvoiceAttachment(args) {
|
|
1273
|
+
const headers = new Headers(args.headers);
|
|
1274
|
+
return this.request("GET", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments/:attachmentId".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1275
|
+
signal: args.signal,
|
|
1276
|
+
headers,
|
|
1277
|
+
});
|
|
1278
|
+
}
|
|
1279
|
+
async downloadRecurringInvoiceAttachment(args) {
|
|
1280
|
+
const headers = new Headers(args.headers);
|
|
1281
|
+
return this.request("GET", "/api/v1/recurring-invoices/:recurringInvoiceId/attachments/:attachmentId/content".replace(":recurringInvoiceId", encodeURIComponent(String(args["recurringInvoiceId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1282
|
+
signal: args.signal,
|
|
1283
|
+
binary: true,
|
|
1284
|
+
headers,
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
async listEstimateAttachments(args) {
|
|
1288
|
+
const headers = new Headers(args.headers);
|
|
1289
|
+
return this.request("GET", "/api/v1/estimates/:estimateId/attachments".replace(":estimateId", encodeURIComponent(String(args["estimateId"]))), {
|
|
1290
|
+
signal: args.signal,
|
|
1291
|
+
headers,
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
async createEstimateAttachment(args) {
|
|
1295
|
+
const headers = new Headers(args.headers);
|
|
1296
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1297
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1298
|
+
return this.request("POST", "/api/v1/estimates/:estimateId/attachments".replace(":estimateId", encodeURIComponent(String(args["estimateId"]))), {
|
|
1299
|
+
body: args.body,
|
|
1300
|
+
multipart: true,
|
|
1301
|
+
signal: args.signal,
|
|
1302
|
+
headers,
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
async getEstimateAttachment(args) {
|
|
1306
|
+
const headers = new Headers(args.headers);
|
|
1307
|
+
return this.request("GET", "/api/v1/estimates/:estimateId/attachments/:attachmentId".replace(":estimateId", encodeURIComponent(String(args["estimateId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1308
|
+
signal: args.signal,
|
|
1309
|
+
headers,
|
|
1310
|
+
});
|
|
1311
|
+
}
|
|
1312
|
+
async downloadEstimateAttachment(args) {
|
|
1313
|
+
const headers = new Headers(args.headers);
|
|
1314
|
+
return this.request("GET", "/api/v1/estimates/:estimateId/attachments/:attachmentId/content".replace(":estimateId", encodeURIComponent(String(args["estimateId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1315
|
+
signal: args.signal,
|
|
1316
|
+
binary: true,
|
|
1317
|
+
headers,
|
|
1318
|
+
});
|
|
1319
|
+
}
|
|
1320
|
+
async listExpenseAttachments(args) {
|
|
1321
|
+
const headers = new Headers(args.headers);
|
|
1322
|
+
return this.request("GET", "/api/v1/expenses/:expenseId/attachments".replace(":expenseId", encodeURIComponent(String(args["expenseId"]))), {
|
|
1323
|
+
signal: args.signal,
|
|
1324
|
+
headers,
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
async createExpenseAttachment(args) {
|
|
1328
|
+
const headers = new Headers(args.headers);
|
|
1329
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1330
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1331
|
+
return this.request("POST", "/api/v1/expenses/:expenseId/attachments".replace(":expenseId", encodeURIComponent(String(args["expenseId"]))), {
|
|
1332
|
+
body: args.body,
|
|
1333
|
+
multipart: true,
|
|
1334
|
+
signal: args.signal,
|
|
1335
|
+
headers,
|
|
1336
|
+
});
|
|
1337
|
+
}
|
|
1338
|
+
async getExpenseAttachment(args) {
|
|
1339
|
+
const headers = new Headers(args.headers);
|
|
1340
|
+
return this.request("GET", "/api/v1/expenses/:expenseId/attachments/:attachmentId".replace(":expenseId", encodeURIComponent(String(args["expenseId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1341
|
+
signal: args.signal,
|
|
1342
|
+
headers,
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
async downloadExpenseAttachment(args) {
|
|
1346
|
+
const headers = new Headers(args.headers);
|
|
1347
|
+
return this.request("GET", "/api/v1/expenses/:expenseId/attachments/:attachmentId/content".replace(":expenseId", encodeURIComponent(String(args["expenseId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1348
|
+
signal: args.signal,
|
|
1349
|
+
binary: true,
|
|
1350
|
+
headers,
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
async listProjectAttachments(args) {
|
|
1354
|
+
const headers = new Headers(args.headers);
|
|
1355
|
+
return this.request("GET", "/api/v1/projects/:projectId/attachments".replace(":projectId", encodeURIComponent(String(args["projectId"]))), {
|
|
1356
|
+
signal: args.signal,
|
|
1357
|
+
headers,
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
async createProjectAttachment(args) {
|
|
1361
|
+
const headers = new Headers(args.headers);
|
|
1362
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1363
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1364
|
+
return this.request("POST", "/api/v1/projects/:projectId/attachments".replace(":projectId", encodeURIComponent(String(args["projectId"]))), {
|
|
1365
|
+
body: args.body,
|
|
1366
|
+
multipart: true,
|
|
1367
|
+
signal: args.signal,
|
|
1368
|
+
headers,
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
async getProjectAttachment(args) {
|
|
1372
|
+
const headers = new Headers(args.headers);
|
|
1373
|
+
return this.request("GET", "/api/v1/projects/:projectId/attachments/:attachmentId".replace(":projectId", encodeURIComponent(String(args["projectId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1374
|
+
signal: args.signal,
|
|
1375
|
+
headers,
|
|
1376
|
+
});
|
|
1377
|
+
}
|
|
1378
|
+
async downloadProjectAttachment(args) {
|
|
1379
|
+
const headers = new Headers(args.headers);
|
|
1380
|
+
return this.request("GET", "/api/v1/projects/:projectId/attachments/:attachmentId/content".replace(":projectId", encodeURIComponent(String(args["projectId"]))).replace(":attachmentId", encodeURIComponent(String(args["attachmentId"]))), {
|
|
1381
|
+
signal: args.signal,
|
|
1382
|
+
binary: true,
|
|
1383
|
+
headers,
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
async getMyHoursReport(args) {
|
|
1387
|
+
const headers = new Headers(args.headers);
|
|
1388
|
+
return this.request("GET", "/api/v1/reports/my-hours", {
|
|
1389
|
+
query: args.query,
|
|
1390
|
+
signal: args.signal,
|
|
1391
|
+
headers,
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1394
|
+
async getTimeReport(args) {
|
|
1395
|
+
const headers = new Headers(args.headers);
|
|
1396
|
+
return this.request("GET", "/api/v1/reports/time", {
|
|
1397
|
+
query: args.query,
|
|
1398
|
+
signal: args.signal,
|
|
1399
|
+
headers,
|
|
1400
|
+
});
|
|
1401
|
+
}
|
|
1402
|
+
async getContractorCostReport(args) {
|
|
1403
|
+
const headers = new Headers(args.headers);
|
|
1404
|
+
return this.request("GET", "/api/v1/reports/contractor", {
|
|
1405
|
+
query: args.query,
|
|
1406
|
+
signal: args.signal,
|
|
1407
|
+
headers,
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
async getProfitabilityReport(args) {
|
|
1411
|
+
const headers = new Headers(args.headers);
|
|
1412
|
+
return this.request("GET", "/api/v1/reports/profitability", {
|
|
1413
|
+
query: args.query,
|
|
1414
|
+
signal: args.signal,
|
|
1415
|
+
headers,
|
|
1416
|
+
});
|
|
1417
|
+
}
|
|
1418
|
+
async getDetailedExpenseReport(args) {
|
|
1419
|
+
const headers = new Headers(args.headers);
|
|
1420
|
+
return this.request("GET", "/api/v1/reports/detailed-expense", {
|
|
1421
|
+
query: args.query,
|
|
1422
|
+
signal: args.signal,
|
|
1423
|
+
headers,
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
async getUninvoicedReport(args) {
|
|
1427
|
+
const headers = new Headers(args.headers);
|
|
1428
|
+
return this.request("GET", "/api/v1/reports/uninvoiced", {
|
|
1429
|
+
query: args.query,
|
|
1430
|
+
signal: args.signal,
|
|
1431
|
+
headers,
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
async getDetailedTimeReport(args) {
|
|
1435
|
+
const headers = new Headers(args.headers);
|
|
1436
|
+
return this.request("GET", "/api/v1/reports/detailed-time", {
|
|
1437
|
+
query: args.query,
|
|
1438
|
+
signal: args.signal,
|
|
1439
|
+
headers,
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
async getClientRollupReport(args) {
|
|
1443
|
+
const headers = new Headers(args.headers);
|
|
1444
|
+
return this.request("GET", "/api/v1/reports/client-rollups/:clientId".replace(":clientId", encodeURIComponent(String(args["clientId"]))), {
|
|
1445
|
+
query: args.query,
|
|
1446
|
+
signal: args.signal,
|
|
1447
|
+
headers,
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
async listProjectBudgetSummaries(args) {
|
|
1451
|
+
const headers = new Headers(args.headers);
|
|
1452
|
+
return this.request("GET", "/api/v1/reports/project-budgets", {
|
|
1453
|
+
query: args.query,
|
|
1454
|
+
signal: args.signal,
|
|
1455
|
+
headers,
|
|
1456
|
+
});
|
|
1457
|
+
}
|
|
1458
|
+
async getProjectBudgetReport(args) {
|
|
1459
|
+
const headers = new Headers(args.headers);
|
|
1460
|
+
return this.request("GET", "/api/v1/reports/project-budget/:projectId".replace(":projectId", encodeURIComponent(String(args["projectId"]))), {
|
|
1461
|
+
query: args.query,
|
|
1462
|
+
signal: args.signal,
|
|
1463
|
+
headers,
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
async listModules(args = {}) {
|
|
1467
|
+
const headers = new Headers(args.headers);
|
|
1468
|
+
return this.request("GET", "/api/v1/admin/modules", {
|
|
1469
|
+
signal: args.signal,
|
|
1470
|
+
headers,
|
|
1471
|
+
});
|
|
1472
|
+
}
|
|
1473
|
+
async updateModule(args) {
|
|
1474
|
+
const headers = new Headers(args.headers);
|
|
1475
|
+
return this.request("PATCH", "/api/v1/admin/modules/:module".replace(":module", encodeURIComponent(String(args["module"]))), {
|
|
1476
|
+
body: args.body,
|
|
1477
|
+
signal: args.signal,
|
|
1478
|
+
headers,
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
async getBackupStatus(args = {}) {
|
|
1482
|
+
const headers = new Headers(args.headers);
|
|
1483
|
+
return this.request("GET", "/api/v1/backup/status", {
|
|
1484
|
+
signal: args.signal,
|
|
1485
|
+
headers,
|
|
1486
|
+
});
|
|
1487
|
+
}
|
|
1488
|
+
async getQuickBooksConnection(args = {}) {
|
|
1489
|
+
const headers = new Headers(args.headers);
|
|
1490
|
+
return this.request("GET", "/api/v1/integrations/quickbooks", {
|
|
1491
|
+
signal: args.signal,
|
|
1492
|
+
headers,
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
async startQuickBooksAuthorization(args = {}) {
|
|
1496
|
+
const headers = new Headers(args.headers);
|
|
1497
|
+
return this.request("POST", "/api/v1/integrations/quickbooks/authorize", {
|
|
1498
|
+
signal: args.signal,
|
|
1499
|
+
headers,
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
async updateQuickBooksSettings(args) {
|
|
1503
|
+
const headers = new Headers(args.headers);
|
|
1504
|
+
return this.request("POST", "/api/v1/integrations/quickbooks/settings", {
|
|
1505
|
+
body: args.body,
|
|
1506
|
+
signal: args.signal,
|
|
1507
|
+
headers,
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1510
|
+
async disconnectQuickBooks(args = {}) {
|
|
1511
|
+
const headers = new Headers(args.headers);
|
|
1512
|
+
return this.request("DELETE", "/api/v1/integrations/quickbooks", {
|
|
1513
|
+
signal: args.signal,
|
|
1514
|
+
headers,
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
async listSsoProvisioningDomains(args = {}) {
|
|
1518
|
+
const headers = new Headers(args.headers);
|
|
1519
|
+
return this.request("GET", "/api/v1/settings/sso-domains", {
|
|
1520
|
+
signal: args.signal,
|
|
1521
|
+
headers,
|
|
1522
|
+
});
|
|
1523
|
+
}
|
|
1524
|
+
async addSsoProvisioningDomain(args) {
|
|
1525
|
+
const headers = new Headers(args.headers);
|
|
1526
|
+
return this.request("POST", "/api/v1/settings/sso-domains", {
|
|
1527
|
+
body: args.body,
|
|
1528
|
+
signal: args.signal,
|
|
1529
|
+
headers,
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1532
|
+
async removeSsoProvisioningDomain(args) {
|
|
1533
|
+
const headers = new Headers(args.headers);
|
|
1534
|
+
return this.request("DELETE", "/api/v1/settings/sso-domains/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1535
|
+
signal: args.signal,
|
|
1536
|
+
headers,
|
|
1537
|
+
});
|
|
1538
|
+
}
|
|
1539
|
+
async verifySsoProvisioningDomain(args) {
|
|
1540
|
+
const headers = new Headers(args.headers);
|
|
1541
|
+
return this.request("POST", "/api/v1/settings/sso-domains/:id/verify".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1542
|
+
signal: args.signal,
|
|
1543
|
+
headers,
|
|
1544
|
+
});
|
|
1545
|
+
}
|
|
1546
|
+
async getBrand(args = {}) {
|
|
1547
|
+
const headers = new Headers(args.headers);
|
|
1548
|
+
return this.request("GET", "/api/v1/brand", {
|
|
1549
|
+
signal: args.signal,
|
|
1550
|
+
headers,
|
|
1551
|
+
});
|
|
1552
|
+
}
|
|
1553
|
+
async listBrandAssets(args = {}) {
|
|
1554
|
+
const headers = new Headers(args.headers);
|
|
1555
|
+
return this.request("GET", "/api/v1/settings/brand-assets", {
|
|
1556
|
+
signal: args.signal,
|
|
1557
|
+
headers,
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1560
|
+
async removeBrandAsset(args) {
|
|
1561
|
+
const headers = new Headers(args.headers);
|
|
1562
|
+
return this.request("DELETE", "/api/v1/settings/brand-assets/:slot".replace(":slot", encodeURIComponent(String(args["slot"]))), {
|
|
1563
|
+
signal: args.signal,
|
|
1564
|
+
headers,
|
|
1565
|
+
});
|
|
1566
|
+
}
|
|
1567
|
+
async getInstanceTheme(args = {}) {
|
|
1568
|
+
const headers = new Headers(args.headers);
|
|
1569
|
+
return this.request("GET", "/api/v1/settings/theme", {
|
|
1570
|
+
signal: args.signal,
|
|
1571
|
+
headers,
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
async setInstanceTheme(args) {
|
|
1575
|
+
const headers = new Headers(args.headers);
|
|
1576
|
+
return this.request("POST", "/api/v1/settings/theme", {
|
|
1577
|
+
body: args.body,
|
|
1578
|
+
signal: args.signal,
|
|
1579
|
+
headers,
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
async clearInstanceTheme(args = {}) {
|
|
1583
|
+
const headers = new Headers(args.headers);
|
|
1584
|
+
return this.request("DELETE", "/api/v1/settings/theme", {
|
|
1585
|
+
signal: args.signal,
|
|
1586
|
+
headers,
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
async listPayoutAccounts(args) {
|
|
1590
|
+
const headers = new Headers(args.headers);
|
|
1591
|
+
return this.request("GET", "/api/v1/users/:id/payout-accounts".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1592
|
+
signal: args.signal,
|
|
1593
|
+
headers,
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
async linkPayoutAccount(args) {
|
|
1597
|
+
const headers = new Headers(args.headers);
|
|
1598
|
+
return this.request("POST", "/api/v1/users/:id/payout-accounts".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1599
|
+
body: args.body,
|
|
1600
|
+
signal: args.signal,
|
|
1601
|
+
headers,
|
|
1602
|
+
});
|
|
1603
|
+
}
|
|
1604
|
+
async detachPayoutAccount(args) {
|
|
1605
|
+
const headers = new Headers(args.headers);
|
|
1606
|
+
return this.request("DELETE", "/api/v1/payout-accounts/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1607
|
+
signal: args.signal,
|
|
1608
|
+
headers,
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
async getBillStatus(args = {}) {
|
|
1612
|
+
const headers = new Headers(args.headers);
|
|
1613
|
+
return this.request("GET", "/api/v1/integrations/bill", {
|
|
1614
|
+
signal: args.signal,
|
|
1615
|
+
headers,
|
|
1616
|
+
});
|
|
1617
|
+
}
|
|
1618
|
+
async getBillClientDelivery(args) {
|
|
1619
|
+
const headers = new Headers(args.headers);
|
|
1620
|
+
return this.request("GET", "/api/v1/integrations/bill/clients/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1621
|
+
signal: args.signal,
|
|
1622
|
+
headers,
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
async setBillClientDelivery(args) {
|
|
1626
|
+
const headers = new Headers(args.headers);
|
|
1627
|
+
return this.request("POST", "/api/v1/integrations/bill/clients/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1628
|
+
body: args.body,
|
|
1629
|
+
signal: args.signal,
|
|
1630
|
+
headers,
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1633
|
+
async getTwoFactorStatus(args = {}) {
|
|
1634
|
+
const headers = new Headers(args.headers);
|
|
1635
|
+
return this.request("GET", "/api/v1/two-factor", {
|
|
1636
|
+
signal: args.signal,
|
|
1637
|
+
headers,
|
|
1638
|
+
});
|
|
1639
|
+
}
|
|
1640
|
+
async beginTwoFactorEnrolment(args = {}) {
|
|
1641
|
+
const headers = new Headers(args.headers);
|
|
1642
|
+
return this.request("POST", "/api/v1/two-factor", {
|
|
1643
|
+
signal: args.signal,
|
|
1644
|
+
headers,
|
|
1645
|
+
});
|
|
1646
|
+
}
|
|
1647
|
+
async confirmTwoFactorEnrolment(args) {
|
|
1648
|
+
const headers = new Headers(args.headers);
|
|
1649
|
+
return this.request("POST", "/api/v1/two-factor/confirm", {
|
|
1650
|
+
body: args.body,
|
|
1651
|
+
signal: args.signal,
|
|
1652
|
+
headers,
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
async disableTwoFactor(args) {
|
|
1656
|
+
const headers = new Headers(args.headers);
|
|
1657
|
+
return this.request("DELETE", "/api/v1/two-factor", {
|
|
1658
|
+
body: args.body,
|
|
1659
|
+
signal: args.signal,
|
|
1660
|
+
headers,
|
|
1661
|
+
});
|
|
1662
|
+
}
|
|
1663
|
+
async addUserEmail(args) {
|
|
1664
|
+
const headers = new Headers(args.headers);
|
|
1665
|
+
return this.request("POST", "/api/v1/users/:id/emails".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1666
|
+
body: args.body,
|
|
1667
|
+
signal: args.signal,
|
|
1668
|
+
headers,
|
|
1669
|
+
});
|
|
1670
|
+
}
|
|
1671
|
+
async getTeamStatus(args = {}) {
|
|
1672
|
+
const headers = new Headers(args.headers);
|
|
1673
|
+
return this.request("GET", "/api/v1/team/status", {
|
|
1674
|
+
signal: args.signal,
|
|
1675
|
+
headers,
|
|
1676
|
+
});
|
|
1677
|
+
}
|
|
1678
|
+
async listTeamPeople(args) {
|
|
1679
|
+
const headers = new Headers(args.headers);
|
|
1680
|
+
return this.request("GET", "/api/v1/team/people", {
|
|
1681
|
+
query: args.query,
|
|
1682
|
+
signal: args.signal,
|
|
1683
|
+
headers,
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
async getTeamPerson(args) {
|
|
1687
|
+
const headers = new Headers(args.headers);
|
|
1688
|
+
return this.request("GET", "/api/v1/team/people/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1689
|
+
signal: args.signal,
|
|
1690
|
+
headers,
|
|
1691
|
+
});
|
|
1692
|
+
}
|
|
1693
|
+
async getTeamCatalog(args = {}) {
|
|
1694
|
+
const headers = new Headers(args.headers);
|
|
1695
|
+
return this.request("GET", "/api/v1/team/catalog", {
|
|
1696
|
+
signal: args.signal,
|
|
1697
|
+
headers,
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1700
|
+
async updateTeamPerson(args) {
|
|
1701
|
+
const headers = new Headers(args.headers);
|
|
1702
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1703
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1704
|
+
return this.request("PATCH", "/api/v1/team/people/:id".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1705
|
+
body: args.body,
|
|
1706
|
+
signal: args.signal,
|
|
1707
|
+
headers,
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1710
|
+
async replaceTeamPersonProjectAssignments(args) {
|
|
1711
|
+
const headers = new Headers(args.headers);
|
|
1712
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1713
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1714
|
+
return this.request("POST", "/api/v1/team/people/:id/project-assignments/replace".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1715
|
+
body: args.body,
|
|
1716
|
+
signal: args.signal,
|
|
1717
|
+
headers,
|
|
1718
|
+
});
|
|
1719
|
+
}
|
|
1720
|
+
async updateTeamPersonNotifications(args) {
|
|
1721
|
+
const headers = new Headers(args.headers);
|
|
1722
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1723
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1724
|
+
return this.request("POST", "/api/v1/team/people/:id/notifications".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1725
|
+
body: args.body,
|
|
1726
|
+
signal: args.signal,
|
|
1727
|
+
headers,
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
1730
|
+
async appendTeamPersonRate(args) {
|
|
1731
|
+
const headers = new Headers(args.headers);
|
|
1732
|
+
if (args["Idempotency-Key"] !== undefined)
|
|
1733
|
+
headers.set("Idempotency-Key", String(args["Idempotency-Key"]));
|
|
1734
|
+
return this.request("POST", "/api/v1/team/people/:id/rates".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1735
|
+
body: args.body,
|
|
1736
|
+
signal: args.signal,
|
|
1737
|
+
headers,
|
|
1738
|
+
});
|
|
1739
|
+
}
|
|
1740
|
+
async listClientAncestors(args) {
|
|
1741
|
+
const headers = new Headers(args.headers);
|
|
1742
|
+
return this.request("GET", "/api/v1/clients/:id/ancestors".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1743
|
+
signal: args.signal,
|
|
1744
|
+
headers,
|
|
1745
|
+
});
|
|
1746
|
+
}
|
|
1747
|
+
async listClientDescendants(args) {
|
|
1748
|
+
const headers = new Headers(args.headers);
|
|
1749
|
+
return this.request("GET", "/api/v1/clients/:id/descendants".replace(":id", encodeURIComponent(String(args["id"]))), {
|
|
1750
|
+
signal: args.signal,
|
|
1751
|
+
headers,
|
|
1752
|
+
});
|
|
1753
|
+
}
|
|
1754
|
+
}
|