@togglhq/cli 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5495,6 +5495,10 @@ function _joinExpects$1(values$1, separator) {
|
|
|
5495
5495
|
*/
|
|
5496
5496
|
const ISO_DATE_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u;
|
|
5497
5497
|
/**
|
|
5498
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time regex.
|
|
5499
|
+
*/
|
|
5500
|
+
const ISO_DATE_TIME_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3]):[0-5]\d$/u;
|
|
5501
|
+
/**
|
|
5498
5502
|
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp regex. Allows a
|
|
5499
5503
|
* space as a date/time separator and an optional space before the UTC offset.
|
|
5500
5504
|
*/
|
|
@@ -5548,6 +5552,22 @@ function isoDate$1(message$1) {
|
|
|
5548
5552
|
};
|
|
5549
5553
|
}
|
|
5550
5554
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5555
|
+
function isoDateTime$1(message$1) {
|
|
5556
|
+
return {
|
|
5557
|
+
kind: "validation",
|
|
5558
|
+
type: "iso_date_time",
|
|
5559
|
+
reference: isoDateTime$1,
|
|
5560
|
+
async: false,
|
|
5561
|
+
expects: null,
|
|
5562
|
+
requirement: ISO_DATE_TIME_REGEX$1,
|
|
5563
|
+
message: message$1,
|
|
5564
|
+
"~run"(dataset, config$1) {
|
|
5565
|
+
if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue$1(this, "date-time", dataset, config$1);
|
|
5566
|
+
return dataset;
|
|
5567
|
+
}
|
|
5568
|
+
};
|
|
5569
|
+
}
|
|
5570
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
5551
5571
|
function isoTimestamp(message$1) {
|
|
5552
5572
|
return {
|
|
5553
5573
|
kind: "validation",
|
|
@@ -8146,7 +8166,7 @@ function withResponseMeta$1(data, headers, status) {
|
|
|
8146
8166
|
});
|
|
8147
8167
|
return data;
|
|
8148
8168
|
}
|
|
8149
|
-
function buildSearchParams$
|
|
8169
|
+
function buildSearchParams$2(params, flattenArrays = false) {
|
|
8150
8170
|
const searchParams = new URLSearchParams();
|
|
8151
8171
|
Object.entries(params).forEach(([key, value]) => {
|
|
8152
8172
|
if (value === void 0) return;
|
|
@@ -8178,7 +8198,7 @@ function toFormData(params) {
|
|
|
8178
8198
|
async function getProjectAttachments(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
8179
8199
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments`, {
|
|
8180
8200
|
signal,
|
|
8181
|
-
searchParams: buildSearchParams$
|
|
8201
|
+
searchParams: buildSearchParams$2({ order_by })
|
|
8182
8202
|
}).json();
|
|
8183
8203
|
}
|
|
8184
8204
|
async function createProjectAttachment(httpClient, organization_id, workspace_id, project_id, display_order, file, name, signal) {
|
|
@@ -8219,7 +8239,7 @@ async function viewProjectAttachment(httpClient, organization_id, workspace_id,
|
|
|
8219
8239
|
async function getTaskAttachments(httpClient, organization_id, workspace_id, task_id, { order_by } = {}, signal) {
|
|
8220
8240
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments`, {
|
|
8221
8241
|
signal,
|
|
8222
|
-
searchParams: buildSearchParams$
|
|
8242
|
+
searchParams: buildSearchParams$2({ order_by })
|
|
8223
8243
|
}).json();
|
|
8224
8244
|
}
|
|
8225
8245
|
async function createTaskAttachment(httpClient, organization_id, workspace_id, task_id, display_order, file, name, signal) {
|
|
@@ -9876,7 +9896,7 @@ const TimeEntryStopTrackingPayloadSchema = /* @__PURE__ */ object({ end: /* @__P
|
|
|
9876
9896
|
async function getClientsClassic(httpClient, workspace_id, { page, per_page, order_by, name } = {}, signal) {
|
|
9877
9897
|
return await httpClient.get(`workspaces/${workspace_id}/clients`, {
|
|
9878
9898
|
signal,
|
|
9879
|
-
searchParams: buildSearchParams$
|
|
9899
|
+
searchParams: buildSearchParams$2({
|
|
9880
9900
|
page,
|
|
9881
9901
|
per_page,
|
|
9882
9902
|
order_by,
|
|
@@ -9925,7 +9945,7 @@ async function updateOrganizationGroup(httpClient, organization_id, group_id, da
|
|
|
9925
9945
|
async function deleteOrganizationGroup(httpClient, organization_id, group_id, workspace_id, signal) {
|
|
9926
9946
|
return await httpClient.delete(`organizations/${organization_id}/groups/${group_id}`, {
|
|
9927
9947
|
signal,
|
|
9928
|
-
searchParams: buildSearchParams$
|
|
9948
|
+
searchParams: buildSearchParams$2({ workspace_id })
|
|
9929
9949
|
}).json();
|
|
9930
9950
|
}
|
|
9931
9951
|
async function updateOrganizationGroupUserRole(httpClient, organization_id, group_id, data, signal) {
|
|
@@ -9937,7 +9957,7 @@ async function updateOrganizationGroupUserRole(httpClient, organization_id, grou
|
|
|
9937
9957
|
async function getOrganizationMemberTags(httpClient, organization_id, { workspace_id }, signal) {
|
|
9938
9958
|
return await httpClient.get(`organizations/${organization_id}/member-tags`, {
|
|
9939
9959
|
signal,
|
|
9940
|
-
searchParams: buildSearchParams$
|
|
9960
|
+
searchParams: buildSearchParams$2({ workspace_id })
|
|
9941
9961
|
}).json();
|
|
9942
9962
|
}
|
|
9943
9963
|
async function getOrganizationRoles(httpClient, organization_id, signal) {
|
|
@@ -9946,7 +9966,7 @@ async function getOrganizationRoles(httpClient, organization_id, signal) {
|
|
|
9946
9966
|
async function getOrganizationTeamsClassic(httpClient, organization_id, { workspace_id, page, per_page, sort_dir, filter, query, organization_user_id, group_ids, active_members_only }, signal) {
|
|
9947
9967
|
return await httpClient.get(`organizations/${organization_id}/teams`, {
|
|
9948
9968
|
signal,
|
|
9949
|
-
searchParams: buildSearchParams$
|
|
9969
|
+
searchParams: buildSearchParams$2({
|
|
9950
9970
|
workspace_id,
|
|
9951
9971
|
page,
|
|
9952
9972
|
per_page,
|
|
@@ -9962,7 +9982,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
|
|
|
9962
9982
|
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, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
|
|
9963
9983
|
const response = await httpClient.get(`organizations/${organization_id}/users`, {
|
|
9964
9984
|
signal,
|
|
9965
|
-
searchParams: buildSearchParams$
|
|
9985
|
+
searchParams: buildSearchParams$2({
|
|
9966
9986
|
workspaces,
|
|
9967
9987
|
user_account_ids,
|
|
9968
9988
|
org_user_ids,
|
|
@@ -9989,7 +10009,7 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
|
|
|
9989
10009
|
}
|
|
9990
10010
|
//#endregion
|
|
9991
10011
|
//#region ../focus-queries/out/utils/requests.js
|
|
9992
|
-
function buildSearchParams$
|
|
10012
|
+
function buildSearchParams$1(params, flattenArrays = false) {
|
|
9993
10013
|
const searchParams = new URLSearchParams();
|
|
9994
10014
|
Object.entries(params).forEach(([key, value]) => {
|
|
9995
10015
|
if (value === void 0) return;
|
|
@@ -10004,7 +10024,7 @@ function buildSearchParams$2(params, flattenArrays = false) {
|
|
|
10004
10024
|
async function getTagsClassic(httpClient, workspace_id, { name, page, per_page, order_by, tag_id, include_usage, include_archived, archived } = {}, signal) {
|
|
10005
10025
|
return await httpClient.get(`workspaces/${workspace_id}/tags`, {
|
|
10006
10026
|
signal,
|
|
10007
|
-
searchParams: buildSearchParams$
|
|
10027
|
+
searchParams: buildSearchParams$2({
|
|
10008
10028
|
name,
|
|
10009
10029
|
page,
|
|
10010
10030
|
per_page,
|
|
@@ -10031,7 +10051,7 @@ async function bulkCreateTags(httpClient, workspace_id, data, signal) {
|
|
|
10031
10051
|
async function bulkDeleteTags(httpClient, workspace_id, ids, signal) {
|
|
10032
10052
|
return await httpClient.delete(`workspaces/${workspace_id}/tags/bulk`, {
|
|
10033
10053
|
signal,
|
|
10034
|
-
searchParams: buildSearchParams$
|
|
10054
|
+
searchParams: buildSearchParams$2({ ids })
|
|
10035
10055
|
}).json();
|
|
10036
10056
|
}
|
|
10037
10057
|
async function bulkArchiveTags(httpClient, workspace_id, data, signal) {
|
|
@@ -10084,7 +10104,7 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
|
10084
10104
|
async function getProjectsClassic(httpClient, organization_id, workspace_id, { page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_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) {
|
|
10085
10105
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
10086
10106
|
signal,
|
|
10087
|
-
searchParams: buildSearchParams$
|
|
10107
|
+
searchParams: buildSearchParams$2({
|
|
10088
10108
|
page,
|
|
10089
10109
|
per_page,
|
|
10090
10110
|
order_by,
|
|
@@ -10123,7 +10143,7 @@ async function createProject(httpClient, organization_id, workspace_id, data, si
|
|
|
10123
10143
|
async function bulkDeleteProjects(httpClient, organization_id, workspace_id, ids, signal) {
|
|
10124
10144
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/bulk`, {
|
|
10125
10145
|
signal,
|
|
10126
|
-
searchParams: buildSearchParams$
|
|
10146
|
+
searchParams: buildSearchParams$2({ ids })
|
|
10127
10147
|
}).json();
|
|
10128
10148
|
}
|
|
10129
10149
|
async function bulkPartialUpdateProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
@@ -10153,13 +10173,13 @@ async function bulkUnarchiveProjects(httpClient, organization_id, workspace_id,
|
|
|
10153
10173
|
async function getBatchProjectsMembers(httpClient, organization_id, workspace_id, { ids }, signal) {
|
|
10154
10174
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/members`, {
|
|
10155
10175
|
signal,
|
|
10156
|
-
searchParams: buildSearchParams$
|
|
10176
|
+
searchParams: buildSearchParams$2({ ids })
|
|
10157
10177
|
}).json();
|
|
10158
10178
|
}
|
|
10159
10179
|
async function getProjectTemplatesClassic(httpClient, organization_id, workspace_id, { page, per_page, name, order_by, archived } = {}, signal) {
|
|
10160
10180
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/templates`, {
|
|
10161
10181
|
signal,
|
|
10162
|
-
searchParams: buildSearchParams$
|
|
10182
|
+
searchParams: buildSearchParams$2({
|
|
10163
10183
|
page,
|
|
10164
10184
|
per_page,
|
|
10165
10185
|
name,
|
|
@@ -10192,7 +10212,7 @@ async function archiveProject(httpClient, organization_id, workspace_id, project
|
|
|
10192
10212
|
async function getProjectWithChildrenClassic(httpClient, organization_id, workspace_id, project_id, { page, per_page, order_by } = {}, signal) {
|
|
10193
10213
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/children`, {
|
|
10194
10214
|
signal,
|
|
10195
|
-
searchParams: buildSearchParams$
|
|
10215
|
+
searchParams: buildSearchParams$2({
|
|
10196
10216
|
page,
|
|
10197
10217
|
per_page,
|
|
10198
10218
|
order_by
|
|
@@ -10229,7 +10249,7 @@ async function duplicateTemplate(httpClient, organization_id, workspace_id, proj
|
|
|
10229
10249
|
async function getRecurringProjectInstancesClassic(httpClient, organization_id, workspace_id, project_id, { page, per_page, order_by, start_date, end_date, include_rollover } = {}, signal) {
|
|
10230
10250
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances`, {
|
|
10231
10251
|
signal,
|
|
10232
|
-
searchParams: buildSearchParams$
|
|
10252
|
+
searchParams: buildSearchParams$2({
|
|
10233
10253
|
page,
|
|
10234
10254
|
per_page,
|
|
10235
10255
|
order_by,
|
|
@@ -10275,7 +10295,7 @@ async function removeProjectMember(httpClient, organization_id, workspace_id, pr
|
|
|
10275
10295
|
async function getProjectWithParentsClassic(httpClient, organization_id, workspace_id, project_id, { page, per_page, order_by } = {}, signal) {
|
|
10276
10296
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/parents`, {
|
|
10277
10297
|
signal,
|
|
10278
|
-
searchParams: buildSearchParams$
|
|
10298
|
+
searchParams: buildSearchParams$2({
|
|
10279
10299
|
page,
|
|
10280
10300
|
per_page,
|
|
10281
10301
|
order_by
|
|
@@ -10302,7 +10322,7 @@ async function uncompleteProject(httpClient, organization_id, workspace_id, proj
|
|
|
10302
10322
|
async function getStatusesClassic(httpClient, workspace_id, { name, type, page, per_page, order_by } = {}, signal) {
|
|
10303
10323
|
return await httpClient.get(`workspaces/${workspace_id}/statuses`, {
|
|
10304
10324
|
signal,
|
|
10305
|
-
searchParams: buildSearchParams$
|
|
10325
|
+
searchParams: buildSearchParams$2({
|
|
10306
10326
|
name,
|
|
10307
10327
|
type,
|
|
10308
10328
|
page,
|
|
@@ -10337,7 +10357,7 @@ async function restoreStatuses(httpClient, workspace_id, status_id, signal) {
|
|
|
10337
10357
|
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_time_blocks, has_dates, private: private_, archived, 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, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, timeblock_start_from, timeblock_start_until, time_block_id, time_block_completed, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_rates, include_assignees, include_parent_matches, disable_aggregations, cf_filter } = {}, signal) {
|
|
10338
10358
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
|
|
10339
10359
|
signal,
|
|
10340
|
-
searchParams: buildSearchParams$
|
|
10360
|
+
searchParams: buildSearchParams$2({
|
|
10341
10361
|
page,
|
|
10342
10362
|
per_page,
|
|
10343
10363
|
with_entries,
|
|
@@ -10404,7 +10424,7 @@ async function bulkCreateTask(httpClient, organization_id, workspace_id, data, s
|
|
|
10404
10424
|
async function bulkDeleteTask(httpClient, organization_id, workspace_id, ids, outbound_sync, signal) {
|
|
10405
10425
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk`, {
|
|
10406
10426
|
signal,
|
|
10407
|
-
searchParams: buildSearchParams$
|
|
10427
|
+
searchParams: buildSearchParams$2({
|
|
10408
10428
|
ids,
|
|
10409
10429
|
outbound_sync
|
|
10410
10430
|
})
|
|
@@ -10443,7 +10463,7 @@ async function bulkUnarchiveTask(httpClient, organization_id, workspace_id, data
|
|
|
10443
10463
|
async function getTaskByExternalId(httpClient, organization_id, workspace_id, { source, ext_id }, signal) {
|
|
10444
10464
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/by-external-id`, {
|
|
10445
10465
|
signal,
|
|
10446
|
-
searchParams: buildSearchParams$
|
|
10466
|
+
searchParams: buildSearchParams$2({
|
|
10447
10467
|
source,
|
|
10448
10468
|
ext_id
|
|
10449
10469
|
})
|
|
@@ -10452,7 +10472,7 @@ async function getTaskByExternalId(httpClient, organization_id, workspace_id, {
|
|
|
10452
10472
|
async function getTasksCalendarEvents(httpClient, organization_id, workspace_id, { date_from, date_to, calendar_event_id, hidden } = {}, signal) {
|
|
10453
10473
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
|
|
10454
10474
|
signal,
|
|
10455
|
-
searchParams: buildSearchParams$
|
|
10475
|
+
searchParams: buildSearchParams$2({
|
|
10456
10476
|
date_from,
|
|
10457
10477
|
date_to,
|
|
10458
10478
|
calendar_event_id,
|
|
@@ -10460,19 +10480,20 @@ async function getTasksCalendarEvents(httpClient, organization_id, workspace_id,
|
|
|
10460
10480
|
})
|
|
10461
10481
|
}).json();
|
|
10462
10482
|
}
|
|
10463
|
-
async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, signal) {
|
|
10483
|
+
async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, skip_provider_refresh, signal) {
|
|
10464
10484
|
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
|
|
10465
10485
|
signal,
|
|
10466
|
-
searchParams: buildSearchParams$
|
|
10486
|
+
searchParams: buildSearchParams$2({
|
|
10467
10487
|
date_from,
|
|
10468
|
-
date_to
|
|
10488
|
+
date_to,
|
|
10489
|
+
skip_provider_refresh
|
|
10469
10490
|
})
|
|
10470
10491
|
}).json();
|
|
10471
10492
|
}
|
|
10472
10493
|
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) {
|
|
10473
10494
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/recurring`, {
|
|
10474
10495
|
signal,
|
|
10475
|
-
searchParams: buildSearchParams$
|
|
10496
|
+
searchParams: buildSearchParams$2({
|
|
10476
10497
|
page,
|
|
10477
10498
|
per_page,
|
|
10478
10499
|
archived,
|
|
@@ -10492,7 +10513,7 @@ async function getTasksRecurringInstancesClassic(httpClient, organization_id, wo
|
|
|
10492
10513
|
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_time_blocks, has_dates, private: private_, archived, 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, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, time_block_id, time_block_completed, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_assignees, cf_filter } = {}, signal) {
|
|
10493
10514
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
|
|
10494
10515
|
signal,
|
|
10495
|
-
searchParams: buildSearchParams$
|
|
10516
|
+
searchParams: buildSearchParams$2({
|
|
10496
10517
|
with_entries,
|
|
10497
10518
|
pinned,
|
|
10498
10519
|
order_by,
|
|
@@ -10541,7 +10562,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
|
|
|
10541
10562
|
async function getTask(httpClient, organization_id, workspace_id, task_id, { include_assignees } = {}, signal) {
|
|
10542
10563
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
10543
10564
|
signal,
|
|
10544
|
-
searchParams: buildSearchParams$
|
|
10565
|
+
searchParams: buildSearchParams$2({ include_assignees })
|
|
10545
10566
|
}).json();
|
|
10546
10567
|
}
|
|
10547
10568
|
async function updateTask(httpClient, organization_id, workspace_id, task_id, data, signal) {
|
|
@@ -10553,7 +10574,7 @@ async function updateTask(httpClient, organization_id, workspace_id, task_id, da
|
|
|
10553
10574
|
async function deleteTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, outbound_sync, signal) {
|
|
10554
10575
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
10555
10576
|
signal,
|
|
10556
|
-
searchParams: buildSearchParams$
|
|
10577
|
+
searchParams: buildSearchParams$2({
|
|
10557
10578
|
from_recurring_task_id,
|
|
10558
10579
|
outbound_sync
|
|
10559
10580
|
})
|
|
@@ -10563,19 +10584,19 @@ async function patchTask(httpClient, organization_id, workspace_id, task_id, dat
|
|
|
10563
10584
|
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
10564
10585
|
signal,
|
|
10565
10586
|
json: data,
|
|
10566
|
-
searchParams: buildSearchParams$
|
|
10587
|
+
searchParams: buildSearchParams$2({ from_recurring_task_id })
|
|
10567
10588
|
}).json();
|
|
10568
10589
|
}
|
|
10569
10590
|
async function archiveTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, signal) {
|
|
10570
10591
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/archive`, {
|
|
10571
10592
|
signal,
|
|
10572
|
-
searchParams: buildSearchParams$
|
|
10593
|
+
searchParams: buildSearchParams$2({ from_recurring_task_id })
|
|
10573
10594
|
}).json();
|
|
10574
10595
|
}
|
|
10575
10596
|
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) {
|
|
10576
10597
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/children`, {
|
|
10577
10598
|
signal,
|
|
10578
|
-
searchParams: buildSearchParams$
|
|
10599
|
+
searchParams: buildSearchParams$2({
|
|
10579
10600
|
page,
|
|
10580
10601
|
per_page,
|
|
10581
10602
|
order_by,
|
|
@@ -10592,7 +10613,7 @@ async function getTaskWithChildrenClassic(httpClient, organization_id, workspace
|
|
|
10592
10613
|
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) {
|
|
10593
10614
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/parents`, {
|
|
10594
10615
|
signal,
|
|
10595
|
-
searchParams: buildSearchParams$
|
|
10616
|
+
searchParams: buildSearchParams$2({
|
|
10596
10617
|
page,
|
|
10597
10618
|
per_page,
|
|
10598
10619
|
order_by,
|
|
@@ -10617,7 +10638,7 @@ async function unarchiveTask(httpClient, organization_id, workspace_id, task_id,
|
|
|
10617
10638
|
async function getTaskTimeBlocksWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, archived } = {}, signal) {
|
|
10618
10639
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
|
|
10619
10640
|
signal,
|
|
10620
|
-
searchParams: buildSearchParams$
|
|
10641
|
+
searchParams: buildSearchParams$2({
|
|
10621
10642
|
page,
|
|
10622
10643
|
per_page,
|
|
10623
10644
|
order_by,
|
|
@@ -10643,7 +10664,7 @@ async function updateTimeBlockWithOrg(httpClient, organization_id, workspace_id,
|
|
|
10643
10664
|
async function deleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, outbound_sync, signal) {
|
|
10644
10665
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
|
|
10645
10666
|
signal,
|
|
10646
|
-
searchParams: buildSearchParams$
|
|
10667
|
+
searchParams: buildSearchParams$2({ outbound_sync })
|
|
10647
10668
|
}).json();
|
|
10648
10669
|
}
|
|
10649
10670
|
async function partialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
|
|
@@ -10664,7 +10685,7 @@ async function unarchiveTimeBlockWithOrg(httpClient, organization_id, workspace_
|
|
|
10664
10685
|
async function getTimeBlocksRangeWithOrgClassic(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, page, per_page, archived, order_by }, signal) {
|
|
10665
10686
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks`, {
|
|
10666
10687
|
signal,
|
|
10667
|
-
searchParams: buildSearchParams$
|
|
10688
|
+
searchParams: buildSearchParams$2({
|
|
10668
10689
|
date_from,
|
|
10669
10690
|
date_to,
|
|
10670
10691
|
task_id,
|
|
@@ -10685,7 +10706,7 @@ async function bulkCreateTimeBlockWithOrg(httpClient, organization_id, workspace
|
|
|
10685
10706
|
async function bulkDeleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, ids, outbound_sync, signal) {
|
|
10686
10707
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
|
|
10687
10708
|
signal,
|
|
10688
|
-
searchParams: buildSearchParams$
|
|
10709
|
+
searchParams: buildSearchParams$2({
|
|
10689
10710
|
ids,
|
|
10690
10711
|
outbound_sync
|
|
10691
10712
|
})
|
|
@@ -10700,7 +10721,7 @@ async function bulkPartialUpdateTimeBlockWithOrg(httpClient, organization_id, wo
|
|
|
10700
10721
|
async function getTimeBlocksRangeStreamWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, archived, order_by }, signal) {
|
|
10701
10722
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/stream`, {
|
|
10702
10723
|
signal,
|
|
10703
|
-
searchParams: buildSearchParams$
|
|
10724
|
+
searchParams: buildSearchParams$2({
|
|
10704
10725
|
date_from,
|
|
10705
10726
|
date_to,
|
|
10706
10727
|
task_id,
|
|
@@ -10715,7 +10736,7 @@ async function getTimeBlocksRangeStreamWithOrg(httpClient, organization_id, work
|
|
|
10715
10736
|
async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived, time_block_id } = {}, signal) {
|
|
10716
10737
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
|
|
10717
10738
|
signal,
|
|
10718
|
-
searchParams: buildSearchParams$
|
|
10739
|
+
searchParams: buildSearchParams$2({
|
|
10719
10740
|
page,
|
|
10720
10741
|
per_page,
|
|
10721
10742
|
order_by,
|
|
@@ -10740,7 +10761,7 @@ async function createTasklessTimeEntryWithOrg(httpClient, organization_id, works
|
|
|
10740
10761
|
async function getBatchTimeEntriesWithOrg(httpClient, organization_id, workspace_id, { ids }, signal) {
|
|
10741
10762
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/batch`, {
|
|
10742
10763
|
signal,
|
|
10743
|
-
searchParams: buildSearchParams$
|
|
10764
|
+
searchParams: buildSearchParams$2({ ids })
|
|
10744
10765
|
}).json();
|
|
10745
10766
|
}
|
|
10746
10767
|
async function bulkCreateTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
@@ -10752,7 +10773,7 @@ async function bulkCreateTimeEntryWithOrg(httpClient, organization_id, workspace
|
|
|
10752
10773
|
async function bulkDeleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, ids, signal) {
|
|
10753
10774
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk`, {
|
|
10754
10775
|
signal,
|
|
10755
|
-
searchParams: buildSearchParams$
|
|
10776
|
+
searchParams: buildSearchParams$2({ ids })
|
|
10756
10777
|
}).json();
|
|
10757
10778
|
}
|
|
10758
10779
|
async function bulkPartialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
@@ -10770,7 +10791,7 @@ async function bulkEditTimeEntriesWithOrg(httpClient, organization_id, workspace
|
|
|
10770
10791
|
async function bulkRestoreTimeEntryWithOrg(httpClient, organization_id, workspace_id, ids, signal) {
|
|
10771
10792
|
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk/restore`, {
|
|
10772
10793
|
signal,
|
|
10773
|
-
searchParams: buildSearchParams$
|
|
10794
|
+
searchParams: buildSearchParams$2({ ids })
|
|
10774
10795
|
}).json();
|
|
10775
10796
|
}
|
|
10776
10797
|
async function setDayDurationWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
@@ -10788,7 +10809,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
|
|
|
10788
10809
|
async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, project_id, type, order_by, archived, include_taskless, expand_calendar_event }, signal) {
|
|
10789
10810
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
|
|
10790
10811
|
signal,
|
|
10791
|
-
searchParams: buildSearchParams$
|
|
10812
|
+
searchParams: buildSearchParams$2({
|
|
10792
10813
|
date_from,
|
|
10793
10814
|
date_to,
|
|
10794
10815
|
task_id,
|
|
@@ -10811,7 +10832,7 @@ async function syncTimeEntry(httpClient, organization_id, workspace_id, client_u
|
|
|
10811
10832
|
async function getStreamTimeEntriesTimeBlockIdsWithOrg(httpClient, organization_id, workspace_id, { time_block_id }, signal) {
|
|
10812
10833
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/time-block-ids/stream`, {
|
|
10813
10834
|
signal,
|
|
10814
|
-
searchParams: buildSearchParams$
|
|
10835
|
+
searchParams: buildSearchParams$2({ time_block_id })
|
|
10815
10836
|
}).json();
|
|
10816
10837
|
}
|
|
10817
10838
|
async function getTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
@@ -10944,7 +10965,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10944
10965
|
]))
|
|
10945
10966
|
});
|
|
10946
10967
|
//#endregion
|
|
10947
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.
|
|
10968
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.9_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a21258a25d85bb9a42e25798d118502/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10948
10969
|
async function getInvitations(httpClient, signal) {
|
|
10949
10970
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10950
10971
|
}
|
|
@@ -10961,8 +10982,23 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10961
10982
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10962
10983
|
}
|
|
10963
10984
|
//#endregion
|
|
10964
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.
|
|
10965
|
-
|
|
10985
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.9_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a21258a25d85bb9a42e25798d118502/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10986
|
+
const META_SYMBOL = Symbol.for("querygen:response:meta");
|
|
10987
|
+
function withResponseMeta(data, headers, status) {
|
|
10988
|
+
if (!data) return data;
|
|
10989
|
+
const meta = {
|
|
10990
|
+
headers: Object.fromEntries(headers.entries()),
|
|
10991
|
+
status
|
|
10992
|
+
};
|
|
10993
|
+
if (typeof data === "object") Object.defineProperty(data, META_SYMBOL, {
|
|
10994
|
+
value: meta,
|
|
10995
|
+
enumerable: false,
|
|
10996
|
+
writable: false,
|
|
10997
|
+
configurable: false
|
|
10998
|
+
});
|
|
10999
|
+
return data;
|
|
11000
|
+
}
|
|
11001
|
+
function buildSearchParams(params, flattenArrays = false) {
|
|
10966
11002
|
const searchParams = new URLSearchParams();
|
|
10967
11003
|
Object.entries(params).forEach(([key, value]) => {
|
|
10968
11004
|
if (value === void 0) return;
|
|
@@ -10973,7 +11009,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
|
|
|
10973
11009
|
return searchParams;
|
|
10974
11010
|
}
|
|
10975
11011
|
//#endregion
|
|
10976
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.
|
|
11012
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.9_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a21258a25d85bb9a42e25798d118502/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10977
11013
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10978
11014
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10979
11015
|
}
|
|
@@ -10987,7 +11023,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10987
11023
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10988
11024
|
}
|
|
10989
11025
|
//#endregion
|
|
10990
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.
|
|
11026
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.9_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a21258a25d85bb9a42e25798d118502/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10991
11027
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10992
11028
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10993
11029
|
}
|
|
@@ -11007,55 +11043,28 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11007
11043
|
});
|
|
11008
11044
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11009
11045
|
//#endregion
|
|
11010
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
if (!data) return data;
|
|
11014
|
-
const meta = {
|
|
11015
|
-
headers: Object.fromEntries(headers.entries()),
|
|
11016
|
-
status
|
|
11017
|
-
};
|
|
11018
|
-
if (typeof data === "object") Object.defineProperty(data, META_SYMBOL, {
|
|
11019
|
-
value: meta,
|
|
11020
|
-
enumerable: false,
|
|
11021
|
-
writable: false,
|
|
11022
|
-
configurable: false
|
|
11023
|
-
});
|
|
11024
|
-
return data;
|
|
11025
|
-
}
|
|
11026
|
-
function buildSearchParams(params, flattenArrays = false) {
|
|
11027
|
-
const searchParams = new URLSearchParams();
|
|
11028
|
-
Object.entries(params).forEach(([key, value]) => {
|
|
11029
|
-
if (value === void 0) return;
|
|
11030
|
-
if (Array.isArray(value)) if (flattenArrays) searchParams.set(key, value.join(","));
|
|
11031
|
-
else for (const item of value) searchParams.append(key, item === null ? "" : String(item));
|
|
11032
|
-
else searchParams.set(key, value === null ? "" : String(value));
|
|
11033
|
-
});
|
|
11034
|
-
return searchParams;
|
|
11035
|
-
}
|
|
11036
|
-
//#endregion
|
|
11037
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.248_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_51816df5dcd067b35c73e200ad09ed53/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
|
|
11038
|
-
async function getPublicHolidays(httpClient, year, { country, organization_id } = {}, signal) {
|
|
11039
|
-
const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
|
|
11046
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.9_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a21258a25d85bb9a42e25798d118502/node_modules/@toggl/queries/dist/org/public-holidays/requests.mjs
|
|
11047
|
+
async function getPublicHolidaysHolidayDomain(httpClient, year, { country, organization_id } = {}, signal) {
|
|
11048
|
+
const response = await httpClient.get(`holidays/publicholidays/${year}`, {
|
|
11040
11049
|
signal,
|
|
11041
11050
|
searchParams: buildSearchParams({
|
|
11042
11051
|
country,
|
|
11043
11052
|
organization_id
|
|
11044
|
-
})
|
|
11053
|
+
}, true)
|
|
11045
11054
|
});
|
|
11046
11055
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
11047
11056
|
}
|
|
11048
11057
|
//#endregion
|
|
11049
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.
|
|
11058
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.9_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a21258a25d85bb9a42e25798d118502/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11050
11059
|
async function getStatus(httpClient, signal) {
|
|
11051
11060
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11052
11061
|
}
|
|
11053
11062
|
//#endregion
|
|
11054
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.
|
|
11063
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.9_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a21258a25d85bb9a42e25798d118502/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11055
11064
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11056
11065
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11057
11066
|
signal,
|
|
11058
|
-
searchParams: buildSearchParams
|
|
11067
|
+
searchParams: buildSearchParams({
|
|
11059
11068
|
from,
|
|
11060
11069
|
to
|
|
11061
11070
|
}, true)
|
|
@@ -11079,7 +11088,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11079
11088
|
return response.json();
|
|
11080
11089
|
}
|
|
11081
11090
|
//#endregion
|
|
11082
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.
|
|
11091
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.9_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_7a21258a25d85bb9a42e25798d118502/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11083
11092
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11084
11093
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11085
11094
|
}
|
|
@@ -11104,13 +11113,24 @@ async function deleteMyWorkingHours(httpClient, organization_id, data, signal) {
|
|
|
11104
11113
|
return response.json();
|
|
11105
11114
|
}
|
|
11106
11115
|
//#endregion
|
|
11107
|
-
//#region ../cli-core/build/focus-client-
|
|
11116
|
+
//#region ../cli-core/build/focus-client-DXRYFor8.js
|
|
11108
11117
|
/** Request header the API reads to attribute traffic to MCP or CLI. */
|
|
11109
11118
|
const TOGGL_CLIENT_HEADER = "X-Toggl-Client";
|
|
11119
|
+
/** Header the Focus API reads for analytics and presence `platform_origin`. */
|
|
11120
|
+
const TOGGL_POSTHOG_DATA_HEADER = "X-Toggl-PostHog-Data";
|
|
11110
11121
|
/** Headers that attribute a raw `fetch` to MCP or CLI (FocusClient sets these itself). */
|
|
11111
11122
|
function togglClientHeaders(clientSurface) {
|
|
11112
11123
|
return { [TOGGL_CLIENT_HEADER]: clientSurface };
|
|
11113
11124
|
}
|
|
11125
|
+
/** JSON body for `X-Toggl-PostHog-Data`. Origin matches the client header. */
|
|
11126
|
+
function togglPostHogData(clientSurface) {
|
|
11127
|
+
return JSON.stringify({ platform_origin: clientSurface });
|
|
11128
|
+
}
|
|
11129
|
+
/** Apply MCP/CLI attribution on FocusClient (and other HTTP) requests. */
|
|
11130
|
+
function applyTogglAttributionHeaders(headers, clientSurface) {
|
|
11131
|
+
headers.set(TOGGL_CLIENT_HEADER, clientSurface);
|
|
11132
|
+
headers.set(TOGGL_POSTHOG_DATA_HEADER, togglPostHogData(clientSurface));
|
|
11133
|
+
}
|
|
11114
11134
|
const customFieldValuesEntry = /* @__PURE__ */ optional$1(/* @__PURE__ */ nullable$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ record$1(/* @__PURE__ */ string$1(), /* @__PURE__ */ nullable$1(/* @__PURE__ */ union([
|
|
11115
11135
|
/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
11116
11136
|
/* @__PURE__ */ string$1(),
|
|
@@ -11326,8 +11346,7 @@ var FocusClient = class {
|
|
|
11326
11346
|
const token = await this.tokenProvider();
|
|
11327
11347
|
request.headers.set("Authorization", `Bearer ${token}`);
|
|
11328
11348
|
if (!request.headers.get("Content-Type")?.startsWith("multipart/form-data")) request.headers.set("Content-Type", "application/json");
|
|
11329
|
-
request.headers
|
|
11330
|
-
request.headers.set(TOGGL_CLIENT_HEADER, this.clientSurface);
|
|
11349
|
+
applyTogglAttributionHeaders(request.headers, this.clientSurface);
|
|
11331
11350
|
}
|
|
11332
11351
|
});
|
|
11333
11352
|
const orgBase = accountsOrgApiBaseUrl(config.accountsApiUrl);
|
|
@@ -11338,8 +11357,7 @@ var FocusClient = class {
|
|
|
11338
11357
|
const token = await this.tokenProvider();
|
|
11339
11358
|
request.headers.set("Authorization", `Bearer ${token}`);
|
|
11340
11359
|
request.headers.set("Content-Type", "application/json");
|
|
11341
|
-
request.headers
|
|
11342
|
-
request.headers.set(TOGGL_CLIENT_HEADER, this.clientSurface);
|
|
11360
|
+
applyTogglAttributionHeaders(request.headers, this.clientSurface);
|
|
11343
11361
|
}
|
|
11344
11362
|
});
|
|
11345
11363
|
this.timeOffMeHttp = createHttpClient({
|
|
@@ -11350,8 +11368,7 @@ var FocusClient = class {
|
|
|
11350
11368
|
request.headers.set("Authorization", `Bearer ${token}`);
|
|
11351
11369
|
request.headers.set("Content-Type", "application/json");
|
|
11352
11370
|
request.headers.set("X-Toggl-Product", "focus");
|
|
11353
|
-
request.headers
|
|
11354
|
-
request.headers.set(TOGGL_CLIENT_HEADER, this.clientSurface);
|
|
11371
|
+
applyTogglAttributionHeaders(request.headers, this.clientSurface);
|
|
11355
11372
|
}
|
|
11356
11373
|
});
|
|
11357
11374
|
this.sharedDataHttp = createHttpClient({
|
|
@@ -11361,8 +11378,7 @@ var FocusClient = class {
|
|
|
11361
11378
|
const token = await this.tokenProvider();
|
|
11362
11379
|
request.headers.set("Authorization", `Bearer ${token}`);
|
|
11363
11380
|
request.headers.set("Content-Type", "application/json");
|
|
11364
|
-
request.headers
|
|
11365
|
-
request.headers.set(TOGGL_CLIENT_HEADER, this.clientSurface);
|
|
11381
|
+
applyTogglAttributionHeaders(request.headers, this.clientSurface);
|
|
11366
11382
|
}
|
|
11367
11383
|
});
|
|
11368
11384
|
}
|
|
@@ -11708,7 +11724,7 @@ var FocusClient = class {
|
|
|
11708
11724
|
const time_block_id = parseOptionalInt(params.time_block_id);
|
|
11709
11725
|
const requestedPage = parseOptionalInt(params.page) ?? 1;
|
|
11710
11726
|
const requestedPerPage = parseOptionalInt(params.per_page);
|
|
11711
|
-
const fetchPage = (page, per_page) => this.run("listTimeEntries", () => this.http.get(`organizations/${this.organizationIdNum}/workspaces/${this.workspaceIdNum}/time-entries`, { searchParams: buildSearchParams$
|
|
11727
|
+
const fetchPage = (page, per_page) => this.run("listTimeEntries", () => this.http.get(`organizations/${this.organizationIdNum}/workspaces/${this.workspaceIdNum}/time-entries`, { searchParams: buildSearchParams$1({
|
|
11712
11728
|
date_from,
|
|
11713
11729
|
date_to,
|
|
11714
11730
|
task_id,
|
|
@@ -11836,7 +11852,7 @@ var FocusClient = class {
|
|
|
11836
11852
|
});
|
|
11837
11853
|
}
|
|
11838
11854
|
async listAlerts(params = {}) {
|
|
11839
|
-
const response = await this.run("listAlerts", () => this.http.get(`organizations/${this.organizationIdNum}/workspaces/${this.workspaceIdNum}/alerts`, { searchParams: buildSearchParams$
|
|
11855
|
+
const response = await this.run("listAlerts", () => this.http.get(`organizations/${this.organizationIdNum}/workspaces/${this.workspaceIdNum}/alerts`, { searchParams: buildSearchParams$1({
|
|
11840
11856
|
rule_type: params.rule_type,
|
|
11841
11857
|
project_id: params.project_id,
|
|
11842
11858
|
scope: params.scope
|
|
@@ -11985,7 +12001,7 @@ var FocusClient = class {
|
|
|
11985
12001
|
return this.softValidateResponse("getSharedDataStatus", StatusOKSchema, response);
|
|
11986
12002
|
}
|
|
11987
12003
|
async listPublicHolidays(year, country) {
|
|
11988
|
-
const response = await this.run("listPublicHolidays", () =>
|
|
12004
|
+
const response = await this.run("listPublicHolidays", () => getPublicHolidaysHolidayDomain(this.orgHttp, year, country === void 0 ? {} : { country }));
|
|
11989
12005
|
return response.ok ? {
|
|
11990
12006
|
ok: true,
|
|
11991
12007
|
data: response.data
|
|
@@ -13139,7 +13155,7 @@ async function runSkillSetup(options) {
|
|
|
13139
13155
|
});
|
|
13140
13156
|
}
|
|
13141
13157
|
//#endregion
|
|
13142
|
-
//#region ../operations/build/validation-
|
|
13158
|
+
//#region ../operations/build/validation-BvUOg9Kw.js
|
|
13143
13159
|
const optionalNumber = /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2());
|
|
13144
13160
|
const perPageField = (max) => /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ integer(), /* @__PURE__ */ minValue$1(1), /* @__PURE__ */ maxValue$1(max), /* @__PURE__ */ description$1(`Results per page (1-${max})`)));
|
|
13145
13161
|
const perPageSchema = perPageField(100);
|
|
@@ -14169,6 +14185,35 @@ const timeEntryOverrides = {
|
|
|
14169
14185
|
}
|
|
14170
14186
|
]
|
|
14171
14187
|
},
|
|
14188
|
+
"focus.time-entries.create": {
|
|
14189
|
+
description: "Create a completed task time entry. payload.type defaults to 'activity' when omitted.",
|
|
14190
|
+
agentGuidance: "Logs a completed task time entry. payload.type defaults to 'activity' when omitted; pass 'break' explicitly for a break. provide payload.start and payload.duration for completed tracked time.",
|
|
14191
|
+
examples: [{
|
|
14192
|
+
description: "Log a completed activity",
|
|
14193
|
+
data: {
|
|
14194
|
+
task_id: 12345,
|
|
14195
|
+
payload: {
|
|
14196
|
+
start: "2025-01-15T09:00:00Z",
|
|
14197
|
+
duration: 3600,
|
|
14198
|
+
type: "activity"
|
|
14199
|
+
}
|
|
14200
|
+
}
|
|
14201
|
+
}, {
|
|
14202
|
+
description: "Log a completed break",
|
|
14203
|
+
data: {
|
|
14204
|
+
task_id: 12345,
|
|
14205
|
+
payload: {
|
|
14206
|
+
start: "2025-01-15T10:00:00Z",
|
|
14207
|
+
duration: 900,
|
|
14208
|
+
type: "break"
|
|
14209
|
+
}
|
|
14210
|
+
}
|
|
14211
|
+
}]
|
|
14212
|
+
},
|
|
14213
|
+
"focus.time-entries.create-taskless": {
|
|
14214
|
+
description: "Create a completed taskless time entry. payload.type defaults to 'activity' when omitted.",
|
|
14215
|
+
agentGuidance: "Logs a completed taskless time entry. payload.type defaults to 'activity' when omitted; pass 'break' explicitly for a break."
|
|
14216
|
+
},
|
|
14172
14217
|
"focus.time-entries.start": {
|
|
14173
14218
|
agentGuidance: "type defaults to 'activity' if omitted; pass type:'break' to start a break. Optionally provide task_id, project_id, description, and time_block_id. Only one timer can be active at a time — stops the current one if running.",
|
|
14174
14219
|
examples: [{
|
|
@@ -14666,7 +14711,7 @@ async function getWorkspaceAttachmentStorage(httpClient, organization_id, worksp
|
|
|
14666
14711
|
async function getOrganizationAuditLog(httpClient, organization_id, from, to, { workspace_id, entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
|
|
14667
14712
|
return await httpClient.get(`organizations/${organization_id}/audit-log/${from}/${to}`, {
|
|
14668
14713
|
signal,
|
|
14669
|
-
searchParams: buildSearchParams$
|
|
14714
|
+
searchParams: buildSearchParams$2({
|
|
14670
14715
|
workspace_id,
|
|
14671
14716
|
entity_type,
|
|
14672
14717
|
entity_id,
|
|
@@ -14681,7 +14726,7 @@ async function getOrganizationAuditLog(httpClient, organization_id, from, to, {
|
|
|
14681
14726
|
async function getAuditLog(httpClient, organization_id, workspace_id, from, to, { entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
|
|
14682
14727
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/audit-log/${from}/${to}`, {
|
|
14683
14728
|
signal,
|
|
14684
|
-
searchParams: buildSearchParams$
|
|
14729
|
+
searchParams: buildSearchParams$2({
|
|
14685
14730
|
entity_type,
|
|
14686
14731
|
entity_id,
|
|
14687
14732
|
action,
|
|
@@ -14697,7 +14742,7 @@ async function getAuditLog(httpClient, organization_id, workspace_id, from, to,
|
|
|
14697
14742
|
async function getProjectsBillableRates(httpClient, organization_id, workspace_id, { project_id, date }, signal) {
|
|
14698
14743
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/rates`, {
|
|
14699
14744
|
signal,
|
|
14700
|
-
searchParams: buildSearchParams$
|
|
14745
|
+
searchParams: buildSearchParams$2({
|
|
14701
14746
|
project_id,
|
|
14702
14747
|
date
|
|
14703
14748
|
})
|
|
@@ -14706,7 +14751,7 @@ async function getProjectsBillableRates(httpClient, organization_id, workspace_i
|
|
|
14706
14751
|
async function getAllProjectUserBillableRates(httpClient, organization_id, workspace_id, { project_id, user_id, date, order_by } = {}, signal) {
|
|
14707
14752
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/users/rates`, {
|
|
14708
14753
|
signal,
|
|
14709
|
-
searchParams: buildSearchParams$
|
|
14754
|
+
searchParams: buildSearchParams$2({
|
|
14710
14755
|
project_id,
|
|
14711
14756
|
user_id,
|
|
14712
14757
|
date,
|
|
@@ -14717,7 +14762,7 @@ async function getAllProjectUserBillableRates(httpClient, organization_id, works
|
|
|
14717
14762
|
async function getProjectBillableRates(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
14718
14763
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates`, {
|
|
14719
14764
|
signal,
|
|
14720
|
-
searchParams: buildSearchParams$
|
|
14765
|
+
searchParams: buildSearchParams$2({ order_by })
|
|
14721
14766
|
}).json();
|
|
14722
14767
|
}
|
|
14723
14768
|
async function upsertProjectBillableRate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
@@ -14729,7 +14774,7 @@ async function upsertProjectBillableRate(httpClient, organization_id, workspace_
|
|
|
14729
14774
|
async function deleteProjectBillableRateRange(httpClient, organization_id, workspace_id, project_id, from, to, signal) {
|
|
14730
14775
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates`, {
|
|
14731
14776
|
signal,
|
|
14732
|
-
searchParams: buildSearchParams$
|
|
14777
|
+
searchParams: buildSearchParams$2({
|
|
14733
14778
|
from,
|
|
14734
14779
|
to
|
|
14735
14780
|
})
|
|
@@ -14744,7 +14789,7 @@ async function checkProjectBillableRateConflicts(httpClient, organization_id, wo
|
|
|
14744
14789
|
async function getProjectUserBillableRates(httpClient, organization_id, workspace_id, project_id, user_id, { order_by } = {}, signal) {
|
|
14745
14790
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates`, {
|
|
14746
14791
|
signal,
|
|
14747
|
-
searchParams: buildSearchParams$
|
|
14792
|
+
searchParams: buildSearchParams$2({ order_by })
|
|
14748
14793
|
}).json();
|
|
14749
14794
|
}
|
|
14750
14795
|
async function upsertProjectUserBillableRate(httpClient, organization_id, workspace_id, project_id, user_id, data, signal) {
|
|
@@ -14756,7 +14801,7 @@ async function upsertProjectUserBillableRate(httpClient, organization_id, worksp
|
|
|
14756
14801
|
async function deleteProjectUserBillableRateRange(httpClient, organization_id, workspace_id, project_id, user_id, from, to, signal) {
|
|
14757
14802
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates`, {
|
|
14758
14803
|
signal,
|
|
14759
|
-
searchParams: buildSearchParams$
|
|
14804
|
+
searchParams: buildSearchParams$2({
|
|
14760
14805
|
from,
|
|
14761
14806
|
to
|
|
14762
14807
|
})
|
|
@@ -14774,7 +14819,7 @@ async function deleteBillableRateById(httpClient, organization_id, workspace_id,
|
|
|
14774
14819
|
async function getAllWorkspaceUserBillableRates(httpClient, organization_id, workspace_id, { user_id, order_by } = {}, signal) {
|
|
14775
14820
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates`, {
|
|
14776
14821
|
signal,
|
|
14777
|
-
searchParams: buildSearchParams$
|
|
14822
|
+
searchParams: buildSearchParams$2({
|
|
14778
14823
|
user_id,
|
|
14779
14824
|
order_by
|
|
14780
14825
|
})
|
|
@@ -14783,7 +14828,7 @@ async function getAllWorkspaceUserBillableRates(httpClient, organization_id, wor
|
|
|
14783
14828
|
async function getWorkspaceUserBillableRates(httpClient, organization_id, workspace_id, user_id, { order_by } = {}, signal) {
|
|
14784
14829
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
|
|
14785
14830
|
signal,
|
|
14786
|
-
searchParams: buildSearchParams$
|
|
14831
|
+
searchParams: buildSearchParams$2({ order_by })
|
|
14787
14832
|
}).json();
|
|
14788
14833
|
}
|
|
14789
14834
|
async function upsertWorkspaceUserBillableRate(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
@@ -14795,7 +14840,7 @@ async function upsertWorkspaceUserBillableRate(httpClient, organization_id, work
|
|
|
14795
14840
|
async function deleteWorkspaceUserBillableRateRange(httpClient, organization_id, workspace_id, user_id, from, to, signal) {
|
|
14796
14841
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
|
|
14797
14842
|
signal,
|
|
14798
|
-
searchParams: buildSearchParams$
|
|
14843
|
+
searchParams: buildSearchParams$2({
|
|
14799
14844
|
from,
|
|
14800
14845
|
to
|
|
14801
14846
|
})
|
|
@@ -14810,7 +14855,7 @@ async function checkWorkspaceUserBillableRateConflicts(httpClient, organization_
|
|
|
14810
14855
|
async function getWorkspaceBillableRates(httpClient, organization_id, workspace_id, { order_by } = {}, signal) {
|
|
14811
14856
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates`, {
|
|
14812
14857
|
signal,
|
|
14813
|
-
searchParams: buildSearchParams$
|
|
14858
|
+
searchParams: buildSearchParams$2({ order_by })
|
|
14814
14859
|
}).json();
|
|
14815
14860
|
}
|
|
14816
14861
|
async function upsertWorkspaceBillableRate(httpClient, organization_id, workspace_id, data, signal) {
|
|
@@ -14822,7 +14867,7 @@ async function upsertWorkspaceBillableRate(httpClient, organization_id, workspac
|
|
|
14822
14867
|
async function deleteWorkspaceBillableRateRange(httpClient, organization_id, workspace_id, from, to, signal) {
|
|
14823
14868
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates`, {
|
|
14824
14869
|
signal,
|
|
14825
|
-
searchParams: buildSearchParams$
|
|
14870
|
+
searchParams: buildSearchParams$2({
|
|
14826
14871
|
from,
|
|
14827
14872
|
to
|
|
14828
14873
|
})
|
|
@@ -14836,13 +14881,14 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
|
|
|
14836
14881
|
}
|
|
14837
14882
|
//#endregion
|
|
14838
14883
|
//#region ../focus-queries/dist/capacities/requests.ts
|
|
14839
|
-
async function capacityGetComputations(httpClient, organization_id, workspace_id, group, {
|
|
14884
|
+
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) {
|
|
14840
14885
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
|
|
14841
14886
|
signal,
|
|
14842
|
-
searchParams: buildSearchParams$
|
|
14843
|
-
user_id,
|
|
14887
|
+
searchParams: buildSearchParams$2({
|
|
14844
14888
|
start_date,
|
|
14845
14889
|
end_date,
|
|
14890
|
+
user_id,
|
|
14891
|
+
team_id,
|
|
14846
14892
|
private: private_,
|
|
14847
14893
|
task_source,
|
|
14848
14894
|
unit,
|
|
@@ -14870,7 +14916,7 @@ async function compositeCreateTask(httpClient, organization_id, workspace_id, da
|
|
|
14870
14916
|
async function getCustomFieldsClassic(httpClient, organization_id, workspace_id, { entity_type, page, per_page, order_by } = {}, signal) {
|
|
14871
14917
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields`, {
|
|
14872
14918
|
signal,
|
|
14873
|
-
searchParams: buildSearchParams$
|
|
14919
|
+
searchParams: buildSearchParams$2({
|
|
14874
14920
|
entity_type,
|
|
14875
14921
|
page,
|
|
14876
14922
|
per_page,
|
|
@@ -14914,7 +14960,7 @@ async function replaceCustomFieldAllowedUsers(httpClient, organization_id, works
|
|
|
14914
14960
|
async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
|
|
14915
14961
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
14916
14962
|
signal,
|
|
14917
|
-
searchParams: buildSearchParams$
|
|
14963
|
+
searchParams: buildSearchParams$2({
|
|
14918
14964
|
name,
|
|
14919
14965
|
page,
|
|
14920
14966
|
per_page,
|
|
@@ -14989,7 +15035,7 @@ async function getGoals(httpClient, organization_id, workspace_id, signal) {
|
|
|
14989
15035
|
async function getAllProjectUserLaborCostRates(httpClient, organization_id, workspace_id, { project_id, user_id, date, order_by } = {}, signal) {
|
|
14990
15036
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/users/rates`, {
|
|
14991
15037
|
signal,
|
|
14992
|
-
searchParams: buildSearchParams$
|
|
15038
|
+
searchParams: buildSearchParams$2({
|
|
14993
15039
|
project_id,
|
|
14994
15040
|
user_id,
|
|
14995
15041
|
date,
|
|
@@ -15000,7 +15046,7 @@ async function getAllProjectUserLaborCostRates(httpClient, organization_id, work
|
|
|
15000
15046
|
async function getProjectLaborCostRates(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
15001
15047
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates`, {
|
|
15002
15048
|
signal,
|
|
15003
|
-
searchParams: buildSearchParams$
|
|
15049
|
+
searchParams: buildSearchParams$2({ order_by })
|
|
15004
15050
|
}).json();
|
|
15005
15051
|
}
|
|
15006
15052
|
async function upsertProjectLaborCostRate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
@@ -15012,7 +15058,7 @@ async function upsertProjectLaborCostRate(httpClient, organization_id, workspace
|
|
|
15012
15058
|
async function deleteProjectLaborCostRateRange(httpClient, organization_id, workspace_id, project_id, from, to, signal) {
|
|
15013
15059
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates`, {
|
|
15014
15060
|
signal,
|
|
15015
|
-
searchParams: buildSearchParams$
|
|
15061
|
+
searchParams: buildSearchParams$2({
|
|
15016
15062
|
from,
|
|
15017
15063
|
to
|
|
15018
15064
|
})
|
|
@@ -15027,7 +15073,7 @@ async function checkProjectLaborCostConflicts(httpClient, organization_id, works
|
|
|
15027
15073
|
async function getProjectUserLaborCostRates(httpClient, organization_id, workspace_id, project_id, user_id, { order_by } = {}, signal) {
|
|
15028
15074
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates`, {
|
|
15029
15075
|
signal,
|
|
15030
|
-
searchParams: buildSearchParams$
|
|
15076
|
+
searchParams: buildSearchParams$2({ order_by })
|
|
15031
15077
|
}).json();
|
|
15032
15078
|
}
|
|
15033
15079
|
async function upsertProjectUserLaborCostRate(httpClient, organization_id, workspace_id, project_id, user_id, data, signal) {
|
|
@@ -15039,7 +15085,7 @@ async function upsertProjectUserLaborCostRate(httpClient, organization_id, works
|
|
|
15039
15085
|
async function deleteProjectUserLaborCostRateRange(httpClient, organization_id, workspace_id, project_id, user_id, from, to, signal) {
|
|
15040
15086
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates`, {
|
|
15041
15087
|
signal,
|
|
15042
|
-
searchParams: buildSearchParams$
|
|
15088
|
+
searchParams: buildSearchParams$2({
|
|
15043
15089
|
from,
|
|
15044
15090
|
to
|
|
15045
15091
|
})
|
|
@@ -15057,7 +15103,7 @@ async function deleteLaborCostRateById(httpClient, organization_id, workspace_id
|
|
|
15057
15103
|
async function getAllWorkspaceUserLaborCostRates(httpClient, organization_id, workspace_id, { user_id, order_by } = {}, signal) {
|
|
15058
15104
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates`, {
|
|
15059
15105
|
signal,
|
|
15060
|
-
searchParams: buildSearchParams$
|
|
15106
|
+
searchParams: buildSearchParams$2({
|
|
15061
15107
|
user_id,
|
|
15062
15108
|
order_by
|
|
15063
15109
|
})
|
|
@@ -15066,7 +15112,7 @@ async function getAllWorkspaceUserLaborCostRates(httpClient, organization_id, wo
|
|
|
15066
15112
|
async function getWorkspaceUserLaborCostRates(httpClient, organization_id, workspace_id, user_id, { order_by } = {}, signal) {
|
|
15067
15113
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
|
|
15068
15114
|
signal,
|
|
15069
|
-
searchParams: buildSearchParams$
|
|
15115
|
+
searchParams: buildSearchParams$2({ order_by })
|
|
15070
15116
|
}).json();
|
|
15071
15117
|
}
|
|
15072
15118
|
async function upsertWorkspaceUserLaborCostRate(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
@@ -15078,7 +15124,7 @@ async function upsertWorkspaceUserLaborCostRate(httpClient, organization_id, wor
|
|
|
15078
15124
|
async function deleteWorkspaceUserLaborCostRateRange(httpClient, organization_id, workspace_id, user_id, from, to, signal) {
|
|
15079
15125
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
|
|
15080
15126
|
signal,
|
|
15081
|
-
searchParams: buildSearchParams$
|
|
15127
|
+
searchParams: buildSearchParams$2({
|
|
15082
15128
|
from,
|
|
15083
15129
|
to
|
|
15084
15130
|
})
|
|
@@ -15093,7 +15139,7 @@ async function checkWorkspaceUserLaborCostConflicts(httpClient, organization_id,
|
|
|
15093
15139
|
async function getWorkspaceLaborCostRates(httpClient, organization_id, workspace_id, { order_by } = {}, signal) {
|
|
15094
15140
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates`, {
|
|
15095
15141
|
signal,
|
|
15096
|
-
searchParams: buildSearchParams$
|
|
15142
|
+
searchParams: buildSearchParams$2({ order_by })
|
|
15097
15143
|
}).json();
|
|
15098
15144
|
}
|
|
15099
15145
|
async function upsertWorkspaceLaborCostRate(httpClient, organization_id, workspace_id, data, signal) {
|
|
@@ -15105,7 +15151,7 @@ async function upsertWorkspaceLaborCostRate(httpClient, organization_id, workspa
|
|
|
15105
15151
|
async function deleteWorkspaceLaborCostRateRange(httpClient, organization_id, workspace_id, from, to, signal) {
|
|
15106
15152
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates`, {
|
|
15107
15153
|
signal,
|
|
15108
|
-
searchParams: buildSearchParams$
|
|
15154
|
+
searchParams: buildSearchParams$2({
|
|
15109
15155
|
from,
|
|
15110
15156
|
to
|
|
15111
15157
|
})
|
|
@@ -15122,7 +15168,7 @@ async function checkWorkspaceLaborCostConflicts(httpClient, organization_id, wor
|
|
|
15122
15168
|
async function getMilestonesClassic(httpClient, workspace_id, { page, per_page, order_by, due_date_from, due_date_to, project_id, team_id } = {}, signal) {
|
|
15123
15169
|
return await httpClient.get(`workspaces/${workspace_id}/milestones`, {
|
|
15124
15170
|
signal,
|
|
15125
|
-
searchParams: buildSearchParams$
|
|
15171
|
+
searchParams: buildSearchParams$2({
|
|
15126
15172
|
page,
|
|
15127
15173
|
per_page,
|
|
15128
15174
|
order_by,
|
|
@@ -15142,7 +15188,7 @@ async function createMilestone(httpClient, workspace_id, data, signal) {
|
|
|
15142
15188
|
async function getMilestonesStream(httpClient, workspace_id, { order_by, due_date_from, due_date_to, project_id, team_id } = {}, signal) {
|
|
15143
15189
|
return await httpClient.get(`workspaces/${workspace_id}/milestones/stream`, {
|
|
15144
15190
|
signal,
|
|
15145
|
-
searchParams: buildSearchParams$
|
|
15191
|
+
searchParams: buildSearchParams$2({
|
|
15146
15192
|
order_by,
|
|
15147
15193
|
due_date_from,
|
|
15148
15194
|
due_date_to,
|
|
@@ -15177,7 +15223,7 @@ async function restoreMilestone(httpClient, workspace_id, milestone_id, signal)
|
|
|
15177
15223
|
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, assignee_user_id, project_id, start_date, end_date, user_id, only_me, include_drafts, cf_filter } = {}, signal) {
|
|
15178
15224
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
|
|
15179
15225
|
signal,
|
|
15180
|
-
searchParams: buildSearchParams$
|
|
15226
|
+
searchParams: buildSearchParams$2({
|
|
15181
15227
|
page,
|
|
15182
15228
|
per_page,
|
|
15183
15229
|
order_by,
|
|
@@ -15218,9 +15264,6 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
|
|
|
15218
15264
|
json: data
|
|
15219
15265
|
}).json();
|
|
15220
15266
|
}
|
|
15221
|
-
async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
|
|
15222
|
-
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
|
|
15223
|
-
}
|
|
15224
15267
|
async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
15225
15268
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
|
|
15226
15269
|
}
|
|
@@ -15238,7 +15281,7 @@ async function clearProjectMarginTarget(httpClient, organization_id, workspace_i
|
|
|
15238
15281
|
async function getPublicHolidaysByUserIds(httpClient, organization_id, { user_id, start_date, end_date }, signal) {
|
|
15239
15282
|
return await httpClient.get(`organizations/${organization_id}/public-holidays`, {
|
|
15240
15283
|
signal,
|
|
15241
|
-
searchParams: buildSearchParams$
|
|
15284
|
+
searchParams: buildSearchParams$2({
|
|
15242
15285
|
user_id,
|
|
15243
15286
|
start_date,
|
|
15244
15287
|
end_date
|
|
@@ -15250,7 +15293,7 @@ async function getPublicHolidaysByUserIds(httpClient, organization_id, { user_id
|
|
|
15250
15293
|
async function getProjectRatesSummary(httpClient, organization_id, workspace_id, { page, rows, order_by, search } = {}, signal) {
|
|
15251
15294
|
const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/rates`, {
|
|
15252
15295
|
signal,
|
|
15253
|
-
searchParams: buildSearchParams$
|
|
15296
|
+
searchParams: buildSearchParams$2({
|
|
15254
15297
|
page,
|
|
15255
15298
|
rows,
|
|
15256
15299
|
order_by,
|
|
@@ -15262,7 +15305,7 @@ async function getProjectRatesSummary(httpClient, organization_id, workspace_id,
|
|
|
15262
15305
|
async function getProjectRates(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
15263
15306
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates`, {
|
|
15264
15307
|
signal,
|
|
15265
|
-
searchParams: buildSearchParams$
|
|
15308
|
+
searchParams: buildSearchParams$2({ order_by })
|
|
15266
15309
|
}).json();
|
|
15267
15310
|
}
|
|
15268
15311
|
async function createProjectRate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
@@ -15274,7 +15317,7 @@ async function createProjectRate(httpClient, organization_id, workspace_id, proj
|
|
|
15274
15317
|
async function deleteProjectRate(httpClient, organization_id, workspace_id, project_id, from, to, signal) {
|
|
15275
15318
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates`, {
|
|
15276
15319
|
signal,
|
|
15277
|
-
searchParams: buildSearchParams$
|
|
15320
|
+
searchParams: buildSearchParams$2({
|
|
15278
15321
|
from,
|
|
15279
15322
|
to
|
|
15280
15323
|
})
|
|
@@ -15294,7 +15337,7 @@ async function createTaskRate(httpClient, organization_id, workspace_id, task_id
|
|
|
15294
15337
|
async function getRecurringProjectBudgetSuggestion(httpClient, organization_id, workspace_id, project_id, { target_period_start }, signal) {
|
|
15295
15338
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/recurring-budget-suggestions/${project_id}`, {
|
|
15296
15339
|
signal,
|
|
15297
|
-
searchParams: buildSearchParams$
|
|
15340
|
+
searchParams: buildSearchParams$2({ target_period_start })
|
|
15298
15341
|
}).json();
|
|
15299
15342
|
}
|
|
15300
15343
|
async function acceptARecurringProjectBudgetSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
@@ -15322,7 +15365,7 @@ async function getProfitabilityReport(httpClient, workspace_id, data, response_f
|
|
|
15322
15365
|
signal,
|
|
15323
15366
|
json: data,
|
|
15324
15367
|
headers: { "X-Toggl-Report-Export": xTogglReportExport },
|
|
15325
|
-
searchParams: buildSearchParams$
|
|
15368
|
+
searchParams: buildSearchParams$2({
|
|
15326
15369
|
response_format,
|
|
15327
15370
|
include_dicts
|
|
15328
15371
|
})
|
|
@@ -15333,7 +15376,7 @@ async function getFlexqData(httpClient, workspace_id, data, { response_format, i
|
|
|
15333
15376
|
signal,
|
|
15334
15377
|
json: data,
|
|
15335
15378
|
headers: { "X-Toggl-Report-Export": xTogglReportExport },
|
|
15336
|
-
searchParams: buildSearchParams$
|
|
15379
|
+
searchParams: buildSearchParams$2({
|
|
15337
15380
|
response_format,
|
|
15338
15381
|
include_dicts
|
|
15339
15382
|
})
|
|
@@ -15380,7 +15423,7 @@ async function deleteSharedReportSchedule(httpClient, workspace_id, id, signal)
|
|
|
15380
15423
|
async function getSavedViews(httpClient, workspace_id, { name, type, order_by } = {}, signal) {
|
|
15381
15424
|
return await httpClient.get(`workspaces/${workspace_id}/saved-views`, {
|
|
15382
15425
|
signal,
|
|
15383
|
-
searchParams: buildSearchParams$
|
|
15426
|
+
searchParams: buildSearchParams$2({
|
|
15384
15427
|
name,
|
|
15385
15428
|
type,
|
|
15386
15429
|
order_by
|
|
@@ -15410,7 +15453,7 @@ async function updateASavedView(httpClient, workspace_id, id, data, signal) {
|
|
|
15410
15453
|
async function search(httpClient, organization_id, workspace_id, { keyword, per_group, assignee_user_id, assignee_team_id, project_id, task_id, include_drafts, exclude_calendar_events, group_by_tags, only_me }, signal) {
|
|
15411
15454
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
15412
15455
|
signal,
|
|
15413
|
-
searchParams: buildSearchParams$
|
|
15456
|
+
searchParams: buildSearchParams$2({
|
|
15414
15457
|
keyword,
|
|
15415
15458
|
per_group,
|
|
15416
15459
|
assignee_user_id,
|
|
@@ -15427,7 +15470,7 @@ async function search(httpClient, organization_id, workspace_id, { keyword, per_
|
|
|
15427
15470
|
async function searchMentions(httpClient, organization_id, workspace_id, { keyword, per_group } = {}, signal) {
|
|
15428
15471
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search/mentions`, {
|
|
15429
15472
|
signal,
|
|
15430
|
-
searchParams: buildSearchParams$
|
|
15473
|
+
searchParams: buildSearchParams$2({
|
|
15431
15474
|
keyword,
|
|
15432
15475
|
per_group
|
|
15433
15476
|
})
|
|
@@ -15513,7 +15556,7 @@ async function createTaskEstimateAllocations(httpClient, organization_id, worksp
|
|
|
15513
15556
|
async function deleteTaskEstimateAllocations(httpClient, organization_id, workspace_id, task_id, id, signal) {
|
|
15514
15557
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
15515
15558
|
signal,
|
|
15516
|
-
searchParams: buildSearchParams$
|
|
15559
|
+
searchParams: buildSearchParams$2({ id })
|
|
15517
15560
|
}).json();
|
|
15518
15561
|
}
|
|
15519
15562
|
async function updateTaskEstimateAllocations(httpClient, organization_id, workspace_id, task_id, data, signal) {
|
|
@@ -15524,10 +15567,11 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
|
|
|
15524
15567
|
}
|
|
15525
15568
|
//#endregion
|
|
15526
15569
|
//#region ../focus-queries/dist/task-groups/requests.ts
|
|
15527
|
-
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 }, signal) {
|
|
15570
|
+
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) {
|
|
15528
15571
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
|
|
15529
15572
|
signal,
|
|
15530
|
-
|
|
15573
|
+
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
15574
|
+
searchParams: buildSearchParams$2({
|
|
15531
15575
|
project_id,
|
|
15532
15576
|
source,
|
|
15533
15577
|
priority,
|
|
@@ -15559,10 +15603,11 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
|
|
|
15559
15603
|
})
|
|
15560
15604
|
}).json();
|
|
15561
15605
|
}
|
|
15562
|
-
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 } = {}, signal) {
|
|
15606
|
+
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) {
|
|
15563
15607
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
|
|
15564
15608
|
signal,
|
|
15565
|
-
|
|
15609
|
+
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
15610
|
+
searchParams: buildSearchParams$2({
|
|
15566
15611
|
team_id,
|
|
15567
15612
|
project_id,
|
|
15568
15613
|
source,
|
|
@@ -15594,10 +15639,11 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
|
|
|
15594
15639
|
})
|
|
15595
15640
|
}).json();
|
|
15596
15641
|
}
|
|
15597
|
-
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 } = {}, signal) {
|
|
15642
|
+
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) {
|
|
15598
15643
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
15599
15644
|
signal,
|
|
15600
|
-
|
|
15645
|
+
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
15646
|
+
searchParams: buildSearchParams$2({
|
|
15601
15647
|
source,
|
|
15602
15648
|
priority,
|
|
15603
15649
|
status_id,
|
|
@@ -15668,7 +15714,7 @@ async function upsertTimeEntryConstraints(httpClient, workspace_id, data, signal
|
|
|
15668
15714
|
async function getTimeEntryGroupsUsersClassic(httpClient, organization_id, workspace_id, { start_date, end_date, user_id, page, per_page, order_by }, signal) {
|
|
15669
15715
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/groups/users`, {
|
|
15670
15716
|
signal,
|
|
15671
|
-
searchParams: buildSearchParams$
|
|
15717
|
+
searchParams: buildSearchParams$2({
|
|
15672
15718
|
start_date,
|
|
15673
15719
|
end_date,
|
|
15674
15720
|
user_id,
|
|
@@ -15683,7 +15729,7 @@ async function getTimeEntryGroupsUsersClassic(httpClient, organization_id, works
|
|
|
15683
15729
|
async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, start_date, end_date }, signal) {
|
|
15684
15730
|
return await httpClient.get(`organizations/${organization_id}/timeoff`, {
|
|
15685
15731
|
signal,
|
|
15686
|
-
searchParams: buildSearchParams$
|
|
15732
|
+
searchParams: buildSearchParams$2({
|
|
15687
15733
|
user_id,
|
|
15688
15734
|
start_date,
|
|
15689
15735
|
end_date
|
|
@@ -15693,7 +15739,7 @@ async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, star
|
|
|
15693
15739
|
async function getTimeoffForUser(httpClient, organization_id, user_id, { from, to }, signal) {
|
|
15694
15740
|
return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
15695
15741
|
signal,
|
|
15696
|
-
searchParams: buildSearchParams$
|
|
15742
|
+
searchParams: buildSearchParams$2({
|
|
15697
15743
|
from,
|
|
15698
15744
|
to
|
|
15699
15745
|
})
|
|
@@ -15722,7 +15768,7 @@ async function deleteTimeoffForUser(httpClient, organization_id, user_id, data,
|
|
|
15722
15768
|
async function getTimesheetSetups(httpClient, organization_id, workspace_id, { include_discontinued, user_account_id, approver_user_account_id } = {}, signal) {
|
|
15723
15769
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
|
|
15724
15770
|
signal,
|
|
15725
|
-
searchParams: buildSearchParams$
|
|
15771
|
+
searchParams: buildSearchParams$2({
|
|
15726
15772
|
include_discontinued,
|
|
15727
15773
|
user_account_id,
|
|
15728
15774
|
approver_user_account_id
|
|
@@ -15759,7 +15805,7 @@ async function discontinueTimesheetSetup(httpClient, organization_id, workspace_
|
|
|
15759
15805
|
async function getTimesheetSetupMembers(httpClient, organization_id, workspace_id, setup_id, { include_discontinued } = {}, signal) {
|
|
15760
15806
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members`, {
|
|
15761
15807
|
signal,
|
|
15762
|
-
searchParams: buildSearchParams$
|
|
15808
|
+
searchParams: buildSearchParams$2({ include_discontinued })
|
|
15763
15809
|
}).json();
|
|
15764
15810
|
}
|
|
15765
15811
|
async function addTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
|
|
@@ -15782,7 +15828,7 @@ async function reactivateTimesheetSetupMember(httpClient, organization_id, works
|
|
|
15782
15828
|
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, page, per_page }, signal) {
|
|
15783
15829
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets`, {
|
|
15784
15830
|
signal,
|
|
15785
|
-
searchParams: buildSearchParams$
|
|
15831
|
+
searchParams: buildSearchParams$2({
|
|
15786
15832
|
date_from,
|
|
15787
15833
|
date_to,
|
|
15788
15834
|
setup_id,
|
|
@@ -16186,6 +16232,7 @@ const generatedFocusOperations = [
|
|
|
16186
16232
|
private_: /* @__PURE__ */ unknown$1(),
|
|
16187
16233
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
16188
16234
|
task_source: /* @__PURE__ */ unknown$1(),
|
|
16235
|
+
team_id: /* @__PURE__ */ number$2(),
|
|
16189
16236
|
unit: /* @__PURE__ */ unknown$1(),
|
|
16190
16237
|
user_id: /* @__PURE__ */ number$2()
|
|
16191
16238
|
}),
|
|
@@ -16494,6 +16541,7 @@ const generatedFocusOperations = [
|
|
|
16494
16541
|
outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
16495
16542
|
}))),
|
|
16496
16543
|
time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
|
|
16544
|
+
type: /* @__PURE__ */ picklist$1(["activity", "break"]),
|
|
16497
16545
|
calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
16498
16546
|
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
16499
16547
|
duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
@@ -18109,9 +18157,17 @@ const generatedFocusOperations = [
|
|
|
18109
18157
|
mcp: { entityTool: "projects" },
|
|
18110
18158
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
18111
18159
|
payload: /* @__PURE__ */ looseObject({
|
|
18160
|
+
auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
18161
|
+
completion_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "automatic"])),
|
|
18112
18162
|
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
18113
18163
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
18114
18164
|
pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
18165
|
+
rollover_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
18166
|
+
"expire",
|
|
18167
|
+
"carry_all",
|
|
18168
|
+
"carry_over"
|
|
18169
|
+
])),
|
|
18170
|
+
rrule: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
18115
18171
|
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
|
|
18116
18172
|
}),
|
|
18117
18173
|
project_id: /* @__PURE__ */ number$2()
|
|
@@ -18657,29 +18713,6 @@ const generatedFocusOperations = [
|
|
|
18657
18713
|
]));
|
|
18658
18714
|
}
|
|
18659
18715
|
},
|
|
18660
|
-
{
|
|
18661
|
-
id: "focus.projects.margin-targets-clear-workspace",
|
|
18662
|
-
family: "focus",
|
|
18663
|
-
resource: "projects",
|
|
18664
|
-
action: "margin-targets-clear-workspace",
|
|
18665
|
-
title: "Margin Targets Clear Workspace Projects",
|
|
18666
|
-
description: "Margin Targets Clear Workspace Projects.",
|
|
18667
|
-
safety: "delete",
|
|
18668
|
-
destructive: true,
|
|
18669
|
-
cli: {
|
|
18670
|
-
group: ["projects", "margin-targets"],
|
|
18671
|
-
command: "clear-workspace",
|
|
18672
|
-
interactive: "default"
|
|
18673
|
-
},
|
|
18674
|
-
mcp: { entityTool: "projects" },
|
|
18675
|
-
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
18676
|
-
execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
|
|
18677
|
-
client.httpClient,
|
|
18678
|
-
client.organizationId,
|
|
18679
|
-
client.workspaceIdNumber,
|
|
18680
|
-
void 0
|
|
18681
|
-
]))
|
|
18682
|
-
},
|
|
18683
18716
|
{
|
|
18684
18717
|
id: "focus.projects.margin-targets-get",
|
|
18685
18718
|
family: "focus",
|
|
@@ -21080,8 +21113,15 @@ const generatedFocusOperations = [
|
|
|
21080
21113
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
21081
21114
|
id: /* @__PURE__ */ unknown$1(),
|
|
21082
21115
|
payload: /* @__PURE__ */ looseObject({
|
|
21116
|
+
cadence: /* @__PURE__ */ picklist$1([
|
|
21117
|
+
"daily",
|
|
21118
|
+
"weekly",
|
|
21119
|
+
"monthly"
|
|
21120
|
+
]),
|
|
21121
|
+
charts: /* @__PURE__ */ unknown$1(),
|
|
21083
21122
|
time: /* @__PURE__ */ string$1(),
|
|
21084
21123
|
day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
21124
|
+
period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
21085
21125
|
recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
21086
21126
|
recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
21087
21127
|
recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
@@ -21116,6 +21156,11 @@ const generatedFocusOperations = [
|
|
|
21116
21156
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
21117
21157
|
id: /* @__PURE__ */ unknown$1(),
|
|
21118
21158
|
payload: /* @__PURE__ */ looseObject({
|
|
21159
|
+
cadence: /* @__PURE__ */ picklist$1([
|
|
21160
|
+
"daily",
|
|
21161
|
+
"weekly",
|
|
21162
|
+
"monthly"
|
|
21163
|
+
]),
|
|
21119
21164
|
time: /* @__PURE__ */ string$1(),
|
|
21120
21165
|
day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
21121
21166
|
recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
@@ -22583,12 +22628,16 @@ const generatedFocusOperations = [
|
|
|
22583
22628
|
cli: {
|
|
22584
22629
|
group: ["tasks", "constraints"],
|
|
22585
22630
|
command: "upsert",
|
|
22586
|
-
interactive: "
|
|
22631
|
+
interactive: "default"
|
|
22587
22632
|
},
|
|
22588
22633
|
mcp: { entityTool: "tasks" },
|
|
22589
22634
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
22590
22635
|
enabled: /* @__PURE__ */ boolean$1(),
|
|
22591
|
-
required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */
|
|
22636
|
+
required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
|
|
22637
|
+
"project",
|
|
22638
|
+
"description",
|
|
22639
|
+
"tags"
|
|
22640
|
+
]) }))
|
|
22592
22641
|
}) }),
|
|
22593
22642
|
execute: (input, { client }) => {
|
|
22594
22643
|
const data = input;
|
|
@@ -23083,7 +23132,8 @@ const generatedFocusOperations = [
|
|
|
23083
23132
|
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
23084
23133
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23085
23134
|
user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
23086
|
-
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
23135
|
+
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23136
|
+
xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
23087
23137
|
}),
|
|
23088
23138
|
execute: (input, { client }) => {
|
|
23089
23139
|
const data = input;
|
|
@@ -23140,7 +23190,8 @@ const generatedFocusOperations = [
|
|
|
23140
23190
|
tag_id: /* @__PURE__ */ number$2(),
|
|
23141
23191
|
team_id: /* @__PURE__ */ number$2(),
|
|
23142
23192
|
user_cf_filter: /* @__PURE__ */ unknown$1(),
|
|
23143
|
-
user_tag_id: /* @__PURE__ */ number$2()
|
|
23193
|
+
user_tag_id: /* @__PURE__ */ number$2(),
|
|
23194
|
+
xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
|
|
23144
23195
|
}),
|
|
23145
23196
|
execute: (input, { client }) => {
|
|
23146
23197
|
const data = input;
|
|
@@ -23196,7 +23247,8 @@ const generatedFocusOperations = [
|
|
|
23196
23247
|
tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23197
23248
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23198
23249
|
user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
23199
|
-
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
23250
|
+
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23251
|
+
xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
23200
23252
|
}),
|
|
23201
23253
|
execute: (input, { client }) => {
|
|
23202
23254
|
const data = input;
|
|
@@ -23463,7 +23515,8 @@ const generatedFocusOperations = [
|
|
|
23463
23515
|
mcp: { entityTool: "tasks" },
|
|
23464
23516
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
23465
23517
|
date_from: /* @__PURE__ */ unknown$1(),
|
|
23466
|
-
date_to: /* @__PURE__ */ unknown$1()
|
|
23518
|
+
date_to: /* @__PURE__ */ unknown$1(),
|
|
23519
|
+
skip_provider_refresh: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
23467
23520
|
}),
|
|
23468
23521
|
execute: (input, { client }) => {
|
|
23469
23522
|
const data = input;
|
|
@@ -23473,6 +23526,7 @@ const generatedFocusOperations = [
|
|
|
23473
23526
|
client.workspaceIdNumber,
|
|
23474
23527
|
data.date_from,
|
|
23475
23528
|
data.date_to,
|
|
23529
|
+
data.skip_provider_refresh,
|
|
23476
23530
|
void 0
|
|
23477
23531
|
]));
|
|
23478
23532
|
}
|
|
@@ -24051,12 +24105,17 @@ const generatedFocusOperations = [
|
|
|
24051
24105
|
cli: {
|
|
24052
24106
|
group: ["time-entries", "constraints"],
|
|
24053
24107
|
command: "upsert",
|
|
24054
|
-
interactive: "
|
|
24108
|
+
interactive: "default"
|
|
24055
24109
|
},
|
|
24056
24110
|
mcp: { entityTool: "time-entries" },
|
|
24057
24111
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
24058
24112
|
enabled: /* @__PURE__ */ boolean$1(),
|
|
24059
|
-
required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */
|
|
24113
|
+
required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
|
|
24114
|
+
"project",
|
|
24115
|
+
"task",
|
|
24116
|
+
"description",
|
|
24117
|
+
"tags"
|
|
24118
|
+
]) })),
|
|
24060
24119
|
disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
24061
24120
|
}) }),
|
|
24062
24121
|
execute: (input, { client }) => {
|
|
@@ -24086,6 +24145,7 @@ const generatedFocusOperations = [
|
|
|
24086
24145
|
mcp: { entityTool: "time-entries" },
|
|
24087
24146
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
24088
24147
|
payload: /* @__PURE__ */ looseObject({
|
|
24148
|
+
type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
|
|
24089
24149
|
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
24090
24150
|
calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
24091
24151
|
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
@@ -24129,6 +24189,7 @@ const generatedFocusOperations = [
|
|
|
24129
24189
|
},
|
|
24130
24190
|
mcp: { entityTool: "time-entries" },
|
|
24131
24191
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
24192
|
+
type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
|
|
24132
24193
|
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
24133
24194
|
calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
24134
24195
|
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
@@ -24571,7 +24632,9 @@ const generatedFocusOperations = [
|
|
|
24571
24632
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
24572
24633
|
client_uuid: /* @__PURE__ */ unknown$1(),
|
|
24573
24634
|
payload: /* @__PURE__ */ looseObject({
|
|
24635
|
+
billable_source: /* @__PURE__ */ picklist$1(["manual", "task_default"]),
|
|
24574
24636
|
client_updated_at: apiDateTimeString,
|
|
24637
|
+
type: /* @__PURE__ */ picklist$1(["activity", "break"]),
|
|
24575
24638
|
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
24576
24639
|
})
|
|
24577
24640
|
}),
|
|
@@ -24628,6 +24691,7 @@ const generatedFocusOperations = [
|
|
|
24628
24691
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
24629
24692
|
extension_source: /* @__PURE__ */ string$1(),
|
|
24630
24693
|
name: /* @__PURE__ */ string$1(),
|
|
24694
|
+
type: /* @__PURE__ */ picklist$1(["activity", "break"]),
|
|
24631
24695
|
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
24632
24696
|
create_project_if_not_found: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
24633
24697
|
create_tags_if_not_found: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
@@ -24704,6 +24768,7 @@ const generatedFocusOperations = [
|
|
|
24704
24768
|
mcp: { entityTool: "time-entries" },
|
|
24705
24769
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
24706
24770
|
payload: /* @__PURE__ */ looseObject({
|
|
24771
|
+
type: /* @__PURE__ */ picklist$1(["activity", "break"]),
|
|
24707
24772
|
calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
24708
24773
|
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
24709
24774
|
duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
@@ -25388,6 +25453,11 @@ const generatedFocusOperations = [
|
|
|
25388
25453
|
user_account_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2())
|
|
25389
25454
|
})),
|
|
25390
25455
|
member_user_account_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
25456
|
+
periodicity: /* @__PURE__ */ picklist$1([
|
|
25457
|
+
"weekly",
|
|
25458
|
+
"monthly",
|
|
25459
|
+
"days"
|
|
25460
|
+
]),
|
|
25391
25461
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
25392
25462
|
email_reminder_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25393
25463
|
period_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
@@ -27914,4 +27984,4 @@ Common commands:
|
|
|
27914
27984
|
//#endregion
|
|
27915
27985
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
27916
27986
|
|
|
27917
|
-
//# sourceMappingURL=program-
|
|
27987
|
+
//# sourceMappingURL=program-DPg8sMeD.js.map
|