@togglhq/mcp 1.13.171 → 1.13.172
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/build/cli.js +2 -2
- package/build/index.js +1 -1
- package/build/{src-H4pmlg1E.js → src-CPogC-C9.js} +961 -712
- package/package.json +1 -1
|
@@ -37336,13 +37336,13 @@ function toFormData(params) {
|
|
|
37336
37336
|
//#endregion
|
|
37337
37337
|
//#region ../focus-queries/dist/project-attachments/requests.ts
|
|
37338
37338
|
async function getProjectAttachments(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
37339
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments`, {
|
|
37339
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments`, {
|
|
37340
37340
|
signal,
|
|
37341
37341
|
searchParams: buildSearchParams$2({ order_by })
|
|
37342
|
-
}).json();
|
|
37342
|
+
})).json();
|
|
37343
37343
|
}
|
|
37344
37344
|
async function createProjectAttachment(httpClient, organization_id, workspace_id, project_id, display_order, file, name, signal) {
|
|
37345
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments`, {
|
|
37345
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments`, {
|
|
37346
37346
|
signal,
|
|
37347
37347
|
timeout: false,
|
|
37348
37348
|
body: toFormData({
|
|
@@ -37350,40 +37350,44 @@ async function createProjectAttachment(httpClient, organization_id, workspace_id
|
|
|
37350
37350
|
file,
|
|
37351
37351
|
name
|
|
37352
37352
|
})
|
|
37353
|
-
}).json();
|
|
37353
|
+
})).json();
|
|
37354
37354
|
}
|
|
37355
37355
|
async function bulkCreateProjectAttachments(httpClient, organization_id, workspace_id, project_id, files, display_orders, names, signal) {
|
|
37356
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments/bulk`, {
|
|
37356
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments/bulk`, {
|
|
37357
37357
|
signal,
|
|
37358
37358
|
body: toFormData({
|
|
37359
37359
|
files,
|
|
37360
37360
|
display_orders,
|
|
37361
37361
|
names
|
|
37362
37362
|
})
|
|
37363
|
-
}).json();
|
|
37363
|
+
})).json();
|
|
37364
37364
|
}
|
|
37365
37365
|
async function updateProjectAttachment(httpClient, organization_id, workspace_id, project_id, attachment_id, data, signal) {
|
|
37366
|
-
|
|
37366
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments/${attachment_id}`, {
|
|
37367
37367
|
signal,
|
|
37368
37368
|
json: data
|
|
37369
|
-
})
|
|
37369
|
+
});
|
|
37370
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37371
|
+
return response.json();
|
|
37370
37372
|
}
|
|
37371
37373
|
async function deleteProjectAttachment(httpClient, organization_id, workspace_id, project_id, attachment_id, signal) {
|
|
37372
|
-
|
|
37374
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments/${attachment_id}`, { signal });
|
|
37375
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37376
|
+
return response.json();
|
|
37373
37377
|
}
|
|
37374
37378
|
async function viewProjectAttachment(httpClient, organization_id, workspace_id, project_id, attachment_id, signal) {
|
|
37375
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments/${attachment_id}/view`, { signal }).blob();
|
|
37379
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments/${attachment_id}/view`, { signal })).blob();
|
|
37376
37380
|
}
|
|
37377
37381
|
//#endregion
|
|
37378
37382
|
//#region ../focus-queries/dist/task-attachments/requests.ts
|
|
37379
37383
|
async function getTaskAttachments(httpClient, organization_id, workspace_id, task_id, { order_by } = {}, signal) {
|
|
37380
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments`, {
|
|
37384
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments`, {
|
|
37381
37385
|
signal,
|
|
37382
37386
|
searchParams: buildSearchParams$2({ order_by })
|
|
37383
|
-
}).json();
|
|
37387
|
+
})).json();
|
|
37384
37388
|
}
|
|
37385
37389
|
async function createTaskAttachment(httpClient, organization_id, workspace_id, task_id, display_order, file, name, signal) {
|
|
37386
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments`, {
|
|
37390
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments`, {
|
|
37387
37391
|
signal,
|
|
37388
37392
|
timeout: false,
|
|
37389
37393
|
body: toFormData({
|
|
@@ -37391,34 +37395,38 @@ async function createTaskAttachment(httpClient, organization_id, workspace_id, t
|
|
|
37391
37395
|
file,
|
|
37392
37396
|
name
|
|
37393
37397
|
})
|
|
37394
|
-
}).json();
|
|
37398
|
+
})).json();
|
|
37395
37399
|
}
|
|
37396
37400
|
async function bulkCreateTaskAttachments(httpClient, organization_id, workspace_id, task_id, files, display_orders, names, signal) {
|
|
37397
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments/bulk`, {
|
|
37401
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments/bulk`, {
|
|
37398
37402
|
signal,
|
|
37399
37403
|
body: toFormData({
|
|
37400
37404
|
files,
|
|
37401
37405
|
display_orders,
|
|
37402
37406
|
names
|
|
37403
37407
|
})
|
|
37404
|
-
}).json();
|
|
37408
|
+
})).json();
|
|
37405
37409
|
}
|
|
37406
37410
|
async function updateTaskAttachment(httpClient, organization_id, workspace_id, task_id, attachment_id, data, signal) {
|
|
37407
|
-
|
|
37411
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments/${attachment_id}`, {
|
|
37408
37412
|
signal,
|
|
37409
37413
|
json: data
|
|
37410
|
-
})
|
|
37414
|
+
});
|
|
37415
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37416
|
+
return response.json();
|
|
37411
37417
|
}
|
|
37412
37418
|
async function deleteTaskAttachment(httpClient, organization_id, workspace_id, task_id, attachment_id, signal) {
|
|
37413
|
-
|
|
37419
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments/${attachment_id}`, { signal });
|
|
37420
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37421
|
+
return response.json();
|
|
37414
37422
|
}
|
|
37415
37423
|
async function viewTaskAttachment(httpClient, organization_id, workspace_id, task_id, attachment_id, signal) {
|
|
37416
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments/${attachment_id}/view`, { signal }).blob();
|
|
37424
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments/${attachment_id}/view`, { signal })).blob();
|
|
37417
37425
|
}
|
|
37418
37426
|
//#endregion
|
|
37419
37427
|
//#region ../focus-queries/dist/clients/requests.ts
|
|
37420
37428
|
async function getClientsClassic(httpClient, workspace_id, { page, per_page, order_by, name, active } = {}, signal) {
|
|
37421
|
-
return await httpClient.get(`workspaces/${workspace_id}/clients`, {
|
|
37429
|
+
return (await httpClient.get(`workspaces/${workspace_id}/clients`, {
|
|
37422
37430
|
signal,
|
|
37423
37431
|
searchParams: buildSearchParams$2({
|
|
37424
37432
|
page,
|
|
@@ -37427,81 +37435,91 @@ async function getClientsClassic(httpClient, workspace_id, { page, per_page, ord
|
|
|
37427
37435
|
name,
|
|
37428
37436
|
active
|
|
37429
37437
|
})
|
|
37430
|
-
}).json();
|
|
37438
|
+
})).json();
|
|
37431
37439
|
}
|
|
37432
37440
|
async function createClient(httpClient, workspace_id, data, signal) {
|
|
37433
|
-
return await httpClient.post(`workspaces/${workspace_id}/clients`, {
|
|
37441
|
+
return (await httpClient.post(`workspaces/${workspace_id}/clients`, {
|
|
37434
37442
|
signal,
|
|
37435
37443
|
json: data
|
|
37436
|
-
}).json();
|
|
37444
|
+
})).json();
|
|
37437
37445
|
}
|
|
37438
37446
|
async function getClient(httpClient, workspace_id, client_id, signal) {
|
|
37439
|
-
return await httpClient.get(`workspaces/${workspace_id}/clients/${client_id}`, { signal }).json();
|
|
37447
|
+
return (await httpClient.get(`workspaces/${workspace_id}/clients/${client_id}`, { signal })).json();
|
|
37440
37448
|
}
|
|
37441
37449
|
async function updateClient(httpClient, workspace_id, client_id, data, signal) {
|
|
37442
|
-
|
|
37450
|
+
const response = await httpClient.put(`workspaces/${workspace_id}/clients/${client_id}`, {
|
|
37443
37451
|
signal,
|
|
37444
37452
|
json: data
|
|
37445
|
-
})
|
|
37453
|
+
});
|
|
37454
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37455
|
+
return response.json();
|
|
37446
37456
|
}
|
|
37447
37457
|
async function deleteClient(httpClient, workspace_id, client_id, signal) {
|
|
37448
|
-
|
|
37458
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/clients/${client_id}`, { signal });
|
|
37459
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37460
|
+
return response.json();
|
|
37449
37461
|
}
|
|
37450
37462
|
async function archiveClient(httpClient, workspace_id, client_id, data, signal) {
|
|
37451
|
-
|
|
37463
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/clients/${client_id}/archive`, {
|
|
37452
37464
|
signal,
|
|
37453
37465
|
json: data
|
|
37454
|
-
})
|
|
37466
|
+
});
|
|
37467
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37468
|
+
return response.json();
|
|
37455
37469
|
}
|
|
37456
37470
|
async function getClientArchivePreview(httpClient, workspace_id, client_id, signal) {
|
|
37457
|
-
return await httpClient.get(`workspaces/${workspace_id}/clients/${client_id}/archive-preview`, { signal }).json();
|
|
37471
|
+
return (await httpClient.get(`workspaces/${workspace_id}/clients/${client_id}/archive-preview`, { signal })).json();
|
|
37458
37472
|
}
|
|
37459
37473
|
async function restoreClient(httpClient, workspace_id, client_id, signal) {
|
|
37460
|
-
|
|
37474
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/clients/${client_id}/restore`, { signal });
|
|
37475
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37476
|
+
return response.json();
|
|
37461
37477
|
}
|
|
37462
37478
|
async function unarchiveClient(httpClient, workspace_id, client_id, signal) {
|
|
37463
|
-
|
|
37479
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/clients/${client_id}/unarchive`, { signal });
|
|
37480
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37481
|
+
return response.json();
|
|
37464
37482
|
}
|
|
37465
37483
|
//#endregion
|
|
37466
37484
|
//#region ../focus-queries/dist/organization/requests.ts
|
|
37467
37485
|
async function createOrganizationGroup(httpClient, organization_id, data, signal) {
|
|
37468
|
-
return await httpClient.post(`organizations/${organization_id}/groups`, {
|
|
37486
|
+
return (await httpClient.post(`organizations/${organization_id}/groups`, {
|
|
37469
37487
|
signal,
|
|
37470
37488
|
json: data
|
|
37471
|
-
}).json();
|
|
37489
|
+
})).json();
|
|
37472
37490
|
}
|
|
37473
37491
|
async function getMyGroups(httpClient, organization_id, signal) {
|
|
37474
|
-
return await httpClient.get(`organizations/${organization_id}/groups/me`, { signal }).json();
|
|
37492
|
+
return (await httpClient.get(`organizations/${organization_id}/groups/me`, { signal })).json();
|
|
37475
37493
|
}
|
|
37476
37494
|
async function updateOrganizationGroup(httpClient, organization_id, group_id, data, signal) {
|
|
37477
|
-
return await httpClient.put(`organizations/${organization_id}/groups/${group_id}`, {
|
|
37495
|
+
return (await httpClient.put(`organizations/${organization_id}/groups/${group_id}`, {
|
|
37478
37496
|
signal,
|
|
37479
37497
|
json: data
|
|
37480
|
-
}).json();
|
|
37498
|
+
})).json();
|
|
37481
37499
|
}
|
|
37482
37500
|
async function deleteOrganizationGroup(httpClient, organization_id, group_id, workspace_id, signal) {
|
|
37483
|
-
return await httpClient.delete(`organizations/${organization_id}/groups/${group_id}`, {
|
|
37501
|
+
return (await httpClient.delete(`organizations/${organization_id}/groups/${group_id}`, {
|
|
37484
37502
|
signal,
|
|
37485
37503
|
searchParams: buildSearchParams$2({ workspace_id })
|
|
37486
|
-
}).json();
|
|
37504
|
+
})).json();
|
|
37487
37505
|
}
|
|
37488
37506
|
async function updateOrganizationGroupUserRole(httpClient, organization_id, group_id, data, signal) {
|
|
37489
|
-
return await httpClient.put(`organizations/${organization_id}/groups/${group_id}/user_role`, {
|
|
37507
|
+
return (await httpClient.put(`organizations/${organization_id}/groups/${group_id}/user_role`, {
|
|
37490
37508
|
signal,
|
|
37491
37509
|
json: data
|
|
37492
|
-
}).json();
|
|
37510
|
+
})).json();
|
|
37493
37511
|
}
|
|
37494
37512
|
async function getOrganizationMemberTags(httpClient, organization_id, { workspace_id }, signal) {
|
|
37495
|
-
return await httpClient.get(`organizations/${organization_id}/member-tags`, {
|
|
37513
|
+
return (await httpClient.get(`organizations/${organization_id}/member-tags`, {
|
|
37496
37514
|
signal,
|
|
37497
37515
|
searchParams: buildSearchParams$2({ workspace_id })
|
|
37498
|
-
}).json();
|
|
37516
|
+
})).json();
|
|
37499
37517
|
}
|
|
37500
37518
|
async function getOrganizationRoles(httpClient, organization_id, signal) {
|
|
37501
|
-
return await httpClient.get(`organizations/${organization_id}/roles`, { signal }).json();
|
|
37519
|
+
return (await httpClient.get(`organizations/${organization_id}/roles`, { signal })).json();
|
|
37502
37520
|
}
|
|
37503
37521
|
async function getOrganizationTeamsClassic(httpClient, organization_id, { workspace_id, page, per_page, sort_dir, filter, query, organization_user_id, group_ids, active_members_only, has_designations }, signal) {
|
|
37504
|
-
return await httpClient.get(`organizations/${organization_id}/teams`, {
|
|
37522
|
+
return (await httpClient.get(`organizations/${organization_id}/teams`, {
|
|
37505
37523
|
signal,
|
|
37506
37524
|
searchParams: buildSearchParams$2({
|
|
37507
37525
|
workspace_id,
|
|
@@ -37515,7 +37533,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
|
|
|
37515
37533
|
active_members_only,
|
|
37516
37534
|
has_designations
|
|
37517
37535
|
})
|
|
37518
|
-
}).json();
|
|
37536
|
+
})).json();
|
|
37519
37537
|
}
|
|
37520
37538
|
async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration, include_designations, include_shared_report_receiver, has_designations } = {}, signal) {
|
|
37521
37539
|
const response = await httpClient.get(`organizations/${organization_id}/users`, {
|
|
@@ -37550,13 +37568,15 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
|
|
|
37550
37568
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
37551
37569
|
}
|
|
37552
37570
|
async function updateOrganizationUserActiveStatus(httpClient, organization_id, organization_user_id, status, signal) {
|
|
37553
|
-
|
|
37571
|
+
const response = await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal });
|
|
37572
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37573
|
+
return response.json();
|
|
37554
37574
|
}
|
|
37555
37575
|
async function createWorkspaceInvitations(httpClient, organization_id, workspace_id, data, signal) {
|
|
37556
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/invitations`, {
|
|
37576
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/invitations`, {
|
|
37557
37577
|
signal,
|
|
37558
37578
|
json: data
|
|
37559
|
-
}).json();
|
|
37579
|
+
})).json();
|
|
37560
37580
|
}
|
|
37561
37581
|
//#endregion
|
|
37562
37582
|
//#region ../focus-queries/out/utils/requests.js
|
|
@@ -37573,7 +37593,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
|
|
|
37573
37593
|
//#endregion
|
|
37574
37594
|
//#region ../focus-queries/dist/tags/requests.ts
|
|
37575
37595
|
async function getTagsClassic(httpClient, workspace_id, { name, page, per_page, order_by, tag_id, include_usage, include_archived, archived } = {}, signal) {
|
|
37576
|
-
return await httpClient.get(`workspaces/${workspace_id}/tags`, {
|
|
37596
|
+
return (await httpClient.get(`workspaces/${workspace_id}/tags`, {
|
|
37577
37597
|
signal,
|
|
37578
37598
|
searchParams: buildSearchParams$2({
|
|
37579
37599
|
name,
|
|
@@ -37585,84 +37605,102 @@ async function getTagsClassic(httpClient, workspace_id, { name, page, per_page,
|
|
|
37585
37605
|
include_archived,
|
|
37586
37606
|
archived
|
|
37587
37607
|
})
|
|
37588
|
-
}).json();
|
|
37608
|
+
})).json();
|
|
37589
37609
|
}
|
|
37590
37610
|
async function createTag(httpClient, workspace_id, data, signal) {
|
|
37591
|
-
return await httpClient.post(`workspaces/${workspace_id}/tags`, {
|
|
37611
|
+
return (await httpClient.post(`workspaces/${workspace_id}/tags`, {
|
|
37592
37612
|
signal,
|
|
37593
37613
|
json: data
|
|
37594
|
-
}).json();
|
|
37614
|
+
})).json();
|
|
37595
37615
|
}
|
|
37596
37616
|
async function bulkCreateTags(httpClient, workspace_id, data, signal) {
|
|
37597
|
-
return await httpClient.post(`workspaces/${workspace_id}/tags/bulk`, {
|
|
37617
|
+
return (await httpClient.post(`workspaces/${workspace_id}/tags/bulk`, {
|
|
37598
37618
|
signal,
|
|
37599
37619
|
json: data
|
|
37600
|
-
}).json();
|
|
37620
|
+
})).json();
|
|
37601
37621
|
}
|
|
37602
37622
|
async function bulkDeleteTags(httpClient, workspace_id, ids, signal) {
|
|
37603
|
-
|
|
37623
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/tags/bulk`, {
|
|
37604
37624
|
signal,
|
|
37605
37625
|
searchParams: buildSearchParams$2({ ids })
|
|
37606
|
-
})
|
|
37626
|
+
});
|
|
37627
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37628
|
+
return response.json();
|
|
37607
37629
|
}
|
|
37608
37630
|
async function bulkArchiveTags(httpClient, workspace_id, data, signal) {
|
|
37609
|
-
|
|
37631
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/tags/bulk/archive`, {
|
|
37610
37632
|
signal,
|
|
37611
37633
|
json: data
|
|
37612
|
-
})
|
|
37634
|
+
});
|
|
37635
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37636
|
+
return response.json();
|
|
37613
37637
|
}
|
|
37614
37638
|
async function bulkRestoreTags(httpClient, workspace_id, data, signal) {
|
|
37615
|
-
|
|
37639
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/tags/bulk/restore`, {
|
|
37616
37640
|
signal,
|
|
37617
37641
|
json: data
|
|
37618
|
-
})
|
|
37642
|
+
});
|
|
37643
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37644
|
+
return response.json();
|
|
37619
37645
|
}
|
|
37620
37646
|
async function bulkUnarchiveTags(httpClient, workspace_id, data, signal) {
|
|
37621
|
-
|
|
37647
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/tags/bulk/unarchive`, {
|
|
37622
37648
|
signal,
|
|
37623
37649
|
json: data
|
|
37624
|
-
})
|
|
37650
|
+
});
|
|
37651
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37652
|
+
return response.json();
|
|
37625
37653
|
}
|
|
37626
37654
|
async function mergeTags(httpClient, workspace_id, data, signal) {
|
|
37627
|
-
|
|
37655
|
+
const response = await httpClient.post(`workspaces/${workspace_id}/tags/merge`, {
|
|
37628
37656
|
signal,
|
|
37629
37657
|
json: data
|
|
37630
|
-
})
|
|
37658
|
+
});
|
|
37659
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37660
|
+
return response.json();
|
|
37631
37661
|
}
|
|
37632
37662
|
async function countTagTimeEntries(httpClient, workspace_id, { ids, match }, signal) {
|
|
37633
|
-
return await httpClient.get(`workspaces/${workspace_id}/tags/time-entries/count`, {
|
|
37663
|
+
return (await httpClient.get(`workspaces/${workspace_id}/tags/time-entries/count`, {
|
|
37634
37664
|
signal,
|
|
37635
37665
|
searchParams: buildSearchParams$2({
|
|
37636
37666
|
ids,
|
|
37637
37667
|
match
|
|
37638
37668
|
})
|
|
37639
|
-
}).json();
|
|
37669
|
+
})).json();
|
|
37640
37670
|
}
|
|
37641
37671
|
async function getTag(httpClient, workspace_id, tag_id, signal) {
|
|
37642
|
-
return await httpClient.get(`workspaces/${workspace_id}/tags/${tag_id}`, { signal }).json();
|
|
37672
|
+
return (await httpClient.get(`workspaces/${workspace_id}/tags/${tag_id}`, { signal })).json();
|
|
37643
37673
|
}
|
|
37644
37674
|
async function updateTag(httpClient, workspace_id, tag_id, data, signal) {
|
|
37645
|
-
return await httpClient.put(`workspaces/${workspace_id}/tags/${tag_id}`, {
|
|
37675
|
+
return (await httpClient.put(`workspaces/${workspace_id}/tags/${tag_id}`, {
|
|
37646
37676
|
signal,
|
|
37647
37677
|
json: data
|
|
37648
|
-
}).json();
|
|
37678
|
+
})).json();
|
|
37649
37679
|
}
|
|
37650
37680
|
async function deleteTag(httpClient, workspace_id, tag_id, signal) {
|
|
37651
|
-
|
|
37681
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/tags/${tag_id}`, { signal });
|
|
37682
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37683
|
+
return response.json();
|
|
37652
37684
|
}
|
|
37653
37685
|
async function archiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
37654
|
-
|
|
37686
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/tags/${tag_id}/archive`, { signal });
|
|
37687
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37688
|
+
return response.json();
|
|
37655
37689
|
}
|
|
37656
37690
|
async function restoreTag(httpClient, workspace_id, tag_id, signal) {
|
|
37657
|
-
|
|
37691
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/tags/${tag_id}/restore`, { signal });
|
|
37692
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37693
|
+
return response.json();
|
|
37658
37694
|
}
|
|
37659
37695
|
async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
37660
|
-
|
|
37696
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/tags/${tag_id}/unarchive`, { signal });
|
|
37697
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37698
|
+
return response.json();
|
|
37661
37699
|
}
|
|
37662
37700
|
//#endregion
|
|
37663
37701
|
//#region ../focus-queries/dist/projects/requests.ts
|
|
37664
37702
|
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, include_picker_parent_group_counts, include_picker_pinned_tasks, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, task_occurrence_window_date, task_occurrence_window_days, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
|
|
37665
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
37703
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
37666
37704
|
signal,
|
|
37667
37705
|
searchParams: buildSearchParams$2({
|
|
37668
37706
|
member_only,
|
|
@@ -37707,52 +37745,62 @@ async function getProjectsClassic(httpClient, organization_id, workspace_id, { m
|
|
|
37707
37745
|
date_overlap_end,
|
|
37708
37746
|
cf_filter
|
|
37709
37747
|
})
|
|
37710
|
-
}).json();
|
|
37748
|
+
})).json();
|
|
37711
37749
|
}
|
|
37712
37750
|
async function createProject(httpClient, organization_id, workspace_id, data, signal) {
|
|
37713
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
37751
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
37714
37752
|
signal,
|
|
37715
37753
|
json: data
|
|
37716
|
-
}).json();
|
|
37754
|
+
})).json();
|
|
37717
37755
|
}
|
|
37718
37756
|
async function bulkDeleteProjects(httpClient, organization_id, workspace_id, ids, signal) {
|
|
37719
|
-
|
|
37757
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/bulk`, {
|
|
37720
37758
|
signal,
|
|
37721
37759
|
searchParams: buildSearchParams$2({ ids })
|
|
37722
|
-
})
|
|
37760
|
+
});
|
|
37761
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37762
|
+
return response.json();
|
|
37723
37763
|
}
|
|
37724
37764
|
async function bulkPartialUpdateProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
37725
|
-
|
|
37765
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/bulk`, {
|
|
37726
37766
|
signal,
|
|
37727
37767
|
json: data
|
|
37728
|
-
})
|
|
37768
|
+
});
|
|
37769
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37770
|
+
return response.json();
|
|
37729
37771
|
}
|
|
37730
37772
|
async function bulkArchiveProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
37731
|
-
|
|
37773
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/bulk/archive`, {
|
|
37732
37774
|
signal,
|
|
37733
37775
|
json: data
|
|
37734
|
-
})
|
|
37776
|
+
});
|
|
37777
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37778
|
+
return response.json();
|
|
37735
37779
|
}
|
|
37736
37780
|
async function bulkRestoreProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
37737
|
-
|
|
37781
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/bulk/restore`, {
|
|
37738
37782
|
signal,
|
|
37739
37783
|
json: data
|
|
37740
|
-
})
|
|
37784
|
+
});
|
|
37785
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37786
|
+
return response.json();
|
|
37741
37787
|
}
|
|
37742
37788
|
async function bulkUnarchiveProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
37743
|
-
|
|
37789
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/bulk/unarchive`, {
|
|
37744
37790
|
signal,
|
|
37745
37791
|
json: data
|
|
37746
|
-
})
|
|
37792
|
+
});
|
|
37793
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37794
|
+
return response.json();
|
|
37747
37795
|
}
|
|
37748
37796
|
async function getBatchProjectsMembers(httpClient, organization_id, workspace_id, { ids }, signal) {
|
|
37749
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/members`, {
|
|
37797
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/members`, {
|
|
37750
37798
|
signal,
|
|
37751
37799
|
searchParams: buildSearchParams$2({ ids })
|
|
37752
|
-
}).json();
|
|
37800
|
+
})).json();
|
|
37753
37801
|
}
|
|
37754
37802
|
async function getProjectTemplatesClassic(httpClient, organization_id, workspace_id, { page, per_page, name, order_by, archived } = {}, signal) {
|
|
37755
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/templates`, {
|
|
37803
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/templates`, {
|
|
37756
37804
|
signal,
|
|
37757
37805
|
searchParams: buildSearchParams$2({
|
|
37758
37806
|
page,
|
|
@@ -37761,68 +37809,76 @@ async function getProjectTemplatesClassic(httpClient, organization_id, workspace
|
|
|
37761
37809
|
order_by,
|
|
37762
37810
|
archived
|
|
37763
37811
|
})
|
|
37764
|
-
}).json();
|
|
37812
|
+
})).json();
|
|
37765
37813
|
}
|
|
37766
37814
|
async function getProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
37767
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}`, { signal }).json();
|
|
37815
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}`, { signal })).json();
|
|
37768
37816
|
}
|
|
37769
37817
|
async function updateProject(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
37770
|
-
|
|
37818
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}`, {
|
|
37771
37819
|
signal,
|
|
37772
37820
|
json: data
|
|
37773
|
-
})
|
|
37821
|
+
});
|
|
37822
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37823
|
+
return response.json();
|
|
37774
37824
|
}
|
|
37775
37825
|
async function deleteProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
37776
|
-
|
|
37826
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}`, { signal });
|
|
37827
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37828
|
+
return response.json();
|
|
37777
37829
|
}
|
|
37778
37830
|
async function patchProject(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
37779
|
-
|
|
37831
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}`, {
|
|
37780
37832
|
signal,
|
|
37781
37833
|
json: data
|
|
37782
|
-
})
|
|
37834
|
+
});
|
|
37835
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37836
|
+
return response.json();
|
|
37783
37837
|
}
|
|
37784
37838
|
async function archiveProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
37785
|
-
|
|
37839
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/archive`, { signal });
|
|
37840
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37841
|
+
return response.json();
|
|
37786
37842
|
}
|
|
37787
37843
|
async function getProjectWithChildrenClassic(httpClient, organization_id, workspace_id, project_id, { page, per_page, order_by } = {}, signal) {
|
|
37788
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/children`, {
|
|
37844
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/children`, {
|
|
37789
37845
|
signal,
|
|
37790
37846
|
searchParams: buildSearchParams$2({
|
|
37791
37847
|
page,
|
|
37792
37848
|
per_page,
|
|
37793
37849
|
order_by
|
|
37794
37850
|
})
|
|
37795
|
-
}).json();
|
|
37851
|
+
})).json();
|
|
37796
37852
|
}
|
|
37797
37853
|
async function completeProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
37798
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/complete`, { signal }).json();
|
|
37854
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/complete`, { signal })).json();
|
|
37799
37855
|
}
|
|
37800
37856
|
async function createProjectFromTemplate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
37801
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/create-from-template`, {
|
|
37857
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/create-from-template`, {
|
|
37802
37858
|
signal,
|
|
37803
37859
|
json: data
|
|
37804
|
-
}).json();
|
|
37860
|
+
})).json();
|
|
37805
37861
|
}
|
|
37806
37862
|
async function createTemplateFromProject(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
37807
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/create-template`, {
|
|
37863
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/create-template`, {
|
|
37808
37864
|
signal,
|
|
37809
37865
|
json: data
|
|
37810
|
-
}).json();
|
|
37866
|
+
})).json();
|
|
37811
37867
|
}
|
|
37812
37868
|
async function duplicateProject(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
37813
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/duplicate`, {
|
|
37869
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/duplicate`, {
|
|
37814
37870
|
signal,
|
|
37815
37871
|
json: data
|
|
37816
|
-
}).json();
|
|
37872
|
+
})).json();
|
|
37817
37873
|
}
|
|
37818
37874
|
async function duplicateTemplate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
37819
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/duplicate-template`, {
|
|
37875
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/duplicate-template`, {
|
|
37820
37876
|
signal,
|
|
37821
37877
|
json: data
|
|
37822
|
-
}).json();
|
|
37878
|
+
})).json();
|
|
37823
37879
|
}
|
|
37824
37880
|
async function getRecurringProjectInstancesClassic(httpClient, organization_id, workspace_id, project_id, { page, per_page, order_by, start_date, end_date, include_rollover } = {}, signal) {
|
|
37825
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances`, {
|
|
37881
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances`, {
|
|
37826
37882
|
signal,
|
|
37827
37883
|
searchParams: buildSearchParams$2({
|
|
37828
37884
|
page,
|
|
@@ -37832,70 +37888,86 @@ async function getRecurringProjectInstancesClassic(httpClient, organization_id,
|
|
|
37832
37888
|
end_date,
|
|
37833
37889
|
include_rollover
|
|
37834
37890
|
})
|
|
37835
|
-
}).json();
|
|
37891
|
+
})).json();
|
|
37836
37892
|
}
|
|
37837
37893
|
async function getRecurringProjectInstance(httpClient, organization_id, workspace_id, project_id, date, signal) {
|
|
37838
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances/${date}`, { signal }).json();
|
|
37894
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances/${date}`, { signal })).json();
|
|
37839
37895
|
}
|
|
37840
37896
|
async function createRecurringProjectInstance(httpClient, organization_id, workspace_id, project_id, date, data, signal) {
|
|
37841
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances/${date}`, {
|
|
37897
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances/${date}`, {
|
|
37842
37898
|
signal,
|
|
37843
37899
|
json: data
|
|
37844
|
-
}).json();
|
|
37900
|
+
})).json();
|
|
37845
37901
|
}
|
|
37846
37902
|
async function makeProjectPublic(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
37847
|
-
|
|
37903
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/make-public`, { signal });
|
|
37904
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37905
|
+
return response.json();
|
|
37848
37906
|
}
|
|
37849
37907
|
async function getProjectsMembers(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
37850
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/members`, { signal }).json();
|
|
37908
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/members`, { signal })).json();
|
|
37851
37909
|
}
|
|
37852
37910
|
async function updateMemberRole(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
37853
|
-
|
|
37911
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/members`, {
|
|
37854
37912
|
signal,
|
|
37855
37913
|
json: data
|
|
37856
|
-
})
|
|
37914
|
+
});
|
|
37915
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37916
|
+
return response.json();
|
|
37857
37917
|
}
|
|
37858
37918
|
async function addProjectMembers(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
37859
|
-
|
|
37919
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/members`, {
|
|
37860
37920
|
signal,
|
|
37861
37921
|
json: data
|
|
37862
|
-
})
|
|
37922
|
+
});
|
|
37923
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37924
|
+
return response.json();
|
|
37863
37925
|
}
|
|
37864
37926
|
async function removeProjectMember(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
37865
|
-
|
|
37927
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/members`, {
|
|
37866
37928
|
signal,
|
|
37867
37929
|
json: data
|
|
37868
|
-
})
|
|
37930
|
+
});
|
|
37931
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37932
|
+
return response.json();
|
|
37869
37933
|
}
|
|
37870
37934
|
async function getProjectWithParentsClassic(httpClient, organization_id, workspace_id, project_id, { page, per_page, order_by } = {}, signal) {
|
|
37871
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/parents`, {
|
|
37935
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/parents`, {
|
|
37872
37936
|
signal,
|
|
37873
37937
|
searchParams: buildSearchParams$2({
|
|
37874
37938
|
page,
|
|
37875
37939
|
per_page,
|
|
37876
37940
|
order_by
|
|
37877
37941
|
})
|
|
37878
|
-
}).json();
|
|
37942
|
+
})).json();
|
|
37879
37943
|
}
|
|
37880
37944
|
async function pinProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
37881
|
-
|
|
37945
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/pinned`, { signal });
|
|
37946
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37947
|
+
return response.json();
|
|
37882
37948
|
}
|
|
37883
37949
|
async function unpinProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
37884
|
-
|
|
37950
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/pinned`, { signal });
|
|
37951
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37952
|
+
return response.json();
|
|
37885
37953
|
}
|
|
37886
37954
|
async function restoreProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
37887
|
-
|
|
37955
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/restore`, { signal });
|
|
37956
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37957
|
+
return response.json();
|
|
37888
37958
|
}
|
|
37889
37959
|
async function unarchiveProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
37890
|
-
|
|
37960
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/unarchive`, { signal });
|
|
37961
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37962
|
+
return response.json();
|
|
37891
37963
|
}
|
|
37892
37964
|
async function uncompleteProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
37893
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/uncomplete`, { signal }).json();
|
|
37965
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/uncomplete`, { signal })).json();
|
|
37894
37966
|
}
|
|
37895
37967
|
//#endregion
|
|
37896
37968
|
//#region ../focus-queries/dist/statuses/requests.ts
|
|
37897
37969
|
async function getStatusesClassic(httpClient, workspace_id, { name, type, page, per_page, order_by } = {}, signal) {
|
|
37898
|
-
return await httpClient.get(`workspaces/${workspace_id}/statuses`, {
|
|
37970
|
+
return (await httpClient.get(`workspaces/${workspace_id}/statuses`, {
|
|
37899
37971
|
signal,
|
|
37900
37972
|
searchParams: buildSearchParams$2({
|
|
37901
37973
|
name,
|
|
@@ -37904,33 +37976,37 @@ async function getStatusesClassic(httpClient, workspace_id, { name, type, page,
|
|
|
37904
37976
|
per_page,
|
|
37905
37977
|
order_by
|
|
37906
37978
|
})
|
|
37907
|
-
}).json();
|
|
37979
|
+
})).json();
|
|
37908
37980
|
}
|
|
37909
37981
|
async function createStatus(httpClient, workspace_id, data, signal) {
|
|
37910
|
-
return await httpClient.post(`workspaces/${workspace_id}/statuses`, {
|
|
37982
|
+
return (await httpClient.post(`workspaces/${workspace_id}/statuses`, {
|
|
37911
37983
|
signal,
|
|
37912
37984
|
json: data
|
|
37913
|
-
}).json();
|
|
37985
|
+
})).json();
|
|
37914
37986
|
}
|
|
37915
37987
|
async function getStatus$1(httpClient, workspace_id, status_id, signal) {
|
|
37916
|
-
return await httpClient.get(`workspaces/${workspace_id}/statuses/${status_id}`, { signal }).json();
|
|
37988
|
+
return (await httpClient.get(`workspaces/${workspace_id}/statuses/${status_id}`, { signal })).json();
|
|
37917
37989
|
}
|
|
37918
37990
|
async function updateStatus(httpClient, workspace_id, status_id, data, signal) {
|
|
37919
|
-
return await httpClient.put(`workspaces/${workspace_id}/statuses/${status_id}`, {
|
|
37991
|
+
return (await httpClient.put(`workspaces/${workspace_id}/statuses/${status_id}`, {
|
|
37920
37992
|
signal,
|
|
37921
37993
|
json: data
|
|
37922
|
-
}).json();
|
|
37994
|
+
})).json();
|
|
37923
37995
|
}
|
|
37924
37996
|
async function deleteStatus(httpClient, workspace_id, status_id, signal) {
|
|
37925
|
-
|
|
37997
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/statuses/${status_id}`, { signal });
|
|
37998
|
+
if ([204, 205].includes(response.status)) return null;
|
|
37999
|
+
return response.json();
|
|
37926
38000
|
}
|
|
37927
38001
|
async function restoreStatuses(httpClient, workspace_id, status_id, signal) {
|
|
37928
|
-
|
|
38002
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/statuses/${status_id}/restore`, { signal });
|
|
38003
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38004
|
+
return response.json();
|
|
37929
38005
|
}
|
|
37930
38006
|
//#endregion
|
|
37931
38007
|
//#region ../focus-queries/dist/tasks/requests.ts
|
|
37932
38008
|
async function getTasksClassic(httpClient, organization_id, workspace_id, { page, per_page, with_entries, pinned, order_by, status_id, toggl_user_id, name, has_time_entries, has_dates, private: private_, archived, active_project, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, occurrence_window_date, occurrence_window_days, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, ids, client_id, include_rates, include_assignees, include_parent_matches, disable_aggregations, cf_filter } = {}, signal) {
|
|
37933
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
|
|
38009
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
|
|
37934
38010
|
signal,
|
|
37935
38011
|
searchParams: buildSearchParams$2({
|
|
37936
38012
|
page,
|
|
@@ -37981,71 +38057,81 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
|
|
|
37981
38057
|
disable_aggregations,
|
|
37982
38058
|
cf_filter
|
|
37983
38059
|
})
|
|
37984
|
-
}).json();
|
|
38060
|
+
})).json();
|
|
37985
38061
|
}
|
|
37986
38062
|
async function createTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
37987
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
|
|
38063
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
|
|
37988
38064
|
signal,
|
|
37989
38065
|
json: data
|
|
37990
|
-
}).json();
|
|
38066
|
+
})).json();
|
|
37991
38067
|
}
|
|
37992
38068
|
async function bulkCreateTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
37993
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk`, {
|
|
38069
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk`, {
|
|
37994
38070
|
signal,
|
|
37995
38071
|
json: data
|
|
37996
|
-
}).json();
|
|
38072
|
+
})).json();
|
|
37997
38073
|
}
|
|
37998
38074
|
async function bulkDeleteTask(httpClient, organization_id, workspace_id, ids, outbound_sync, move_time_to_task_id, signal) {
|
|
37999
|
-
|
|
38075
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk`, {
|
|
38000
38076
|
signal,
|
|
38001
38077
|
searchParams: buildSearchParams$2({
|
|
38002
38078
|
ids,
|
|
38003
38079
|
outbound_sync,
|
|
38004
38080
|
move_time_to_task_id
|
|
38005
38081
|
})
|
|
38006
|
-
})
|
|
38082
|
+
});
|
|
38083
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38084
|
+
return response.json();
|
|
38007
38085
|
}
|
|
38008
38086
|
async function bulkPatchTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
38009
|
-
|
|
38087
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk`, {
|
|
38010
38088
|
signal,
|
|
38011
38089
|
json: data
|
|
38012
|
-
})
|
|
38090
|
+
});
|
|
38091
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38092
|
+
return response.json();
|
|
38013
38093
|
}
|
|
38014
38094
|
async function bulkArchiveTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
38015
|
-
|
|
38095
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk/archive`, {
|
|
38016
38096
|
signal,
|
|
38017
38097
|
json: data
|
|
38018
|
-
})
|
|
38098
|
+
});
|
|
38099
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38100
|
+
return response.json();
|
|
38019
38101
|
}
|
|
38020
38102
|
async function bulkDuplicateTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
38021
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk/duplicate`, {
|
|
38103
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk/duplicate`, {
|
|
38022
38104
|
signal,
|
|
38023
38105
|
json: data
|
|
38024
|
-
}).json();
|
|
38106
|
+
})).json();
|
|
38025
38107
|
}
|
|
38026
38108
|
async function bulkRestoreTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
38027
|
-
|
|
38109
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk/restore`, {
|
|
38028
38110
|
signal,
|
|
38029
38111
|
json: data
|
|
38030
|
-
})
|
|
38112
|
+
});
|
|
38113
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38114
|
+
return response.json();
|
|
38031
38115
|
}
|
|
38032
38116
|
async function bulkUnarchiveTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
38033
|
-
|
|
38117
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk/unarchive`, {
|
|
38034
38118
|
signal,
|
|
38035
38119
|
json: data
|
|
38036
|
-
})
|
|
38120
|
+
});
|
|
38121
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38122
|
+
return response.json();
|
|
38037
38123
|
}
|
|
38038
38124
|
async function getTaskByExternalId(httpClient, organization_id, workspace_id, { source, ext_id }, signal) {
|
|
38039
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/by-external-id`, {
|
|
38125
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/by-external-id`, {
|
|
38040
38126
|
signal,
|
|
38041
38127
|
searchParams: buildSearchParams$2({
|
|
38042
38128
|
source,
|
|
38043
38129
|
ext_id
|
|
38044
38130
|
})
|
|
38045
|
-
}).json();
|
|
38131
|
+
})).json();
|
|
38046
38132
|
}
|
|
38047
38133
|
async function getTasksCalendarEvents(httpClient, organization_id, workspace_id, { date_from, date_to, calendar_event_id, hidden } = {}, signal) {
|
|
38048
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
|
|
38134
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
|
|
38049
38135
|
signal,
|
|
38050
38136
|
searchParams: buildSearchParams$2({
|
|
38051
38137
|
date_from,
|
|
@@ -38053,29 +38139,29 @@ async function getTasksCalendarEvents(httpClient, organization_id, workspace_id,
|
|
|
38053
38139
|
calendar_event_id,
|
|
38054
38140
|
hidden
|
|
38055
38141
|
})
|
|
38056
|
-
}).json();
|
|
38142
|
+
})).json();
|
|
38057
38143
|
}
|
|
38058
38144
|
async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, skip_provider_refresh, signal) {
|
|
38059
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
|
|
38145
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
|
|
38060
38146
|
signal,
|
|
38061
38147
|
searchParams: buildSearchParams$2({
|
|
38062
38148
|
date_from,
|
|
38063
38149
|
date_to,
|
|
38064
38150
|
skip_provider_refresh
|
|
38065
38151
|
})
|
|
38066
|
-
}).json();
|
|
38152
|
+
})).json();
|
|
38067
38153
|
}
|
|
38068
38154
|
async function getTaskDeleteImpact(httpClient, organization_id, workspace_id, { ids, from_recurring_task_id }, signal) {
|
|
38069
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/delete-impact`, {
|
|
38155
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/delete-impact`, {
|
|
38070
38156
|
signal,
|
|
38071
38157
|
searchParams: buildSearchParams$2({
|
|
38072
38158
|
ids,
|
|
38073
38159
|
from_recurring_task_id
|
|
38074
38160
|
})
|
|
38075
|
-
}).json();
|
|
38161
|
+
})).json();
|
|
38076
38162
|
}
|
|
38077
38163
|
async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, unified_search, search, only_me, occurrence_window_date, occurrence_window_days, page, per_page } = {}, signal) {
|
|
38078
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
|
|
38164
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
|
|
38079
38165
|
signal,
|
|
38080
38166
|
searchParams: buildSearchParams$2({
|
|
38081
38167
|
project_id,
|
|
@@ -38090,10 +38176,10 @@ async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace
|
|
|
38090
38176
|
page,
|
|
38091
38177
|
per_page
|
|
38092
38178
|
})
|
|
38093
|
-
}).json();
|
|
38179
|
+
})).json();
|
|
38094
38180
|
}
|
|
38095
38181
|
async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned, unified_search, search, only_me, page, per_page } = {}, signal) {
|
|
38096
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
|
|
38182
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
|
|
38097
38183
|
signal,
|
|
38098
38184
|
searchParams: buildSearchParams$2({
|
|
38099
38185
|
project_id,
|
|
@@ -38105,10 +38191,10 @@ async function getPickerTaskChildrenClassic(httpClient, organization_id, workspa
|
|
|
38105
38191
|
page,
|
|
38106
38192
|
per_page
|
|
38107
38193
|
})
|
|
38108
|
-
}).json();
|
|
38194
|
+
})).json();
|
|
38109
38195
|
}
|
|
38110
38196
|
async function getTasksRecurringInstancesClassic(httpClient, organization_id, workspace_id, { page, per_page, archived, start_date, end_date, dates_overlap_start, dates_overlap_end, recurring_task_ids, team_id, assignee_team_id, assignee_user_id, tag_id, include_assignees } = {}, signal) {
|
|
38111
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/recurring`, {
|
|
38197
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/recurring`, {
|
|
38112
38198
|
signal,
|
|
38113
38199
|
searchParams: buildSearchParams$2({
|
|
38114
38200
|
page,
|
|
@@ -38125,10 +38211,10 @@ async function getTasksRecurringInstancesClassic(httpClient, organization_id, wo
|
|
|
38125
38211
|
tag_id,
|
|
38126
38212
|
include_assignees
|
|
38127
38213
|
})
|
|
38128
|
-
}).json();
|
|
38214
|
+
})).json();
|
|
38129
38215
|
}
|
|
38130
38216
|
async function getStreamTasks(httpClient, organization_id, workspace_id, { with_entries, pinned, order_by, status_id, toggl_user_id, name, include_parent_matches, has_time_entries, has_dates, private: private_, archived, active_project, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, occurrence_window_date, occurrence_window_days, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, ids, client_id, include_assignees, cf_filter } = {}, signal) {
|
|
38131
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
|
|
38217
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
|
|
38132
38218
|
signal,
|
|
38133
38219
|
searchParams: buildSearchParams$2({
|
|
38134
38220
|
with_entries,
|
|
@@ -38175,22 +38261,24 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
|
|
|
38175
38261
|
include_assignees,
|
|
38176
38262
|
cf_filter
|
|
38177
38263
|
})
|
|
38178
|
-
}).json();
|
|
38264
|
+
})).json();
|
|
38179
38265
|
}
|
|
38180
38266
|
async function getTask(httpClient, organization_id, workspace_id, task_id, { include_assignees } = {}, signal) {
|
|
38181
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
38267
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
38182
38268
|
signal,
|
|
38183
38269
|
searchParams: buildSearchParams$2({ include_assignees })
|
|
38184
|
-
}).json();
|
|
38270
|
+
})).json();
|
|
38185
38271
|
}
|
|
38186
38272
|
async function updateTask(httpClient, organization_id, workspace_id, task_id, data, signal) {
|
|
38187
|
-
|
|
38273
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
38188
38274
|
signal,
|
|
38189
38275
|
json: data
|
|
38190
|
-
})
|
|
38276
|
+
});
|
|
38277
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38278
|
+
return response.json();
|
|
38191
38279
|
}
|
|
38192
38280
|
async function deleteTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, scope, outbound_sync, move_time_to_task_id, signal) {
|
|
38193
|
-
|
|
38281
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
38194
38282
|
signal,
|
|
38195
38283
|
searchParams: buildSearchParams$2({
|
|
38196
38284
|
from_recurring_task_id,
|
|
@@ -38198,29 +38286,35 @@ async function deleteTask(httpClient, organization_id, workspace_id, task_id, fr
|
|
|
38198
38286
|
outbound_sync,
|
|
38199
38287
|
move_time_to_task_id
|
|
38200
38288
|
})
|
|
38201
|
-
})
|
|
38289
|
+
});
|
|
38290
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38291
|
+
return response.json();
|
|
38202
38292
|
}
|
|
38203
38293
|
async function patchTask(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, scope, signal) {
|
|
38204
|
-
|
|
38294
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
38205
38295
|
signal,
|
|
38206
38296
|
json: data,
|
|
38207
38297
|
searchParams: buildSearchParams$2({
|
|
38208
38298
|
from_recurring_task_id,
|
|
38209
38299
|
scope
|
|
38210
38300
|
})
|
|
38211
|
-
})
|
|
38301
|
+
});
|
|
38302
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38303
|
+
return response.json();
|
|
38212
38304
|
}
|
|
38213
38305
|
async function archiveTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, scope, signal) {
|
|
38214
|
-
|
|
38306
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/archive`, {
|
|
38215
38307
|
signal,
|
|
38216
38308
|
searchParams: buildSearchParams$2({
|
|
38217
38309
|
from_recurring_task_id,
|
|
38218
38310
|
scope
|
|
38219
38311
|
})
|
|
38220
|
-
})
|
|
38312
|
+
});
|
|
38313
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38314
|
+
return response.json();
|
|
38221
38315
|
}
|
|
38222
38316
|
async function getTaskWithChildrenClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, status_id, archived, source, team_id, assignee_user_id, tag_id, include_assignees } = {}, signal) {
|
|
38223
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/children`, {
|
|
38317
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/children`, {
|
|
38224
38318
|
signal,
|
|
38225
38319
|
searchParams: buildSearchParams$2({
|
|
38226
38320
|
page,
|
|
@@ -38234,16 +38328,18 @@ async function getTaskWithChildrenClassic(httpClient, organization_id, workspace
|
|
|
38234
38328
|
tag_id,
|
|
38235
38329
|
include_assignees
|
|
38236
38330
|
})
|
|
38237
|
-
}).json();
|
|
38331
|
+
})).json();
|
|
38238
38332
|
}
|
|
38239
38333
|
async function createRecurringOccurrence(httpClient, organization_id, workspace_id, task_id, return_occurrence, signal) {
|
|
38240
|
-
|
|
38334
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/occurrences`, {
|
|
38241
38335
|
signal,
|
|
38242
38336
|
searchParams: buildSearchParams$2({ return_occurrence })
|
|
38243
|
-
})
|
|
38337
|
+
});
|
|
38338
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38339
|
+
return response.json();
|
|
38244
38340
|
}
|
|
38245
38341
|
async function getTaskWithParentsClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, status_id, archived, source, team_id, assignee_user_id, tag_id, include_assignees } = {}, signal) {
|
|
38246
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/parents`, {
|
|
38342
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/parents`, {
|
|
38247
38343
|
signal,
|
|
38248
38344
|
searchParams: buildSearchParams$2({
|
|
38249
38345
|
page,
|
|
@@ -38257,33 +38353,41 @@ async function getTaskWithParentsClassic(httpClient, organization_id, workspace_
|
|
|
38257
38353
|
tag_id,
|
|
38258
38354
|
include_assignees
|
|
38259
38355
|
})
|
|
38260
|
-
}).json();
|
|
38356
|
+
})).json();
|
|
38261
38357
|
}
|
|
38262
38358
|
async function pinTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
38263
|
-
|
|
38359
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/pinned`, { signal });
|
|
38360
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38361
|
+
return response.json();
|
|
38264
38362
|
}
|
|
38265
38363
|
async function unpinTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
38266
|
-
|
|
38364
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/pinned`, { signal });
|
|
38365
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38366
|
+
return response.json();
|
|
38267
38367
|
}
|
|
38268
38368
|
async function restoreTask(httpClient, organization_id, workspace_id, task_id, scope, signal) {
|
|
38269
|
-
|
|
38369
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/restore`, {
|
|
38270
38370
|
signal,
|
|
38271
38371
|
searchParams: buildSearchParams$2({ scope })
|
|
38272
|
-
})
|
|
38372
|
+
});
|
|
38373
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38374
|
+
return response.json();
|
|
38273
38375
|
}
|
|
38274
38376
|
async function unarchiveTask(httpClient, organization_id, workspace_id, task_id, scope, signal) {
|
|
38275
|
-
|
|
38377
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/unarchive`, {
|
|
38276
38378
|
signal,
|
|
38277
38379
|
searchParams: buildSearchParams$2({ scope })
|
|
38278
|
-
})
|
|
38380
|
+
});
|
|
38381
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38382
|
+
return response.json();
|
|
38279
38383
|
}
|
|
38280
38384
|
//#endregion
|
|
38281
38385
|
//#region ../focus-queries/dist/time-entries/requests.ts
|
|
38282
38386
|
async function getOrganizationTimeEntryPresence(httpClient, organization_id, signal) {
|
|
38283
|
-
return await httpClient.get(`organizations/${organization_id}/time-entries/presence`, { signal }).json();
|
|
38387
|
+
return (await httpClient.get(`organizations/${organization_id}/time-entries/presence`, { signal })).json();
|
|
38284
38388
|
}
|
|
38285
38389
|
async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived, include_subtasks } = {}, signal) {
|
|
38286
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
|
|
38390
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
|
|
38287
38391
|
signal,
|
|
38288
38392
|
searchParams: buildSearchParams$2({
|
|
38289
38393
|
page,
|
|
@@ -38293,78 +38397,88 @@ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, wor
|
|
|
38293
38397
|
archived,
|
|
38294
38398
|
include_subtasks
|
|
38295
38399
|
})
|
|
38296
|
-
}).json();
|
|
38400
|
+
})).json();
|
|
38297
38401
|
}
|
|
38298
38402
|
async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, return_occurrence, signal) {
|
|
38299
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
|
|
38403
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
|
|
38300
38404
|
signal,
|
|
38301
38405
|
json: data,
|
|
38302
38406
|
searchParams: buildSearchParams$2({
|
|
38303
38407
|
from_recurring_task_id,
|
|
38304
38408
|
return_occurrence
|
|
38305
38409
|
})
|
|
38306
|
-
}).json();
|
|
38410
|
+
})).json();
|
|
38307
38411
|
}
|
|
38308
38412
|
async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, from_recurring_task_id, return_occurrence, signal) {
|
|
38309
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries`, {
|
|
38413
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries`, {
|
|
38310
38414
|
signal,
|
|
38311
38415
|
json: data,
|
|
38312
38416
|
searchParams: buildSearchParams$2({
|
|
38313
38417
|
from_recurring_task_id,
|
|
38314
38418
|
return_occurrence
|
|
38315
38419
|
})
|
|
38316
|
-
}).json();
|
|
38420
|
+
})).json();
|
|
38317
38421
|
}
|
|
38318
38422
|
async function getBatchTimeEntriesWithOrg(httpClient, organization_id, workspace_id, { ids }, signal) {
|
|
38319
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/batch`, {
|
|
38423
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/batch`, {
|
|
38320
38424
|
signal,
|
|
38321
38425
|
searchParams: buildSearchParams$2({ ids })
|
|
38322
|
-
}).json();
|
|
38426
|
+
})).json();
|
|
38323
38427
|
}
|
|
38324
38428
|
async function bulkCreateTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38325
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk`, {
|
|
38429
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk`, {
|
|
38326
38430
|
signal,
|
|
38327
38431
|
json: data
|
|
38328
|
-
}).json();
|
|
38432
|
+
})).json();
|
|
38329
38433
|
}
|
|
38330
38434
|
async function bulkDeleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, ids, signal) {
|
|
38331
|
-
|
|
38435
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk`, {
|
|
38332
38436
|
signal,
|
|
38333
38437
|
searchParams: buildSearchParams$2({ ids })
|
|
38334
|
-
})
|
|
38438
|
+
});
|
|
38439
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38440
|
+
return response.json();
|
|
38335
38441
|
}
|
|
38336
38442
|
async function bulkPartialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38337
|
-
|
|
38443
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk`, {
|
|
38338
38444
|
signal,
|
|
38339
38445
|
json: data
|
|
38340
|
-
})
|
|
38446
|
+
});
|
|
38447
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38448
|
+
return response.json();
|
|
38341
38449
|
}
|
|
38342
38450
|
async function bulkEditTimeEntriesWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38343
|
-
|
|
38451
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk-edit`, {
|
|
38344
38452
|
signal,
|
|
38345
38453
|
json: data
|
|
38346
|
-
})
|
|
38454
|
+
});
|
|
38455
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38456
|
+
return response.json();
|
|
38347
38457
|
}
|
|
38348
38458
|
async function bulkRestoreTimeEntryWithOrg(httpClient, organization_id, workspace_id, ids, signal) {
|
|
38349
|
-
|
|
38459
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk/restore`, {
|
|
38350
38460
|
signal,
|
|
38351
38461
|
searchParams: buildSearchParams$2({ ids })
|
|
38352
|
-
})
|
|
38462
|
+
});
|
|
38463
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38464
|
+
return response.json();
|
|
38353
38465
|
}
|
|
38354
38466
|
async function setDayDurationWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38355
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/day-duration`, {
|
|
38467
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/day-duration`, {
|
|
38356
38468
|
signal,
|
|
38357
38469
|
json: data
|
|
38358
|
-
}).json();
|
|
38470
|
+
})).json();
|
|
38359
38471
|
}
|
|
38360
38472
|
async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38361
|
-
|
|
38473
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/day-duration/bulk`, {
|
|
38362
38474
|
signal,
|
|
38363
38475
|
json: data
|
|
38364
|
-
})
|
|
38476
|
+
});
|
|
38477
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38478
|
+
return response.json();
|
|
38365
38479
|
}
|
|
38366
38480
|
async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, project_id, type, order_by, archived, include_taskless, project_completed, project_draft, expand_calendar_event }, signal) {
|
|
38367
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
|
|
38481
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
|
|
38368
38482
|
signal,
|
|
38369
38483
|
searchParams: buildSearchParams$2({
|
|
38370
38484
|
date_from,
|
|
@@ -38380,83 +38494,97 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
|
|
|
38380
38494
|
project_draft,
|
|
38381
38495
|
expand_calendar_event
|
|
38382
38496
|
})
|
|
38383
|
-
}).json();
|
|
38497
|
+
})).json();
|
|
38384
38498
|
}
|
|
38385
38499
|
async function syncTimeEntry(httpClient, organization_id, workspace_id, client_uuid, data, signal) {
|
|
38386
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/sync/${client_uuid}`, {
|
|
38500
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/sync/${client_uuid}`, {
|
|
38387
38501
|
signal,
|
|
38388
38502
|
json: data
|
|
38389
|
-
}).json();
|
|
38503
|
+
})).json();
|
|
38390
38504
|
}
|
|
38391
38505
|
async function getTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
38392
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
|
|
38506
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal })).json();
|
|
38393
38507
|
}
|
|
38394
38508
|
async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
|
|
38395
|
-
|
|
38509
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
|
|
38396
38510
|
signal,
|
|
38397
38511
|
json: data,
|
|
38398
38512
|
searchParams: buildSearchParams$2({
|
|
38399
38513
|
from_recurring_task_id,
|
|
38400
38514
|
return_occurrence
|
|
38401
38515
|
})
|
|
38402
|
-
})
|
|
38516
|
+
});
|
|
38517
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38518
|
+
return response.json();
|
|
38403
38519
|
}
|
|
38404
38520
|
async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, from_recurring_task_id, return_occurrence, signal) {
|
|
38405
|
-
|
|
38521
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
|
|
38406
38522
|
signal,
|
|
38407
38523
|
searchParams: buildSearchParams$2({
|
|
38408
38524
|
from_recurring_task_id,
|
|
38409
38525
|
return_occurrence
|
|
38410
38526
|
})
|
|
38411
|
-
})
|
|
38527
|
+
});
|
|
38528
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38529
|
+
return response.json();
|
|
38412
38530
|
}
|
|
38413
38531
|
async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
|
|
38414
|
-
|
|
38532
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
|
|
38415
38533
|
signal,
|
|
38416
38534
|
json: data,
|
|
38417
38535
|
searchParams: buildSearchParams$2({
|
|
38418
38536
|
from_recurring_task_id,
|
|
38419
38537
|
return_occurrence
|
|
38420
38538
|
})
|
|
38421
|
-
})
|
|
38539
|
+
});
|
|
38540
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38541
|
+
return response.json();
|
|
38422
38542
|
}
|
|
38423
38543
|
async function archiveTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
38424
|
-
|
|
38544
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}/archive`, { signal });
|
|
38545
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38546
|
+
return response.json();
|
|
38425
38547
|
}
|
|
38426
38548
|
async function logPlannedTimeWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
|
|
38427
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}/log`, {
|
|
38549
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}/log`, {
|
|
38428
38550
|
signal,
|
|
38429
38551
|
json: data
|
|
38430
|
-
}).json();
|
|
38552
|
+
})).json();
|
|
38431
38553
|
}
|
|
38432
38554
|
async function restoreTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
38433
|
-
|
|
38555
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}/restore`, { signal });
|
|
38556
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38557
|
+
return response.json();
|
|
38434
38558
|
}
|
|
38435
38559
|
async function unarchiveTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
38436
|
-
|
|
38560
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}/unarchive`, { signal });
|
|
38561
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38562
|
+
return response.json();
|
|
38437
38563
|
}
|
|
38438
38564
|
//#endregion
|
|
38439
38565
|
//#region ../focus-queries/dist/tracking/requests.ts
|
|
38440
38566
|
async function getTrackedTimeEntryWithOrg(httpClient, organization_id, workspace_id, signal) {
|
|
38441
|
-
|
|
38567
|
+
const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/current`, { signal });
|
|
38568
|
+
if ([204, 205].includes(response.status)) return null;
|
|
38569
|
+
return response.json();
|
|
38442
38570
|
}
|
|
38443
38571
|
async function startTrackingWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38444
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/start`, {
|
|
38572
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/start`, {
|
|
38445
38573
|
signal,
|
|
38446
38574
|
json: data
|
|
38447
|
-
}).json();
|
|
38575
|
+
})).json();
|
|
38448
38576
|
}
|
|
38449
38577
|
async function startTrackingFromDescriptionWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38450
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/start-from-description`, {
|
|
38578
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/start-from-description`, {
|
|
38451
38579
|
signal,
|
|
38452
38580
|
json: data
|
|
38453
|
-
}).json();
|
|
38581
|
+
})).json();
|
|
38454
38582
|
}
|
|
38455
38583
|
async function stopTrackingWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38456
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/stop`, {
|
|
38584
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/stop`, {
|
|
38457
38585
|
signal,
|
|
38458
38586
|
json: data
|
|
38459
|
-
}).json();
|
|
38587
|
+
})).json();
|
|
38460
38588
|
}
|
|
38461
38589
|
const GroupAssignmentRequestSchema = /* @__PURE__ */ object$2({
|
|
38462
38590
|
id: /* @__PURE__ */ number$2(),
|
|
@@ -38673,7 +38801,7 @@ async function deleteMyWorkingHours(httpClient, organization_id, data, signal) {
|
|
|
38673
38801
|
return response.json();
|
|
38674
38802
|
}
|
|
38675
38803
|
//#endregion
|
|
38676
|
-
//#region ../cli-core/build/focus-client-
|
|
38804
|
+
//#region ../cli-core/build/focus-client-VwA-5Lda.js
|
|
38677
38805
|
/** Request header the API reads to attribute traffic to MCP or CLI. */
|
|
38678
38806
|
const TOGGL_CLIENT_HEADER = "X-Toggl-Client";
|
|
38679
38807
|
/** Header the Focus API reads for analytics and presence `platform_origin`. */
|
|
@@ -38842,6 +38970,7 @@ async function downloadAttachment(ctx, scope, params) {
|
|
|
38842
38970
|
const TimeOffMeUpdateInputSchema$1 = /* @__PURE__ */ intersect([/* @__PURE__ */ object$2({ timeoff_id: /* @__PURE__ */ number$2() }), PublicMeEntryRequestSchema]);
|
|
38843
38971
|
const TaskPatchSchema = withCustomFieldValues(/* @__PURE__ */ partial(TaskPartialUpdatePayloadSchema));
|
|
38844
38972
|
const ProjectPatchSchema = withCustomFieldValues(/* @__PURE__ */ partial(ProjectPartialUpdatePayloadSchema));
|
|
38973
|
+
const NO_CONTENT_AS_NULL = { parseJson: (text) => text === "" ? null : JSON.parse(text) };
|
|
38845
38974
|
const BulkIdsSchema = /* @__PURE__ */ object$2({
|
|
38846
38975
|
ids: /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()), /* @__PURE__ */ minLength$1(1)),
|
|
38847
38976
|
outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
@@ -38934,7 +39063,7 @@ var FocusClient = class {
|
|
|
38934
39063
|
if (!request.headers.get("Content-Type")?.startsWith("multipart/form-data")) request.headers.set("Content-Type", "application/json");
|
|
38935
39064
|
applyTogglAttributionHeaders(request.headers, this.clientSurface);
|
|
38936
39065
|
}
|
|
38937
|
-
});
|
|
39066
|
+
}).extend(NO_CONTENT_AS_NULL);
|
|
38938
39067
|
const orgBase = accountsOrgApiBaseUrl(config.accountsApiUrl);
|
|
38939
39068
|
this.orgHttp = createHttpClient({
|
|
38940
39069
|
base: orgBase,
|
|
@@ -38945,7 +39074,7 @@ var FocusClient = class {
|
|
|
38945
39074
|
request.headers.set("Content-Type", "application/json");
|
|
38946
39075
|
applyTogglAttributionHeaders(request.headers, this.clientSurface);
|
|
38947
39076
|
}
|
|
38948
|
-
});
|
|
39077
|
+
}).extend(NO_CONTENT_AS_NULL);
|
|
38949
39078
|
this.timeOffMeHttp = createHttpClient({
|
|
38950
39079
|
base: orgBase,
|
|
38951
39080
|
maxRetries: 0,
|
|
@@ -38956,7 +39085,7 @@ var FocusClient = class {
|
|
|
38956
39085
|
request.headers.set("X-Toggl-Product", "focus");
|
|
38957
39086
|
applyTogglAttributionHeaders(request.headers, this.clientSurface);
|
|
38958
39087
|
}
|
|
38959
|
-
});
|
|
39088
|
+
}).extend(NO_CONTENT_AS_NULL);
|
|
38960
39089
|
this.sharedDataHttp = createHttpClient({
|
|
38961
39090
|
base: accountsSharedDataApiBaseUrl(config.accountsApiUrl),
|
|
38962
39091
|
maxRetries: 0,
|
|
@@ -38966,7 +39095,7 @@ var FocusClient = class {
|
|
|
38966
39095
|
request.headers.set("Content-Type", "application/json");
|
|
38967
39096
|
applyTogglAttributionHeaders(request.headers, this.clientSurface);
|
|
38968
39097
|
}
|
|
38969
|
-
});
|
|
39098
|
+
}).extend(NO_CONTENT_AS_NULL);
|
|
38970
39099
|
}
|
|
38971
39100
|
get httpClient() {
|
|
38972
39101
|
return this.http;
|
|
@@ -42839,124 +42968,130 @@ function formatValibotError(issues, maxLength = MAX_ERROR_LENGTH) {
|
|
|
42839
42968
|
//#endregion
|
|
42840
42969
|
//#region ../focus-queries/dist/ai/requests.ts
|
|
42841
42970
|
async function getAiConversations(httpClient, organization_id, workspace_id, { search, before, limit } = {}, signal) {
|
|
42842
|
-
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations`, {
|
|
42971
|
+
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations`, {
|
|
42843
42972
|
signal,
|
|
42844
42973
|
searchParams: buildSearchParams$2({
|
|
42845
42974
|
search,
|
|
42846
42975
|
before,
|
|
42847
42976
|
limit
|
|
42848
42977
|
})
|
|
42849
|
-
}).json();
|
|
42978
|
+
})).json();
|
|
42850
42979
|
}
|
|
42851
42980
|
async function uploadAiAttachment(httpClient, organization_id, workspace_id, conversation_id, file, signal) {
|
|
42852
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/attachments`, {
|
|
42981
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/attachments`, {
|
|
42853
42982
|
signal,
|
|
42854
42983
|
body: toFormData({ file })
|
|
42855
|
-
}).json();
|
|
42984
|
+
})).json();
|
|
42856
42985
|
}
|
|
42857
42986
|
async function removeAiAttachment(httpClient, organization_id, workspace_id, conversation_id, attachment_id, signal) {
|
|
42858
|
-
|
|
42987
|
+
const response = await httpClient.delete(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/attachments/${attachment_id}`, { signal });
|
|
42988
|
+
if ([204, 205].includes(response.status)) return null;
|
|
42989
|
+
return response.json();
|
|
42859
42990
|
}
|
|
42860
42991
|
async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit } = {}, signal) {
|
|
42861
|
-
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
42992
|
+
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
42862
42993
|
signal,
|
|
42863
42994
|
searchParams: buildSearchParams$2({ limit })
|
|
42864
|
-
}).json();
|
|
42995
|
+
})).json();
|
|
42865
42996
|
}
|
|
42866
42997
|
async function sendAiMessage(httpClient, organization_id, workspace_id, conversation_id, data, signal) {
|
|
42867
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
42998
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
42868
42999
|
signal,
|
|
42869
43000
|
json: data
|
|
42870
|
-
}).json();
|
|
43001
|
+
})).json();
|
|
42871
43002
|
}
|
|
42872
43003
|
async function nextAiActions(httpClient, organization_id, workspace_id, conversation_id, message_id, signal) {
|
|
42873
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/next`, { signal }).json();
|
|
43004
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/next`, { signal })).json();
|
|
42874
43005
|
}
|
|
42875
43006
|
async function acceptAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
42876
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/accept`, { signal }).json();
|
|
43007
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/accept`, { signal })).json();
|
|
42877
43008
|
}
|
|
42878
43009
|
async function applyAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
42879
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, { signal }).json();
|
|
43010
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, { signal })).json();
|
|
42880
43011
|
}
|
|
42881
43012
|
async function discardAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
42882
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, { signal }).json();
|
|
43013
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, { signal })).json();
|
|
42883
43014
|
}
|
|
42884
43015
|
async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
42885
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, { signal }).json();
|
|
43016
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, { signal })).json();
|
|
42886
43017
|
}
|
|
42887
43018
|
async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
|
|
42888
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
|
|
43019
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
|
|
42889
43020
|
signal,
|
|
42890
43021
|
json: data
|
|
42891
|
-
}).json();
|
|
43022
|
+
})).json();
|
|
42892
43023
|
}
|
|
42893
43024
|
async function dayRebuildName(httpClient, organization_id, workspace_id, data, signal) {
|
|
42894
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/name`, {
|
|
43025
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/name`, {
|
|
42895
43026
|
signal,
|
|
42896
43027
|
json: data
|
|
42897
|
-
}).json();
|
|
43028
|
+
})).json();
|
|
42898
43029
|
}
|
|
42899
43030
|
async function dayRebuildProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
42900
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/projects`, {
|
|
43031
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/projects`, {
|
|
42901
43032
|
signal,
|
|
42902
43033
|
json: data
|
|
42903
|
-
}).json();
|
|
43034
|
+
})).json();
|
|
42904
43035
|
}
|
|
42905
43036
|
async function dayRebuildReadConnected(httpClient, organization_id, workspace_id, data, signal) {
|
|
42906
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/read-connected`, {
|
|
43037
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/read-connected`, {
|
|
42907
43038
|
signal,
|
|
42908
43039
|
json: data
|
|
42909
|
-
}).json();
|
|
43040
|
+
})).json();
|
|
42910
43041
|
}
|
|
42911
43042
|
async function searchAi(httpClient, organization_id, workspace_id, { q }, signal) {
|
|
42912
|
-
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
43043
|
+
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
42913
43044
|
signal,
|
|
42914
43045
|
searchParams: buildSearchParams$2({ q })
|
|
42915
|
-
}).json();
|
|
43046
|
+
})).json();
|
|
42916
43047
|
}
|
|
42917
43048
|
async function getAiSources(httpClient, organization_id, workspace_id, signal) {
|
|
42918
|
-
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources`, { signal }).json();
|
|
43049
|
+
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources`, { signal })).json();
|
|
42919
43050
|
}
|
|
42920
43051
|
async function disconnectAiSource(httpClient, organization_id, workspace_id, source_id, signal) {
|
|
42921
|
-
|
|
43052
|
+
const response = await httpClient.delete(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources/${source_id}`, { signal });
|
|
43053
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43054
|
+
return response.json();
|
|
42922
43055
|
}
|
|
42923
43056
|
async function finishAiSource(httpClient, organization_id, workspace_id, source_id, data, signal) {
|
|
42924
|
-
|
|
43057
|
+
const response = await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources/${source_id}/callback`, {
|
|
42925
43058
|
signal,
|
|
42926
43059
|
json: data
|
|
42927
|
-
})
|
|
43060
|
+
});
|
|
43061
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43062
|
+
return response.json();
|
|
42928
43063
|
}
|
|
42929
43064
|
async function connectAiSource(httpClient, organization_id, workspace_id, source_id, data, signal) {
|
|
42930
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources/${source_id}/connect`, {
|
|
43065
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources/${source_id}/connect`, {
|
|
42931
43066
|
signal,
|
|
42932
43067
|
json: data
|
|
42933
|
-
}).json();
|
|
43068
|
+
})).json();
|
|
42934
43069
|
}
|
|
42935
43070
|
async function runAiView(httpClient, organization_id, workspace_id, data, signal) {
|
|
42936
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
|
|
43071
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
|
|
42937
43072
|
signal,
|
|
42938
43073
|
json: data
|
|
42939
|
-
}).json();
|
|
43074
|
+
})).json();
|
|
42940
43075
|
}
|
|
42941
43076
|
//#endregion
|
|
42942
43077
|
//#region ../focus-queries/dist/archived-clients/requests.ts
|
|
42943
43078
|
async function getArchivedClientsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name } = {}, signal) {
|
|
42944
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients`, {
|
|
43079
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients`, {
|
|
42945
43080
|
signal,
|
|
42946
43081
|
searchParams: buildSearchParams$2({
|
|
42947
43082
|
page,
|
|
42948
43083
|
per_page,
|
|
42949
43084
|
name
|
|
42950
43085
|
})
|
|
42951
|
-
}).json();
|
|
43086
|
+
})).json();
|
|
42952
43087
|
}
|
|
42953
43088
|
async function getArchivedClient(httpClient, organization_id, workspace_id, client_id, signal) {
|
|
42954
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients/${client_id}`, { signal }).json();
|
|
43089
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients/${client_id}`, { signal })).json();
|
|
42955
43090
|
}
|
|
42956
43091
|
//#endregion
|
|
42957
43092
|
//#region ../focus-queries/dist/archived-projects/requests.ts
|
|
42958
43093
|
async function getArchivedProjectsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, client_id } = {}, signal) {
|
|
42959
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects`, {
|
|
43094
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects`, {
|
|
42960
43095
|
signal,
|
|
42961
43096
|
searchParams: buildSearchParams$2({
|
|
42962
43097
|
page,
|
|
@@ -42964,15 +43099,15 @@ async function getArchivedProjectsClassic(httpClient, organization_id, workspace
|
|
|
42964
43099
|
name,
|
|
42965
43100
|
client_id
|
|
42966
43101
|
})
|
|
42967
|
-
}).json();
|
|
43102
|
+
})).json();
|
|
42968
43103
|
}
|
|
42969
43104
|
async function getArchivedProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
42970
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects/${project_id}`, { signal }).json();
|
|
43105
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects/${project_id}`, { signal })).json();
|
|
42971
43106
|
}
|
|
42972
43107
|
//#endregion
|
|
42973
43108
|
//#region ../focus-queries/dist/archived-tasks/requests.ts
|
|
42974
43109
|
async function getArchivedTasksClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, project_id } = {}, signal) {
|
|
42975
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks`, {
|
|
43110
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks`, {
|
|
42976
43111
|
signal,
|
|
42977
43112
|
searchParams: buildSearchParams$2({
|
|
42978
43113
|
page,
|
|
@@ -42980,15 +43115,15 @@ async function getArchivedTasksClassic(httpClient, organization_id, workspace_id
|
|
|
42980
43115
|
name,
|
|
42981
43116
|
project_id
|
|
42982
43117
|
})
|
|
42983
|
-
}).json();
|
|
43118
|
+
})).json();
|
|
42984
43119
|
}
|
|
42985
43120
|
async function getArchivedTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
42986
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks/${task_id}`, { signal }).json();
|
|
43121
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks/${task_id}`, { signal })).json();
|
|
42987
43122
|
}
|
|
42988
43123
|
//#endregion
|
|
42989
43124
|
//#region ../focus-queries/dist/archived-time-entries/requests.ts
|
|
42990
43125
|
async function getArchivedTimeEntriesClassic(httpClient, organization_id, workspace_id, { date_from, date_to, page = 1, per_page, task_id, project_id }, signal) {
|
|
42991
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries`, {
|
|
43126
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries`, {
|
|
42992
43127
|
signal,
|
|
42993
43128
|
searchParams: buildSearchParams$2({
|
|
42994
43129
|
date_from,
|
|
@@ -42998,20 +43133,20 @@ async function getArchivedTimeEntriesClassic(httpClient, organization_id, worksp
|
|
|
42998
43133
|
task_id,
|
|
42999
43134
|
project_id
|
|
43000
43135
|
})
|
|
43001
|
-
}).json();
|
|
43136
|
+
})).json();
|
|
43002
43137
|
}
|
|
43003
43138
|
async function getArchivedTimeEntry(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
43004
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries/${time_entry_id}`, { signal }).json();
|
|
43139
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries/${time_entry_id}`, { signal })).json();
|
|
43005
43140
|
}
|
|
43006
43141
|
//#endregion
|
|
43007
43142
|
//#region ../focus-queries/dist/attachments/requests.ts
|
|
43008
43143
|
async function getWorkspaceAttachmentStorage(httpClient, organization_id, workspace_id, signal) {
|
|
43009
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/attachments/storage`, { signal }).json();
|
|
43144
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/attachments/storage`, { signal })).json();
|
|
43010
43145
|
}
|
|
43011
43146
|
//#endregion
|
|
43012
43147
|
//#region ../focus-queries/dist/audit-log/requests.ts
|
|
43013
43148
|
async function getOrganizationAuditLog(httpClient, organization_id, from, to, { workspace_id, entity_type, entity_id, project_id, custom_field_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
|
|
43014
|
-
return await httpClient.get(`organizations/${organization_id}/audit-log/${from}/${to}`, {
|
|
43149
|
+
return (await httpClient.get(`organizations/${organization_id}/audit-log/${from}/${to}`, {
|
|
43015
43150
|
signal,
|
|
43016
43151
|
searchParams: buildSearchParams$2({
|
|
43017
43152
|
workspace_id,
|
|
@@ -43025,10 +43160,10 @@ async function getOrganizationAuditLog(httpClient, organization_id, from, to, {
|
|
|
43025
43160
|
page_number,
|
|
43026
43161
|
export: export_
|
|
43027
43162
|
})
|
|
43028
|
-
}).json();
|
|
43163
|
+
})).json();
|
|
43029
43164
|
}
|
|
43030
43165
|
async function getAuditLog(httpClient, organization_id, workspace_id, from, to, { entity_type, entity_id, project_id, custom_field_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
|
|
43031
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/audit-log/${from}/${to}`, {
|
|
43166
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/audit-log/${from}/${to}`, {
|
|
43032
43167
|
signal,
|
|
43033
43168
|
searchParams: buildSearchParams$2({
|
|
43034
43169
|
entity_type,
|
|
@@ -43041,21 +43176,21 @@ async function getAuditLog(httpClient, organization_id, workspace_id, from, to,
|
|
|
43041
43176
|
page_number,
|
|
43042
43177
|
export: export_
|
|
43043
43178
|
})
|
|
43044
|
-
}).json();
|
|
43179
|
+
})).json();
|
|
43045
43180
|
}
|
|
43046
43181
|
//#endregion
|
|
43047
43182
|
//#region ../focus-queries/dist/billable-rates/requests.ts
|
|
43048
43183
|
async function getProjectsBillableRates(httpClient, organization_id, workspace_id, { project_id, date }, signal) {
|
|
43049
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/rates`, {
|
|
43184
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/rates`, {
|
|
43050
43185
|
signal,
|
|
43051
43186
|
searchParams: buildSearchParams$2({
|
|
43052
43187
|
project_id,
|
|
43053
43188
|
date
|
|
43054
43189
|
})
|
|
43055
|
-
}).json();
|
|
43190
|
+
})).json();
|
|
43056
43191
|
}
|
|
43057
43192
|
async function getAllProjectUserBillableRates(httpClient, organization_id, workspace_id, { project_id, user_id, date, order_by } = {}, signal) {
|
|
43058
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/users/rates`, {
|
|
43193
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/users/rates`, {
|
|
43059
43194
|
signal,
|
|
43060
43195
|
searchParams: buildSearchParams$2({
|
|
43061
43196
|
project_id,
|
|
@@ -43063,144 +43198,162 @@ async function getAllProjectUserBillableRates(httpClient, organization_id, works
|
|
|
43063
43198
|
date,
|
|
43064
43199
|
order_by
|
|
43065
43200
|
})
|
|
43066
|
-
}).json();
|
|
43201
|
+
})).json();
|
|
43067
43202
|
}
|
|
43068
43203
|
async function getProjectBillableRates(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
43069
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates`, {
|
|
43204
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates`, {
|
|
43070
43205
|
signal,
|
|
43071
43206
|
searchParams: buildSearchParams$2({ order_by })
|
|
43072
|
-
}).json();
|
|
43207
|
+
})).json();
|
|
43073
43208
|
}
|
|
43074
43209
|
async function upsertProjectBillableRate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43075
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates`, {
|
|
43210
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates`, {
|
|
43076
43211
|
signal,
|
|
43077
43212
|
json: data
|
|
43078
|
-
}).json();
|
|
43213
|
+
})).json();
|
|
43079
43214
|
}
|
|
43080
43215
|
async function deleteProjectBillableRateRange(httpClient, organization_id, workspace_id, project_id, from, to, signal) {
|
|
43081
|
-
|
|
43216
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates`, {
|
|
43082
43217
|
signal,
|
|
43083
43218
|
searchParams: buildSearchParams$2({
|
|
43084
43219
|
from,
|
|
43085
43220
|
to
|
|
43086
43221
|
})
|
|
43087
|
-
})
|
|
43222
|
+
});
|
|
43223
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43224
|
+
return response.json();
|
|
43088
43225
|
}
|
|
43089
43226
|
async function checkProjectBillableRateConflicts(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43090
|
-
|
|
43227
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates/check`, {
|
|
43091
43228
|
signal,
|
|
43092
43229
|
json: data
|
|
43093
|
-
})
|
|
43230
|
+
});
|
|
43231
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43232
|
+
return response.json();
|
|
43094
43233
|
}
|
|
43095
43234
|
async function getProjectUserBillableRates(httpClient, organization_id, workspace_id, project_id, user_id, { order_by } = {}, signal) {
|
|
43096
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates`, {
|
|
43235
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates`, {
|
|
43097
43236
|
signal,
|
|
43098
43237
|
searchParams: buildSearchParams$2({ order_by })
|
|
43099
|
-
}).json();
|
|
43238
|
+
})).json();
|
|
43100
43239
|
}
|
|
43101
43240
|
async function upsertProjectUserBillableRate(httpClient, organization_id, workspace_id, project_id, user_id, data, signal) {
|
|
43102
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates`, {
|
|
43241
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates`, {
|
|
43103
43242
|
signal,
|
|
43104
43243
|
json: data
|
|
43105
|
-
}).json();
|
|
43244
|
+
})).json();
|
|
43106
43245
|
}
|
|
43107
43246
|
async function deleteProjectUserBillableRateRange(httpClient, organization_id, workspace_id, project_id, user_id, from, to, signal) {
|
|
43108
|
-
|
|
43247
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates`, {
|
|
43109
43248
|
signal,
|
|
43110
43249
|
searchParams: buildSearchParams$2({
|
|
43111
43250
|
from,
|
|
43112
43251
|
to
|
|
43113
43252
|
})
|
|
43114
|
-
})
|
|
43253
|
+
});
|
|
43254
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43255
|
+
return response.json();
|
|
43115
43256
|
}
|
|
43116
43257
|
async function checkProjectUserBillableRateConflicts(httpClient, organization_id, workspace_id, project_id, user_id, data, signal) {
|
|
43117
|
-
|
|
43258
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates/check`, {
|
|
43118
43259
|
signal,
|
|
43119
43260
|
json: data
|
|
43120
|
-
})
|
|
43261
|
+
});
|
|
43262
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43263
|
+
return response.json();
|
|
43121
43264
|
}
|
|
43122
43265
|
async function deleteBillableRateById(httpClient, organization_id, workspace_id, rate_id, signal) {
|
|
43123
|
-
|
|
43266
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/rates/${rate_id}`, { signal });
|
|
43267
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43268
|
+
return response.json();
|
|
43124
43269
|
}
|
|
43125
43270
|
async function getAllWorkspaceUserBillableRates(httpClient, organization_id, workspace_id, { user_id, order_by } = {}, signal) {
|
|
43126
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates`, {
|
|
43271
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates`, {
|
|
43127
43272
|
signal,
|
|
43128
43273
|
searchParams: buildSearchParams$2({
|
|
43129
43274
|
user_id,
|
|
43130
43275
|
order_by
|
|
43131
43276
|
})
|
|
43132
|
-
}).json();
|
|
43277
|
+
})).json();
|
|
43133
43278
|
}
|
|
43134
43279
|
async function bulkUpsertWorkspaceUserBillableRate(httpClient, organization_id, workspace_id, data, signal) {
|
|
43135
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates/bulk`, {
|
|
43280
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates/bulk`, {
|
|
43136
43281
|
signal,
|
|
43137
43282
|
json: data
|
|
43138
|
-
}).json();
|
|
43283
|
+
})).json();
|
|
43139
43284
|
}
|
|
43140
43285
|
async function bulkCheckWorkspaceUserBillableRateConflicts(httpClient, organization_id, workspace_id, data, signal) {
|
|
43141
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates/check/bulk`, {
|
|
43286
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates/check/bulk`, {
|
|
43142
43287
|
signal,
|
|
43143
43288
|
json: data
|
|
43144
|
-
}).json();
|
|
43289
|
+
})).json();
|
|
43145
43290
|
}
|
|
43146
43291
|
async function getWorkspaceUserBillableRates(httpClient, organization_id, workspace_id, user_id, { order_by } = {}, signal) {
|
|
43147
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
|
|
43292
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
|
|
43148
43293
|
signal,
|
|
43149
43294
|
searchParams: buildSearchParams$2({ order_by })
|
|
43150
|
-
}).json();
|
|
43295
|
+
})).json();
|
|
43151
43296
|
}
|
|
43152
43297
|
async function upsertWorkspaceUserBillableRate(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
43153
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
|
|
43298
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
|
|
43154
43299
|
signal,
|
|
43155
43300
|
json: data
|
|
43156
|
-
}).json();
|
|
43301
|
+
})).json();
|
|
43157
43302
|
}
|
|
43158
43303
|
async function deleteWorkspaceUserBillableRateRange(httpClient, organization_id, workspace_id, user_id, from, to, signal) {
|
|
43159
|
-
|
|
43304
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
|
|
43160
43305
|
signal,
|
|
43161
43306
|
searchParams: buildSearchParams$2({
|
|
43162
43307
|
from,
|
|
43163
43308
|
to
|
|
43164
43309
|
})
|
|
43165
|
-
})
|
|
43310
|
+
});
|
|
43311
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43312
|
+
return response.json();
|
|
43166
43313
|
}
|
|
43167
43314
|
async function checkWorkspaceUserBillableRateConflicts(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
43168
|
-
|
|
43315
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates/check`, {
|
|
43169
43316
|
signal,
|
|
43170
43317
|
json: data
|
|
43171
|
-
})
|
|
43318
|
+
});
|
|
43319
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43320
|
+
return response.json();
|
|
43172
43321
|
}
|
|
43173
43322
|
async function getWorkspaceBillableRates(httpClient, organization_id, workspace_id, { order_by } = {}, signal) {
|
|
43174
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates`, {
|
|
43323
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates`, {
|
|
43175
43324
|
signal,
|
|
43176
43325
|
searchParams: buildSearchParams$2({ order_by })
|
|
43177
|
-
}).json();
|
|
43326
|
+
})).json();
|
|
43178
43327
|
}
|
|
43179
43328
|
async function upsertWorkspaceBillableRate(httpClient, organization_id, workspace_id, data, signal) {
|
|
43180
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates`, {
|
|
43329
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates`, {
|
|
43181
43330
|
signal,
|
|
43182
43331
|
json: data
|
|
43183
|
-
}).json();
|
|
43332
|
+
})).json();
|
|
43184
43333
|
}
|
|
43185
43334
|
async function deleteWorkspaceBillableRateRange(httpClient, organization_id, workspace_id, from, to, signal) {
|
|
43186
|
-
|
|
43335
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates`, {
|
|
43187
43336
|
signal,
|
|
43188
43337
|
searchParams: buildSearchParams$2({
|
|
43189
43338
|
from,
|
|
43190
43339
|
to
|
|
43191
43340
|
})
|
|
43192
|
-
})
|
|
43341
|
+
});
|
|
43342
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43343
|
+
return response.json();
|
|
43193
43344
|
}
|
|
43194
43345
|
async function checkWorkspaceBillableRateConflicts(httpClient, organization_id, workspace_id, data, signal) {
|
|
43195
|
-
|
|
43346
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates/check`, {
|
|
43196
43347
|
signal,
|
|
43197
43348
|
json: data
|
|
43198
|
-
})
|
|
43349
|
+
});
|
|
43350
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43351
|
+
return response.json();
|
|
43199
43352
|
}
|
|
43200
43353
|
//#endregion
|
|
43201
43354
|
//#region ../focus-queries/dist/capacities/requests.ts
|
|
43202
43355
|
async function capacityGetComputations(httpClient, organization_id, workspace_id, group, { start_date, end_date, user_id, team_id, private: private_, task_source, unit, include_drafts, include_task_estimates }, signal) {
|
|
43203
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
|
|
43356
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
|
|
43204
43357
|
signal,
|
|
43205
43358
|
searchParams: buildSearchParams$2({
|
|
43206
43359
|
start_date,
|
|
@@ -43213,26 +43366,26 @@ async function capacityGetComputations(httpClient, organization_id, workspace_id
|
|
|
43213
43366
|
include_drafts,
|
|
43214
43367
|
include_task_estimates
|
|
43215
43368
|
})
|
|
43216
|
-
}).json();
|
|
43369
|
+
})).json();
|
|
43217
43370
|
}
|
|
43218
43371
|
//#endregion
|
|
43219
43372
|
//#region ../focus-queries/dist/composite/requests.ts
|
|
43220
43373
|
async function compositeCreateProject(httpClient, organization_id, workspace_id, data, signal) {
|
|
43221
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/composite/projects`, {
|
|
43374
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/composite/projects`, {
|
|
43222
43375
|
signal,
|
|
43223
43376
|
json: data
|
|
43224
|
-
}).json();
|
|
43377
|
+
})).json();
|
|
43225
43378
|
}
|
|
43226
43379
|
async function compositeCreateTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
43227
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/composite/tasks`, {
|
|
43380
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/composite/tasks`, {
|
|
43228
43381
|
signal,
|
|
43229
43382
|
json: data
|
|
43230
|
-
}).json();
|
|
43383
|
+
})).json();
|
|
43231
43384
|
}
|
|
43232
43385
|
//#endregion
|
|
43233
43386
|
//#region ../focus-queries/dist/custom-fields/requests.ts
|
|
43234
43387
|
async function getCustomFieldsClassic(httpClient, organization_id, workspace_id, { entity_type, page, per_page, order_by } = {}, signal) {
|
|
43235
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields`, {
|
|
43388
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields`, {
|
|
43236
43389
|
signal,
|
|
43237
43390
|
searchParams: buildSearchParams$2({
|
|
43238
43391
|
entity_type,
|
|
@@ -43240,43 +43393,47 @@ async function getCustomFieldsClassic(httpClient, organization_id, workspace_id,
|
|
|
43240
43393
|
per_page,
|
|
43241
43394
|
order_by
|
|
43242
43395
|
})
|
|
43243
|
-
}).json();
|
|
43396
|
+
})).json();
|
|
43244
43397
|
}
|
|
43245
43398
|
async function createCustomField(httpClient, organization_id, workspace_id, data, signal) {
|
|
43246
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields`, {
|
|
43399
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields`, {
|
|
43247
43400
|
signal,
|
|
43248
43401
|
json: data
|
|
43249
|
-
}).json();
|
|
43402
|
+
})).json();
|
|
43250
43403
|
}
|
|
43251
43404
|
async function updateCustomFieldsOrder(httpClient, organization_id, workspace_id, data, signal) {
|
|
43252
|
-
|
|
43405
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/order`, {
|
|
43253
43406
|
signal,
|
|
43254
43407
|
json: data
|
|
43255
|
-
})
|
|
43408
|
+
});
|
|
43409
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43410
|
+
return response.json();
|
|
43256
43411
|
}
|
|
43257
43412
|
async function getCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
43258
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
|
|
43413
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal })).json();
|
|
43259
43414
|
}
|
|
43260
43415
|
async function updateCustomField(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
|
|
43261
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, {
|
|
43416
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, {
|
|
43262
43417
|
signal,
|
|
43263
43418
|
json: data
|
|
43264
|
-
}).json();
|
|
43419
|
+
})).json();
|
|
43265
43420
|
}
|
|
43266
43421
|
async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
43267
|
-
|
|
43422
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal });
|
|
43423
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43424
|
+
return response.json();
|
|
43268
43425
|
}
|
|
43269
43426
|
async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
43270
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
|
|
43427
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal })).json();
|
|
43271
43428
|
}
|
|
43272
43429
|
async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
|
|
43273
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
|
|
43430
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
|
|
43274
43431
|
signal,
|
|
43275
43432
|
json: data
|
|
43276
|
-
}).json();
|
|
43433
|
+
})).json();
|
|
43277
43434
|
}
|
|
43278
43435
|
async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
|
|
43279
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
43436
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
43280
43437
|
signal,
|
|
43281
43438
|
searchParams: buildSearchParams$2({
|
|
43282
43439
|
name,
|
|
@@ -43284,62 +43441,68 @@ async function getCustomFieldOptionsClassic(httpClient, organization_id, workspa
|
|
|
43284
43441
|
per_page,
|
|
43285
43442
|
order_by
|
|
43286
43443
|
})
|
|
43287
|
-
}).json();
|
|
43444
|
+
})).json();
|
|
43288
43445
|
}
|
|
43289
43446
|
async function createCustomFieldOption(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
|
|
43290
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
43447
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
43291
43448
|
signal,
|
|
43292
43449
|
json: data
|
|
43293
|
-
}).json();
|
|
43450
|
+
})).json();
|
|
43294
43451
|
}
|
|
43295
43452
|
async function updateCustomFieldOptionsOrder(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
|
|
43296
|
-
|
|
43453
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options/order`, {
|
|
43297
43454
|
signal,
|
|
43298
43455
|
json: data
|
|
43299
|
-
})
|
|
43456
|
+
});
|
|
43457
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43458
|
+
return response.json();
|
|
43300
43459
|
}
|
|
43301
43460
|
async function updateCustomFieldOption(httpClient, organization_id, workspace_id, custom_field_id, option_id, data, signal) {
|
|
43302
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options/${option_id}`, {
|
|
43461
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options/${option_id}`, {
|
|
43303
43462
|
signal,
|
|
43304
43463
|
json: data
|
|
43305
|
-
}).json();
|
|
43464
|
+
})).json();
|
|
43306
43465
|
}
|
|
43307
43466
|
async function deleteCustomFieldOption(httpClient, organization_id, workspace_id, custom_field_id, option_id, signal) {
|
|
43308
|
-
|
|
43467
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options/${option_id}`, { signal });
|
|
43468
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43469
|
+
return response.json();
|
|
43309
43470
|
}
|
|
43310
43471
|
async function patchUserCustomFieldValues(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
43311
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/users/${user_id}/custom-field-values`, {
|
|
43472
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/users/${user_id}/custom-field-values`, {
|
|
43312
43473
|
signal,
|
|
43313
43474
|
json: data
|
|
43314
|
-
}).json();
|
|
43475
|
+
})).json();
|
|
43315
43476
|
}
|
|
43316
43477
|
//#endregion
|
|
43317
43478
|
//#region ../focus-queries/dist/customreports/requests.ts
|
|
43318
43479
|
async function getCustomReports(httpClient, workspace_id, signal) {
|
|
43319
|
-
return await httpClient.get(`workspaces/${workspace_id}/custom-reports`, { signal }).json();
|
|
43480
|
+
return (await httpClient.get(`workspaces/${workspace_id}/custom-reports`, { signal })).json();
|
|
43320
43481
|
}
|
|
43321
43482
|
async function createACustomReport(httpClient, workspace_id, data, signal) {
|
|
43322
|
-
return await httpClient.post(`workspaces/${workspace_id}/custom-reports`, {
|
|
43483
|
+
return (await httpClient.post(`workspaces/${workspace_id}/custom-reports`, {
|
|
43323
43484
|
signal,
|
|
43324
43485
|
json: data
|
|
43325
|
-
}).json();
|
|
43486
|
+
})).json();
|
|
43326
43487
|
}
|
|
43327
43488
|
async function getACustomReport(httpClient, workspace_id, id, signal) {
|
|
43328
|
-
return await httpClient.get(`workspaces/${workspace_id}/custom-reports/${id}`, { signal }).json();
|
|
43489
|
+
return (await httpClient.get(`workspaces/${workspace_id}/custom-reports/${id}`, { signal })).json();
|
|
43329
43490
|
}
|
|
43330
43491
|
async function saveACustomReport(httpClient, workspace_id, id, data, signal) {
|
|
43331
|
-
return await httpClient.put(`workspaces/${workspace_id}/custom-reports/${id}`, {
|
|
43492
|
+
return (await httpClient.put(`workspaces/${workspace_id}/custom-reports/${id}`, {
|
|
43332
43493
|
signal,
|
|
43333
43494
|
json: data
|
|
43334
|
-
}).json();
|
|
43495
|
+
})).json();
|
|
43335
43496
|
}
|
|
43336
43497
|
async function deleteACustomReport(httpClient, workspace_id, id, signal) {
|
|
43337
|
-
|
|
43498
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/custom-reports/${id}`, { signal });
|
|
43499
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43500
|
+
return response.json();
|
|
43338
43501
|
}
|
|
43339
43502
|
//#endregion
|
|
43340
43503
|
//#region ../focus-queries/dist/designations/requests.ts
|
|
43341
43504
|
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { designation_id, name, include_members, has_members, page, per_page, order_by } = {}, signal) {
|
|
43342
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
43505
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
43343
43506
|
signal,
|
|
43344
43507
|
searchParams: buildSearchParams$2({
|
|
43345
43508
|
designation_id,
|
|
@@ -43350,134 +43513,146 @@ async function getWorkspaceDesignationsClassic(httpClient, organization_id, work
|
|
|
43350
43513
|
per_page,
|
|
43351
43514
|
order_by
|
|
43352
43515
|
})
|
|
43353
|
-
}).json();
|
|
43516
|
+
})).json();
|
|
43354
43517
|
}
|
|
43355
43518
|
async function createWorkspaceDesignation(httpClient, organization_id, workspace_id, data, signal) {
|
|
43356
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
43519
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
43357
43520
|
signal,
|
|
43358
43521
|
json: data
|
|
43359
|
-
}).json();
|
|
43522
|
+
})).json();
|
|
43360
43523
|
}
|
|
43361
43524
|
async function bulkCreateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
|
|
43362
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
43525
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
43363
43526
|
signal,
|
|
43364
43527
|
json: data
|
|
43365
|
-
}).json();
|
|
43528
|
+
})).json();
|
|
43366
43529
|
}
|
|
43367
43530
|
async function bulkDeleteWorkspaceDesignations(httpClient, organization_id, workspace_id, ids, all_or_none, signal) {
|
|
43368
|
-
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
43531
|
+
return (await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
43369
43532
|
signal,
|
|
43370
43533
|
searchParams: buildSearchParams$2({
|
|
43371
43534
|
ids,
|
|
43372
43535
|
all_or_none
|
|
43373
43536
|
})
|
|
43374
|
-
}).json();
|
|
43537
|
+
})).json();
|
|
43375
43538
|
}
|
|
43376
43539
|
async function bulkUpdateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
|
|
43377
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
43540
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
43378
43541
|
signal,
|
|
43379
43542
|
json: data
|
|
43380
|
-
}).json();
|
|
43543
|
+
})).json();
|
|
43381
43544
|
}
|
|
43382
43545
|
async function updateWorkspaceDesignationMembers(httpClient, organization_id, workspace_id, data, signal) {
|
|
43383
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/members`, {
|
|
43546
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/members`, {
|
|
43384
43547
|
signal,
|
|
43385
43548
|
json: data
|
|
43386
|
-
}).json();
|
|
43549
|
+
})).json();
|
|
43387
43550
|
}
|
|
43388
43551
|
async function getProjectDesignations(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
43389
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
43552
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
43390
43553
|
signal,
|
|
43391
43554
|
searchParams: buildSearchParams$2({ order_by })
|
|
43392
|
-
}).json();
|
|
43555
|
+
})).json();
|
|
43393
43556
|
}
|
|
43394
43557
|
async function createProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43395
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
43558
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
43396
43559
|
signal,
|
|
43397
43560
|
json: data
|
|
43398
|
-
}).json();
|
|
43561
|
+
})).json();
|
|
43399
43562
|
}
|
|
43400
43563
|
async function deleteProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43401
|
-
|
|
43564
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
43402
43565
|
signal,
|
|
43403
43566
|
json: data
|
|
43404
|
-
})
|
|
43567
|
+
});
|
|
43568
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43569
|
+
return response.json();
|
|
43405
43570
|
}
|
|
43406
43571
|
async function updateProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43407
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
43572
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
43408
43573
|
signal,
|
|
43409
43574
|
json: data
|
|
43410
|
-
}).json();
|
|
43575
|
+
})).json();
|
|
43411
43576
|
}
|
|
43412
43577
|
async function getProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
43413
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, { signal }).json();
|
|
43578
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, { signal })).json();
|
|
43414
43579
|
}
|
|
43415
43580
|
async function createProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43416
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
43581
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
43417
43582
|
signal,
|
|
43418
43583
|
json: data
|
|
43419
|
-
}).json();
|
|
43584
|
+
})).json();
|
|
43420
43585
|
}
|
|
43421
43586
|
async function deleteProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43422
|
-
|
|
43587
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
43423
43588
|
signal,
|
|
43424
43589
|
json: data
|
|
43425
|
-
})
|
|
43590
|
+
});
|
|
43591
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43592
|
+
return response.json();
|
|
43426
43593
|
}
|
|
43427
43594
|
async function updateProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43428
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
43595
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
43429
43596
|
signal,
|
|
43430
43597
|
json: data
|
|
43431
|
-
}).json();
|
|
43598
|
+
})).json();
|
|
43432
43599
|
}
|
|
43433
43600
|
async function deleteWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, signal) {
|
|
43434
|
-
|
|
43601
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, { signal });
|
|
43602
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43603
|
+
return response.json();
|
|
43435
43604
|
}
|
|
43436
43605
|
async function updateWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, data, signal) {
|
|
43437
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, {
|
|
43606
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, {
|
|
43438
43607
|
signal,
|
|
43439
43608
|
json: data
|
|
43440
|
-
}).json();
|
|
43609
|
+
})).json();
|
|
43441
43610
|
}
|
|
43442
43611
|
//#endregion
|
|
43443
43612
|
//#region ../focus-queries/dist/goals/requests.ts
|
|
43444
43613
|
async function createGoal(httpClient, organization_id, workspace_id, data, signal) {
|
|
43445
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals`, {
|
|
43614
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals`, {
|
|
43446
43615
|
signal,
|
|
43447
43616
|
json: data
|
|
43448
|
-
}).json();
|
|
43617
|
+
})).json();
|
|
43449
43618
|
}
|
|
43450
43619
|
async function reorderGoals(httpClient, organization_id, workspace_id, data, signal) {
|
|
43451
|
-
|
|
43620
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/goals/positions`, {
|
|
43452
43621
|
signal,
|
|
43453
43622
|
json: data
|
|
43454
|
-
})
|
|
43623
|
+
});
|
|
43624
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43625
|
+
return response.json();
|
|
43455
43626
|
}
|
|
43456
43627
|
async function previewGoalTrackedTime(httpClient, organization_id, workspace_id, data, signal) {
|
|
43457
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals/preview`, {
|
|
43628
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals/preview`, {
|
|
43458
43629
|
signal,
|
|
43459
43630
|
json: data
|
|
43460
|
-
}).json();
|
|
43631
|
+
})).json();
|
|
43461
43632
|
}
|
|
43462
43633
|
async function getGoal(httpClient, organization_id, workspace_id, goal_id, signal) {
|
|
43463
|
-
|
|
43634
|
+
const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/goals/${goal_id}`, { signal });
|
|
43635
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43636
|
+
return response.json();
|
|
43464
43637
|
}
|
|
43465
43638
|
async function deleteGoal(httpClient, organization_id, workspace_id, goal_id, signal) {
|
|
43466
|
-
|
|
43639
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/goals/${goal_id}`, { signal });
|
|
43640
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43641
|
+
return response.json();
|
|
43467
43642
|
}
|
|
43468
43643
|
async function updateGoal(httpClient, organization_id, workspace_id, goal_id, data, signal) {
|
|
43469
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/goals/${goal_id}`, {
|
|
43644
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/goals/${goal_id}`, {
|
|
43470
43645
|
signal,
|
|
43471
43646
|
json: data
|
|
43472
|
-
}).json();
|
|
43647
|
+
})).json();
|
|
43473
43648
|
}
|
|
43474
43649
|
async function getGoals(httpClient, organization_id, workspace_id, signal) {
|
|
43475
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/users/me/goals`, { signal }).json();
|
|
43650
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/users/me/goals`, { signal })).json();
|
|
43476
43651
|
}
|
|
43477
43652
|
//#endregion
|
|
43478
43653
|
//#region ../focus-queries/dist/labor-costs/requests.ts
|
|
43479
43654
|
async function getAllProjectUserLaborCostRates(httpClient, organization_id, workspace_id, { project_id, user_id, date, order_by } = {}, signal) {
|
|
43480
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/users/rates`, {
|
|
43655
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/users/rates`, {
|
|
43481
43656
|
signal,
|
|
43482
43657
|
searchParams: buildSearchParams$2({
|
|
43483
43658
|
project_id,
|
|
@@ -43485,144 +43660,162 @@ async function getAllProjectUserLaborCostRates(httpClient, organization_id, work
|
|
|
43485
43660
|
date,
|
|
43486
43661
|
order_by
|
|
43487
43662
|
})
|
|
43488
|
-
}).json();
|
|
43663
|
+
})).json();
|
|
43489
43664
|
}
|
|
43490
43665
|
async function getProjectLaborCostRates(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
43491
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates`, {
|
|
43666
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates`, {
|
|
43492
43667
|
signal,
|
|
43493
43668
|
searchParams: buildSearchParams$2({ order_by })
|
|
43494
|
-
}).json();
|
|
43669
|
+
})).json();
|
|
43495
43670
|
}
|
|
43496
43671
|
async function upsertProjectLaborCostRate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43497
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates`, {
|
|
43672
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates`, {
|
|
43498
43673
|
signal,
|
|
43499
43674
|
json: data
|
|
43500
|
-
}).json();
|
|
43675
|
+
})).json();
|
|
43501
43676
|
}
|
|
43502
43677
|
async function deleteProjectLaborCostRateRange(httpClient, organization_id, workspace_id, project_id, from, to, signal) {
|
|
43503
|
-
|
|
43678
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates`, {
|
|
43504
43679
|
signal,
|
|
43505
43680
|
searchParams: buildSearchParams$2({
|
|
43506
43681
|
from,
|
|
43507
43682
|
to
|
|
43508
43683
|
})
|
|
43509
|
-
})
|
|
43684
|
+
});
|
|
43685
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43686
|
+
return response.json();
|
|
43510
43687
|
}
|
|
43511
43688
|
async function checkProjectLaborCostConflicts(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43512
|
-
|
|
43689
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates/check`, {
|
|
43513
43690
|
signal,
|
|
43514
43691
|
json: data
|
|
43515
|
-
})
|
|
43692
|
+
});
|
|
43693
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43694
|
+
return response.json();
|
|
43516
43695
|
}
|
|
43517
43696
|
async function getProjectUserLaborCostRates(httpClient, organization_id, workspace_id, project_id, user_id, { order_by } = {}, signal) {
|
|
43518
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates`, {
|
|
43697
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates`, {
|
|
43519
43698
|
signal,
|
|
43520
43699
|
searchParams: buildSearchParams$2({ order_by })
|
|
43521
|
-
}).json();
|
|
43700
|
+
})).json();
|
|
43522
43701
|
}
|
|
43523
43702
|
async function upsertProjectUserLaborCostRate(httpClient, organization_id, workspace_id, project_id, user_id, data, signal) {
|
|
43524
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates`, {
|
|
43703
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates`, {
|
|
43525
43704
|
signal,
|
|
43526
43705
|
json: data
|
|
43527
|
-
}).json();
|
|
43706
|
+
})).json();
|
|
43528
43707
|
}
|
|
43529
43708
|
async function deleteProjectUserLaborCostRateRange(httpClient, organization_id, workspace_id, project_id, user_id, from, to, signal) {
|
|
43530
|
-
|
|
43709
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates`, {
|
|
43531
43710
|
signal,
|
|
43532
43711
|
searchParams: buildSearchParams$2({
|
|
43533
43712
|
from,
|
|
43534
43713
|
to
|
|
43535
43714
|
})
|
|
43536
|
-
})
|
|
43715
|
+
});
|
|
43716
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43717
|
+
return response.json();
|
|
43537
43718
|
}
|
|
43538
43719
|
async function checkProjectUserLaborCostConflicts(httpClient, organization_id, workspace_id, project_id, user_id, data, signal) {
|
|
43539
|
-
|
|
43720
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates/check`, {
|
|
43540
43721
|
signal,
|
|
43541
43722
|
json: data
|
|
43542
|
-
})
|
|
43723
|
+
});
|
|
43724
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43725
|
+
return response.json();
|
|
43543
43726
|
}
|
|
43544
43727
|
async function deleteLaborCostRateById(httpClient, organization_id, workspace_id, rate_id, signal) {
|
|
43545
|
-
|
|
43728
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/rates/${rate_id}`, { signal });
|
|
43729
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43730
|
+
return response.json();
|
|
43546
43731
|
}
|
|
43547
43732
|
async function getAllWorkspaceUserLaborCostRates(httpClient, organization_id, workspace_id, { user_id, order_by } = {}, signal) {
|
|
43548
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates`, {
|
|
43733
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates`, {
|
|
43549
43734
|
signal,
|
|
43550
43735
|
searchParams: buildSearchParams$2({
|
|
43551
43736
|
user_id,
|
|
43552
43737
|
order_by
|
|
43553
43738
|
})
|
|
43554
|
-
}).json();
|
|
43739
|
+
})).json();
|
|
43555
43740
|
}
|
|
43556
43741
|
async function bulkUpsertWorkspaceUserLaborCostRate(httpClient, organization_id, workspace_id, data, signal) {
|
|
43557
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates/bulk`, {
|
|
43742
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates/bulk`, {
|
|
43558
43743
|
signal,
|
|
43559
43744
|
json: data
|
|
43560
|
-
}).json();
|
|
43745
|
+
})).json();
|
|
43561
43746
|
}
|
|
43562
43747
|
async function bulkCheckWorkspaceUserLaborCostRateConflicts(httpClient, organization_id, workspace_id, data, signal) {
|
|
43563
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates/check/bulk`, {
|
|
43748
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates/check/bulk`, {
|
|
43564
43749
|
signal,
|
|
43565
43750
|
json: data
|
|
43566
|
-
}).json();
|
|
43751
|
+
})).json();
|
|
43567
43752
|
}
|
|
43568
43753
|
async function getWorkspaceUserLaborCostRates(httpClient, organization_id, workspace_id, user_id, { order_by } = {}, signal) {
|
|
43569
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
|
|
43754
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
|
|
43570
43755
|
signal,
|
|
43571
43756
|
searchParams: buildSearchParams$2({ order_by })
|
|
43572
|
-
}).json();
|
|
43757
|
+
})).json();
|
|
43573
43758
|
}
|
|
43574
43759
|
async function upsertWorkspaceUserLaborCostRate(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
43575
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
|
|
43760
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
|
|
43576
43761
|
signal,
|
|
43577
43762
|
json: data
|
|
43578
|
-
}).json();
|
|
43763
|
+
})).json();
|
|
43579
43764
|
}
|
|
43580
43765
|
async function deleteWorkspaceUserLaborCostRateRange(httpClient, organization_id, workspace_id, user_id, from, to, signal) {
|
|
43581
|
-
|
|
43766
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
|
|
43582
43767
|
signal,
|
|
43583
43768
|
searchParams: buildSearchParams$2({
|
|
43584
43769
|
from,
|
|
43585
43770
|
to
|
|
43586
43771
|
})
|
|
43587
|
-
})
|
|
43772
|
+
});
|
|
43773
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43774
|
+
return response.json();
|
|
43588
43775
|
}
|
|
43589
43776
|
async function checkWorkspaceUserLaborCostConflicts(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
43590
|
-
|
|
43777
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates/check`, {
|
|
43591
43778
|
signal,
|
|
43592
43779
|
json: data
|
|
43593
|
-
})
|
|
43780
|
+
});
|
|
43781
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43782
|
+
return response.json();
|
|
43594
43783
|
}
|
|
43595
43784
|
async function getWorkspaceLaborCostRates(httpClient, organization_id, workspace_id, { order_by } = {}, signal) {
|
|
43596
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates`, {
|
|
43785
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates`, {
|
|
43597
43786
|
signal,
|
|
43598
43787
|
searchParams: buildSearchParams$2({ order_by })
|
|
43599
|
-
}).json();
|
|
43788
|
+
})).json();
|
|
43600
43789
|
}
|
|
43601
43790
|
async function upsertWorkspaceLaborCostRate(httpClient, organization_id, workspace_id, data, signal) {
|
|
43602
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates`, {
|
|
43791
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates`, {
|
|
43603
43792
|
signal,
|
|
43604
43793
|
json: data
|
|
43605
|
-
}).json();
|
|
43794
|
+
})).json();
|
|
43606
43795
|
}
|
|
43607
43796
|
async function deleteWorkspaceLaborCostRateRange(httpClient, organization_id, workspace_id, from, to, signal) {
|
|
43608
|
-
|
|
43797
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates`, {
|
|
43609
43798
|
signal,
|
|
43610
43799
|
searchParams: buildSearchParams$2({
|
|
43611
43800
|
from,
|
|
43612
43801
|
to
|
|
43613
43802
|
})
|
|
43614
|
-
})
|
|
43803
|
+
});
|
|
43804
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43805
|
+
return response.json();
|
|
43615
43806
|
}
|
|
43616
43807
|
async function checkWorkspaceLaborCostConflicts(httpClient, organization_id, workspace_id, data, signal) {
|
|
43617
|
-
|
|
43808
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates/check`, {
|
|
43618
43809
|
signal,
|
|
43619
43810
|
json: data
|
|
43620
|
-
})
|
|
43811
|
+
});
|
|
43812
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43813
|
+
return response.json();
|
|
43621
43814
|
}
|
|
43622
43815
|
//#endregion
|
|
43623
43816
|
//#region ../focus-queries/dist/milestones/requests.ts
|
|
43624
43817
|
async function getMilestonesClassic(httpClient, workspace_id, { page, per_page, order_by, due_date_from, due_date_to, project_id, team_id } = {}, signal) {
|
|
43625
|
-
return await httpClient.get(`workspaces/${workspace_id}/milestones`, {
|
|
43818
|
+
return (await httpClient.get(`workspaces/${workspace_id}/milestones`, {
|
|
43626
43819
|
signal,
|
|
43627
43820
|
searchParams: buildSearchParams$2({
|
|
43628
43821
|
page,
|
|
@@ -43633,16 +43826,16 @@ async function getMilestonesClassic(httpClient, workspace_id, { page, per_page,
|
|
|
43633
43826
|
project_id,
|
|
43634
43827
|
team_id
|
|
43635
43828
|
})
|
|
43636
|
-
}).json();
|
|
43829
|
+
})).json();
|
|
43637
43830
|
}
|
|
43638
43831
|
async function createMilestone(httpClient, workspace_id, data, signal) {
|
|
43639
|
-
return await httpClient.post(`workspaces/${workspace_id}/milestones`, {
|
|
43832
|
+
return (await httpClient.post(`workspaces/${workspace_id}/milestones`, {
|
|
43640
43833
|
signal,
|
|
43641
43834
|
json: data
|
|
43642
|
-
}).json();
|
|
43835
|
+
})).json();
|
|
43643
43836
|
}
|
|
43644
43837
|
async function getMilestonesStream(httpClient, workspace_id, { order_by, due_date_from, due_date_to, project_id, team_id } = {}, signal) {
|
|
43645
|
-
return await httpClient.get(`workspaces/${workspace_id}/milestones/stream`, {
|
|
43838
|
+
return (await httpClient.get(`workspaces/${workspace_id}/milestones/stream`, {
|
|
43646
43839
|
signal,
|
|
43647
43840
|
searchParams: buildSearchParams$2({
|
|
43648
43841
|
order_by,
|
|
@@ -43651,33 +43844,41 @@ async function getMilestonesStream(httpClient, workspace_id, { order_by, due_dat
|
|
|
43651
43844
|
project_id,
|
|
43652
43845
|
team_id
|
|
43653
43846
|
})
|
|
43654
|
-
}).json();
|
|
43847
|
+
})).json();
|
|
43655
43848
|
}
|
|
43656
43849
|
async function getMilestone(httpClient, workspace_id, milestone_id, signal) {
|
|
43657
|
-
return await httpClient.get(`workspaces/${workspace_id}/milestones/${milestone_id}`, { signal }).json();
|
|
43850
|
+
return (await httpClient.get(`workspaces/${workspace_id}/milestones/${milestone_id}`, { signal })).json();
|
|
43658
43851
|
}
|
|
43659
43852
|
async function updateMilestone(httpClient, workspace_id, milestone_id, data, signal) {
|
|
43660
|
-
|
|
43853
|
+
const response = await httpClient.put(`workspaces/${workspace_id}/milestones/${milestone_id}`, {
|
|
43661
43854
|
signal,
|
|
43662
43855
|
json: data
|
|
43663
|
-
})
|
|
43856
|
+
});
|
|
43857
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43858
|
+
return response.json();
|
|
43664
43859
|
}
|
|
43665
43860
|
async function deleteMilestone(httpClient, workspace_id, milestone_id, signal) {
|
|
43666
|
-
|
|
43861
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/milestones/${milestone_id}`, { signal });
|
|
43862
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43863
|
+
return response.json();
|
|
43667
43864
|
}
|
|
43668
43865
|
async function partialUpdateMilestone(httpClient, workspace_id, milestone_id, data, signal) {
|
|
43669
|
-
|
|
43866
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/milestones/${milestone_id}`, {
|
|
43670
43867
|
signal,
|
|
43671
43868
|
json: data
|
|
43672
|
-
})
|
|
43869
|
+
});
|
|
43870
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43871
|
+
return response.json();
|
|
43673
43872
|
}
|
|
43674
43873
|
async function restoreMilestone(httpClient, workspace_id, milestone_id, signal) {
|
|
43675
|
-
|
|
43874
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/milestones/${milestone_id}/restore`, { signal });
|
|
43875
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43876
|
+
return response.json();
|
|
43676
43877
|
}
|
|
43677
43878
|
//#endregion
|
|
43678
43879
|
//#region ../focus-queries/dist/project-groups/requests.ts
|
|
43679
43880
|
async function getProjectGroupsClassic(httpClient, organization_id, workspace_id, group, { page, per_page, order_by, project_order_by, projects_per_group, include_group_totals, include_unassigned, archived, completed, private: private_, name, client_id, creator_id, tag_id, parent_project_id, project_id, start_date, end_date, user_id, only_me, include_drafts, include_recurring_series, cf_filter } = {}, signal) {
|
|
43680
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
|
|
43881
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
|
|
43681
43882
|
signal,
|
|
43682
43883
|
searchParams: buildSearchParams$2({
|
|
43683
43884
|
page,
|
|
@@ -43704,76 +43905,78 @@ async function getProjectGroupsClassic(httpClient, organization_id, workspace_id
|
|
|
43704
43905
|
include_recurring_series,
|
|
43705
43906
|
cf_filter
|
|
43706
43907
|
})
|
|
43707
|
-
}).json();
|
|
43908
|
+
})).json();
|
|
43708
43909
|
}
|
|
43709
43910
|
//#endregion
|
|
43710
43911
|
//#region ../focus-queries/dist/project-margin-targets/requests.ts
|
|
43711
43912
|
async function getProjectMarginTargets(httpClient, organization_id, workspace_id, signal) {
|
|
43712
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets`, { signal }).json();
|
|
43913
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets`, { signal })).json();
|
|
43713
43914
|
}
|
|
43714
43915
|
async function getWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
|
|
43715
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
|
|
43916
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal })).json();
|
|
43716
43917
|
}
|
|
43717
43918
|
async function setWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, data, signal) {
|
|
43718
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, {
|
|
43919
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, {
|
|
43719
43920
|
signal,
|
|
43720
43921
|
json: data
|
|
43721
|
-
}).json();
|
|
43922
|
+
})).json();
|
|
43722
43923
|
}
|
|
43723
43924
|
async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
43724
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
|
|
43925
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal })).json();
|
|
43725
43926
|
}
|
|
43726
43927
|
async function setProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43727
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, {
|
|
43928
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, {
|
|
43728
43929
|
signal,
|
|
43729
43930
|
json: data
|
|
43730
|
-
}).json();
|
|
43931
|
+
})).json();
|
|
43731
43932
|
}
|
|
43732
43933
|
async function clearProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
43733
|
-
|
|
43934
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal });
|
|
43935
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43936
|
+
return response.json();
|
|
43734
43937
|
}
|
|
43735
43938
|
//#endregion
|
|
43736
43939
|
//#region ../focus-queries/dist/public-holidays/requests.ts
|
|
43737
43940
|
async function getPublicHolidaysByUserIds(httpClient, organization_id, { user_id, start_date, end_date }, signal) {
|
|
43738
|
-
return await httpClient.get(`organizations/${organization_id}/public-holidays`, {
|
|
43941
|
+
return (await httpClient.get(`organizations/${organization_id}/public-holidays`, {
|
|
43739
43942
|
signal,
|
|
43740
43943
|
searchParams: buildSearchParams$2({
|
|
43741
43944
|
user_id,
|
|
43742
43945
|
start_date,
|
|
43743
43946
|
end_date
|
|
43744
43947
|
})
|
|
43745
|
-
}).json();
|
|
43948
|
+
})).json();
|
|
43746
43949
|
}
|
|
43747
43950
|
//#endregion
|
|
43748
43951
|
//#region ../focus-queries/dist/publicsharedreports/requests.ts
|
|
43749
43952
|
async function openPublicSharedReport(httpClient, token, signal) {
|
|
43750
|
-
return await httpClient.get(`shared/${token}`, { signal }).json();
|
|
43953
|
+
return (await httpClient.get(`shared/${token}`, { signal })).json();
|
|
43751
43954
|
}
|
|
43752
43955
|
async function profitabilityPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
|
|
43753
|
-
return await httpClient.post(`shared/${token}/profitability`, {
|
|
43956
|
+
return (await httpClient.post(`shared/${token}/profitability`, {
|
|
43754
43957
|
signal,
|
|
43755
43958
|
json: data,
|
|
43756
43959
|
searchParams: buildSearchParams$2({
|
|
43757
43960
|
response_format,
|
|
43758
43961
|
include_dicts
|
|
43759
43962
|
})
|
|
43760
|
-
}).json();
|
|
43963
|
+
})).json();
|
|
43761
43964
|
}
|
|
43762
43965
|
async function queryPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
|
|
43763
|
-
return await httpClient.post(`shared/${token}/query`, {
|
|
43966
|
+
return (await httpClient.post(`shared/${token}/query`, {
|
|
43764
43967
|
signal,
|
|
43765
43968
|
json: data,
|
|
43766
43969
|
searchParams: buildSearchParams$2({
|
|
43767
43970
|
response_format,
|
|
43768
43971
|
include_dicts
|
|
43769
43972
|
})
|
|
43770
|
-
}).json();
|
|
43973
|
+
})).json();
|
|
43771
43974
|
}
|
|
43772
43975
|
async function workloadPublicSharedReport(httpClient, token, data, signal) {
|
|
43773
|
-
return await httpClient.post(`shared/${token}/workload`, {
|
|
43976
|
+
return (await httpClient.post(`shared/${token}/workload`, {
|
|
43774
43977
|
signal,
|
|
43775
43978
|
json: data
|
|
43776
|
-
}).json();
|
|
43979
|
+
})).json();
|
|
43777
43980
|
}
|
|
43778
43981
|
//#endregion
|
|
43779
43982
|
//#region ../focus-queries/dist/rates/requests.ts
|
|
@@ -43790,59 +43993,73 @@ async function getProjectRatesSummary(httpClient, organization_id, workspace_id,
|
|
|
43790
43993
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
43791
43994
|
}
|
|
43792
43995
|
async function getProjectRates(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
43793
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates`, {
|
|
43996
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates`, {
|
|
43794
43997
|
signal,
|
|
43795
43998
|
searchParams: buildSearchParams$2({ order_by })
|
|
43796
|
-
}).json();
|
|
43999
|
+
})).json();
|
|
43797
44000
|
}
|
|
43798
44001
|
async function createProjectRate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
43799
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates`, {
|
|
44002
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates`, {
|
|
43800
44003
|
signal,
|
|
43801
44004
|
json: data
|
|
43802
|
-
}).json();
|
|
44005
|
+
})).json();
|
|
43803
44006
|
}
|
|
43804
44007
|
async function deleteProjectRate(httpClient, organization_id, workspace_id, project_id, from, to, signal) {
|
|
43805
|
-
|
|
44008
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates`, {
|
|
43806
44009
|
signal,
|
|
43807
44010
|
searchParams: buildSearchParams$2({
|
|
43808
44011
|
from,
|
|
43809
44012
|
to
|
|
43810
44013
|
})
|
|
43811
|
-
})
|
|
44014
|
+
});
|
|
44015
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44016
|
+
return response.json();
|
|
43812
44017
|
}
|
|
43813
44018
|
async function getCurrentProjectRate(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
43814
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates/current`, { signal }).json();
|
|
44019
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates/current`, { signal })).json();
|
|
43815
44020
|
}
|
|
43816
44021
|
//#endregion
|
|
43817
44022
|
//#region ../focus-queries/dist/recurring-budget-suggestions/requests.ts
|
|
43818
44023
|
async function getRecurringProjectBudgetSuggestion(httpClient, organization_id, workspace_id, project_id, { target_period_start }, signal) {
|
|
43819
|
-
|
|
44024
|
+
const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/recurring-budget-suggestions/${project_id}`, {
|
|
43820
44025
|
signal,
|
|
43821
44026
|
searchParams: buildSearchParams$2({ target_period_start })
|
|
43822
|
-
})
|
|
44027
|
+
});
|
|
44028
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44029
|
+
return response.json();
|
|
43823
44030
|
}
|
|
43824
44031
|
async function acceptARecurringProjectBudgetSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
43825
|
-
|
|
44032
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/recurring-budget-suggestions/${project_id}/accept`, { signal });
|
|
44033
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44034
|
+
return response.json();
|
|
43826
44035
|
}
|
|
43827
44036
|
async function dismissARecurringProjectBudgetSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
43828
|
-
|
|
44037
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/recurring-budget-suggestions/${project_id}/dismiss`, { signal });
|
|
44038
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44039
|
+
return response.json();
|
|
43829
44040
|
}
|
|
43830
44041
|
async function getTemplateEstimateSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
43831
|
-
|
|
44042
|
+
const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/template-estimate-suggestions/${project_id}`, { signal });
|
|
44043
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44044
|
+
return response.json();
|
|
43832
44045
|
}
|
|
43833
44046
|
async function acceptATemplateEstimateSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
43834
|
-
|
|
44047
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/template-estimate-suggestions/${project_id}/accept`, { signal });
|
|
44048
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44049
|
+
return response.json();
|
|
43835
44050
|
}
|
|
43836
44051
|
async function dismissATemplateEstimateSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
43837
|
-
|
|
44052
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/template-estimate-suggestions/${project_id}/dismiss`, { signal });
|
|
44053
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44054
|
+
return response.json();
|
|
43838
44055
|
}
|
|
43839
44056
|
//#endregion
|
|
43840
44057
|
//#region ../focus-queries/dist/reports/requests.ts
|
|
43841
44058
|
async function getForecastAvailability(httpClient, workspace_id, signal) {
|
|
43842
|
-
return await httpClient.get(`reports/workspaces/${workspace_id}/forecast-availability`, { signal }).json();
|
|
44059
|
+
return (await httpClient.get(`reports/workspaces/${workspace_id}/forecast-availability`, { signal })).json();
|
|
43843
44060
|
}
|
|
43844
44061
|
async function getProfitabilityReport(httpClient, workspace_id, data, response_format, include_dicts, xTogglReportExport, signal) {
|
|
43845
|
-
return await httpClient.post(`reports/workspaces/${workspace_id}/profitability`, {
|
|
44062
|
+
return (await httpClient.post(`reports/workspaces/${workspace_id}/profitability`, {
|
|
43846
44063
|
signal,
|
|
43847
44064
|
json: data,
|
|
43848
44065
|
headers: { "X-Toggl-Report-Export": xTogglReportExport },
|
|
@@ -43850,10 +44067,10 @@ async function getProfitabilityReport(httpClient, workspace_id, data, response_f
|
|
|
43850
44067
|
response_format,
|
|
43851
44068
|
include_dicts
|
|
43852
44069
|
})
|
|
43853
|
-
}).json();
|
|
44070
|
+
})).json();
|
|
43854
44071
|
}
|
|
43855
44072
|
async function getFlexqData(httpClient, workspace_id, data, { response_format, include_dicts = false, xTogglReportExport } = {}, signal) {
|
|
43856
|
-
return await httpClient.post(`reports/workspaces/${workspace_id}/query`, {
|
|
44073
|
+
return (await httpClient.post(`reports/workspaces/${workspace_id}/query`, {
|
|
43857
44074
|
signal,
|
|
43858
44075
|
json: data,
|
|
43859
44076
|
headers: { "X-Toggl-Report-Export": xTogglReportExport },
|
|
@@ -43861,78 +44078,82 @@ async function getFlexqData(httpClient, workspace_id, data, { response_format, i
|
|
|
43861
44078
|
response_format,
|
|
43862
44079
|
include_dicts
|
|
43863
44080
|
})
|
|
43864
|
-
}).json();
|
|
44081
|
+
})).json();
|
|
43865
44082
|
}
|
|
43866
44083
|
async function getFlexqDictionary(httpClient, workspace_id, data, signal) {
|
|
43867
|
-
return await httpClient.post(`reports/workspaces/${workspace_id}/query/dictionary`, {
|
|
44084
|
+
return (await httpClient.post(`reports/workspaces/${workspace_id}/query/dictionary`, {
|
|
43868
44085
|
signal,
|
|
43869
44086
|
json: data
|
|
43870
|
-
}).json();
|
|
44087
|
+
})).json();
|
|
43871
44088
|
}
|
|
43872
44089
|
async function getTimeAccountingReport(httpClient, workspace_id, data, signal) {
|
|
43873
|
-
return await httpClient.post(`reports/workspaces/${workspace_id}/time-accounting`, {
|
|
44090
|
+
return (await httpClient.post(`reports/workspaces/${workspace_id}/time-accounting`, {
|
|
43874
44091
|
signal,
|
|
43875
44092
|
json: data
|
|
43876
|
-
}).json();
|
|
44093
|
+
})).json();
|
|
43877
44094
|
}
|
|
43878
44095
|
async function getWorkloadReport(httpClient, workspace_id, data, xTogglReportExport, signal) {
|
|
43879
|
-
return await httpClient.post(`reports/workspaces/${workspace_id}/workload`, {
|
|
44096
|
+
return (await httpClient.post(`reports/workspaces/${workspace_id}/workload`, {
|
|
43880
44097
|
signal,
|
|
43881
44098
|
json: data,
|
|
43882
44099
|
headers: { "X-Toggl-Report-Export": xTogglReportExport }
|
|
43883
|
-
}).json();
|
|
44100
|
+
})).json();
|
|
43884
44101
|
}
|
|
43885
44102
|
//#endregion
|
|
43886
44103
|
//#region ../focus-queries/dist/reportschedules/requests.ts
|
|
43887
44104
|
async function upsertSavedViewSchedule(httpClient, workspace_id, id, data, signal) {
|
|
43888
|
-
return await httpClient.put(`workspaces/${workspace_id}/saved-views/${id}/schedule`, {
|
|
44105
|
+
return (await httpClient.put(`workspaces/${workspace_id}/saved-views/${id}/schedule`, {
|
|
43889
44106
|
signal,
|
|
43890
44107
|
json: data
|
|
43891
|
-
}).json();
|
|
44108
|
+
})).json();
|
|
43892
44109
|
}
|
|
43893
44110
|
async function upsertSharedReportSchedule(httpClient, workspace_id, id, data, signal) {
|
|
43894
|
-
return await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/schedule`, {
|
|
44111
|
+
return (await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/schedule`, {
|
|
43895
44112
|
signal,
|
|
43896
44113
|
json: data
|
|
43897
|
-
}).json();
|
|
44114
|
+
})).json();
|
|
43898
44115
|
}
|
|
43899
44116
|
async function deleteSharedReportSchedule(httpClient, workspace_id, id, signal) {
|
|
43900
|
-
|
|
44117
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/schedule`, { signal });
|
|
44118
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44119
|
+
return response.json();
|
|
43901
44120
|
}
|
|
43902
44121
|
//#endregion
|
|
43903
44122
|
//#region ../focus-queries/dist/savedviews/requests.ts
|
|
43904
44123
|
async function getSavedViews(httpClient, workspace_id, { name, type, order_by } = {}, signal) {
|
|
43905
|
-
return await httpClient.get(`workspaces/${workspace_id}/saved-views`, {
|
|
44124
|
+
return (await httpClient.get(`workspaces/${workspace_id}/saved-views`, {
|
|
43906
44125
|
signal,
|
|
43907
44126
|
searchParams: buildSearchParams$2({
|
|
43908
44127
|
name,
|
|
43909
44128
|
type,
|
|
43910
44129
|
order_by
|
|
43911
44130
|
})
|
|
43912
|
-
}).json();
|
|
44131
|
+
})).json();
|
|
43913
44132
|
}
|
|
43914
44133
|
async function createANewSavedView(httpClient, workspace_id, data, signal) {
|
|
43915
|
-
return await httpClient.post(`workspaces/${workspace_id}/saved-views`, {
|
|
44134
|
+
return (await httpClient.post(`workspaces/${workspace_id}/saved-views`, {
|
|
43916
44135
|
signal,
|
|
43917
44136
|
json: data
|
|
43918
|
-
}).json();
|
|
44137
|
+
})).json();
|
|
43919
44138
|
}
|
|
43920
44139
|
async function getASavedView(httpClient, workspace_id, id, signal) {
|
|
43921
|
-
return await httpClient.get(`workspaces/${workspace_id}/saved-views/${id}`, { signal }).json();
|
|
44140
|
+
return (await httpClient.get(`workspaces/${workspace_id}/saved-views/${id}`, { signal })).json();
|
|
43922
44141
|
}
|
|
43923
44142
|
async function deleteASavedView(httpClient, workspace_id, id, signal) {
|
|
43924
|
-
|
|
44143
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/saved-views/${id}`, { signal });
|
|
44144
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44145
|
+
return response.json();
|
|
43925
44146
|
}
|
|
43926
44147
|
async function updateASavedView(httpClient, workspace_id, id, data, signal) {
|
|
43927
|
-
return await httpClient.patch(`workspaces/${workspace_id}/saved-views/${id}`, {
|
|
44148
|
+
return (await httpClient.patch(`workspaces/${workspace_id}/saved-views/${id}`, {
|
|
43928
44149
|
signal,
|
|
43929
44150
|
json: data
|
|
43930
|
-
}).json();
|
|
44151
|
+
})).json();
|
|
43931
44152
|
}
|
|
43932
44153
|
//#endregion
|
|
43933
44154
|
//#region ../focus-queries/dist/search/requests.ts
|
|
43934
44155
|
async function search(httpClient, organization_id, workspace_id, { keyword, per_group, assignee_user_id, assignee_team_id, include_unassigned, project_id, task_id, include_drafts, exclude_calendar_events, exclude_project_completed, group_by_tags, only_me, occurrence_window_date }, signal) {
|
|
43935
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
44156
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
43936
44157
|
signal,
|
|
43937
44158
|
searchParams: buildSearchParams$2({
|
|
43938
44159
|
keyword,
|
|
@@ -43949,143 +44170,153 @@ async function search(httpClient, organization_id, workspace_id, { keyword, per_
|
|
|
43949
44170
|
only_me,
|
|
43950
44171
|
occurrence_window_date
|
|
43951
44172
|
})
|
|
43952
|
-
}).json();
|
|
44173
|
+
})).json();
|
|
43953
44174
|
}
|
|
43954
44175
|
async function searchMentions(httpClient, organization_id, workspace_id, { keyword, per_group } = {}, signal) {
|
|
43955
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search/mentions`, {
|
|
44176
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search/mentions`, {
|
|
43956
44177
|
signal,
|
|
43957
44178
|
searchParams: buildSearchParams$2({
|
|
43958
44179
|
keyword,
|
|
43959
44180
|
per_group
|
|
43960
44181
|
})
|
|
43961
|
-
}).json();
|
|
44182
|
+
})).json();
|
|
43962
44183
|
}
|
|
43963
44184
|
//#endregion
|
|
43964
44185
|
//#region ../focus-queries/dist/sharedreports/requests.ts
|
|
43965
44186
|
async function getMemberOwnedSharedReports(httpClient, organization_id, user_id, signal) {
|
|
43966
|
-
return await httpClient.get(`organizations/${organization_id}/users/${user_id}/shared-reports`, { signal }).json();
|
|
44187
|
+
return (await httpClient.get(`organizations/${organization_id}/users/${user_id}/shared-reports`, { signal })).json();
|
|
43967
44188
|
}
|
|
43968
44189
|
async function takeOverMemberSharedReports(httpClient, organization_id, user_id, signal) {
|
|
43969
|
-
return await httpClient.post(`organizations/${organization_id}/users/${user_id}/shared-reports/take-over`, { signal }).json();
|
|
44190
|
+
return (await httpClient.post(`organizations/${organization_id}/users/${user_id}/shared-reports/take-over`, { signal })).json();
|
|
43970
44191
|
}
|
|
43971
44192
|
async function shareSavedView(httpClient, workspace_id, id, data, signal) {
|
|
43972
|
-
return await httpClient.post(`workspaces/${workspace_id}/saved-views/${id}/share`, {
|
|
44193
|
+
return (await httpClient.post(`workspaces/${workspace_id}/saved-views/${id}/share`, {
|
|
43973
44194
|
signal,
|
|
43974
44195
|
json: data
|
|
43975
|
-
}).json();
|
|
44196
|
+
})).json();
|
|
43976
44197
|
}
|
|
43977
44198
|
async function getSavedViewSharedReport(httpClient, workspace_id, id, signal) {
|
|
43978
|
-
return await httpClient.get(`workspaces/${workspace_id}/saved-views/${id}/shared-report`, { signal }).json();
|
|
44199
|
+
return (await httpClient.get(`workspaces/${workspace_id}/saved-views/${id}/shared-report`, { signal })).json();
|
|
43979
44200
|
}
|
|
43980
44201
|
async function shareSavedViewMany(httpClient, workspace_id, id, data, signal) {
|
|
43981
|
-
return await httpClient.post(`workspaces/${workspace_id}/saved-views/${id}/shares`, {
|
|
44202
|
+
return (await httpClient.post(`workspaces/${workspace_id}/saved-views/${id}/shares`, {
|
|
43982
44203
|
signal,
|
|
43983
44204
|
json: data
|
|
43984
|
-
}).json();
|
|
44205
|
+
})).json();
|
|
43985
44206
|
}
|
|
43986
44207
|
async function getSharedReportsSharedByMe(httpClient, workspace_id, signal) {
|
|
43987
|
-
return await httpClient.get(`workspaces/${workspace_id}/shared-reports/shared-by-me`, { signal }).json();
|
|
44208
|
+
return (await httpClient.get(`workspaces/${workspace_id}/shared-reports/shared-by-me`, { signal })).json();
|
|
43988
44209
|
}
|
|
43989
44210
|
async function getSharedReportsSharedWithMe(httpClient, workspace_id, signal) {
|
|
43990
|
-
return await httpClient.get(`workspaces/${workspace_id}/shared-reports/shared-with-me`, { signal }).json();
|
|
44211
|
+
return (await httpClient.get(`workspaces/${workspace_id}/shared-reports/shared-with-me`, { signal })).json();
|
|
43991
44212
|
}
|
|
43992
44213
|
async function getSharedReportForViewer(httpClient, workspace_id, id, signal) {
|
|
43993
|
-
return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
|
|
44214
|
+
return (await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}`, { signal })).json();
|
|
43994
44215
|
}
|
|
43995
44216
|
async function unshareSharedReport(httpClient, workspace_id, id, signal) {
|
|
43996
|
-
|
|
44217
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}`, { signal });
|
|
44218
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44219
|
+
return response.json();
|
|
43997
44220
|
}
|
|
43998
44221
|
async function getSharedReportDates(httpClient, workspace_id, id, signal) {
|
|
43999
|
-
return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}/dates`, { signal }).json();
|
|
44222
|
+
return (await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}/dates`, { signal })).json();
|
|
44000
44223
|
}
|
|
44001
44224
|
async function setSharedReportDatesLock(httpClient, workspace_id, id, data, signal) {
|
|
44002
|
-
return await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/dates`, {
|
|
44225
|
+
return (await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/dates`, {
|
|
44003
44226
|
signal,
|
|
44004
44227
|
json: data
|
|
44005
|
-
}).json();
|
|
44228
|
+
})).json();
|
|
44006
44229
|
}
|
|
44007
44230
|
async function addSharedReportGrants(httpClient, workspace_id, id, data, signal) {
|
|
44008
|
-
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/grants`, {
|
|
44231
|
+
return (await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/grants`, {
|
|
44009
44232
|
signal,
|
|
44010
44233
|
json: data
|
|
44011
|
-
}).json();
|
|
44234
|
+
})).json();
|
|
44012
44235
|
}
|
|
44013
44236
|
async function revokeSharedReportGrant(httpClient, workspace_id, id, grant_id, signal) {
|
|
44014
|
-
|
|
44237
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/grants/${grant_id}`, { signal });
|
|
44238
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44239
|
+
return response.json();
|
|
44015
44240
|
}
|
|
44016
44241
|
async function mintSharedReportLink(httpClient, workspace_id, id, data, signal) {
|
|
44017
|
-
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link`, {
|
|
44242
|
+
return (await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link`, {
|
|
44018
44243
|
signal,
|
|
44019
44244
|
json: data
|
|
44020
|
-
}).json();
|
|
44245
|
+
})).json();
|
|
44021
44246
|
}
|
|
44022
44247
|
async function revokeSharedReportLink(httpClient, workspace_id, id, signal) {
|
|
44023
|
-
|
|
44248
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/link`, { signal });
|
|
44249
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44250
|
+
return response.json();
|
|
44024
44251
|
}
|
|
44025
44252
|
async function rotateSharedReportLink(httpClient, workspace_id, id, data, signal) {
|
|
44026
|
-
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link/rotate`, {
|
|
44253
|
+
return (await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link/rotate`, {
|
|
44027
44254
|
signal,
|
|
44028
44255
|
json: data
|
|
44029
|
-
}).json();
|
|
44256
|
+
})).json();
|
|
44030
44257
|
}
|
|
44031
44258
|
//#endregion
|
|
44032
44259
|
//#region ../focus-queries/dist/subscriptions/requests.ts
|
|
44033
44260
|
async function getCurrentSubscription(httpClient, organization_id, signal) {
|
|
44034
|
-
return await httpClient.get(`organizations/${organization_id}/subscriptions/current`, { signal }).json();
|
|
44261
|
+
return (await httpClient.get(`organizations/${organization_id}/subscriptions/current`, { signal })).json();
|
|
44035
44262
|
}
|
|
44036
44263
|
async function getFeaturesUpsell(httpClient, organization_id, signal) {
|
|
44037
|
-
return await httpClient.get(`organizations/${organization_id}/subscriptions/features-upsell`, { signal }).json();
|
|
44264
|
+
return (await httpClient.get(`organizations/${organization_id}/subscriptions/features-upsell`, { signal })).json();
|
|
44038
44265
|
}
|
|
44039
44266
|
async function getSubscriptionPlans(httpClient, organization_id, signal) {
|
|
44040
|
-
return await httpClient.get(`organizations/${organization_id}/subscriptions/plans`, { signal }).json();
|
|
44267
|
+
return (await httpClient.get(`organizations/${organization_id}/subscriptions/plans`, { signal })).json();
|
|
44041
44268
|
}
|
|
44042
44269
|
async function getCurrentTrial(httpClient, organization_id, signal) {
|
|
44043
|
-
|
|
44270
|
+
const response = await httpClient.get(`organizations/${organization_id}/subscriptions/trials/current`, { signal });
|
|
44271
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44272
|
+
return response.json();
|
|
44044
44273
|
}
|
|
44045
44274
|
async function upsertForcedTrial(httpClient, organization_id, workspace_id, data, signal) {
|
|
44046
|
-
|
|
44275
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/subscriptions/upsert-forced-trial`, {
|
|
44047
44276
|
signal,
|
|
44048
44277
|
json: data
|
|
44049
|
-
})
|
|
44278
|
+
});
|
|
44279
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44280
|
+
return response.json();
|
|
44050
44281
|
}
|
|
44051
44282
|
//#endregion
|
|
44052
44283
|
//#region ../focus-queries/dist/task-constraints/requests.ts
|
|
44053
44284
|
async function getTaskConstraints(httpClient, workspace_id, signal) {
|
|
44054
|
-
return await httpClient.get(`workspaces/${workspace_id}/task-constraints`, { signal }).json();
|
|
44285
|
+
return (await httpClient.get(`workspaces/${workspace_id}/task-constraints`, { signal })).json();
|
|
44055
44286
|
}
|
|
44056
44287
|
async function upsertTaskConstraints(httpClient, workspace_id, data, signal) {
|
|
44057
|
-
return await httpClient.put(`workspaces/${workspace_id}/task-constraints`, {
|
|
44288
|
+
return (await httpClient.put(`workspaces/${workspace_id}/task-constraints`, {
|
|
44058
44289
|
signal,
|
|
44059
44290
|
json: data
|
|
44060
|
-
}).json();
|
|
44291
|
+
})).json();
|
|
44061
44292
|
}
|
|
44062
44293
|
//#endregion
|
|
44063
44294
|
//#region ../focus-queries/dist/task-estimate-allocations/requests.ts
|
|
44064
44295
|
async function getTaskEstimateAllocations(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
44065
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, { signal }).json();
|
|
44296
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, { signal })).json();
|
|
44066
44297
|
}
|
|
44067
44298
|
async function createTaskEstimateAllocations(httpClient, organization_id, workspace_id, task_id, data, signal) {
|
|
44068
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
44299
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
44069
44300
|
signal,
|
|
44070
44301
|
json: data
|
|
44071
|
-
}).json();
|
|
44302
|
+
})).json();
|
|
44072
44303
|
}
|
|
44073
44304
|
async function deleteTaskEstimateAllocations(httpClient, organization_id, workspace_id, task_id, id, signal) {
|
|
44074
|
-
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
44305
|
+
return (await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
44075
44306
|
signal,
|
|
44076
44307
|
searchParams: buildSearchParams$2({ id })
|
|
44077
|
-
}).json();
|
|
44308
|
+
})).json();
|
|
44078
44309
|
}
|
|
44079
44310
|
async function updateTaskEstimateAllocations(httpClient, organization_id, workspace_id, task_id, data, signal) {
|
|
44080
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
44311
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
44081
44312
|
signal,
|
|
44082
44313
|
json: data
|
|
44083
|
-
}).json();
|
|
44314
|
+
})).json();
|
|
44084
44315
|
}
|
|
44085
44316
|
//#endregion
|
|
44086
44317
|
//#region ../focus-queries/dist/task-groups/requests.ts
|
|
44087
44318
|
async function getUserTaskGroupsByProject(httpClient, organization_id, workspace_id, { project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, xTimelineFetchTrigger }, signal) {
|
|
44088
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
|
|
44319
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
|
|
44089
44320
|
signal,
|
|
44090
44321
|
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
44091
44322
|
searchParams: buildSearchParams$2({
|
|
@@ -44118,10 +44349,10 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
|
|
|
44118
44349
|
cf_filter,
|
|
44119
44350
|
user_cf_filter
|
|
44120
44351
|
})
|
|
44121
|
-
}).json();
|
|
44352
|
+
})).json();
|
|
44122
44353
|
}
|
|
44123
44354
|
async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id, { team_id, project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, xTimelineFetchTrigger } = {}, signal) {
|
|
44124
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
|
|
44355
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
|
|
44125
44356
|
signal,
|
|
44126
44357
|
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
44127
44358
|
searchParams: buildSearchParams$2({
|
|
@@ -44154,10 +44385,10 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
|
|
|
44154
44385
|
cf_filter,
|
|
44155
44386
|
user_cf_filter
|
|
44156
44387
|
})
|
|
44157
|
-
}).json();
|
|
44388
|
+
})).json();
|
|
44158
44389
|
}
|
|
44159
44390
|
async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, group, { source, priority, status_id, project_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, page, per_page, order_by, xTimelineFetchTrigger } = {}, signal) {
|
|
44160
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
44391
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
44161
44392
|
signal,
|
|
44162
44393
|
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
44163
44394
|
searchParams: buildSearchParams$2({
|
|
@@ -44193,43 +44424,43 @@ async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, g
|
|
|
44193
44424
|
per_page,
|
|
44194
44425
|
order_by
|
|
44195
44426
|
})
|
|
44196
|
-
}).json();
|
|
44427
|
+
})).json();
|
|
44197
44428
|
}
|
|
44198
44429
|
async function updateTaskGroups(httpClient, organization_id, workspace_id, group, data, signal) {
|
|
44199
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
44430
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
44200
44431
|
signal,
|
|
44201
44432
|
json: data
|
|
44202
|
-
}).json();
|
|
44433
|
+
})).json();
|
|
44203
44434
|
}
|
|
44204
44435
|
//#endregion
|
|
44205
44436
|
//#region ../focus-queries/dist/task-suggestions/requests.ts
|
|
44206
44437
|
async function getProjectSuggestionForATask(httpClient, organization_id, workspace_id, data, signal) {
|
|
44207
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/task-suggestions`, {
|
|
44438
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/task-suggestions`, {
|
|
44208
44439
|
signal,
|
|
44209
44440
|
json: data
|
|
44210
|
-
}).json();
|
|
44441
|
+
})).json();
|
|
44211
44442
|
}
|
|
44212
44443
|
async function getProjectSuggestionsForMultipleTasks(httpClient, organization_id, workspace_id, data, signal) {
|
|
44213
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/task-suggestions/bulk`, {
|
|
44444
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/task-suggestions/bulk`, {
|
|
44214
44445
|
signal,
|
|
44215
44446
|
json: data
|
|
44216
|
-
}).json();
|
|
44447
|
+
})).json();
|
|
44217
44448
|
}
|
|
44218
44449
|
//#endregion
|
|
44219
44450
|
//#region ../focus-queries/dist/time-entry-constraints/requests.ts
|
|
44220
44451
|
async function getTimeEntryConstraints(httpClient, workspace_id, signal) {
|
|
44221
|
-
return await httpClient.get(`workspaces/${workspace_id}/time-entry-constraints`, { signal }).json();
|
|
44452
|
+
return (await httpClient.get(`workspaces/${workspace_id}/time-entry-constraints`, { signal })).json();
|
|
44222
44453
|
}
|
|
44223
44454
|
async function upsertTimeEntryConstraints(httpClient, workspace_id, data, signal) {
|
|
44224
|
-
return await httpClient.put(`workspaces/${workspace_id}/time-entry-constraints`, {
|
|
44455
|
+
return (await httpClient.put(`workspaces/${workspace_id}/time-entry-constraints`, {
|
|
44225
44456
|
signal,
|
|
44226
44457
|
json: data
|
|
44227
|
-
}).json();
|
|
44458
|
+
})).json();
|
|
44228
44459
|
}
|
|
44229
44460
|
//#endregion
|
|
44230
44461
|
//#region ../focus-queries/dist/time-entry-groups/requests.ts
|
|
44231
44462
|
async function getTimeEntryGroupsUsersClassic(httpClient, organization_id, workspace_id, { start_date, end_date, user_id, page, per_page, order_by }, signal) {
|
|
44232
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/groups/users`, {
|
|
44463
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/groups/users`, {
|
|
44233
44464
|
signal,
|
|
44234
44465
|
searchParams: buildSearchParams$2({
|
|
44235
44466
|
start_date,
|
|
@@ -44239,71 +44470,73 @@ async function getTimeEntryGroupsUsersClassic(httpClient, organization_id, works
|
|
|
44239
44470
|
per_page,
|
|
44240
44471
|
order_by
|
|
44241
44472
|
})
|
|
44242
|
-
}).json();
|
|
44473
|
+
})).json();
|
|
44243
44474
|
}
|
|
44244
44475
|
//#endregion
|
|
44245
44476
|
//#region ../focus-queries/dist/time-off/requests.ts
|
|
44246
44477
|
async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, start_date, end_date }, signal) {
|
|
44247
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff`, {
|
|
44478
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff`, {
|
|
44248
44479
|
signal,
|
|
44249
44480
|
searchParams: buildSearchParams$2({
|
|
44250
44481
|
user_id,
|
|
44251
44482
|
start_date,
|
|
44252
44483
|
end_date
|
|
44253
44484
|
})
|
|
44254
|
-
}).json();
|
|
44485
|
+
})).json();
|
|
44255
44486
|
}
|
|
44256
44487
|
async function getTimeoffBalances(httpClient, organization_id, { user_id, category_id, date } = {}, signal) {
|
|
44257
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/balances`, {
|
|
44488
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/balances`, {
|
|
44258
44489
|
signal,
|
|
44259
44490
|
searchParams: buildSearchParams$2({
|
|
44260
44491
|
user_id,
|
|
44261
44492
|
category_id,
|
|
44262
44493
|
date
|
|
44263
44494
|
})
|
|
44264
|
-
}).json();
|
|
44495
|
+
})).json();
|
|
44265
44496
|
}
|
|
44266
44497
|
async function createTimeoffBalanceAdjustment(httpClient, organization_id, data, signal) {
|
|
44267
|
-
return await httpClient.post(`organizations/${organization_id}/timeoff/balances`, {
|
|
44498
|
+
return (await httpClient.post(`organizations/${organization_id}/timeoff/balances`, {
|
|
44268
44499
|
signal,
|
|
44269
44500
|
json: data
|
|
44270
|
-
}).json();
|
|
44501
|
+
})).json();
|
|
44271
44502
|
}
|
|
44272
44503
|
async function importTimeoffBalances(httpClient, organization_id, data, signal) {
|
|
44273
|
-
return await httpClient.post(`organizations/${organization_id}/timeoff/balances/bulk`, {
|
|
44504
|
+
return (await httpClient.post(`organizations/${organization_id}/timeoff/balances/bulk`, {
|
|
44274
44505
|
signal,
|
|
44275
44506
|
json: data
|
|
44276
|
-
}).json();
|
|
44507
|
+
})).json();
|
|
44277
44508
|
}
|
|
44278
44509
|
async function getTimeoffCategories(httpClient, organization_id, signal) {
|
|
44279
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/categories`, { signal }).json();
|
|
44510
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/categories`, { signal })).json();
|
|
44280
44511
|
}
|
|
44281
44512
|
async function createTimeoffCategory(httpClient, organization_id, data, signal) {
|
|
44282
|
-
return await httpClient.post(`organizations/${organization_id}/timeoff/categories`, {
|
|
44513
|
+
return (await httpClient.post(`organizations/${organization_id}/timeoff/categories`, {
|
|
44283
44514
|
signal,
|
|
44284
44515
|
json: data
|
|
44285
|
-
}).json();
|
|
44516
|
+
})).json();
|
|
44286
44517
|
}
|
|
44287
44518
|
async function getTimeoffCategory(httpClient, organization_id, category_id, signal) {
|
|
44288
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/categories/${category_id}`, { signal }).json();
|
|
44519
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/categories/${category_id}`, { signal })).json();
|
|
44289
44520
|
}
|
|
44290
44521
|
async function updateTimeoffCategory(httpClient, organization_id, category_id, data, signal) {
|
|
44291
|
-
return await httpClient.put(`organizations/${organization_id}/timeoff/categories/${category_id}`, {
|
|
44522
|
+
return (await httpClient.put(`organizations/${organization_id}/timeoff/categories/${category_id}`, {
|
|
44292
44523
|
signal,
|
|
44293
44524
|
json: data
|
|
44294
|
-
}).json();
|
|
44525
|
+
})).json();
|
|
44295
44526
|
}
|
|
44296
44527
|
async function deleteTimeoffCategory(httpClient, organization_id, category_id, signal) {
|
|
44297
|
-
|
|
44528
|
+
const response = await httpClient.delete(`organizations/${organization_id}/timeoff/categories/${category_id}`, { signal });
|
|
44529
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44530
|
+
return response.json();
|
|
44298
44531
|
}
|
|
44299
44532
|
async function archiveTimeoffCategory(httpClient, organization_id, category_id, signal) {
|
|
44300
|
-
return await httpClient.post(`organizations/${organization_id}/timeoff/categories/${category_id}/archive`, { signal }).json();
|
|
44533
|
+
return (await httpClient.post(`organizations/${organization_id}/timeoff/categories/${category_id}/archive`, { signal })).json();
|
|
44301
44534
|
}
|
|
44302
44535
|
async function restoreTimeoffCategory(httpClient, organization_id, category_id, signal) {
|
|
44303
|
-
return await httpClient.post(`organizations/${organization_id}/timeoff/categories/${category_id}/restore`, { signal }).json();
|
|
44536
|
+
return (await httpClient.post(`organizations/${organization_id}/timeoff/categories/${category_id}/restore`, { signal })).json();
|
|
44304
44537
|
}
|
|
44305
44538
|
async function getTimeoffEntriesClassic(httpClient, organization_id, { user_id, team_id, category_id, status, from, to, page, rows } = {}, signal) {
|
|
44306
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/entries`, {
|
|
44539
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/entries`, {
|
|
44307
44540
|
signal,
|
|
44308
44541
|
searchParams: buildSearchParams$2({
|
|
44309
44542
|
user_id,
|
|
@@ -44315,25 +44548,25 @@ async function getTimeoffEntriesClassic(httpClient, organization_id, { user_id,
|
|
|
44315
44548
|
page,
|
|
44316
44549
|
rows
|
|
44317
44550
|
})
|
|
44318
|
-
}).json();
|
|
44551
|
+
})).json();
|
|
44319
44552
|
}
|
|
44320
44553
|
async function getTimeoffEntry(httpClient, organization_id, entry_id, signal) {
|
|
44321
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/entries/${entry_id}`, { signal }).json();
|
|
44554
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/entries/${entry_id}`, { signal })).json();
|
|
44322
44555
|
}
|
|
44323
44556
|
async function approveTimeoffEntry(httpClient, organization_id, entry_id, signal) {
|
|
44324
|
-
return await httpClient.put(`organizations/${organization_id}/timeoff/entries/${entry_id}/approve`, { signal }).json();
|
|
44557
|
+
return (await httpClient.put(`organizations/${organization_id}/timeoff/entries/${entry_id}/approve`, { signal })).json();
|
|
44325
44558
|
}
|
|
44326
44559
|
async function cancelTimeoffEntry(httpClient, organization_id, entry_id, signal) {
|
|
44327
|
-
return await httpClient.put(`organizations/${organization_id}/timeoff/entries/${entry_id}/cancel`, { signal }).json();
|
|
44560
|
+
return (await httpClient.put(`organizations/${organization_id}/timeoff/entries/${entry_id}/cancel`, { signal })).json();
|
|
44328
44561
|
}
|
|
44329
44562
|
async function rejectTimeoffEntry(httpClient, organization_id, entry_id, data, signal) {
|
|
44330
|
-
return await httpClient.put(`organizations/${organization_id}/timeoff/entries/${entry_id}/reject`, {
|
|
44563
|
+
return (await httpClient.put(`organizations/${organization_id}/timeoff/entries/${entry_id}/reject`, {
|
|
44331
44564
|
signal,
|
|
44332
44565
|
json: data
|
|
44333
|
-
}).json();
|
|
44566
|
+
})).json();
|
|
44334
44567
|
}
|
|
44335
44568
|
async function getTimeoffAbsenceReport(httpClient, organization_id, { start_date, end_date, user_id, team_id, category_id, include_pending }, signal) {
|
|
44336
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/reports/absence`, {
|
|
44569
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/reports/absence`, {
|
|
44337
44570
|
signal,
|
|
44338
44571
|
searchParams: buildSearchParams$2({
|
|
44339
44572
|
start_date,
|
|
@@ -44343,10 +44576,10 @@ async function getTimeoffAbsenceReport(httpClient, organization_id, { start_date
|
|
|
44343
44576
|
category_id,
|
|
44344
44577
|
include_pending
|
|
44345
44578
|
})
|
|
44346
|
-
}).json();
|
|
44579
|
+
})).json();
|
|
44347
44580
|
}
|
|
44348
44581
|
async function getTimeoffTimeline(httpClient, organization_id, { user_id, team_id, category_id, status, from, to } = {}, signal) {
|
|
44349
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/timeline`, {
|
|
44582
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/timeline`, {
|
|
44350
44583
|
signal,
|
|
44351
44584
|
searchParams: buildSearchParams$2({
|
|
44352
44585
|
user_id,
|
|
@@ -44356,46 +44589,48 @@ async function getTimeoffTimeline(httpClient, organization_id, { user_id, team_i
|
|
|
44356
44589
|
from,
|
|
44357
44590
|
to
|
|
44358
44591
|
})
|
|
44359
|
-
}).json();
|
|
44592
|
+
})).json();
|
|
44360
44593
|
}
|
|
44361
44594
|
async function getTimeoffForUser(httpClient, organization_id, user_id, { from, to }, signal) {
|
|
44362
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
44595
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
44363
44596
|
signal,
|
|
44364
44597
|
searchParams: buildSearchParams$2({
|
|
44365
44598
|
from,
|
|
44366
44599
|
to
|
|
44367
44600
|
})
|
|
44368
|
-
}).json();
|
|
44601
|
+
})).json();
|
|
44369
44602
|
}
|
|
44370
44603
|
async function updateTimeoffForUser(httpClient, organization_id, user_id, data, signal) {
|
|
44371
|
-
return await httpClient.put(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
44604
|
+
return (await httpClient.put(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
44372
44605
|
signal,
|
|
44373
44606
|
json: data
|
|
44374
|
-
}).json();
|
|
44607
|
+
})).json();
|
|
44375
44608
|
}
|
|
44376
44609
|
async function createTimeoffForUser(httpClient, organization_id, user_id, data, signal) {
|
|
44377
|
-
return await httpClient.post(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
44610
|
+
return (await httpClient.post(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
44378
44611
|
signal,
|
|
44379
44612
|
json: data
|
|
44380
|
-
}).json();
|
|
44613
|
+
})).json();
|
|
44381
44614
|
}
|
|
44382
44615
|
async function deleteTimeoffForUser(httpClient, organization_id, user_id, data, signal) {
|
|
44383
|
-
|
|
44616
|
+
const response = await httpClient.delete(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
44384
44617
|
signal,
|
|
44385
44618
|
json: data
|
|
44386
|
-
})
|
|
44619
|
+
});
|
|
44620
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44621
|
+
return response.json();
|
|
44387
44622
|
}
|
|
44388
44623
|
async function getTimeoffBalancesForUser(httpClient, organization_id, user_id, { category_id, date } = {}, signal) {
|
|
44389
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances`, {
|
|
44624
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances`, {
|
|
44390
44625
|
signal,
|
|
44391
44626
|
searchParams: buildSearchParams$2({
|
|
44392
44627
|
category_id,
|
|
44393
44628
|
date
|
|
44394
44629
|
})
|
|
44395
|
-
}).json();
|
|
44630
|
+
})).json();
|
|
44396
44631
|
}
|
|
44397
44632
|
async function getTimeoffBalanceChangesForUserClassic(httpClient, organization_id, user_id, { category_id, year, page, rows }, signal) {
|
|
44398
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances/changes`, {
|
|
44633
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances/changes`, {
|
|
44399
44634
|
signal,
|
|
44400
44635
|
searchParams: buildSearchParams$2({
|
|
44401
44636
|
category_id,
|
|
@@ -44403,84 +44638,94 @@ async function getTimeoffBalanceChangesForUserClassic(httpClient, organization_i
|
|
|
44403
44638
|
page,
|
|
44404
44639
|
rows
|
|
44405
44640
|
})
|
|
44406
|
-
}).json();
|
|
44641
|
+
})).json();
|
|
44407
44642
|
}
|
|
44408
44643
|
async function getTimeoffWhosOut(httpClient, organization_id, { start_date, end_date }, signal) {
|
|
44409
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/whos-out`, {
|
|
44644
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/whos-out`, {
|
|
44410
44645
|
signal,
|
|
44411
44646
|
searchParams: buildSearchParams$2({
|
|
44412
44647
|
start_date,
|
|
44413
44648
|
end_date
|
|
44414
44649
|
})
|
|
44415
|
-
}).json();
|
|
44650
|
+
})).json();
|
|
44416
44651
|
}
|
|
44417
44652
|
//#endregion
|
|
44418
44653
|
//#region ../focus-queries/dist/timesheet-setups/requests.ts
|
|
44419
44654
|
async function getTimesheetSetups(httpClient, organization_id, workspace_id, { include_discontinued, user_account_id, approver_user_account_id } = {}, signal) {
|
|
44420
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
|
|
44655
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
|
|
44421
44656
|
signal,
|
|
44422
44657
|
searchParams: buildSearchParams$2({
|
|
44423
44658
|
include_discontinued,
|
|
44424
44659
|
user_account_id,
|
|
44425
44660
|
approver_user_account_id
|
|
44426
44661
|
})
|
|
44427
|
-
}).json();
|
|
44662
|
+
})).json();
|
|
44428
44663
|
}
|
|
44429
44664
|
async function createTimesheetSetup(httpClient, organization_id, workspace_id, data, signal) {
|
|
44430
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
|
|
44665
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
|
|
44431
44666
|
signal,
|
|
44432
44667
|
json: data
|
|
44433
|
-
}).json();
|
|
44668
|
+
})).json();
|
|
44434
44669
|
}
|
|
44435
44670
|
async function getTimesheetSetup(httpClient, organization_id, workspace_id, setup_id, signal) {
|
|
44436
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}`, { signal }).json();
|
|
44671
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}`, { signal })).json();
|
|
44437
44672
|
}
|
|
44438
44673
|
async function updateTimesheetSetup(httpClient, organization_id, workspace_id, setup_id, data, signal) {
|
|
44439
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}`, {
|
|
44674
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}`, {
|
|
44440
44675
|
signal,
|
|
44441
44676
|
json: data
|
|
44442
|
-
}).json();
|
|
44677
|
+
})).json();
|
|
44443
44678
|
}
|
|
44444
44679
|
async function deleteTimesheetSetup(httpClient, organization_id, workspace_id, setup_id, signal) {
|
|
44445
|
-
|
|
44680
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}`, { signal });
|
|
44681
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44682
|
+
return response.json();
|
|
44446
44683
|
}
|
|
44447
44684
|
async function getTimesheetSetupApprovers(httpClient, organization_id, workspace_id, setup_id, signal) {
|
|
44448
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/approvers`, { signal }).json();
|
|
44685
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/approvers`, { signal })).json();
|
|
44449
44686
|
}
|
|
44450
44687
|
async function discontinueTimesheetSetup(httpClient, organization_id, workspace_id, setup_id, data, signal) {
|
|
44451
|
-
|
|
44688
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/discontinue`, {
|
|
44452
44689
|
signal,
|
|
44453
44690
|
json: data
|
|
44454
|
-
})
|
|
44691
|
+
});
|
|
44692
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44693
|
+
return response.json();
|
|
44455
44694
|
}
|
|
44456
44695
|
async function getTimesheetSetupMembers(httpClient, organization_id, workspace_id, setup_id, { include_discontinued } = {}, signal) {
|
|
44457
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members`, {
|
|
44696
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members`, {
|
|
44458
44697
|
signal,
|
|
44459
44698
|
searchParams: buildSearchParams$2({ include_discontinued })
|
|
44460
|
-
}).json();
|
|
44699
|
+
})).json();
|
|
44461
44700
|
}
|
|
44462
44701
|
async function addTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, data, signal) {
|
|
44463
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}`, {
|
|
44702
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}`, {
|
|
44464
44703
|
signal,
|
|
44465
44704
|
json: data
|
|
44466
|
-
}).json();
|
|
44705
|
+
})).json();
|
|
44467
44706
|
}
|
|
44468
44707
|
async function deleteTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
|
|
44469
|
-
|
|
44708
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}`, { signal });
|
|
44709
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44710
|
+
return response.json();
|
|
44470
44711
|
}
|
|
44471
44712
|
async function discontinueTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, data, signal) {
|
|
44472
|
-
|
|
44713
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/discontinue`, {
|
|
44473
44714
|
signal,
|
|
44474
44715
|
json: data
|
|
44475
|
-
})
|
|
44716
|
+
});
|
|
44717
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44718
|
+
return response.json();
|
|
44476
44719
|
}
|
|
44477
44720
|
async function reactivateTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
|
|
44478
|
-
|
|
44721
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/reactivate`, { signal });
|
|
44722
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44723
|
+
return response.json();
|
|
44479
44724
|
}
|
|
44480
44725
|
//#endregion
|
|
44481
44726
|
//#region ../focus-queries/dist/timesheets/requests.ts
|
|
44482
44727
|
async function getTimesheetsClassic(httpClient, organization_id, workspace_id, { date_from, date_to, setup_id, user_account_ids, approver_user_account_ids, team_ids, current_layer_approver_user_account_id, statuses, member_status, page, per_page }, signal) {
|
|
44483
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets`, {
|
|
44728
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets`, {
|
|
44484
44729
|
signal,
|
|
44485
44730
|
searchParams: buildSearchParams$2({
|
|
44486
44731
|
date_from,
|
|
@@ -44495,37 +44740,37 @@ async function getTimesheetsClassic(httpClient, organization_id, workspace_id, {
|
|
|
44495
44740
|
page,
|
|
44496
44741
|
per_page
|
|
44497
44742
|
})
|
|
44498
|
-
}).json();
|
|
44743
|
+
})).json();
|
|
44499
44744
|
}
|
|
44500
44745
|
async function getTimesheetApprovers(httpClient, organization_id, workspace_id, signal) {
|
|
44501
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/approvers`, { signal }).json();
|
|
44746
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/approvers`, { signal })).json();
|
|
44502
44747
|
}
|
|
44503
44748
|
async function bulkApproveTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
44504
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/approve`, {
|
|
44749
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/approve`, {
|
|
44505
44750
|
signal,
|
|
44506
44751
|
json: data
|
|
44507
|
-
}).json();
|
|
44752
|
+
})).json();
|
|
44508
44753
|
}
|
|
44509
44754
|
async function bulkRequestChangesTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
44510
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/request-changes`, {
|
|
44755
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/request-changes`, {
|
|
44511
44756
|
signal,
|
|
44512
44757
|
json: data
|
|
44513
|
-
}).json();
|
|
44758
|
+
})).json();
|
|
44514
44759
|
}
|
|
44515
44760
|
async function bulkSubmitTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
44516
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/submit`, {
|
|
44761
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/submit`, {
|
|
44517
44762
|
signal,
|
|
44518
44763
|
json: data
|
|
44519
|
-
}).json();
|
|
44764
|
+
})).json();
|
|
44520
44765
|
}
|
|
44521
44766
|
async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
44522
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/withdraw`, {
|
|
44767
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/withdraw`, {
|
|
44523
44768
|
signal,
|
|
44524
44769
|
json: data
|
|
44525
|
-
}).json();
|
|
44770
|
+
})).json();
|
|
44526
44771
|
}
|
|
44527
44772
|
async function getTimesheetStatusCounts(httpClient, organization_id, workspace_id, { date_from, date_to, setup_id, user_account_ids, approver_user_account_ids, team_ids, member_status }, signal) {
|
|
44528
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/counts`, {
|
|
44773
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/counts`, {
|
|
44529
44774
|
signal,
|
|
44530
44775
|
searchParams: buildSearchParams$2({
|
|
44531
44776
|
date_from,
|
|
@@ -44536,167 +44781,171 @@ async function getTimesheetStatusCounts(httpClient, organization_id, workspace_i
|
|
|
44536
44781
|
team_ids,
|
|
44537
44782
|
member_status
|
|
44538
44783
|
})
|
|
44539
|
-
}).json();
|
|
44784
|
+
})).json();
|
|
44540
44785
|
}
|
|
44541
44786
|
async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
|
|
44542
|
-
|
|
44787
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal });
|
|
44788
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44789
|
+
return response.json();
|
|
44543
44790
|
}
|
|
44544
44791
|
async function getTimesheetDetails(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
44545
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}`, { signal }).json();
|
|
44792
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}`, { signal })).json();
|
|
44546
44793
|
}
|
|
44547
44794
|
async function approveTimesheet(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
44548
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/approve`, { signal }).json();
|
|
44795
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/approve`, { signal })).json();
|
|
44549
44796
|
}
|
|
44550
44797
|
async function getTimesheetFlags(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
44551
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/flags`, { signal }).json();
|
|
44798
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/flags`, { signal })).json();
|
|
44552
44799
|
}
|
|
44553
44800
|
async function addTimesheetFlag(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, data, signal) {
|
|
44554
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/flags`, {
|
|
44801
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/flags`, {
|
|
44555
44802
|
signal,
|
|
44556
44803
|
json: data
|
|
44557
|
-
}).json();
|
|
44804
|
+
})).json();
|
|
44558
44805
|
}
|
|
44559
44806
|
async function getTimesheetHistory(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
44560
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/history`, { signal }).json();
|
|
44807
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/history`, { signal })).json();
|
|
44561
44808
|
}
|
|
44562
44809
|
async function getTimesheetHours(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
44563
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/hours`, { signal }).json();
|
|
44810
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/hours`, { signal })).json();
|
|
44564
44811
|
}
|
|
44565
44812
|
async function requestChangesTimesheet(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, data, signal) {
|
|
44566
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/request-changes`, {
|
|
44813
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/request-changes`, {
|
|
44567
44814
|
signal,
|
|
44568
44815
|
json: data
|
|
44569
|
-
}).json();
|
|
44816
|
+
})).json();
|
|
44570
44817
|
}
|
|
44571
44818
|
async function resubmitTimesheet(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, data, signal) {
|
|
44572
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/resubmit`, {
|
|
44819
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/resubmit`, {
|
|
44573
44820
|
signal,
|
|
44574
44821
|
json: data
|
|
44575
|
-
}).json();
|
|
44822
|
+
})).json();
|
|
44576
44823
|
}
|
|
44577
44824
|
async function submitTimesheet(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
44578
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/submit`, { signal }).json();
|
|
44825
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/submit`, { signal })).json();
|
|
44579
44826
|
}
|
|
44580
44827
|
async function withdrawTimesheet(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
44581
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/withdraw`, { signal }).json();
|
|
44828
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/withdraw`, { signal })).json();
|
|
44582
44829
|
}
|
|
44583
44830
|
//#endregion
|
|
44584
44831
|
//#region ../focus-queries/dist/track-team-invites/requests.ts
|
|
44585
44832
|
async function postTrackTeamInvites(httpClient, organization_id, workspace_id, data, signal) {
|
|
44586
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/track-team-invites`, {
|
|
44833
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/track-team-invites`, {
|
|
44587
44834
|
signal,
|
|
44588
44835
|
json: data
|
|
44589
|
-
}).json();
|
|
44836
|
+
})).json();
|
|
44590
44837
|
}
|
|
44591
44838
|
//#endregion
|
|
44592
44839
|
//#region ../focus-queries/dist/user-settings/requests.ts
|
|
44593
44840
|
async function emailUnsubscribePage(httpClient, token, signal) {
|
|
44594
|
-
return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
|
|
44841
|
+
return (await httpClient.get(`email/unsubscribe/${token}`, { signal })).json();
|
|
44595
44842
|
}
|
|
44596
44843
|
async function emailUnsubscribe(httpClient, token, signal) {
|
|
44597
|
-
return await httpClient.post(`email/unsubscribe/${token}`, { signal }).json();
|
|
44844
|
+
return (await httpClient.post(`email/unsubscribe/${token}`, { signal })).json();
|
|
44598
44845
|
}
|
|
44599
44846
|
async function getUserSettings(httpClient, signal) {
|
|
44600
|
-
return await httpClient.get(`users/me/settings`, { signal }).json();
|
|
44847
|
+
return (await httpClient.get(`users/me/settings`, { signal })).json();
|
|
44601
44848
|
}
|
|
44602
44849
|
async function partialUpdateUserSettings(httpClient, data, signal) {
|
|
44603
|
-
return await httpClient.patch(`users/me/settings`, {
|
|
44850
|
+
return (await httpClient.patch(`users/me/settings`, {
|
|
44604
44851
|
signal,
|
|
44605
44852
|
json: data
|
|
44606
|
-
}).json();
|
|
44853
|
+
})).json();
|
|
44607
44854
|
}
|
|
44608
44855
|
//#endregion
|
|
44609
44856
|
//#region ../focus-queries/dist/user-workspace-settings/requests.ts
|
|
44610
44857
|
async function getUserWorkspaceSettings(httpClient, workspace_id, signal) {
|
|
44611
|
-
return await httpClient.get(`workspaces/${workspace_id}/users/me/settings`, { signal }).json();
|
|
44858
|
+
return (await httpClient.get(`workspaces/${workspace_id}/users/me/settings`, { signal })).json();
|
|
44612
44859
|
}
|
|
44613
44860
|
async function partialUpdateUserWorkspaceSettings(httpClient, workspace_id, data, signal) {
|
|
44614
|
-
return await httpClient.patch(`workspaces/${workspace_id}/users/me/settings`, {
|
|
44861
|
+
return (await httpClient.patch(`workspaces/${workspace_id}/users/me/settings`, {
|
|
44615
44862
|
signal,
|
|
44616
44863
|
json: data
|
|
44617
|
-
}).json();
|
|
44864
|
+
})).json();
|
|
44618
44865
|
}
|
|
44619
44866
|
//#endregion
|
|
44620
44867
|
//#region ../focus-queries/dist/version/requests.ts
|
|
44621
44868
|
async function serviceVersion(httpClient, signal) {
|
|
44622
|
-
return await httpClient.get(`version`, { signal }).json();
|
|
44869
|
+
return (await httpClient.get(`version`, { signal })).json();
|
|
44623
44870
|
}
|
|
44624
44871
|
//#endregion
|
|
44625
44872
|
//#region ../focus-queries/dist/work-preparation/requests.ts
|
|
44626
44873
|
async function getWorkPreparationClassic(httpClient, organization_id, workspace_id, { page } = {}, signal) {
|
|
44627
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/work-preparation`, {
|
|
44874
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/work-preparation`, {
|
|
44628
44875
|
signal,
|
|
44629
44876
|
searchParams: buildSearchParams$2({ page })
|
|
44630
|
-
}).json();
|
|
44877
|
+
})).json();
|
|
44631
44878
|
}
|
|
44632
44879
|
//#endregion
|
|
44633
44880
|
//#region ../focus-queries/dist/working-hours/requests.ts
|
|
44634
44881
|
async function replaceWorkingHoursForUsers(httpClient, organization_id, data, signal) {
|
|
44635
|
-
return await httpClient.put(`organizations/${organization_id}/workinghours/users`, {
|
|
44882
|
+
return (await httpClient.put(`organizations/${organization_id}/workinghours/users`, {
|
|
44636
44883
|
signal,
|
|
44637
44884
|
json: data
|
|
44638
|
-
}).json();
|
|
44885
|
+
})).json();
|
|
44639
44886
|
}
|
|
44640
44887
|
async function getWorkingHoursForUser(httpClient, organization_id, user_id, signal) {
|
|
44641
|
-
return await httpClient.get(`organizations/${organization_id}/workinghours/users/${user_id}`, { signal }).json();
|
|
44888
|
+
return (await httpClient.get(`organizations/${organization_id}/workinghours/users/${user_id}`, { signal })).json();
|
|
44642
44889
|
}
|
|
44643
44890
|
async function updateWorkingHoursForUser(httpClient, organization_id, user_id, data, signal) {
|
|
44644
|
-
return await httpClient.put(`organizations/${organization_id}/workinghours/users/${user_id}`, {
|
|
44891
|
+
return (await httpClient.put(`organizations/${organization_id}/workinghours/users/${user_id}`, {
|
|
44645
44892
|
signal,
|
|
44646
44893
|
json: data
|
|
44647
|
-
}).json();
|
|
44894
|
+
})).json();
|
|
44648
44895
|
}
|
|
44649
44896
|
async function createWorkingHoursForUser(httpClient, organization_id, user_id, data, signal) {
|
|
44650
|
-
return await httpClient.post(`organizations/${organization_id}/workinghours/users/${user_id}`, {
|
|
44897
|
+
return (await httpClient.post(`organizations/${organization_id}/workinghours/users/${user_id}`, {
|
|
44651
44898
|
signal,
|
|
44652
44899
|
json: data
|
|
44653
|
-
}).json();
|
|
44900
|
+
})).json();
|
|
44654
44901
|
}
|
|
44655
44902
|
async function deleteWorkingHoursForUser(httpClient, organization_id, user_id, data, signal) {
|
|
44656
|
-
|
|
44903
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workinghours/users/${user_id}`, {
|
|
44657
44904
|
signal,
|
|
44658
44905
|
json: data
|
|
44659
|
-
})
|
|
44906
|
+
});
|
|
44907
|
+
if ([204, 205].includes(response.status)) return null;
|
|
44908
|
+
return response.json();
|
|
44660
44909
|
}
|
|
44661
44910
|
//#endregion
|
|
44662
44911
|
//#region ../focus-queries/dist/workspace/requests.ts
|
|
44663
44912
|
async function getWorkspaceContext(httpClient, workspace_id, signal) {
|
|
44664
|
-
return await httpClient.get(`workspaces/${workspace_id}/context`, { signal }).json();
|
|
44913
|
+
return (await httpClient.get(`workspaces/${workspace_id}/context`, { signal })).json();
|
|
44665
44914
|
}
|
|
44666
44915
|
//#endregion
|
|
44667
44916
|
//#region ../focus-queries/dist/workspace-settings/requests.ts
|
|
44668
44917
|
async function getWorkspaceCurrency(httpClient, workspace_id, signal) {
|
|
44669
|
-
return await httpClient.get(`workspaces/${workspace_id}/currency`, { signal }).json();
|
|
44918
|
+
return (await httpClient.get(`workspaces/${workspace_id}/currency`, { signal })).json();
|
|
44670
44919
|
}
|
|
44671
44920
|
async function updateWorkspaceCurrency(httpClient, workspace_id, data, signal) {
|
|
44672
|
-
return await httpClient.patch(`workspaces/${workspace_id}/currency`, {
|
|
44921
|
+
return (await httpClient.patch(`workspaces/${workspace_id}/currency`, {
|
|
44673
44922
|
signal,
|
|
44674
44923
|
json: data
|
|
44675
|
-
}).json();
|
|
44924
|
+
})).json();
|
|
44676
44925
|
}
|
|
44677
44926
|
async function getWorkspaceExportBranding(httpClient, workspace_id, signal) {
|
|
44678
|
-
return await httpClient.get(`workspaces/${workspace_id}/export-branding`, { signal }).json();
|
|
44927
|
+
return (await httpClient.get(`workspaces/${workspace_id}/export-branding`, { signal })).json();
|
|
44679
44928
|
}
|
|
44680
44929
|
async function getUserPermissions(httpClient, workspace_id, signal) {
|
|
44681
|
-
return await httpClient.get(`workspaces/${workspace_id}/permissions`, { signal }).json();
|
|
44930
|
+
return (await httpClient.get(`workspaces/${workspace_id}/permissions`, { signal })).json();
|
|
44682
44931
|
}
|
|
44683
44932
|
async function getWorkspaceSettings(httpClient, workspace_id, signal) {
|
|
44684
|
-
return await httpClient.get(`workspaces/${workspace_id}/settings`, { signal }).json();
|
|
44933
|
+
return (await httpClient.get(`workspaces/${workspace_id}/settings`, { signal })).json();
|
|
44685
44934
|
}
|
|
44686
44935
|
async function updateWorkspaceSettings(httpClient, workspace_id, data, signal) {
|
|
44687
|
-
return await httpClient.put(`workspaces/${workspace_id}/settings`, {
|
|
44936
|
+
return (await httpClient.put(`workspaces/${workspace_id}/settings`, {
|
|
44688
44937
|
signal,
|
|
44689
44938
|
json: data
|
|
44690
|
-
}).json();
|
|
44939
|
+
})).json();
|
|
44691
44940
|
}
|
|
44692
44941
|
async function getWorkspaceWatermark(httpClient, workspace_id, signal) {
|
|
44693
|
-
return await httpClient.get(`workspaces/${workspace_id}/watermark`, { signal }).json();
|
|
44942
|
+
return (await httpClient.get(`workspaces/${workspace_id}/watermark`, { signal })).json();
|
|
44694
44943
|
}
|
|
44695
44944
|
async function updateWorkspaceWatermark(httpClient, workspace_id, data, signal) {
|
|
44696
|
-
return await httpClient.patch(`workspaces/${workspace_id}/watermark`, {
|
|
44945
|
+
return (await httpClient.patch(`workspaces/${workspace_id}/watermark`, {
|
|
44697
44946
|
signal,
|
|
44698
44947
|
json: data
|
|
44699
|
-
}).json();
|
|
44948
|
+
})).json();
|
|
44700
44949
|
}
|
|
44701
44950
|
//#endregion
|
|
44702
44951
|
//#region ../operations/build/index.public.js
|
|
@@ -59313,7 +59562,7 @@ function registerWorkspaceTools(server) {
|
|
|
59313
59562
|
//#region src/package-version.ts
|
|
59314
59563
|
function mcpPackageVersion() {
|
|
59315
59564
|
try {
|
|
59316
|
-
return "1.13.
|
|
59565
|
+
return "1.13.172";
|
|
59317
59566
|
} catch {
|
|
59318
59567
|
return "unknown";
|
|
59319
59568
|
}
|
|
@@ -59494,7 +59743,7 @@ import_main.default.config({
|
|
|
59494
59743
|
quiet: true,
|
|
59495
59744
|
ignore: ["MISSING_ENV_FILE"]
|
|
59496
59745
|
});
|
|
59497
|
-
const packageVersion = "1.13.
|
|
59746
|
+
const packageVersion = "1.13.172";
|
|
59498
59747
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
59499
59748
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
59500
59749
|
function resolvePublicUrls() {
|
|
@@ -59614,4 +59863,4 @@ function bootstrapServer(options = {}) {
|
|
|
59614
59863
|
//#endregion
|
|
59615
59864
|
export { PUBLIC_SENTRY_PRIVACY_OPTIONS as a, initProductAnalytics as c, shutdownProductAnalytics as d, runMcpCli as i, resolveProductAnalyticsDistinctId as l, MCP_MAX_TOOL_INPUT_ELEMENTS as n, captureToolInvocation as o, bootstrapServer as r, getProductAnalyticsDistinctId as s, MCP_CACHE_TTL_MS as t, resolvePublicSentryDsn as u };
|
|
59616
59865
|
|
|
59617
|
-
//# sourceMappingURL=src-
|
|
59866
|
+
//# sourceMappingURL=src-CPogC-C9.js.map
|