@togglhq/mcp 1.11.64 → 1.11.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/cli.js +2 -2
- package/build/index.js +1 -1
- package/build/{src-BLDq-CuA.js → src-fnqUMiy3.js} +990 -961
- package/package.json +1 -1
- package/skills/toggl-mcp/SKILL.md +1 -1
|
@@ -34683,6 +34683,7 @@ const ProjectLiteSchema = /* @__PURE__ */ object({
|
|
|
34683
34683
|
name: /* @__PURE__ */ string(),
|
|
34684
34684
|
permissions: /* @__PURE__ */ array(/* @__PURE__ */ string()),
|
|
34685
34685
|
archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
34686
|
+
billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
34686
34687
|
client: /* @__PURE__ */ optional(ClientLiteSchema),
|
|
34687
34688
|
color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
34688
34689
|
custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
|
|
@@ -34769,6 +34770,7 @@ const TaskSchema = /* @__PURE__ */ object({
|
|
|
34769
34770
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
34770
34771
|
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
34771
34772
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
34773
|
+
is_recurring_series: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("IsRecurringSeries marks a canonical series root (S). Server-owned and read-only: no current API path can set it, and the response only exposes the marker while series behavior stays disabled."))),
|
|
34772
34774
|
metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
|
|
34773
34775
|
notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
34774
34776
|
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
@@ -34830,6 +34832,7 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
|
|
|
34830
34832
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
34831
34833
|
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
34832
34834
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
34835
|
+
is_recurring_series: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("IsRecurringSeries marks a canonical series root (S). Server-owned and read-only: no current API path can set it, and the response only exposes the marker while series behavior stays disabled."))),
|
|
34833
34836
|
metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
|
|
34834
34837
|
notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
34835
34838
|
parent: /* @__PURE__ */ optional(TaskSchema),
|
|
@@ -34975,29 +34978,7 @@ const ProjectSchema = /* @__PURE__ */ object({
|
|
|
34975
34978
|
start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
34976
34979
|
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
34977
34980
|
});
|
|
34978
|
-
const TimeBlockPayloadSchema = /* @__PURE__ */ object({
|
|
34979
|
-
start: /* @__PURE__ */ string(),
|
|
34980
|
-
completed: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
34981
|
-
duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
|
|
34982
|
-
outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
34983
|
-
});
|
|
34984
34981
|
const TimeEntryTypeSchema = /* @__PURE__ */ picklist(["activity", "break"]);
|
|
34985
|
-
const TimeBlockSchema = /* @__PURE__ */ object({
|
|
34986
|
-
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
34987
|
-
id: /* @__PURE__ */ number(),
|
|
34988
|
-
start: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
34989
|
-
task_id: /* @__PURE__ */ number(),
|
|
34990
|
-
toggl_user_id: /* @__PURE__ */ number(),
|
|
34991
|
-
workspace_id: /* @__PURE__ */ number(),
|
|
34992
|
-
archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
34993
|
-
calendar_event_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
34994
|
-
completed_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
34995
|
-
deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
34996
|
-
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
34997
|
-
duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
34998
|
-
timezone: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Timezone is the creator's IANA timezone snapshotted at creation; NULL when unresolved."))),
|
|
34999
|
-
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
35000
|
-
});
|
|
35001
34982
|
const BillableSourceSchema = /* @__PURE__ */ picklist(["manual", "task_default"]);
|
|
35002
34983
|
const TimeEntrySchema = /* @__PURE__ */ object({
|
|
35003
34984
|
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
@@ -35012,6 +34993,8 @@ const TimeEntrySchema = /* @__PURE__ */ object({
|
|
|
35012
34993
|
deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35013
34994
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35014
34995
|
duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
34996
|
+
pattern_generated: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternGenerated is the response-facing derivative of GeneratedByTaskID: true when the entry was materialized by a series pattern."))),
|
|
34997
|
+
pattern_managed: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternManaged reports that the pattern engine owns this entry. Server-owned; present in responses, never bindable from a payload."))),
|
|
35015
34998
|
planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35016
34999
|
planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35017
35000
|
planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
@@ -35097,8 +35080,10 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
|
|
|
35097
35080
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35098
35081
|
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35099
35082
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35083
|
+
filtered_task_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35100
35084
|
fixed_fee: /* @__PURE__ */ optional(ProjectFixedFeeSchema),
|
|
35101
35085
|
parent_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35086
|
+
picker_parent_group_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35102
35087
|
rate: /* @__PURE__ */ optional(EffectiveProjectRatesSummarySchema),
|
|
35103
35088
|
recurring_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35104
35089
|
rollover_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("RolloverMins is the cumulative under/over budget carried into this instance from earlier instances in its recurring chain, in minutes. Positive = surplus (prior periods went under estimate, time carries forward); negative = debt (prior periods went over). Only populated for recurring instances; nil for templates and standalone projects. See service.HydrateRollover for the per-instance contribution rules driven by RolloverMode (expire / carry_over / carry_all)."))),
|
|
@@ -35128,28 +35113,6 @@ const PaginatedStatussSchema = /* @__PURE__ */ object({
|
|
|
35128
35113
|
page: /* @__PURE__ */ number(),
|
|
35129
35114
|
per_page: /* @__PURE__ */ number()
|
|
35130
35115
|
});
|
|
35131
|
-
const PaginatedTimeBlockAggregateWithTasksSchema = /* @__PURE__ */ object({
|
|
35132
|
-
data: /* @__PURE__ */ array(/* @__PURE__ */ object({
|
|
35133
|
-
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
35134
|
-
has_time_entry: /* @__PURE__ */ boolean(),
|
|
35135
|
-
id: /* @__PURE__ */ number(),
|
|
35136
|
-
start: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
35137
|
-
task_id: /* @__PURE__ */ number(),
|
|
35138
|
-
toggl_user_id: /* @__PURE__ */ number(),
|
|
35139
|
-
workspace_id: /* @__PURE__ */ number(),
|
|
35140
|
-
archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35141
|
-
calendar_event_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35142
|
-
completed_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35143
|
-
deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35144
|
-
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35145
|
-
duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35146
|
-
task: /* @__PURE__ */ optional(TaskSchema),
|
|
35147
|
-
timezone: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Timezone is the creator's IANA timezone snapshotted at creation; NULL when unresolved."))),
|
|
35148
|
-
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
35149
|
-
})),
|
|
35150
|
-
page: /* @__PURE__ */ number(),
|
|
35151
|
-
per_page: /* @__PURE__ */ number()
|
|
35152
|
-
});
|
|
35153
35116
|
const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
|
|
35154
35117
|
data: /* @__PURE__ */ array(/* @__PURE__ */ object({
|
|
35155
35118
|
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
@@ -35176,6 +35139,8 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
|
|
|
35176
35139
|
deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35177
35140
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35178
35141
|
duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35142
|
+
pattern_generated: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternGenerated is the response-facing derivative of GeneratedByTaskID: true when the entry was materialized by a series pattern."))),
|
|
35143
|
+
pattern_managed: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternManaged reports that the pattern engine owns this entry. Server-owned; present in responses, never bindable from a payload."))),
|
|
35179
35144
|
planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35180
35145
|
planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35181
35146
|
planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
@@ -35348,8 +35313,6 @@ const TaskCreatePayloadSchema = /* @__PURE__ */ object({
|
|
|
35348
35313
|
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
35349
35314
|
estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
|
|
35350
35315
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
|
|
35351
|
-
integration_ext_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35352
|
-
integration_source: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35353
35316
|
notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
35354
35317
|
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35355
35318
|
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -35406,6 +35369,7 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
35406
35369
|
private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35407
35370
|
project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35408
35371
|
recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35372
|
+
repeat_planned_time_entry_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("RepeatPlannedTimeEntryID is the declared initial-selection input that will start a series from an existing planned entry (PR 11). Any supplied value — an ID or JSON null — is rejected until then; the contract is declared in docs/recurring-pr2a-additive-schema.md. json.RawMessage keeps absent distinguishable from explicit null on decode and is omitted on marshal when never set."))),
|
|
35409
35373
|
rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35410
35374
|
rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35411
35375
|
start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
|
|
@@ -35442,6 +35406,7 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
|
35442
35406
|
private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35443
35407
|
project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35444
35408
|
recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
35409
|
+
repeat_planned_time_entry_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("RepeatPlannedTimeEntryID is the declared initial-selection input that will start a series from an existing planned entry (PR 11). Any supplied value — an ID or JSON null — is rejected until then; the contract is declared in docs/recurring-pr2a-additive-schema.md. json.RawMessage keeps absent distinguishable from explicit null on decode and is omitted on marshal when never set."))),
|
|
35445
35410
|
rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35446
35411
|
rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
35447
35412
|
start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
|
|
@@ -35449,28 +35414,6 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
|
35449
35414
|
tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
|
|
35450
35415
|
team_assignee_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number())))
|
|
35451
35416
|
});
|
|
35452
|
-
const TimeBlockBulkCreatePayloadSchema = /* @__PURE__ */ object({ time_blocks: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ object({
|
|
35453
|
-
start: /* @__PURE__ */ string(),
|
|
35454
|
-
task_id: /* @__PURE__ */ number(),
|
|
35455
|
-
completed: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35456
|
-
duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
|
|
35457
|
-
outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
35458
|
-
})), /* @__PURE__ */ minLength(1)) });
|
|
35459
|
-
const TimeBlockPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
35460
|
-
completed: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35461
|
-
duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
|
|
35462
|
-
outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35463
|
-
start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35464
|
-
task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
|
|
35465
|
-
});
|
|
35466
|
-
const TimeBlockPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
35467
|
-
id: /* @__PURE__ */ number(),
|
|
35468
|
-
completed: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35469
|
-
duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
|
|
35470
|
-
outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
35471
|
-
start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35472
|
-
task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
|
|
35473
|
-
});
|
|
35474
35417
|
const TimeEntryBulkCreatePayloadSchema = /* @__PURE__ */ object({
|
|
35475
35418
|
type: /* @__PURE__ */ pipe(TimeEntryTypeSchema, /* @__PURE__ */ description("The type of time entry. This could either be an activity, or a break.")),
|
|
35476
35419
|
billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -35484,7 +35427,6 @@ const TimeEntryBulkCreatePayloadSchema = /* @__PURE__ */ object({
|
|
|
35484
35427
|
start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35485
35428
|
tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
|
|
35486
35429
|
task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35487
|
-
time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35488
35430
|
tracked_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35489
35431
|
user_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
|
|
35490
35432
|
});
|
|
@@ -35513,8 +35455,7 @@ const TimeEntryStartTrackingPayloadSchema = /* @__PURE__ */ object({
|
|
|
35513
35455
|
project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
35514
35456
|
start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
35515
35457
|
tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
|
|
35516
|
-
task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
|
|
35517
|
-
time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
|
|
35458
|
+
task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
|
|
35518
35459
|
});
|
|
35519
35460
|
const TimeEntryStopTrackingPayloadSchema = /* @__PURE__ */ object({ end: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()) });
|
|
35520
35461
|
//#endregion
|
|
@@ -37388,7 +37329,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
|
|
|
37388
37329
|
})
|
|
37389
37330
|
}).json();
|
|
37390
37331
|
}
|
|
37391
|
-
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) {
|
|
37332
|
+
async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
|
|
37392
37333
|
const response = await httpClient.get(`organizations/${organization_id}/users`, {
|
|
37393
37334
|
signal,
|
|
37394
37335
|
searchParams: buildSearchParams$2({
|
|
@@ -37409,6 +37350,7 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
|
|
|
37409
37350
|
include_rates,
|
|
37410
37351
|
pinned_ids,
|
|
37411
37352
|
has_group,
|
|
37353
|
+
track_without_focus,
|
|
37412
37354
|
cf_filter,
|
|
37413
37355
|
include_custom_fields,
|
|
37414
37356
|
include_calendar_integration
|
|
@@ -37510,10 +37452,20 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
|
37510
37452
|
}
|
|
37511
37453
|
//#endregion
|
|
37512
37454
|
//#region ../focus-queries/dist/projects/requests.ts
|
|
37513
|
-
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) {
|
|
37455
|
+
async function getProjectsClassic(httpClient, organization_id, workspace_id, { include_task_counts, include_picker_parent_group_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, 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) {
|
|
37514
37456
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
37515
37457
|
signal,
|
|
37516
37458
|
searchParams: buildSearchParams$2({
|
|
37459
|
+
include_task_counts,
|
|
37460
|
+
include_picker_parent_group_counts,
|
|
37461
|
+
task_archived,
|
|
37462
|
+
task_recurring,
|
|
37463
|
+
task_state,
|
|
37464
|
+
task_source,
|
|
37465
|
+
task_assignee_user_id,
|
|
37466
|
+
task_assignee_team_id,
|
|
37467
|
+
task_include_unassigned,
|
|
37468
|
+
task_name,
|
|
37517
37469
|
page,
|
|
37518
37470
|
per_page,
|
|
37519
37471
|
order_by,
|
|
@@ -37763,7 +37715,7 @@ async function restoreStatuses(httpClient, workspace_id, status_id, signal) {
|
|
|
37763
37715
|
}
|
|
37764
37716
|
//#endregion
|
|
37765
37717
|
//#region ../focus-queries/dist/tasks/requests.ts
|
|
37766
|
-
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,
|
|
37718
|
+
async function getTasksClassic(httpClient, organization_id, workspace_id, { page, per_page, with_entries, pinned, order_by, status_id, toggl_user_id, name, has_time_entries, has_dates, private: private_, archived, 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, 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, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
|
|
37767
37719
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
|
|
37768
37720
|
signal,
|
|
37769
37721
|
searchParams: buildSearchParams$2({
|
|
@@ -37776,7 +37728,6 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
|
|
|
37776
37728
|
toggl_user_id,
|
|
37777
37729
|
name,
|
|
37778
37730
|
has_time_entries,
|
|
37779
|
-
has_time_blocks,
|
|
37780
37731
|
has_dates,
|
|
37781
37732
|
private: private_,
|
|
37782
37733
|
archived,
|
|
@@ -37799,10 +37750,6 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
|
|
|
37799
37750
|
priority,
|
|
37800
37751
|
is_priority,
|
|
37801
37752
|
state,
|
|
37802
|
-
timeblock_start_from,
|
|
37803
|
-
timeblock_start_until,
|
|
37804
|
-
time_block_id,
|
|
37805
|
-
time_block_completed,
|
|
37806
37753
|
team_id,
|
|
37807
37754
|
assignee_team_id,
|
|
37808
37755
|
assignee_user_id,
|
|
@@ -37814,7 +37761,11 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
|
|
|
37814
37761
|
include_assignees,
|
|
37815
37762
|
include_parent_matches,
|
|
37816
37763
|
disable_aggregations,
|
|
37817
|
-
cf_filter
|
|
37764
|
+
cf_filter,
|
|
37765
|
+
recurring_occurrences_after,
|
|
37766
|
+
max_recurring_occurrences_after,
|
|
37767
|
+
recurring_task_read,
|
|
37768
|
+
include_projected_occurrences
|
|
37818
37769
|
})
|
|
37819
37770
|
}).json();
|
|
37820
37771
|
}
|
|
@@ -37889,16 +37840,44 @@ async function getTasksCalendarEvents(httpClient, organization_id, workspace_id,
|
|
|
37889
37840
|
})
|
|
37890
37841
|
}).json();
|
|
37891
37842
|
}
|
|
37892
|
-
async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, signal) {
|
|
37843
|
+
async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, skip_provider_refresh, signal) {
|
|
37893
37844
|
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
|
|
37894
37845
|
signal,
|
|
37895
37846
|
searchParams: buildSearchParams$2({
|
|
37896
37847
|
date_from,
|
|
37897
|
-
date_to
|
|
37848
|
+
date_to,
|
|
37849
|
+
skip_provider_refresh
|
|
37850
|
+
})
|
|
37851
|
+
}).json();
|
|
37852
|
+
}
|
|
37853
|
+
async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, search, only_me, page, per_page } = {}, signal) {
|
|
37854
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
|
|
37855
|
+
signal,
|
|
37856
|
+
searchParams: buildSearchParams$2({
|
|
37857
|
+
project_id,
|
|
37858
|
+
without_project,
|
|
37859
|
+
pinned_only,
|
|
37860
|
+
search,
|
|
37861
|
+
only_me,
|
|
37862
|
+
page,
|
|
37863
|
+
per_page
|
|
37864
|
+
})
|
|
37865
|
+
}).json();
|
|
37866
|
+
}
|
|
37867
|
+
async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, search, only_me, page, per_page } = {}, signal) {
|
|
37868
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
|
|
37869
|
+
signal,
|
|
37870
|
+
searchParams: buildSearchParams$2({
|
|
37871
|
+
project_id,
|
|
37872
|
+
without_project,
|
|
37873
|
+
search,
|
|
37874
|
+
only_me,
|
|
37875
|
+
page,
|
|
37876
|
+
per_page
|
|
37898
37877
|
})
|
|
37899
37878
|
}).json();
|
|
37900
37879
|
}
|
|
37901
|
-
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) {
|
|
37880
|
+
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, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
|
|
37902
37881
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/recurring`, {
|
|
37903
37882
|
signal,
|
|
37904
37883
|
searchParams: buildSearchParams$2({
|
|
@@ -37914,11 +37893,15 @@ async function getTasksRecurringInstancesClassic(httpClient, organization_id, wo
|
|
|
37914
37893
|
assignee_team_id,
|
|
37915
37894
|
assignee_user_id,
|
|
37916
37895
|
tag_id,
|
|
37917
|
-
include_assignees
|
|
37896
|
+
include_assignees,
|
|
37897
|
+
recurring_occurrences_after,
|
|
37898
|
+
max_recurring_occurrences_after,
|
|
37899
|
+
recurring_task_read,
|
|
37900
|
+
include_projected_occurrences
|
|
37918
37901
|
})
|
|
37919
37902
|
}).json();
|
|
37920
37903
|
}
|
|
37921
|
-
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,
|
|
37904
|
+
async function getStreamTasks(httpClient, organization_id, workspace_id, { with_entries, pinned, order_by, status_id, toggl_user_id, name, include_parent_matches, has_time_entries, has_dates, private: private_, archived, 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, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_assignees, cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
|
|
37922
37905
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
|
|
37923
37906
|
signal,
|
|
37924
37907
|
searchParams: buildSearchParams$2({
|
|
@@ -37930,7 +37913,6 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
|
|
|
37930
37913
|
name,
|
|
37931
37914
|
include_parent_matches,
|
|
37932
37915
|
has_time_entries,
|
|
37933
|
-
has_time_blocks,
|
|
37934
37916
|
has_dates,
|
|
37935
37917
|
private: private_,
|
|
37936
37918
|
archived,
|
|
@@ -37953,8 +37935,6 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
|
|
|
37953
37935
|
priority,
|
|
37954
37936
|
is_priority,
|
|
37955
37937
|
state,
|
|
37956
|
-
time_block_id,
|
|
37957
|
-
time_block_completed,
|
|
37958
37938
|
team_id,
|
|
37959
37939
|
assignee_team_id,
|
|
37960
37940
|
assignee_user_id,
|
|
@@ -37963,7 +37943,11 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
|
|
|
37963
37943
|
recurring_task_ids,
|
|
37964
37944
|
client_id,
|
|
37965
37945
|
include_assignees,
|
|
37966
|
-
cf_filter
|
|
37946
|
+
cf_filter,
|
|
37947
|
+
recurring_occurrences_after,
|
|
37948
|
+
max_recurring_occurrences_after,
|
|
37949
|
+
recurring_task_read,
|
|
37950
|
+
include_projected_occurrences
|
|
37967
37951
|
})
|
|
37968
37952
|
}).json();
|
|
37969
37953
|
}
|
|
@@ -38018,6 +38002,12 @@ async function getTaskWithChildrenClassic(httpClient, organization_id, workspace
|
|
|
38018
38002
|
})
|
|
38019
38003
|
}).json();
|
|
38020
38004
|
}
|
|
38005
|
+
async function createRecurringOccurrence(httpClient, organization_id, workspace_id, task_id, return_occurrence, signal) {
|
|
38006
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/occurrences`, {
|
|
38007
|
+
signal,
|
|
38008
|
+
searchParams: buildSearchParams$2({ return_occurrence })
|
|
38009
|
+
}).json();
|
|
38010
|
+
}
|
|
38021
38011
|
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) {
|
|
38022
38012
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/parents`, {
|
|
38023
38013
|
signal,
|
|
@@ -38042,106 +38032,8 @@ async function unarchiveTask(httpClient, organization_id, workspace_id, task_id,
|
|
|
38042
38032
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/unarchive`, { signal }).json();
|
|
38043
38033
|
}
|
|
38044
38034
|
//#endregion
|
|
38045
|
-
//#region ../focus-queries/dist/time-blocks/requests.ts
|
|
38046
|
-
async function getTaskTimeBlocksWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, archived } = {}, signal) {
|
|
38047
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
|
|
38048
|
-
signal,
|
|
38049
|
-
searchParams: buildSearchParams$2({
|
|
38050
|
-
page,
|
|
38051
|
-
per_page,
|
|
38052
|
-
order_by,
|
|
38053
|
-
archived
|
|
38054
|
-
})
|
|
38055
|
-
}).json();
|
|
38056
|
-
}
|
|
38057
|
-
async function createTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
|
|
38058
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
|
|
38059
|
-
signal,
|
|
38060
|
-
json: data
|
|
38061
|
-
}).json();
|
|
38062
|
-
}
|
|
38063
|
-
async function getTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
|
|
38064
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, { signal }).json();
|
|
38065
|
-
}
|
|
38066
|
-
async function updateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
|
|
38067
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
|
|
38068
|
-
signal,
|
|
38069
|
-
json: data
|
|
38070
|
-
}).json();
|
|
38071
|
-
}
|
|
38072
|
-
async function deleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, outbound_sync, signal) {
|
|
38073
|
-
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
|
|
38074
|
-
signal,
|
|
38075
|
-
searchParams: buildSearchParams$2({ outbound_sync })
|
|
38076
|
-
}).json();
|
|
38077
|
-
}
|
|
38078
|
-
async function partialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
|
|
38079
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
|
|
38080
|
-
signal,
|
|
38081
|
-
json: data
|
|
38082
|
-
}).json();
|
|
38083
|
-
}
|
|
38084
|
-
async function archiveTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
|
|
38085
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/archive`, { signal }).json();
|
|
38086
|
-
}
|
|
38087
|
-
async function restoreTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
|
|
38088
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/restore`, { signal }).json();
|
|
38089
|
-
}
|
|
38090
|
-
async function unarchiveTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
|
|
38091
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/unarchive`, { signal }).json();
|
|
38092
|
-
}
|
|
38093
|
-
async function getTimeBlocksRangeWithOrgClassic(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, page, per_page, archived, order_by }, signal) {
|
|
38094
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks`, {
|
|
38095
|
-
signal,
|
|
38096
|
-
searchParams: buildSearchParams$2({
|
|
38097
|
-
date_from,
|
|
38098
|
-
date_to,
|
|
38099
|
-
task_id,
|
|
38100
|
-
status_id,
|
|
38101
|
-
page,
|
|
38102
|
-
per_page,
|
|
38103
|
-
archived,
|
|
38104
|
-
order_by
|
|
38105
|
-
})
|
|
38106
|
-
}).json();
|
|
38107
|
-
}
|
|
38108
|
-
async function bulkCreateTimeBlockWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38109
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
|
|
38110
|
-
signal,
|
|
38111
|
-
json: data
|
|
38112
|
-
}).json();
|
|
38113
|
-
}
|
|
38114
|
-
async function bulkDeleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, ids, outbound_sync, signal) {
|
|
38115
|
-
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
|
|
38116
|
-
signal,
|
|
38117
|
-
searchParams: buildSearchParams$2({
|
|
38118
|
-
ids,
|
|
38119
|
-
outbound_sync
|
|
38120
|
-
})
|
|
38121
|
-
}).json();
|
|
38122
|
-
}
|
|
38123
|
-
async function bulkPartialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38124
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
|
|
38125
|
-
signal,
|
|
38126
|
-
json: data
|
|
38127
|
-
}).json();
|
|
38128
|
-
}
|
|
38129
|
-
async function getTimeBlocksRangeStreamWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, archived, order_by }, signal) {
|
|
38130
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/stream`, {
|
|
38131
|
-
signal,
|
|
38132
|
-
searchParams: buildSearchParams$2({
|
|
38133
|
-
date_from,
|
|
38134
|
-
date_to,
|
|
38135
|
-
task_id,
|
|
38136
|
-
status_id,
|
|
38137
|
-
archived,
|
|
38138
|
-
order_by
|
|
38139
|
-
})
|
|
38140
|
-
}).json();
|
|
38141
|
-
}
|
|
38142
|
-
//#endregion
|
|
38143
38035
|
//#region ../focus-queries/dist/time-entries/requests.ts
|
|
38144
|
-
async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived
|
|
38036
|
+
async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived } = {}, signal) {
|
|
38145
38037
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
|
|
38146
38038
|
signal,
|
|
38147
38039
|
searchParams: buildSearchParams$2({
|
|
@@ -38149,21 +38041,28 @@ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, wor
|
|
|
38149
38041
|
per_page,
|
|
38150
38042
|
order_by,
|
|
38151
38043
|
type,
|
|
38152
|
-
archived
|
|
38153
|
-
time_block_id
|
|
38044
|
+
archived
|
|
38154
38045
|
})
|
|
38155
38046
|
}).json();
|
|
38156
38047
|
}
|
|
38157
|
-
async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
|
|
38048
|
+
async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, return_occurrence, signal) {
|
|
38158
38049
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
|
|
38159
38050
|
signal,
|
|
38160
|
-
json: data
|
|
38051
|
+
json: data,
|
|
38052
|
+
searchParams: buildSearchParams$2({
|
|
38053
|
+
from_recurring_task_id,
|
|
38054
|
+
return_occurrence
|
|
38055
|
+
})
|
|
38161
38056
|
}).json();
|
|
38162
38057
|
}
|
|
38163
|
-
async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38058
|
+
async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, from_recurring_task_id, return_occurrence, signal) {
|
|
38164
38059
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries`, {
|
|
38165
38060
|
signal,
|
|
38166
|
-
json: data
|
|
38061
|
+
json: data,
|
|
38062
|
+
searchParams: buildSearchParams$2({
|
|
38063
|
+
from_recurring_task_id,
|
|
38064
|
+
return_occurrence
|
|
38065
|
+
})
|
|
38167
38066
|
}).json();
|
|
38168
38067
|
}
|
|
38169
38068
|
async function getBatchTimeEntriesWithOrg(httpClient, organization_id, workspace_id, { ids }, signal) {
|
|
@@ -38214,7 +38113,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
|
|
|
38214
38113
|
json: data
|
|
38215
38114
|
}).json();
|
|
38216
38115
|
}
|
|
38217
|
-
async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, type, order_by, archived, include_taskless, expand_calendar_event }, signal) {
|
|
38116
|
+
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) {
|
|
38218
38117
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
|
|
38219
38118
|
signal,
|
|
38220
38119
|
searchParams: buildSearchParams$2({
|
|
@@ -38222,6 +38121,7 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
|
|
|
38222
38121
|
date_to,
|
|
38223
38122
|
task_id,
|
|
38224
38123
|
status_id,
|
|
38124
|
+
project_id,
|
|
38225
38125
|
type,
|
|
38226
38126
|
order_by,
|
|
38227
38127
|
archived,
|
|
@@ -38236,28 +38136,36 @@ async function syncTimeEntry(httpClient, organization_id, workspace_id, client_u
|
|
|
38236
38136
|
json: data
|
|
38237
38137
|
}).json();
|
|
38238
38138
|
}
|
|
38239
|
-
async function getStreamTimeEntriesTimeBlockIdsWithOrg(httpClient, organization_id, workspace_id, { time_block_id }, signal) {
|
|
38240
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/time-block-ids/stream`, {
|
|
38241
|
-
signal,
|
|
38242
|
-
searchParams: buildSearchParams$2({ time_block_id })
|
|
38243
|
-
}).json();
|
|
38244
|
-
}
|
|
38245
38139
|
async function getTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
38246
38140
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
|
|
38247
38141
|
}
|
|
38248
|
-
async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
|
|
38142
|
+
async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
|
|
38249
38143
|
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
|
|
38250
38144
|
signal,
|
|
38251
|
-
json: data
|
|
38145
|
+
json: data,
|
|
38146
|
+
searchParams: buildSearchParams$2({
|
|
38147
|
+
from_recurring_task_id,
|
|
38148
|
+
return_occurrence
|
|
38149
|
+
})
|
|
38252
38150
|
}).json();
|
|
38253
38151
|
}
|
|
38254
|
-
async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
38255
|
-
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
|
|
38152
|
+
async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, from_recurring_task_id, return_occurrence, signal) {
|
|
38153
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
|
|
38154
|
+
signal,
|
|
38155
|
+
searchParams: buildSearchParams$2({
|
|
38156
|
+
from_recurring_task_id,
|
|
38157
|
+
return_occurrence
|
|
38158
|
+
})
|
|
38159
|
+
}).json();
|
|
38256
38160
|
}
|
|
38257
|
-
async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
|
|
38161
|
+
async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
|
|
38258
38162
|
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
|
|
38259
38163
|
signal,
|
|
38260
|
-
json: data
|
|
38164
|
+
json: data,
|
|
38165
|
+
searchParams: buildSearchParams$2({
|
|
38166
|
+
from_recurring_task_id,
|
|
38167
|
+
return_occurrence
|
|
38168
|
+
})
|
|
38261
38169
|
}).json();
|
|
38262
38170
|
}
|
|
38263
38171
|
async function archiveTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
@@ -38372,7 +38280,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38372
38280
|
]))
|
|
38373
38281
|
});
|
|
38374
38282
|
//#endregion
|
|
38375
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38283
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.64_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_9a6a00428921d756e77d8976c0226cf3/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38376
38284
|
async function getInvitations(httpClient, signal) {
|
|
38377
38285
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38378
38286
|
}
|
|
@@ -38389,7 +38297,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38389
38297
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38390
38298
|
}
|
|
38391
38299
|
//#endregion
|
|
38392
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38300
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.64_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_9a6a00428921d756e77d8976c0226cf3/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38393
38301
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38394
38302
|
const searchParams = new URLSearchParams();
|
|
38395
38303
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38401,7 +38309,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38401
38309
|
return searchParams;
|
|
38402
38310
|
}
|
|
38403
38311
|
//#endregion
|
|
38404
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38312
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.64_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_9a6a00428921d756e77d8976c0226cf3/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38405
38313
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38406
38314
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38407
38315
|
}
|
|
@@ -38415,7 +38323,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38415
38323
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38416
38324
|
}
|
|
38417
38325
|
//#endregion
|
|
38418
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38326
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.64_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_9a6a00428921d756e77d8976c0226cf3/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38419
38327
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38420
38328
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38421
38329
|
}
|
|
@@ -38435,7 +38343,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38435
38343
|
});
|
|
38436
38344
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38437
38345
|
//#endregion
|
|
38438
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38346
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.64_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_9a6a00428921d756e77d8976c0226cf3/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38439
38347
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38440
38348
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38441
38349
|
signal,
|
|
@@ -38446,12 +38354,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38446
38354
|
})).json();
|
|
38447
38355
|
}
|
|
38448
38356
|
//#endregion
|
|
38449
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38357
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.64_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_9a6a00428921d756e77d8976c0226cf3/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38450
38358
|
async function getStatus(httpClient, signal) {
|
|
38451
38359
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38452
38360
|
}
|
|
38453
38361
|
//#endregion
|
|
38454
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38362
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.64_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_9a6a00428921d756e77d8976c0226cf3/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38455
38363
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38456
38364
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38457
38365
|
signal,
|
|
@@ -38479,7 +38387,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38479
38387
|
return response.json();
|
|
38480
38388
|
}
|
|
38481
38389
|
//#endregion
|
|
38482
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38390
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.64_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_9a6a00428921d756e77d8976c0226cf3/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38483
38391
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38484
38392
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38485
38393
|
}
|
|
@@ -38504,7 +38412,7 @@ async function deleteMyWorkingHours(httpClient, organization_id, data, signal) {
|
|
|
38504
38412
|
return response.json();
|
|
38505
38413
|
}
|
|
38506
38414
|
//#endregion
|
|
38507
|
-
//#region ../cli-core/build/focus-client-
|
|
38415
|
+
//#region ../cli-core/build/focus-client-D9JzuIl3.js
|
|
38508
38416
|
/** Request header the API reads to attribute traffic to MCP or CLI. */
|
|
38509
38417
|
const TOGGL_CLIENT_HEADER = "X-Toggl-Client";
|
|
38510
38418
|
/** Header the Focus API reads for analytics and presence `platform_origin`. */
|
|
@@ -38673,14 +38581,12 @@ async function downloadAttachment(ctx, scope, params) {
|
|
|
38673
38581
|
const TimeOffMeUpdateInputSchema$1 = /* @__PURE__ */ intersect([/* @__PURE__ */ object$2({ timeoff_id: /* @__PURE__ */ number$2() }), PublicMeEntryRequestSchema]);
|
|
38674
38582
|
const TaskPatchSchema = withCustomFieldValues(/* @__PURE__ */ partial(TaskPartialUpdatePayloadSchema));
|
|
38675
38583
|
const ProjectPatchSchema = withCustomFieldValues(/* @__PURE__ */ partial(ProjectPartialUpdatePayloadSchema));
|
|
38676
|
-
const TimeBlockPatchSchema = /* @__PURE__ */ partial(TimeBlockPartialUpdatePayloadSchema);
|
|
38677
38584
|
const BulkIdsSchema = /* @__PURE__ */ object$2({
|
|
38678
38585
|
ids: /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()), /* @__PURE__ */ minLength$1(1)),
|
|
38679
38586
|
outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
38680
38587
|
});
|
|
38681
38588
|
const BulkTaskPatchItemsSchema = /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(withCustomFieldValues(TaskPartialUpdatePayloadWithIDSchema)), /* @__PURE__ */ minLength$1(1));
|
|
38682
38589
|
const BulkProjectPatchItemsSchema = /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(withCustomFieldValues(ProjectPartialUpdatePayloadWithIDSchema)), /* @__PURE__ */ minLength$1(1));
|
|
38683
|
-
const BulkTimeBlockPatchItemsSchema = /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(TimeBlockPartialUpdatePayloadWithIDSchema), /* @__PURE__ */ minLength$1(1));
|
|
38684
38590
|
const BulkTimeEntryPatchItemsSchema = /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(TimeEntryPartialUpdatePayloadWithIDSchema$1), /* @__PURE__ */ minLength$1(1));
|
|
38685
38591
|
const BulkTimeEntryCreateItemsSchema = /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(TimeEntryBulkCreatePayloadSchema$1), /* @__PURE__ */ minLength$1(1));
|
|
38686
38592
|
const BulkTimeEntryIdsSchema = /* @__PURE__ */ object$2({ ids: /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()), /* @__PURE__ */ minLength$1(1)) });
|
|
@@ -39058,71 +38964,6 @@ var FocusClient = class {
|
|
|
39058
38964
|
return await bulkUnarchiveProjects(this.http, this.organizationIdNum, this.workspaceIdNum, input.data);
|
|
39059
38965
|
});
|
|
39060
38966
|
}
|
|
39061
|
-
async listTimeBlocks(params = {}) {
|
|
39062
|
-
const rawFrom = typeof params.date_from === "string" ? params.date_from : "";
|
|
39063
|
-
const rawTo = typeof params.date_to === "string" ? params.date_to : "";
|
|
39064
|
-
if (!rawFrom || !rawTo) return {
|
|
39065
|
-
ok: false,
|
|
39066
|
-
status: 400,
|
|
39067
|
-
message: "date_from and date_to are required"
|
|
39068
|
-
};
|
|
39069
|
-
const date_from = normalizeDateFrom(rawFrom);
|
|
39070
|
-
const date_to = normalizeDateTo(rawTo);
|
|
39071
|
-
const response = await this.run("listTimeBlocks", () => getTimeBlocksRangeWithOrgClassic(this.http, this.organizationIdNum, this.workspaceIdNum, {
|
|
39072
|
-
date_from,
|
|
39073
|
-
date_to,
|
|
39074
|
-
task_id: parseOptionalInt(params.task_id),
|
|
39075
|
-
page: parseOptionalInt(params.page),
|
|
39076
|
-
per_page: parseOptionalInt(params.per_page)
|
|
39077
|
-
}));
|
|
39078
|
-
return this.softValidateResponse("listTimeBlocks", PaginatedTimeBlockAggregateWithTasksSchema, response);
|
|
39079
|
-
}
|
|
39080
|
-
async getTimeBlock(taskId, timeBlockId) {
|
|
39081
|
-
const response = await this.run("getTimeBlock", () => getTimeBlockWithOrg(this.http, this.organizationIdNum, this.workspaceIdNum, taskId, timeBlockId));
|
|
39082
|
-
return this.softValidateResponse("getTimeBlock", TimeBlockSchema, response);
|
|
39083
|
-
}
|
|
39084
|
-
async createTimeBlock(taskId, payload) {
|
|
39085
|
-
const input = validatePayload(TimeBlockPayloadSchema, payload, "createTimeBlock payload");
|
|
39086
|
-
if (!input.ok) return input;
|
|
39087
|
-
const response = await this.run("createTimeBlock", () => createTimeBlockWithOrg(this.http, this.organizationIdNum, this.workspaceIdNum, taskId, input.data));
|
|
39088
|
-
return this.softValidateResponse("createTimeBlock", TimeBlockSchema, response);
|
|
39089
|
-
}
|
|
39090
|
-
async updateTimeBlock(taskId, timeBlockId, payload) {
|
|
39091
|
-
const input = validatePayload(TimeBlockPatchSchema, payload, "updateTimeBlock payload");
|
|
39092
|
-
if (!input.ok) return input;
|
|
39093
|
-
return this.run("updateTimeBlock", async () => {
|
|
39094
|
-
return await partialUpdateTimeBlockWithOrg(this.http, this.organizationIdNum, this.workspaceIdNum, taskId, timeBlockId, input.data);
|
|
39095
|
-
});
|
|
39096
|
-
}
|
|
39097
|
-
async deleteTimeBlock(taskId, timeBlockId) {
|
|
39098
|
-
return this.run("deleteTimeBlock", async () => {
|
|
39099
|
-
await deleteTimeBlockWithOrg(this.http, this.organizationIdNum, this.workspaceIdNum, taskId, timeBlockId);
|
|
39100
|
-
return null;
|
|
39101
|
-
});
|
|
39102
|
-
}
|
|
39103
|
-
async bulkCreateTimeBlocks(payload) {
|
|
39104
|
-
const input = validatePayload(TimeBlockBulkCreatePayloadSchema, payload, "bulkCreateTimeBlocks payload");
|
|
39105
|
-
if (!input.ok) return input;
|
|
39106
|
-
const response = await this.run("bulkCreateTimeBlocks", () => bulkCreateTimeBlockWithOrg(this.http, this.organizationIdNum, this.workspaceIdNum, input.data));
|
|
39107
|
-
return this.softValidateResponse("bulkCreateTimeBlocks", /* @__PURE__ */ array$1(TimeBlockSchema), response);
|
|
39108
|
-
}
|
|
39109
|
-
async bulkPartialUpdateTimeBlocks(items) {
|
|
39110
|
-
const input = validatePayload(BulkTimeBlockPatchItemsSchema, items, "bulkPartialUpdateTimeBlocks items");
|
|
39111
|
-
if (!input.ok) return input;
|
|
39112
|
-
return this.run("bulkPartialUpdateTimeBlocks", async () => {
|
|
39113
|
-
return await bulkPartialUpdateTimeBlockWithOrg(this.http, this.organizationIdNum, this.workspaceIdNum, input.data);
|
|
39114
|
-
});
|
|
39115
|
-
}
|
|
39116
|
-
async bulkDeleteTimeBlocks(ids, outbound_sync) {
|
|
39117
|
-
const input = validatePayload(BulkIdsSchema, {
|
|
39118
|
-
ids,
|
|
39119
|
-
outbound_sync
|
|
39120
|
-
}, "bulkDeleteTimeBlocks input");
|
|
39121
|
-
if (!input.ok) return input;
|
|
39122
|
-
return this.run("bulkDeleteTimeBlocks", async () => {
|
|
39123
|
-
return await bulkDeleteTimeBlockWithOrg(this.http, this.organizationIdNum, this.workspaceIdNum, input.data.ids, input.data.outbound_sync);
|
|
39124
|
-
});
|
|
39125
|
-
}
|
|
39126
38967
|
async listTimeEntries(params = {}) {
|
|
39127
38968
|
const rawFrom = typeof params.date_from === "string" ? params.date_from : "";
|
|
39128
38969
|
const rawTo = typeof params.date_to === "string" ? params.date_to : "";
|
|
@@ -40602,7 +40443,7 @@ function createAuthenticatedClientProxy() {
|
|
|
40602
40443
|
} });
|
|
40603
40444
|
}
|
|
40604
40445
|
//#endregion
|
|
40605
|
-
//#region ../operations/build/validation-
|
|
40446
|
+
//#region ../operations/build/validation-CLozpAO5.js
|
|
40606
40447
|
const optionalNumber = /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2());
|
|
40607
40448
|
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})`)));
|
|
40608
40449
|
const perPageSchema = perPageField(100);
|
|
@@ -40617,13 +40458,6 @@ const rateSchedulePayloadSchema = /* @__PURE__ */ pipe$2(/* @__PURE__ */ strictO
|
|
|
40617
40458
|
end_date: /* @__PURE__ */ optional$1(rateDateSchema)
|
|
40618
40459
|
}), /* @__PURE__ */ forward(/* @__PURE__ */ partialCheck([["start_date"], ["end_date"]], ({ start_date, end_date }) => end_date === void 0 || end_date >= start_date, "must be on or after start_date"), ["end_date"]));
|
|
40619
40460
|
const tagIdFilterSchema = /* @__PURE__ */ union$1([/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ transform$1((tagId) => [tagId])), /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()), /* @__PURE__ */ minLength$1(1))]);
|
|
40620
|
-
const timeBlockListSchema = /* @__PURE__ */ object$2({
|
|
40621
|
-
date_from: dateField("Range start — date-only (e.g. '2025-01-01') or RFC3339 datetime. Date-only is expanded to T00:00:00Z."),
|
|
40622
|
-
date_to: dateField("Range end — date-only (e.g. '2025-01-07') or RFC3339 datetime. Date-only is expanded to T23:59:59Z."),
|
|
40623
|
-
task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by task ID"))),
|
|
40624
|
-
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Page number"))),
|
|
40625
|
-
per_page: perPageSchema
|
|
40626
|
-
});
|
|
40627
40461
|
const timeEntryListSchema = /* @__PURE__ */ object$2({
|
|
40628
40462
|
date_from: dateField("Range start — date-only (e.g. '2025-01-01') or RFC3339 datetime. Date-only is expanded to T00:00:00Z."),
|
|
40629
40463
|
date_to: dateField("Range end — date-only (e.g. '2025-01-07') or RFC3339 datetime. Date-only is expanded to T23:59:59Z."),
|
|
@@ -40752,19 +40586,6 @@ const projectUpdateSchema = /* @__PURE__ */ object$2({
|
|
|
40752
40586
|
project_id: /* @__PURE__ */ number$2(),
|
|
40753
40587
|
payload: withCustomFieldValues(/* @__PURE__ */ partial(ProjectPartialUpdatePayloadSchema))
|
|
40754
40588
|
});
|
|
40755
|
-
const timeBlockCreateSchema = /* @__PURE__ */ object$2({
|
|
40756
|
-
task_id: /* @__PURE__ */ number$2(),
|
|
40757
|
-
payload: TimeBlockPayloadSchema
|
|
40758
|
-
});
|
|
40759
|
-
const timeBlockUpdateSchema = /* @__PURE__ */ object$2({
|
|
40760
|
-
task_id: /* @__PURE__ */ number$2(),
|
|
40761
|
-
time_block_id: /* @__PURE__ */ number$2(),
|
|
40762
|
-
payload: /* @__PURE__ */ partial(TimeBlockPartialUpdatePayloadSchema)
|
|
40763
|
-
});
|
|
40764
|
-
const timeBlockIdSchema = /* @__PURE__ */ object$2({
|
|
40765
|
-
task_id: /* @__PURE__ */ number$2(),
|
|
40766
|
-
time_block_id: /* @__PURE__ */ number$2()
|
|
40767
|
-
});
|
|
40768
40589
|
const taskIdSchema = /* @__PURE__ */ object$2({ task_id: /* @__PURE__ */ number$2() });
|
|
40769
40590
|
const projectIdSchema = /* @__PURE__ */ object$2({ project_id: /* @__PURE__ */ number$2() });
|
|
40770
40591
|
const emptySchema$1 = /* @__PURE__ */ object$2({});
|
|
@@ -40814,7 +40635,6 @@ const bulkIdsWithOutboundSchema = /* @__PURE__ */ object$2({
|
|
|
40814
40635
|
const bulkProjectDeleteSchema = /* @__PURE__ */ object$2({ ids: /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()), /* @__PURE__ */ minLength$1(1)) });
|
|
40815
40636
|
const bulkTaskPatchBodySchema = /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(withCustomFieldValues(TaskPartialUpdatePayloadWithIDSchema)), /* @__PURE__ */ minLength$1(1));
|
|
40816
40637
|
const bulkProjectPatchBodySchema = /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(withCustomFieldValues(ProjectPartialUpdatePayloadWithIDSchema)), /* @__PURE__ */ minLength$1(1));
|
|
40817
|
-
const bulkTimeBlockPatchBodySchema = /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(TimeBlockPartialUpdatePayloadWithIDSchema), /* @__PURE__ */ minLength$1(1));
|
|
40818
40638
|
const bulkTimeEntryPatchBodySchema = /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(TimeEntryPartialUpdatePayloadWithIDSchema$1), /* @__PURE__ */ minLength$1(1));
|
|
40819
40639
|
const bulkTimeEntryCreateBodySchema = /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(TimeEntryBulkCreatePayloadSchema$1), /* @__PURE__ */ minLength$1(1));
|
|
40820
40640
|
const bulkTimeEntryIdsSchema = /* @__PURE__ */ object$2({ ids: /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()), /* @__PURE__ */ minLength$1(1)) });
|
|
@@ -40917,7 +40737,7 @@ const compositeOverrides = {
|
|
|
40917
40737
|
mcp: { entityTool: "projects" }
|
|
40918
40738
|
},
|
|
40919
40739
|
"focus.composite.create-task": {
|
|
40920
|
-
description: "Create a task with related data such as subtasks
|
|
40740
|
+
description: "Create a task with related data such as subtasks and an initial time entry.",
|
|
40921
40741
|
cli: {
|
|
40922
40742
|
group: ["tasks"],
|
|
40923
40743
|
command: "create-with-children",
|
|
@@ -41506,130 +41326,33 @@ const taskOverrides = {
|
|
|
41506
41326
|
}]
|
|
41507
41327
|
}
|
|
41508
41328
|
};
|
|
41509
|
-
const
|
|
41510
|
-
"focus.time-
|
|
41511
|
-
agentGuidance: "Returns
|
|
41512
|
-
examples: [
|
|
41513
|
-
|
|
41514
|
-
|
|
41515
|
-
|
|
41516
|
-
|
|
41517
|
-
|
|
41518
|
-
|
|
41519
|
-
|
|
41520
|
-
|
|
41521
|
-
|
|
41522
|
-
|
|
41329
|
+
const timeEntryOverrides = {
|
|
41330
|
+
"focus.time-entries.list": {
|
|
41331
|
+
agentGuidance: "Returns tracked time entries in a date range, including taskless entries (tracked on a project with no task). Requires date_from and date_to. Accepts date-only strings (YYYY-MM-DD) or RFC3339 datetimes — date-only is automatically expanded: date_from to T00:00:00Z, date_to to T23:59:59Z. Optional project_id keeps only entries on that project (sent to the API; client also scans up to 50 list pages of 100, then slices page/per_page; not a full workspace scan). If truncated is true, more unfiltered rows exist than were scanned — narrow date_from/date_to. Pass include_taskless:false to hide taskless rows. Includes task and project context.",
|
|
41332
|
+
examples: [
|
|
41333
|
+
{
|
|
41334
|
+
description: "List time entries for a week (date-only, expanded to full-day range)",
|
|
41335
|
+
data: {
|
|
41336
|
+
date_from: "2025-01-01",
|
|
41337
|
+
date_to: "2025-01-07"
|
|
41338
|
+
}
|
|
41339
|
+
},
|
|
41340
|
+
{
|
|
41341
|
+
description: "List time entries with explicit RFC3339 timestamps",
|
|
41342
|
+
data: {
|
|
41343
|
+
date_from: "2025-01-01T00:00:00Z",
|
|
41344
|
+
date_to: "2025-01-07T23:59:59Z"
|
|
41345
|
+
}
|
|
41346
|
+
},
|
|
41347
|
+
{
|
|
41348
|
+
description: "List time entries for one project, including taskless rows",
|
|
41349
|
+
data: {
|
|
41350
|
+
date_from: "2025-01-01",
|
|
41351
|
+
date_to: "2025-01-07",
|
|
41352
|
+
project_id: 42
|
|
41353
|
+
}
|
|
41523
41354
|
}
|
|
41524
|
-
|
|
41525
|
-
},
|
|
41526
|
-
"focus.time-blocks.get": {
|
|
41527
|
-
agentGuidance: "Fetch a single time block by task ID and time block ID.",
|
|
41528
|
-
examples: [{
|
|
41529
|
-
description: "Get a time block",
|
|
41530
|
-
data: {
|
|
41531
|
-
task_id: 12345,
|
|
41532
|
-
time_block_id: 67890
|
|
41533
|
-
}
|
|
41534
|
-
}]
|
|
41535
|
-
},
|
|
41536
|
-
"focus.time-blocks.create": {
|
|
41537
|
-
agentGuidance: "Required: task_id and payload.start (ISO 8601 datetime). Optionally set payload.duration (minutes) and payload.completed.",
|
|
41538
|
-
examples: [{
|
|
41539
|
-
description: "Schedule a 1-hour time block",
|
|
41540
|
-
data: {
|
|
41541
|
-
task_id: 12345,
|
|
41542
|
-
payload: {
|
|
41543
|
-
start: "2025-01-15T09:00:00Z",
|
|
41544
|
-
duration: 60
|
|
41545
|
-
}
|
|
41546
|
-
}
|
|
41547
|
-
}]
|
|
41548
|
-
},
|
|
41549
|
-
"focus.time-blocks.update": {
|
|
41550
|
-
agentGuidance: "Partial update — provide task_id, time_block_id, and fields to change in payload.",
|
|
41551
|
-
examples: [{
|
|
41552
|
-
description: "Mark a time block as completed",
|
|
41553
|
-
data: {
|
|
41554
|
-
task_id: 12345,
|
|
41555
|
-
time_block_id: 67890,
|
|
41556
|
-
payload: { completed: true }
|
|
41557
|
-
}
|
|
41558
|
-
}]
|
|
41559
|
-
},
|
|
41560
|
-
"focus.time-blocks.delete": {
|
|
41561
|
-
agentGuidance: "Permanently removes the scheduled time block from the task.",
|
|
41562
|
-
examples: [{
|
|
41563
|
-
description: "Delete a time block",
|
|
41564
|
-
data: {
|
|
41565
|
-
task_id: 12345,
|
|
41566
|
-
time_block_id: 67890
|
|
41567
|
-
}
|
|
41568
|
-
}]
|
|
41569
|
-
},
|
|
41570
|
-
"focus.time-blocks.bulk-create": {
|
|
41571
|
-
agentGuidance: "Body shape: { time_blocks: [{ task_id, start, duration?, completed? }, ...] }. Creates many blocks in one request.",
|
|
41572
|
-
examples: [{
|
|
41573
|
-
description: "Schedule two blocks",
|
|
41574
|
-
data: { time_blocks: [{
|
|
41575
|
-
task_id: 12345,
|
|
41576
|
-
start: "2025-01-15T09:00:00Z",
|
|
41577
|
-
duration: 60
|
|
41578
|
-
}, {
|
|
41579
|
-
task_id: 12345,
|
|
41580
|
-
start: "2025-01-15T11:00:00Z",
|
|
41581
|
-
duration: 30
|
|
41582
|
-
}] }
|
|
41583
|
-
}]
|
|
41584
|
-
},
|
|
41585
|
-
"focus.time-blocks.bulk-patch": {
|
|
41586
|
-
agentGuidance: "JSON array of { id: timeBlockId, ...partial fields }; same fields as single time-block update.",
|
|
41587
|
-
examples: [{
|
|
41588
|
-
description: "Mark two blocks complete",
|
|
41589
|
-
data: [{
|
|
41590
|
-
id: 101,
|
|
41591
|
-
completed: true
|
|
41592
|
-
}, {
|
|
41593
|
-
id: 102,
|
|
41594
|
-
completed: true
|
|
41595
|
-
}]
|
|
41596
|
-
}]
|
|
41597
|
-
},
|
|
41598
|
-
"focus.time-blocks.bulk-delete": {
|
|
41599
|
-
agentGuidance: "Deletes time blocks by numeric id list in one HTTP call (not task_id/time_block_id pairs).",
|
|
41600
|
-
examples: [{
|
|
41601
|
-
description: "Delete two blocks",
|
|
41602
|
-
data: { ids: [101, 102] }
|
|
41603
|
-
}]
|
|
41604
|
-
}
|
|
41605
|
-
};
|
|
41606
|
-
const timeEntryOverrides = {
|
|
41607
|
-
"focus.time-entries.list": {
|
|
41608
|
-
agentGuidance: "Returns tracked time entries in a date range, including taskless entries (tracked on a project with no task). Requires date_from and date_to. Accepts date-only strings (YYYY-MM-DD) or RFC3339 datetimes — date-only is automatically expanded: date_from to T00:00:00Z, date_to to T23:59:59Z. Optional project_id keeps only entries on that project (sent to the API; client also scans up to 50 list pages of 100, then slices page/per_page; not a full workspace scan). If truncated is true, more unfiltered rows exist than were scanned — narrow date_from/date_to. Pass include_taskless:false to hide taskless rows. Includes task and project context.",
|
|
41609
|
-
examples: [
|
|
41610
|
-
{
|
|
41611
|
-
description: "List time entries for a week (date-only, expanded to full-day range)",
|
|
41612
|
-
data: {
|
|
41613
|
-
date_from: "2025-01-01",
|
|
41614
|
-
date_to: "2025-01-07"
|
|
41615
|
-
}
|
|
41616
|
-
},
|
|
41617
|
-
{
|
|
41618
|
-
description: "List time entries with explicit RFC3339 timestamps",
|
|
41619
|
-
data: {
|
|
41620
|
-
date_from: "2025-01-01T00:00:00Z",
|
|
41621
|
-
date_to: "2025-01-07T23:59:59Z"
|
|
41622
|
-
}
|
|
41623
|
-
},
|
|
41624
|
-
{
|
|
41625
|
-
description: "List time entries for one project, including taskless rows",
|
|
41626
|
-
data: {
|
|
41627
|
-
date_from: "2025-01-01",
|
|
41628
|
-
date_to: "2025-01-07",
|
|
41629
|
-
project_id: 42
|
|
41630
|
-
}
|
|
41631
|
-
}
|
|
41632
|
-
]
|
|
41355
|
+
]
|
|
41633
41356
|
},
|
|
41634
41357
|
"focus.time-entries.create": {
|
|
41635
41358
|
description: "Create a completed task time entry. payload.type defaults to 'activity' when omitted.",
|
|
@@ -42154,13 +41877,15 @@ async function getWorkspaceAttachmentStorage(httpClient, organization_id, worksp
|
|
|
42154
41877
|
}
|
|
42155
41878
|
//#endregion
|
|
42156
41879
|
//#region ../focus-queries/dist/audit-log/requests.ts
|
|
42157
|
-
async function getOrganizationAuditLog(httpClient, organization_id, from, to, { workspace_id, entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
|
|
41880
|
+
async function getOrganizationAuditLog(httpClient, organization_id, from, to, { workspace_id, entity_type, entity_id, project_id, custom_field_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
|
|
42158
41881
|
return await httpClient.get(`organizations/${organization_id}/audit-log/${from}/${to}`, {
|
|
42159
41882
|
signal,
|
|
42160
41883
|
searchParams: buildSearchParams$2({
|
|
42161
41884
|
workspace_id,
|
|
42162
41885
|
entity_type,
|
|
42163
41886
|
entity_id,
|
|
41887
|
+
project_id,
|
|
41888
|
+
custom_field_id,
|
|
42164
41889
|
action,
|
|
42165
41890
|
user_id,
|
|
42166
41891
|
page_size,
|
|
@@ -42169,12 +41894,14 @@ async function getOrganizationAuditLog(httpClient, organization_id, from, to, {
|
|
|
42169
41894
|
})
|
|
42170
41895
|
}).json();
|
|
42171
41896
|
}
|
|
42172
|
-
async function getAuditLog(httpClient, organization_id, workspace_id, from, to, { entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
|
|
41897
|
+
async function getAuditLog(httpClient, organization_id, workspace_id, from, to, { entity_type, entity_id, project_id, custom_field_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
|
|
42173
41898
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/audit-log/${from}/${to}`, {
|
|
42174
41899
|
signal,
|
|
42175
41900
|
searchParams: buildSearchParams$2({
|
|
42176
41901
|
entity_type,
|
|
42177
41902
|
entity_id,
|
|
41903
|
+
project_id,
|
|
41904
|
+
custom_field_id,
|
|
42178
41905
|
action,
|
|
42179
41906
|
user_id,
|
|
42180
41907
|
page_size,
|
|
@@ -42327,13 +42054,14 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
|
|
|
42327
42054
|
}
|
|
42328
42055
|
//#endregion
|
|
42329
42056
|
//#region ../focus-queries/dist/capacities/requests.ts
|
|
42330
|
-
async function capacityGetComputations(httpClient, organization_id, workspace_id, group, {
|
|
42057
|
+
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) {
|
|
42331
42058
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
|
|
42332
42059
|
signal,
|
|
42333
42060
|
searchParams: buildSearchParams$2({
|
|
42334
|
-
user_id,
|
|
42335
42061
|
start_date,
|
|
42336
42062
|
end_date,
|
|
42063
|
+
user_id,
|
|
42064
|
+
team_id,
|
|
42337
42065
|
private: private_,
|
|
42338
42066
|
task_source,
|
|
42339
42067
|
unit,
|
|
@@ -42393,6 +42121,15 @@ async function updateCustomField(httpClient, organization_id, workspace_id, cust
|
|
|
42393
42121
|
async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
42394
42122
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
|
|
42395
42123
|
}
|
|
42124
|
+
async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
42125
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
|
|
42126
|
+
}
|
|
42127
|
+
async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
|
|
42128
|
+
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
|
|
42129
|
+
signal,
|
|
42130
|
+
json: data
|
|
42131
|
+
}).json();
|
|
42132
|
+
}
|
|
42396
42133
|
async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
|
|
42397
42134
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
42398
42135
|
signal,
|
|
@@ -42656,7 +42393,7 @@ async function restoreMilestone(httpClient, workspace_id, milestone_id, signal)
|
|
|
42656
42393
|
}
|
|
42657
42394
|
//#endregion
|
|
42658
42395
|
//#region ../focus-queries/dist/project-groups/requests.ts
|
|
42659
|
-
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) {
|
|
42396
|
+
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, include_recurring_series, cf_filter } = {}, signal) {
|
|
42660
42397
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
|
|
42661
42398
|
signal,
|
|
42662
42399
|
searchParams: buildSearchParams$2({
|
|
@@ -42682,6 +42419,7 @@ async function getProjectGroupsClassic(httpClient, organization_id, workspace_id
|
|
|
42682
42419
|
user_id,
|
|
42683
42420
|
only_me,
|
|
42684
42421
|
include_drafts,
|
|
42422
|
+
include_recurring_series,
|
|
42685
42423
|
cf_filter
|
|
42686
42424
|
})
|
|
42687
42425
|
}).json();
|
|
@@ -42700,9 +42438,6 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
|
|
|
42700
42438
|
json: data
|
|
42701
42439
|
}).json();
|
|
42702
42440
|
}
|
|
42703
|
-
async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
|
|
42704
|
-
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
|
|
42705
|
-
}
|
|
42706
42441
|
async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
42707
42442
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
|
|
42708
42443
|
}
|
|
@@ -42728,6 +42463,37 @@ async function getPublicHolidaysByUserIds(httpClient, organization_id, { user_id
|
|
|
42728
42463
|
}).json();
|
|
42729
42464
|
}
|
|
42730
42465
|
//#endregion
|
|
42466
|
+
//#region ../focus-queries/dist/publicsharedreports/requests.ts
|
|
42467
|
+
async function openPublicSharedReport(httpClient, token, signal) {
|
|
42468
|
+
return await httpClient.get(`shared/${token}`, { signal }).json();
|
|
42469
|
+
}
|
|
42470
|
+
async function profitabilityPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
|
|
42471
|
+
return await httpClient.post(`shared/${token}/profitability`, {
|
|
42472
|
+
signal,
|
|
42473
|
+
json: data,
|
|
42474
|
+
searchParams: buildSearchParams$2({
|
|
42475
|
+
response_format,
|
|
42476
|
+
include_dicts
|
|
42477
|
+
})
|
|
42478
|
+
}).json();
|
|
42479
|
+
}
|
|
42480
|
+
async function queryPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
|
|
42481
|
+
return await httpClient.post(`shared/${token}/query`, {
|
|
42482
|
+
signal,
|
|
42483
|
+
json: data,
|
|
42484
|
+
searchParams: buildSearchParams$2({
|
|
42485
|
+
response_format,
|
|
42486
|
+
include_dicts
|
|
42487
|
+
})
|
|
42488
|
+
}).json();
|
|
42489
|
+
}
|
|
42490
|
+
async function workloadPublicSharedReport(httpClient, token, data, signal) {
|
|
42491
|
+
return await httpClient.post(`shared/${token}/workload`, {
|
|
42492
|
+
signal,
|
|
42493
|
+
json: data
|
|
42494
|
+
}).json();
|
|
42495
|
+
}
|
|
42496
|
+
//#endregion
|
|
42731
42497
|
//#region ../focus-queries/dist/rates/requests.ts
|
|
42732
42498
|
async function getProjectRatesSummary(httpClient, organization_id, workspace_id, { page, rows, order_by, search } = {}, signal) {
|
|
42733
42499
|
const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/rates`, {
|
|
@@ -42889,7 +42655,7 @@ async function updateASavedView(httpClient, workspace_id, id, data, signal) {
|
|
|
42889
42655
|
}
|
|
42890
42656
|
//#endregion
|
|
42891
42657
|
//#region ../focus-queries/dist/search/requests.ts
|
|
42892
|
-
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) {
|
|
42658
|
+
async function search(httpClient, organization_id, workspace_id, { keyword, per_group, assignee_user_id, assignee_team_id, include_unassigned, project_id, task_id, include_drafts, exclude_calendar_events, group_by_tags, only_me }, signal) {
|
|
42893
42659
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
42894
42660
|
signal,
|
|
42895
42661
|
searchParams: buildSearchParams$2({
|
|
@@ -42897,6 +42663,7 @@ async function search(httpClient, organization_id, workspace_id, { keyword, per_
|
|
|
42897
42663
|
per_group,
|
|
42898
42664
|
assignee_user_id,
|
|
42899
42665
|
assignee_team_id,
|
|
42666
|
+
include_unassigned,
|
|
42900
42667
|
project_id,
|
|
42901
42668
|
task_id,
|
|
42902
42669
|
include_drafts,
|
|
@@ -42941,6 +42708,18 @@ async function getSharedReportsSharedWithMe(httpClient, workspace_id, signal) {
|
|
|
42941
42708
|
async function getSharedReportForViewer(httpClient, workspace_id, id, signal) {
|
|
42942
42709
|
return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
|
|
42943
42710
|
}
|
|
42711
|
+
async function unshareSharedReport(httpClient, workspace_id, id, signal) {
|
|
42712
|
+
return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
|
|
42713
|
+
}
|
|
42714
|
+
async function getSharedReportDates(httpClient, workspace_id, id, signal) {
|
|
42715
|
+
return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}/dates`, { signal }).json();
|
|
42716
|
+
}
|
|
42717
|
+
async function setSharedReportDatesLock(httpClient, workspace_id, id, data, signal) {
|
|
42718
|
+
return await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/dates`, {
|
|
42719
|
+
signal,
|
|
42720
|
+
json: data
|
|
42721
|
+
}).json();
|
|
42722
|
+
}
|
|
42944
42723
|
async function addSharedReportGrants(httpClient, workspace_id, id, data, signal) {
|
|
42945
42724
|
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/grants`, {
|
|
42946
42725
|
signal,
|
|
@@ -42950,6 +42729,21 @@ async function addSharedReportGrants(httpClient, workspace_id, id, data, signal)
|
|
|
42950
42729
|
async function revokeSharedReportGrant(httpClient, workspace_id, id, grant_id, signal) {
|
|
42951
42730
|
return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/grants/${grant_id}`, { signal }).json();
|
|
42952
42731
|
}
|
|
42732
|
+
async function mintSharedReportLink(httpClient, workspace_id, id, data, signal) {
|
|
42733
|
+
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link`, {
|
|
42734
|
+
signal,
|
|
42735
|
+
json: data
|
|
42736
|
+
}).json();
|
|
42737
|
+
}
|
|
42738
|
+
async function revokeSharedReportLink(httpClient, workspace_id, id, signal) {
|
|
42739
|
+
return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/link`, { signal }).json();
|
|
42740
|
+
}
|
|
42741
|
+
async function rotateSharedReportLink(httpClient, workspace_id, id, data, signal) {
|
|
42742
|
+
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link/rotate`, {
|
|
42743
|
+
signal,
|
|
42744
|
+
json: data
|
|
42745
|
+
}).json();
|
|
42746
|
+
}
|
|
42953
42747
|
//#endregion
|
|
42954
42748
|
//#region ../focus-queries/dist/subscriptions/requests.ts
|
|
42955
42749
|
async function getCurrentSubscription(httpClient, organization_id, signal) {
|
|
@@ -43006,9 +42800,10 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
|
|
|
43006
42800
|
}
|
|
43007
42801
|
//#endregion
|
|
43008
42802
|
//#region ../focus-queries/dist/task-groups/requests.ts
|
|
43009
|
-
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) {
|
|
42803
|
+
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, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences, xTimelineFetchTrigger }, signal) {
|
|
43010
42804
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
|
|
43011
42805
|
signal,
|
|
42806
|
+
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
43012
42807
|
searchParams: buildSearchParams$2({
|
|
43013
42808
|
project_id,
|
|
43014
42809
|
source,
|
|
@@ -43037,13 +42832,18 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
|
|
|
43037
42832
|
min_days,
|
|
43038
42833
|
include_drafts,
|
|
43039
42834
|
cf_filter,
|
|
43040
|
-
user_cf_filter
|
|
42835
|
+
user_cf_filter,
|
|
42836
|
+
recurring_occurrences_after,
|
|
42837
|
+
max_recurring_occurrences_after,
|
|
42838
|
+
recurring_task_read,
|
|
42839
|
+
include_projected_occurrences
|
|
43041
42840
|
})
|
|
43042
42841
|
}).json();
|
|
43043
42842
|
}
|
|
43044
|
-
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) {
|
|
42843
|
+
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, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences, xTimelineFetchTrigger } = {}, signal) {
|
|
43045
42844
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
|
|
43046
42845
|
signal,
|
|
42846
|
+
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
43047
42847
|
searchParams: buildSearchParams$2({
|
|
43048
42848
|
team_id,
|
|
43049
42849
|
project_id,
|
|
@@ -43072,13 +42872,18 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
|
|
|
43072
42872
|
min_days,
|
|
43073
42873
|
include_drafts,
|
|
43074
42874
|
cf_filter,
|
|
43075
|
-
user_cf_filter
|
|
42875
|
+
user_cf_filter,
|
|
42876
|
+
recurring_occurrences_after,
|
|
42877
|
+
max_recurring_occurrences_after,
|
|
42878
|
+
recurring_task_read,
|
|
42879
|
+
include_projected_occurrences
|
|
43076
42880
|
})
|
|
43077
42881
|
}).json();
|
|
43078
42882
|
}
|
|
43079
|
-
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) {
|
|
42883
|
+
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, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences, page, per_page, order_by, xTimelineFetchTrigger } = {}, signal) {
|
|
43080
42884
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
43081
42885
|
signal,
|
|
42886
|
+
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
43082
42887
|
searchParams: buildSearchParams$2({
|
|
43083
42888
|
source,
|
|
43084
42889
|
priority,
|
|
@@ -43108,6 +42913,10 @@ async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, g
|
|
|
43108
42913
|
include_drafts,
|
|
43109
42914
|
cf_filter,
|
|
43110
42915
|
user_cf_filter,
|
|
42916
|
+
recurring_occurrences_after,
|
|
42917
|
+
max_recurring_occurrences_after,
|
|
42918
|
+
recurring_task_read,
|
|
42919
|
+
include_projected_occurrences,
|
|
43111
42920
|
page,
|
|
43112
42921
|
per_page,
|
|
43113
42922
|
order_by
|
|
@@ -43299,6 +43108,19 @@ async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id,
|
|
|
43299
43108
|
json: data
|
|
43300
43109
|
}).json();
|
|
43301
43110
|
}
|
|
43111
|
+
async function getTimesheetStatusCounts(httpClient, organization_id, workspace_id, { date_from, date_to, setup_id, user_account_ids, approver_user_account_ids, team_ids }, signal) {
|
|
43112
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/counts`, {
|
|
43113
|
+
signal,
|
|
43114
|
+
searchParams: buildSearchParams$2({
|
|
43115
|
+
date_from,
|
|
43116
|
+
date_to,
|
|
43117
|
+
setup_id,
|
|
43118
|
+
user_account_ids,
|
|
43119
|
+
approver_user_account_ids,
|
|
43120
|
+
team_ids
|
|
43121
|
+
})
|
|
43122
|
+
}).json();
|
|
43123
|
+
}
|
|
43302
43124
|
async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
|
|
43303
43125
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal }).json();
|
|
43304
43126
|
}
|
|
@@ -43342,7 +43164,21 @@ async function withdrawTimesheet(httpClient, organization_id, workspace_id, setu
|
|
|
43342
43164
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/withdraw`, { signal }).json();
|
|
43343
43165
|
}
|
|
43344
43166
|
//#endregion
|
|
43167
|
+
//#region ../focus-queries/dist/track-team-invites/requests.ts
|
|
43168
|
+
async function postTrackTeamInvites(httpClient, organization_id, workspace_id, data, signal) {
|
|
43169
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/track-team-invites`, {
|
|
43170
|
+
signal,
|
|
43171
|
+
json: data
|
|
43172
|
+
}).json();
|
|
43173
|
+
}
|
|
43174
|
+
//#endregion
|
|
43345
43175
|
//#region ../focus-queries/dist/user-settings/requests.ts
|
|
43176
|
+
async function emailUnsubscribePage(httpClient, token, signal) {
|
|
43177
|
+
return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
|
|
43178
|
+
}
|
|
43179
|
+
async function emailUnsubscribe(httpClient, token, signal) {
|
|
43180
|
+
return await httpClient.post(`email/unsubscribe/${token}`, { signal }).json();
|
|
43181
|
+
}
|
|
43346
43182
|
async function getUserSettings(httpClient, signal) {
|
|
43347
43183
|
return await httpClient.get(`users/me/settings`, { signal }).json();
|
|
43348
43184
|
}
|
|
@@ -43582,6 +43418,7 @@ const generatedFocusOperations = [
|
|
|
43582
43418
|
mcp: { entityTool: "audit-log" },
|
|
43583
43419
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
43584
43420
|
action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
43421
|
+
custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43585
43422
|
entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43586
43423
|
entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
43587
43424
|
export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
@@ -43589,6 +43426,7 @@ const generatedFocusOperations = [
|
|
|
43589
43426
|
from: /* @__PURE__ */ string$1(),
|
|
43590
43427
|
page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
43591
43428
|
page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
43429
|
+
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43592
43430
|
to: /* @__PURE__ */ string$1(),
|
|
43593
43431
|
user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43594
43432
|
workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
@@ -43622,6 +43460,7 @@ const generatedFocusOperations = [
|
|
|
43622
43460
|
mcp: { entityTool: "audit-log" },
|
|
43623
43461
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
43624
43462
|
action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
43463
|
+
custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43625
43464
|
entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43626
43465
|
entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
43627
43466
|
export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
@@ -43629,6 +43468,7 @@ const generatedFocusOperations = [
|
|
|
43629
43468
|
from: /* @__PURE__ */ string$1(),
|
|
43630
43469
|
page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
43631
43470
|
page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
43471
|
+
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43632
43472
|
to: /* @__PURE__ */ string$1(),
|
|
43633
43473
|
user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
43634
43474
|
}),
|
|
@@ -43668,6 +43508,7 @@ const generatedFocusOperations = [
|
|
|
43668
43508
|
private_: /* @__PURE__ */ unknown$1(),
|
|
43669
43509
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
43670
43510
|
task_source: /* @__PURE__ */ unknown$1(),
|
|
43511
|
+
team_id: /* @__PURE__ */ number$2(),
|
|
43671
43512
|
unit: /* @__PURE__ */ unknown$1(),
|
|
43672
43513
|
user_id: /* @__PURE__ */ number$2()
|
|
43673
43514
|
}),
|
|
@@ -43917,8 +43758,6 @@ const generatedFocusOperations = [
|
|
|
43917
43758
|
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
43918
43759
|
estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
|
|
43919
43760
|
estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43920
|
-
integration_ext_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43921
|
-
integration_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
43922
43761
|
notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
43923
43762
|
parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43924
43763
|
pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
@@ -43952,8 +43791,6 @@ const generatedFocusOperations = [
|
|
|
43952
43791
|
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
43953
43792
|
estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
|
|
43954
43793
|
estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43955
|
-
integration_ext_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43956
|
-
integration_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
43957
43794
|
notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
43958
43795
|
pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
43959
43796
|
priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
@@ -43969,12 +43806,6 @@ const generatedFocusOperations = [
|
|
|
43969
43806
|
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
43970
43807
|
status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
43971
43808
|
}))),
|
|
43972
|
-
time_blocks: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
43973
|
-
start: apiDateTimeString,
|
|
43974
|
-
completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
43975
|
-
duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43976
|
-
outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
43977
|
-
}))),
|
|
43978
43809
|
time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
|
|
43979
43810
|
type: /* @__PURE__ */ picklist$1(["activity", "break"]),
|
|
43980
43811
|
calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
@@ -43984,13 +43815,6 @@ const generatedFocusOperations = [
|
|
|
43984
43815
|
planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43985
43816
|
planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
43986
43817
|
start: /* @__PURE__ */ optional$1(apiDateTimeString),
|
|
43987
|
-
time_block: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
|
|
43988
|
-
start: apiDateTimeString,
|
|
43989
|
-
completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
43990
|
-
duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43991
|
-
outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
43992
|
-
})),
|
|
43993
|
-
time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
43994
43818
|
tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
|
|
43995
43819
|
}))
|
|
43996
43820
|
}) }),
|
|
@@ -44108,6 +43932,33 @@ const generatedFocusOperations = [
|
|
|
44108
43932
|
]));
|
|
44109
43933
|
}
|
|
44110
43934
|
},
|
|
43935
|
+
{
|
|
43936
|
+
id: "focus.custom-fields.get-allowed-users",
|
|
43937
|
+
family: "focus",
|
|
43938
|
+
resource: "custom-fields",
|
|
43939
|
+
action: "get-allowed-users",
|
|
43940
|
+
title: "Get Allowed Users Custom Fields",
|
|
43941
|
+
description: "Get Allowed Users Custom Fields.",
|
|
43942
|
+
safety: "read",
|
|
43943
|
+
destructive: false,
|
|
43944
|
+
cli: {
|
|
43945
|
+
group: ["custom-fields"],
|
|
43946
|
+
command: "get-allowed-users",
|
|
43947
|
+
interactive: "available"
|
|
43948
|
+
},
|
|
43949
|
+
mcp: { entityTool: "custom-fields" },
|
|
43950
|
+
inputSchema: /* @__PURE__ */ looseObject({ custom_field_id: /* @__PURE__ */ number$2() }),
|
|
43951
|
+
execute: (input, { client }) => {
|
|
43952
|
+
const data = input;
|
|
43953
|
+
return client.runGeneratedRequest("getCustomFieldAllowedUsers", () => callGeneratedRequest(getCustomFieldAllowedUsers, [
|
|
43954
|
+
client.httpClient,
|
|
43955
|
+
client.organizationId,
|
|
43956
|
+
client.workspaceIdNumber,
|
|
43957
|
+
data.custom_field_id,
|
|
43958
|
+
void 0
|
|
43959
|
+
]));
|
|
43960
|
+
}
|
|
43961
|
+
},
|
|
44111
43962
|
{
|
|
44112
43963
|
id: "focus.custom-fields.list",
|
|
44113
43964
|
family: "focus",
|
|
@@ -44277,6 +44128,37 @@ const generatedFocusOperations = [
|
|
|
44277
44128
|
]));
|
|
44278
44129
|
}
|
|
44279
44130
|
},
|
|
44131
|
+
{
|
|
44132
|
+
id: "focus.custom-fields.replace-custom-field-allowed-users",
|
|
44133
|
+
family: "focus",
|
|
44134
|
+
resource: "custom-fields",
|
|
44135
|
+
action: "replace-custom-field-allowed-users",
|
|
44136
|
+
title: "Replace Custom Field Allowed Users Custom Fields",
|
|
44137
|
+
description: "Replace Custom Field Allowed Users Custom Fields.",
|
|
44138
|
+
safety: "update",
|
|
44139
|
+
destructive: false,
|
|
44140
|
+
cli: {
|
|
44141
|
+
group: ["custom-fields"],
|
|
44142
|
+
command: "replace-custom-field-allowed-users",
|
|
44143
|
+
interactive: "default"
|
|
44144
|
+
},
|
|
44145
|
+
mcp: { entityTool: "custom-fields" },
|
|
44146
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
44147
|
+
custom_field_id: /* @__PURE__ */ number$2(),
|
|
44148
|
+
payload: /* @__PURE__ */ looseObject({ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) })
|
|
44149
|
+
}),
|
|
44150
|
+
execute: (input, { client }) => {
|
|
44151
|
+
const data = input;
|
|
44152
|
+
return client.runGeneratedRequest("replaceCustomFieldAllowedUsers", () => callGeneratedRequest(replaceCustomFieldAllowedUsers, [
|
|
44153
|
+
client.httpClient,
|
|
44154
|
+
client.organizationId,
|
|
44155
|
+
client.workspaceIdNumber,
|
|
44156
|
+
data.custom_field_id,
|
|
44157
|
+
data.payload ?? data.data ?? data,
|
|
44158
|
+
void 0
|
|
44159
|
+
]));
|
|
44160
|
+
}
|
|
44161
|
+
},
|
|
44280
44162
|
{
|
|
44281
44163
|
id: "focus.custom-fields.update",
|
|
44282
44164
|
family: "focus",
|
|
@@ -44423,13 +44305,7 @@ const generatedFocusOperations = [
|
|
|
44423
44305
|
},
|
|
44424
44306
|
mcp: { entityTool: "goals" },
|
|
44425
44307
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
44426
|
-
billable: /* @__PURE__ */ boolean$1(),
|
|
44427
44308
|
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
44428
|
-
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
44429
|
-
icon: /* @__PURE__ */ string$1(),
|
|
44430
|
-
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
44431
|
-
name: /* @__PURE__ */ string$1(),
|
|
44432
|
-
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44433
44309
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
44434
44310
|
"daily",
|
|
44435
44311
|
"weekly",
|
|
@@ -44437,12 +44313,18 @@ const generatedFocusOperations = [
|
|
|
44437
44313
|
"monthly"
|
|
44438
44314
|
]),
|
|
44439
44315
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
44440
|
-
tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44441
44316
|
target_seconds: /* @__PURE__ */ number$2(),
|
|
44442
|
-
|
|
44443
|
-
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44317
|
+
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
44444
44318
|
client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44445
|
-
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
44319
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44320
|
+
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
44321
|
+
icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44322
|
+
monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
|
|
44323
|
+
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44324
|
+
project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44325
|
+
tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44326
|
+
task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44327
|
+
weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
44446
44328
|
}) }),
|
|
44447
44329
|
execute: (input, { client }) => {
|
|
44448
44330
|
const data = input;
|
|
@@ -44548,13 +44430,6 @@ const generatedFocusOperations = [
|
|
|
44548
44430
|
},
|
|
44549
44431
|
mcp: { entityTool: "goals" },
|
|
44550
44432
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
44551
|
-
billable: /* @__PURE__ */ boolean$1(),
|
|
44552
|
-
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
44553
|
-
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
44554
|
-
icon: /* @__PURE__ */ string$1(),
|
|
44555
|
-
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
44556
|
-
name: /* @__PURE__ */ string$1(),
|
|
44557
|
-
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44558
44433
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
44559
44434
|
"daily",
|
|
44560
44435
|
"weekly",
|
|
@@ -44562,12 +44437,19 @@ const generatedFocusOperations = [
|
|
|
44562
44437
|
"monthly"
|
|
44563
44438
|
]),
|
|
44564
44439
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
44565
|
-
|
|
44566
|
-
target_seconds: /* @__PURE__ */ number$2(),
|
|
44567
|
-
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44568
|
-
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
44440
|
+
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
44569
44441
|
client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44570
|
-
|
|
44442
|
+
comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["more_than", "less_than"])),
|
|
44443
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44444
|
+
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
44445
|
+
icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44446
|
+
monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
|
|
44447
|
+
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
44448
|
+
project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44449
|
+
tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44450
|
+
target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
44451
|
+
task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
44452
|
+
weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
44571
44453
|
}) }),
|
|
44572
44454
|
execute: (input, { client }) => {
|
|
44573
44455
|
const data = input;
|
|
@@ -45534,9 +45416,17 @@ const generatedFocusOperations = [
|
|
|
45534
45416
|
mcp: { entityTool: "projects" },
|
|
45535
45417
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
45536
45418
|
payload: /* @__PURE__ */ looseObject({
|
|
45419
|
+
auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
45420
|
+
completion_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "automatic"])),
|
|
45537
45421
|
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
45538
45422
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
45539
45423
|
pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
45424
|
+
rollover_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
45425
|
+
"expire",
|
|
45426
|
+
"carry_all",
|
|
45427
|
+
"carry_over"
|
|
45428
|
+
])),
|
|
45429
|
+
rrule: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
45540
45430
|
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
|
|
45541
45431
|
}),
|
|
45542
45432
|
project_id: /* @__PURE__ */ number$2()
|
|
@@ -45980,6 +45870,7 @@ const generatedFocusOperations = [
|
|
|
45980
45870
|
group: /* @__PURE__ */ string$1(),
|
|
45981
45871
|
include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45982
45872
|
include_group_totals: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45873
|
+
include_recurring_series: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45983
45874
|
include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45984
45875
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45985
45876
|
only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
@@ -46082,29 +45973,6 @@ const generatedFocusOperations = [
|
|
|
46082
45973
|
]));
|
|
46083
45974
|
}
|
|
46084
45975
|
},
|
|
46085
|
-
{
|
|
46086
|
-
id: "focus.projects.margin-targets-clear-workspace",
|
|
46087
|
-
family: "focus",
|
|
46088
|
-
resource: "projects",
|
|
46089
|
-
action: "margin-targets-clear-workspace",
|
|
46090
|
-
title: "Margin Targets Clear Workspace Projects",
|
|
46091
|
-
description: "Margin Targets Clear Workspace Projects.",
|
|
46092
|
-
safety: "delete",
|
|
46093
|
-
destructive: true,
|
|
46094
|
-
cli: {
|
|
46095
|
-
group: ["projects", "margin-targets"],
|
|
46096
|
-
command: "clear-workspace",
|
|
46097
|
-
interactive: "default"
|
|
46098
|
-
},
|
|
46099
|
-
mcp: { entityTool: "projects" },
|
|
46100
|
-
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
46101
|
-
execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
|
|
46102
|
-
client.httpClient,
|
|
46103
|
-
client.organizationId,
|
|
46104
|
-
client.workspaceIdNumber,
|
|
46105
|
-
void 0
|
|
46106
|
-
]))
|
|
46107
|
-
},
|
|
46108
45976
|
{
|
|
46109
45977
|
id: "focus.projects.margin-targets-get",
|
|
46110
45978
|
family: "focus",
|
|
@@ -46550,47 +46418,171 @@ const generatedFocusOperations = [
|
|
|
46550
46418
|
}
|
|
46551
46419
|
},
|
|
46552
46420
|
{
|
|
46553
|
-
id: "focus.
|
|
46421
|
+
id: "focus.publicsharedreports.open-public-shared-report",
|
|
46554
46422
|
family: "focus",
|
|
46555
|
-
resource: "
|
|
46556
|
-
action: "
|
|
46557
|
-
title: "
|
|
46558
|
-
description: "
|
|
46559
|
-
safety: "
|
|
46423
|
+
resource: "publicsharedreports",
|
|
46424
|
+
action: "open-public-shared-report",
|
|
46425
|
+
title: "Open Public Shared Report Publicsharedreports",
|
|
46426
|
+
description: "Open Public Shared Report Publicsharedreports.",
|
|
46427
|
+
safety: "read",
|
|
46560
46428
|
destructive: false,
|
|
46561
46429
|
cli: {
|
|
46562
|
-
group: ["
|
|
46563
|
-
command: "
|
|
46564
|
-
interactive: "
|
|
46430
|
+
group: ["publicsharedreports"],
|
|
46431
|
+
command: "open-public-shared-report",
|
|
46432
|
+
interactive: "available"
|
|
46565
46433
|
},
|
|
46566
|
-
mcp: { entityTool: "
|
|
46567
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
46568
|
-
payload: rateSchedulePayloadSchema,
|
|
46569
|
-
project_id: /* @__PURE__ */ number$2()
|
|
46570
|
-
}),
|
|
46434
|
+
mcp: { entityTool: "publicsharedreports" },
|
|
46435
|
+
inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
|
|
46571
46436
|
execute: (input, { client }) => {
|
|
46572
46437
|
const data = input;
|
|
46573
|
-
return client.runGeneratedRequest("
|
|
46438
|
+
return client.runGeneratedRequest("openPublicSharedReport", () => callGeneratedRequest(openPublicSharedReport, [
|
|
46574
46439
|
client.httpClient,
|
|
46575
|
-
|
|
46576
|
-
client.workspaceIdNumber,
|
|
46577
|
-
data.project_id,
|
|
46578
|
-
data.payload ?? data.data ?? data,
|
|
46440
|
+
data.token,
|
|
46579
46441
|
void 0
|
|
46580
46442
|
]));
|
|
46581
46443
|
}
|
|
46582
46444
|
},
|
|
46583
46445
|
{
|
|
46584
|
-
id: "focus.
|
|
46446
|
+
id: "focus.publicsharedreports.profitability-public-shared-report",
|
|
46585
46447
|
family: "focus",
|
|
46586
|
-
resource: "
|
|
46587
|
-
action: "
|
|
46588
|
-
title: "
|
|
46589
|
-
description: "
|
|
46448
|
+
resource: "publicsharedreports",
|
|
46449
|
+
action: "profitability-public-shared-report",
|
|
46450
|
+
title: "Profitability Public Shared Report Publicsharedreports",
|
|
46451
|
+
description: "Profitability Public Shared Report Publicsharedreports.",
|
|
46590
46452
|
safety: "update",
|
|
46591
46453
|
destructive: false,
|
|
46592
46454
|
cli: {
|
|
46593
|
-
group: ["
|
|
46455
|
+
group: ["publicsharedreports"],
|
|
46456
|
+
command: "profitability-public-shared-report",
|
|
46457
|
+
interactive: "default"
|
|
46458
|
+
},
|
|
46459
|
+
mcp: { entityTool: "publicsharedreports" },
|
|
46460
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
46461
|
+
include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
46462
|
+
payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
|
|
46463
|
+
response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["json_row", "hierarchical"])),
|
|
46464
|
+
token: /* @__PURE__ */ string$1()
|
|
46465
|
+
}),
|
|
46466
|
+
execute: (input, { client }) => {
|
|
46467
|
+
const data = input;
|
|
46468
|
+
return client.runGeneratedRequest("profitabilityPublicSharedReport", () => callGeneratedRequest(profitabilityPublicSharedReport, [
|
|
46469
|
+
client.httpClient,
|
|
46470
|
+
data.token,
|
|
46471
|
+
data.payload ?? data.data ?? data,
|
|
46472
|
+
data.response_format,
|
|
46473
|
+
data.include_dicts,
|
|
46474
|
+
void 0
|
|
46475
|
+
]));
|
|
46476
|
+
}
|
|
46477
|
+
},
|
|
46478
|
+
{
|
|
46479
|
+
id: "focus.publicsharedreports.query-public-shared-report",
|
|
46480
|
+
family: "focus",
|
|
46481
|
+
resource: "publicsharedreports",
|
|
46482
|
+
action: "query-public-shared-report",
|
|
46483
|
+
title: "Query Public Shared Report Publicsharedreports",
|
|
46484
|
+
description: "Query Public Shared Report Publicsharedreports.",
|
|
46485
|
+
safety: "update",
|
|
46486
|
+
destructive: false,
|
|
46487
|
+
cli: {
|
|
46488
|
+
group: ["publicsharedreports"],
|
|
46489
|
+
command: "query-public-shared-report",
|
|
46490
|
+
interactive: "default"
|
|
46491
|
+
},
|
|
46492
|
+
mcp: { entityTool: "publicsharedreports" },
|
|
46493
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
46494
|
+
include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
46495
|
+
payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
|
|
46496
|
+
response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
46497
|
+
"json_row",
|
|
46498
|
+
"table",
|
|
46499
|
+
"hierarchical"
|
|
46500
|
+
])),
|
|
46501
|
+
token: /* @__PURE__ */ string$1()
|
|
46502
|
+
}),
|
|
46503
|
+
execute: (input, { client }) => {
|
|
46504
|
+
const data = input;
|
|
46505
|
+
return client.runGeneratedRequest("queryPublicSharedReport", () => callGeneratedRequest(queryPublicSharedReport, [
|
|
46506
|
+
client.httpClient,
|
|
46507
|
+
data.token,
|
|
46508
|
+
data.payload ?? data.data ?? data,
|
|
46509
|
+
data.response_format,
|
|
46510
|
+
data.include_dicts,
|
|
46511
|
+
void 0
|
|
46512
|
+
]));
|
|
46513
|
+
}
|
|
46514
|
+
},
|
|
46515
|
+
{
|
|
46516
|
+
id: "focus.publicsharedreports.workload-public-shared-report",
|
|
46517
|
+
family: "focus",
|
|
46518
|
+
resource: "publicsharedreports",
|
|
46519
|
+
action: "workload-public-shared-report",
|
|
46520
|
+
title: "Workload Public Shared Report Publicsharedreports",
|
|
46521
|
+
description: "Workload Public Shared Report Publicsharedreports.",
|
|
46522
|
+
safety: "update",
|
|
46523
|
+
destructive: false,
|
|
46524
|
+
cli: {
|
|
46525
|
+
group: ["publicsharedreports"],
|
|
46526
|
+
command: "workload-public-shared-report",
|
|
46527
|
+
interactive: "default"
|
|
46528
|
+
},
|
|
46529
|
+
mcp: { entityTool: "publicsharedreports" },
|
|
46530
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
46531
|
+
payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
|
|
46532
|
+
token: /* @__PURE__ */ string$1()
|
|
46533
|
+
}),
|
|
46534
|
+
execute: (input, { client }) => {
|
|
46535
|
+
const data = input;
|
|
46536
|
+
return client.runGeneratedRequest("workloadPublicSharedReport", () => callGeneratedRequest(workloadPublicSharedReport, [
|
|
46537
|
+
client.httpClient,
|
|
46538
|
+
data.token,
|
|
46539
|
+
data.payload ?? data.data ?? data,
|
|
46540
|
+
void 0
|
|
46541
|
+
]));
|
|
46542
|
+
}
|
|
46543
|
+
},
|
|
46544
|
+
{
|
|
46545
|
+
id: "focus.rates.billable-check-project-billable-rate-conflicts",
|
|
46546
|
+
family: "focus",
|
|
46547
|
+
resource: "rates",
|
|
46548
|
+
action: "billable-check-project-billable-rate-conflicts",
|
|
46549
|
+
title: "Billable Check Project Billable Rate Conflicts Rates",
|
|
46550
|
+
description: "Billable Check Project Billable Rate Conflicts Rates.",
|
|
46551
|
+
safety: "update",
|
|
46552
|
+
destructive: false,
|
|
46553
|
+
cli: {
|
|
46554
|
+
group: ["rates", "billable"],
|
|
46555
|
+
command: "check-project-billable-rate-conflicts",
|
|
46556
|
+
interactive: "default"
|
|
46557
|
+
},
|
|
46558
|
+
mcp: { entityTool: "rates" },
|
|
46559
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
46560
|
+
payload: rateSchedulePayloadSchema,
|
|
46561
|
+
project_id: /* @__PURE__ */ number$2()
|
|
46562
|
+
}),
|
|
46563
|
+
execute: (input, { client }) => {
|
|
46564
|
+
const data = input;
|
|
46565
|
+
return client.runGeneratedRequest("checkProjectBillableRateConflicts", () => callGeneratedRequest(checkProjectBillableRateConflicts, [
|
|
46566
|
+
client.httpClient,
|
|
46567
|
+
client.organizationId,
|
|
46568
|
+
client.workspaceIdNumber,
|
|
46569
|
+
data.project_id,
|
|
46570
|
+
data.payload ?? data.data ?? data,
|
|
46571
|
+
void 0
|
|
46572
|
+
]));
|
|
46573
|
+
}
|
|
46574
|
+
},
|
|
46575
|
+
{
|
|
46576
|
+
id: "focus.rates.billable-check-project-user-billable-rate-conflicts",
|
|
46577
|
+
family: "focus",
|
|
46578
|
+
resource: "rates",
|
|
46579
|
+
action: "billable-check-project-user-billable-rate-conflicts",
|
|
46580
|
+
title: "Billable Check Project User Billable Rate Conflicts Rates",
|
|
46581
|
+
description: "Billable Check Project User Billable Rate Conflicts Rates.",
|
|
46582
|
+
safety: "update",
|
|
46583
|
+
destructive: false,
|
|
46584
|
+
cli: {
|
|
46585
|
+
group: ["rates", "billable"],
|
|
46594
46586
|
command: "check-project-user-billable-rate-conflicts",
|
|
46595
46587
|
interactive: "default"
|
|
46596
46588
|
},
|
|
@@ -48507,7 +48499,7 @@ const generatedFocusOperations = [
|
|
|
48507
48499
|
cli: {
|
|
48508
48500
|
group: ["reportschedules"],
|
|
48509
48501
|
command: "upsert-saved-view-schedule",
|
|
48510
|
-
interactive: "
|
|
48502
|
+
interactive: "hidden"
|
|
48511
48503
|
},
|
|
48512
48504
|
mcp: { entityTool: "reportschedules" },
|
|
48513
48505
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
@@ -48518,8 +48510,10 @@ const generatedFocusOperations = [
|
|
|
48518
48510
|
"weekly",
|
|
48519
48511
|
"monthly"
|
|
48520
48512
|
]),
|
|
48513
|
+
charts: /* @__PURE__ */ unknown$1(),
|
|
48521
48514
|
time: /* @__PURE__ */ string$1(),
|
|
48522
48515
|
day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
48516
|
+
period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
48523
48517
|
recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
48524
48518
|
recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
48525
48519
|
recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
@@ -48852,6 +48846,32 @@ const generatedFocusOperations = [
|
|
|
48852
48846
|
]));
|
|
48853
48847
|
}
|
|
48854
48848
|
},
|
|
48849
|
+
{
|
|
48850
|
+
id: "focus.sharedreports.get-shared-report-dates",
|
|
48851
|
+
family: "focus",
|
|
48852
|
+
resource: "sharedreports",
|
|
48853
|
+
action: "get-shared-report-dates",
|
|
48854
|
+
title: "Get Shared Report Dates Sharedreports",
|
|
48855
|
+
description: "Get Shared Report Dates Sharedreports.",
|
|
48856
|
+
safety: "read",
|
|
48857
|
+
destructive: false,
|
|
48858
|
+
cli: {
|
|
48859
|
+
group: ["sharedreports"],
|
|
48860
|
+
command: "get-shared-report-dates",
|
|
48861
|
+
interactive: "available"
|
|
48862
|
+
},
|
|
48863
|
+
mcp: { entityTool: "sharedreports" },
|
|
48864
|
+
inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
|
|
48865
|
+
execute: (input, { client }) => {
|
|
48866
|
+
const data = input;
|
|
48867
|
+
return client.runGeneratedRequest("getSharedReportDates", () => callGeneratedRequest(getSharedReportDates, [
|
|
48868
|
+
client.httpClient,
|
|
48869
|
+
client.workspaceIdNumber,
|
|
48870
|
+
data.id,
|
|
48871
|
+
void 0
|
|
48872
|
+
]));
|
|
48873
|
+
}
|
|
48874
|
+
},
|
|
48855
48875
|
{
|
|
48856
48876
|
id: "focus.sharedreports.get-shared-report-for-viewer",
|
|
48857
48877
|
family: "focus",
|
|
@@ -48922,6 +48942,36 @@ const generatedFocusOperations = [
|
|
|
48922
48942
|
void 0
|
|
48923
48943
|
]))
|
|
48924
48944
|
},
|
|
48945
|
+
{
|
|
48946
|
+
id: "focus.sharedreports.mint-shared-report-link",
|
|
48947
|
+
family: "focus",
|
|
48948
|
+
resource: "sharedreports",
|
|
48949
|
+
action: "mint-shared-report-link",
|
|
48950
|
+
title: "Mint Shared Report Link Sharedreports",
|
|
48951
|
+
description: "Mint Shared Report Link Sharedreports.",
|
|
48952
|
+
safety: "update",
|
|
48953
|
+
destructive: false,
|
|
48954
|
+
cli: {
|
|
48955
|
+
group: ["sharedreports"],
|
|
48956
|
+
command: "mint-shared-report-link",
|
|
48957
|
+
interactive: "default"
|
|
48958
|
+
},
|
|
48959
|
+
mcp: { entityTool: "sharedreports" },
|
|
48960
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
48961
|
+
id: /* @__PURE__ */ number$2(),
|
|
48962
|
+
payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
|
|
48963
|
+
}),
|
|
48964
|
+
execute: (input, { client }) => {
|
|
48965
|
+
const data = input;
|
|
48966
|
+
return client.runGeneratedRequest("mintSharedReportLink", () => callGeneratedRequest(mintSharedReportLink, [
|
|
48967
|
+
client.httpClient,
|
|
48968
|
+
client.workspaceIdNumber,
|
|
48969
|
+
data.id,
|
|
48970
|
+
data.payload ?? data.data ?? data,
|
|
48971
|
+
void 0
|
|
48972
|
+
]));
|
|
48973
|
+
}
|
|
48974
|
+
},
|
|
48925
48975
|
{
|
|
48926
48976
|
id: "focus.sharedreports.revoke-shared-report-grant",
|
|
48927
48977
|
family: "focus",
|
|
@@ -48952,6 +49002,92 @@ const generatedFocusOperations = [
|
|
|
48952
49002
|
]));
|
|
48953
49003
|
}
|
|
48954
49004
|
},
|
|
49005
|
+
{
|
|
49006
|
+
id: "focus.sharedreports.revoke-shared-report-link",
|
|
49007
|
+
family: "focus",
|
|
49008
|
+
resource: "sharedreports",
|
|
49009
|
+
action: "revoke-shared-report-link",
|
|
49010
|
+
title: "Revoke Shared Report Link Sharedreports",
|
|
49011
|
+
description: "Revoke Shared Report Link Sharedreports.",
|
|
49012
|
+
safety: "delete",
|
|
49013
|
+
destructive: true,
|
|
49014
|
+
cli: {
|
|
49015
|
+
group: ["sharedreports"],
|
|
49016
|
+
command: "revoke-shared-report-link",
|
|
49017
|
+
interactive: "default"
|
|
49018
|
+
},
|
|
49019
|
+
mcp: { entityTool: "sharedreports" },
|
|
49020
|
+
inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
|
|
49021
|
+
execute: (input, { client }) => {
|
|
49022
|
+
const data = input;
|
|
49023
|
+
return client.runGeneratedRequest("revokeSharedReportLink", () => callGeneratedRequest(revokeSharedReportLink, [
|
|
49024
|
+
client.httpClient,
|
|
49025
|
+
client.workspaceIdNumber,
|
|
49026
|
+
data.id,
|
|
49027
|
+
void 0
|
|
49028
|
+
]));
|
|
49029
|
+
}
|
|
49030
|
+
},
|
|
49031
|
+
{
|
|
49032
|
+
id: "focus.sharedreports.rotate-shared-report-link",
|
|
49033
|
+
family: "focus",
|
|
49034
|
+
resource: "sharedreports",
|
|
49035
|
+
action: "rotate-shared-report-link",
|
|
49036
|
+
title: "Rotate Shared Report Link Sharedreports",
|
|
49037
|
+
description: "Rotate Shared Report Link Sharedreports.",
|
|
49038
|
+
safety: "update",
|
|
49039
|
+
destructive: false,
|
|
49040
|
+
cli: {
|
|
49041
|
+
group: ["sharedreports"],
|
|
49042
|
+
command: "rotate-shared-report-link",
|
|
49043
|
+
interactive: "default"
|
|
49044
|
+
},
|
|
49045
|
+
mcp: { entityTool: "sharedreports" },
|
|
49046
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
49047
|
+
id: /* @__PURE__ */ number$2(),
|
|
49048
|
+
payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
|
|
49049
|
+
}),
|
|
49050
|
+
execute: (input, { client }) => {
|
|
49051
|
+
const data = input;
|
|
49052
|
+
return client.runGeneratedRequest("rotateSharedReportLink", () => callGeneratedRequest(rotateSharedReportLink, [
|
|
49053
|
+
client.httpClient,
|
|
49054
|
+
client.workspaceIdNumber,
|
|
49055
|
+
data.id,
|
|
49056
|
+
data.payload ?? data.data ?? data,
|
|
49057
|
+
void 0
|
|
49058
|
+
]));
|
|
49059
|
+
}
|
|
49060
|
+
},
|
|
49061
|
+
{
|
|
49062
|
+
id: "focus.sharedreports.set-shared-report-dates-lock",
|
|
49063
|
+
family: "focus",
|
|
49064
|
+
resource: "sharedreports",
|
|
49065
|
+
action: "set-shared-report-dates-lock",
|
|
49066
|
+
title: "Set Shared Report Dates Lock Sharedreports",
|
|
49067
|
+
description: "Set Shared Report Dates Lock Sharedreports.",
|
|
49068
|
+
safety: "update",
|
|
49069
|
+
destructive: false,
|
|
49070
|
+
cli: {
|
|
49071
|
+
group: ["sharedreports"],
|
|
49072
|
+
command: "set-shared-report-dates-lock",
|
|
49073
|
+
interactive: "default"
|
|
49074
|
+
},
|
|
49075
|
+
mcp: { entityTool: "sharedreports" },
|
|
49076
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
49077
|
+
id: /* @__PURE__ */ number$2(),
|
|
49078
|
+
payload: /* @__PURE__ */ looseObject({ locked: /* @__PURE__ */ boolean$1() })
|
|
49079
|
+
}),
|
|
49080
|
+
execute: (input, { client }) => {
|
|
49081
|
+
const data = input;
|
|
49082
|
+
return client.runGeneratedRequest("setSharedReportDatesLock", () => callGeneratedRequest(setSharedReportDatesLock, [
|
|
49083
|
+
client.httpClient,
|
|
49084
|
+
client.workspaceIdNumber,
|
|
49085
|
+
data.id,
|
|
49086
|
+
data.payload ?? data.data ?? data,
|
|
49087
|
+
void 0
|
|
49088
|
+
]));
|
|
49089
|
+
}
|
|
49090
|
+
},
|
|
48955
49091
|
{
|
|
48956
49092
|
id: "focus.sharedreports.share-saved-view",
|
|
48957
49093
|
family: "focus",
|
|
@@ -49026,6 +49162,32 @@ const generatedFocusOperations = [
|
|
|
49026
49162
|
]));
|
|
49027
49163
|
}
|
|
49028
49164
|
},
|
|
49165
|
+
{
|
|
49166
|
+
id: "focus.sharedreports.unshare-shared-report",
|
|
49167
|
+
family: "focus",
|
|
49168
|
+
resource: "sharedreports",
|
|
49169
|
+
action: "unshare-shared-report",
|
|
49170
|
+
title: "Unshare Shared Report Sharedreports",
|
|
49171
|
+
description: "Unshare Shared Report Sharedreports.",
|
|
49172
|
+
safety: "delete",
|
|
49173
|
+
destructive: true,
|
|
49174
|
+
cli: {
|
|
49175
|
+
group: ["sharedreports"],
|
|
49176
|
+
command: "unshare-shared-report",
|
|
49177
|
+
interactive: "default"
|
|
49178
|
+
},
|
|
49179
|
+
mcp: { entityTool: "sharedreports" },
|
|
49180
|
+
inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
|
|
49181
|
+
execute: (input, { client }) => {
|
|
49182
|
+
const data = input;
|
|
49183
|
+
return client.runGeneratedRequest("unshareSharedReport", () => callGeneratedRequest(unshareSharedReport, [
|
|
49184
|
+
client.httpClient,
|
|
49185
|
+
client.workspaceIdNumber,
|
|
49186
|
+
data.id,
|
|
49187
|
+
void 0
|
|
49188
|
+
]));
|
|
49189
|
+
}
|
|
49190
|
+
},
|
|
49029
49191
|
{
|
|
49030
49192
|
id: "focus.statuses.create-status",
|
|
49031
49193
|
family: "focus",
|
|
@@ -50068,6 +50230,37 @@ const generatedFocusOperations = [
|
|
|
50068
50230
|
return client.createTask(data);
|
|
50069
50231
|
}
|
|
50070
50232
|
},
|
|
50233
|
+
{
|
|
50234
|
+
id: "focus.tasks.create-recurring-occurrence",
|
|
50235
|
+
family: "focus",
|
|
50236
|
+
resource: "tasks",
|
|
50237
|
+
action: "create-recurring-occurrence",
|
|
50238
|
+
title: "Create Recurring Occurrence Tasks",
|
|
50239
|
+
description: "Create Recurring Occurrence Tasks.",
|
|
50240
|
+
safety: "create",
|
|
50241
|
+
destructive: false,
|
|
50242
|
+
cli: {
|
|
50243
|
+
group: ["tasks"],
|
|
50244
|
+
command: "create-recurring-occurrence",
|
|
50245
|
+
interactive: "default"
|
|
50246
|
+
},
|
|
50247
|
+
mcp: { entityTool: "tasks" },
|
|
50248
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
50249
|
+
return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
50250
|
+
task_id: /* @__PURE__ */ number$2()
|
|
50251
|
+
}),
|
|
50252
|
+
execute: (input, { client }) => {
|
|
50253
|
+
const data = input;
|
|
50254
|
+
return client.runGeneratedRequest("createRecurringOccurrence", () => callGeneratedRequest(createRecurringOccurrence, [
|
|
50255
|
+
client.httpClient,
|
|
50256
|
+
client.organizationId,
|
|
50257
|
+
client.workspaceIdNumber,
|
|
50258
|
+
data.task_id,
|
|
50259
|
+
data.return_occurrence,
|
|
50260
|
+
void 0
|
|
50261
|
+
]));
|
|
50262
|
+
}
|
|
50263
|
+
},
|
|
50071
50264
|
{
|
|
50072
50265
|
id: "focus.tasks.delete",
|
|
50073
50266
|
family: "focus",
|
|
@@ -50293,12 +50486,83 @@ const generatedFocusOperations = [
|
|
|
50293
50486
|
}
|
|
50294
50487
|
},
|
|
50295
50488
|
{
|
|
50296
|
-
id: "focus.tasks.get-
|
|
50489
|
+
id: "focus.tasks.get-picker-task-children",
|
|
50297
50490
|
family: "focus",
|
|
50298
50491
|
resource: "tasks",
|
|
50299
|
-
action: "get-
|
|
50300
|
-
title: "Get
|
|
50301
|
-
description: "Get
|
|
50492
|
+
action: "get-picker-task-children",
|
|
50493
|
+
title: "Get Picker Task Children Tasks",
|
|
50494
|
+
description: "Get Picker Task Children Tasks.",
|
|
50495
|
+
safety: "read",
|
|
50496
|
+
destructive: false,
|
|
50497
|
+
cli: {
|
|
50498
|
+
group: ["tasks"],
|
|
50499
|
+
command: "get-picker-task-children",
|
|
50500
|
+
interactive: "hidden"
|
|
50501
|
+
},
|
|
50502
|
+
mcp: { entityTool: "tasks" },
|
|
50503
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
50504
|
+
only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50505
|
+
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50506
|
+
parent_task_id: /* @__PURE__ */ number$2(),
|
|
50507
|
+
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50508
|
+
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50509
|
+
search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50510
|
+
without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
50511
|
+
}),
|
|
50512
|
+
execute: (input, { client }) => {
|
|
50513
|
+
const data = input;
|
|
50514
|
+
return client.runGeneratedRequest("getPickerTaskChildrenClassic", () => callGeneratedRequest(getPickerTaskChildrenClassic, [
|
|
50515
|
+
client.httpClient,
|
|
50516
|
+
client.organizationId,
|
|
50517
|
+
client.workspaceIdNumber,
|
|
50518
|
+
data.parent_task_id,
|
|
50519
|
+
data,
|
|
50520
|
+
void 0
|
|
50521
|
+
]));
|
|
50522
|
+
}
|
|
50523
|
+
},
|
|
50524
|
+
{
|
|
50525
|
+
id: "focus.tasks.get-picker-task-groups",
|
|
50526
|
+
family: "focus",
|
|
50527
|
+
resource: "tasks",
|
|
50528
|
+
action: "get-picker-task-groups",
|
|
50529
|
+
title: "Get Picker Task Groups Tasks",
|
|
50530
|
+
description: "Get Picker Task Groups Tasks.",
|
|
50531
|
+
safety: "read",
|
|
50532
|
+
destructive: false,
|
|
50533
|
+
cli: {
|
|
50534
|
+
group: ["tasks"],
|
|
50535
|
+
command: "get-picker-task-groups",
|
|
50536
|
+
interactive: "hidden"
|
|
50537
|
+
},
|
|
50538
|
+
mcp: { entityTool: "tasks" },
|
|
50539
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
50540
|
+
only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50541
|
+
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50542
|
+
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50543
|
+
pinned_only: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50544
|
+
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50545
|
+
search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50546
|
+
without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
50547
|
+
}),
|
|
50548
|
+
execute: (input, { client }) => {
|
|
50549
|
+
const data = input;
|
|
50550
|
+
return client.runGeneratedRequest("getPickerTaskGroupsClassic", () => callGeneratedRequest(getPickerTaskGroupsClassic, [
|
|
50551
|
+
client.httpClient,
|
|
50552
|
+
client.organizationId,
|
|
50553
|
+
client.workspaceIdNumber,
|
|
50554
|
+
data,
|
|
50555
|
+
void 0
|
|
50556
|
+
]));
|
|
50557
|
+
}
|
|
50558
|
+
},
|
|
50559
|
+
{
|
|
50560
|
+
id: "focus.tasks.get-recurring-instances",
|
|
50561
|
+
family: "focus",
|
|
50562
|
+
resource: "tasks",
|
|
50563
|
+
action: "get-recurring-instances",
|
|
50564
|
+
title: "Get Recurring Instances Tasks",
|
|
50565
|
+
description: "Get Recurring Instances Tasks.",
|
|
50302
50566
|
safety: "read",
|
|
50303
50567
|
destructive: false,
|
|
50304
50568
|
cli: {
|
|
@@ -50315,9 +50579,13 @@ const generatedFocusOperations = [
|
|
|
50315
50579
|
dates_overlap_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50316
50580
|
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
50317
50581
|
include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50582
|
+
include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50583
|
+
max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50318
50584
|
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50319
50585
|
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50586
|
+
recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50320
50587
|
recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50588
|
+
recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50321
50589
|
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
50322
50590
|
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
50323
50591
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
@@ -50363,13 +50631,14 @@ const generatedFocusOperations = [
|
|
|
50363
50631
|
estimated_mins_max: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50364
50632
|
estimated_mins_min: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50365
50633
|
has_dates: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50366
|
-
has_time_blocks: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50367
50634
|
has_time_entries: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50368
50635
|
include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50369
50636
|
include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50370
50637
|
include_parent_matches: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50371
50638
|
include_project_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50639
|
+
include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50372
50640
|
is_priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50641
|
+
max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50373
50642
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50374
50643
|
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50375
50644
|
parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
@@ -50378,7 +50647,9 @@ const generatedFocusOperations = [
|
|
|
50378
50647
|
private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50379
50648
|
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50380
50649
|
recurring: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50650
|
+
recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50381
50651
|
recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50652
|
+
recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50382
50653
|
source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50383
50654
|
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
50384
50655
|
start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
@@ -50387,8 +50658,6 @@ const generatedFocusOperations = [
|
|
|
50387
50658
|
status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50388
50659
|
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
50389
50660
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50390
|
-
time_block_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50391
|
-
time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50392
50661
|
toggl_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50393
50662
|
with_entries: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
50394
50663
|
}),
|
|
@@ -50516,8 +50785,10 @@ const generatedFocusOperations = [
|
|
|
50516
50785
|
group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50517
50786
|
include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50518
50787
|
include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50788
|
+
include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50519
50789
|
include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50520
50790
|
include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50791
|
+
max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50521
50792
|
min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50522
50793
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50523
50794
|
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
@@ -50526,6 +50797,8 @@ const generatedFocusOperations = [
|
|
|
50526
50797
|
priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50527
50798
|
private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50528
50799
|
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50800
|
+
recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50801
|
+
recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50529
50802
|
source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50530
50803
|
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
50531
50804
|
start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
@@ -50534,7 +50807,8 @@ const generatedFocusOperations = [
|
|
|
50534
50807
|
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
50535
50808
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50536
50809
|
user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50537
|
-
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
50810
|
+
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50811
|
+
xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
50538
50812
|
}),
|
|
50539
50813
|
execute: (input, { client }) => {
|
|
50540
50814
|
const data = input;
|
|
@@ -50576,13 +50850,17 @@ const generatedFocusOperations = [
|
|
|
50576
50850
|
group_id: /* @__PURE__ */ number$2(),
|
|
50577
50851
|
include_assignees: /* @__PURE__ */ unknown$1(),
|
|
50578
50852
|
include_drafts: /* @__PURE__ */ unknown$1(),
|
|
50853
|
+
include_projected_occurrences: /* @__PURE__ */ unknown$1(),
|
|
50579
50854
|
include_unassigned: /* @__PURE__ */ unknown$1(),
|
|
50580
50855
|
include_unmaterialized: /* @__PURE__ */ unknown$1(),
|
|
50856
|
+
max_recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
|
|
50581
50857
|
min_days: /* @__PURE__ */ unknown$1(),
|
|
50582
50858
|
name: /* @__PURE__ */ unknown$1(),
|
|
50583
50859
|
priority: /* @__PURE__ */ unknown$1(),
|
|
50584
50860
|
private_: /* @__PURE__ */ unknown$1(),
|
|
50585
50861
|
project_id: /* @__PURE__ */ number$2(),
|
|
50862
|
+
recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
|
|
50863
|
+
recurring_task_read: /* @__PURE__ */ unknown$1(),
|
|
50586
50864
|
source: /* @__PURE__ */ unknown$1(),
|
|
50587
50865
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
50588
50866
|
start_date_from: /* @__PURE__ */ unknown$1(),
|
|
@@ -50591,7 +50869,8 @@ const generatedFocusOperations = [
|
|
|
50591
50869
|
tag_id: /* @__PURE__ */ number$2(),
|
|
50592
50870
|
team_id: /* @__PURE__ */ number$2(),
|
|
50593
50871
|
user_cf_filter: /* @__PURE__ */ unknown$1(),
|
|
50594
|
-
user_tag_id: /* @__PURE__ */ number$2()
|
|
50872
|
+
user_tag_id: /* @__PURE__ */ number$2(),
|
|
50873
|
+
xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
|
|
50595
50874
|
}),
|
|
50596
50875
|
execute: (input, { client }) => {
|
|
50597
50876
|
const data = input;
|
|
@@ -50632,13 +50911,17 @@ const generatedFocusOperations = [
|
|
|
50632
50911
|
group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50633
50912
|
include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50634
50913
|
include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50914
|
+
include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50635
50915
|
include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50636
50916
|
include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50917
|
+
max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50637
50918
|
min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50638
50919
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50639
50920
|
priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50640
50921
|
private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50641
50922
|
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50923
|
+
recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50924
|
+
recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50642
50925
|
source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50643
50926
|
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
50644
50927
|
start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
@@ -50647,7 +50930,8 @@ const generatedFocusOperations = [
|
|
|
50647
50930
|
tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50648
50931
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50649
50932
|
user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
50650
|
-
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
50933
|
+
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
50934
|
+
xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
50651
50935
|
}),
|
|
50652
50936
|
execute: (input, { client }) => {
|
|
50653
50937
|
const data = input;
|
|
@@ -50918,7 +51202,8 @@ const generatedFocusOperations = [
|
|
|
50918
51202
|
mcp: { entityTool: "tasks" },
|
|
50919
51203
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
50920
51204
|
date_from: /* @__PURE__ */ string$1(),
|
|
50921
|
-
date_to: /* @__PURE__ */ string$1()
|
|
51205
|
+
date_to: /* @__PURE__ */ string$1(),
|
|
51206
|
+
skip_provider_refresh: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
50922
51207
|
}),
|
|
50923
51208
|
execute: (input, { client }) => {
|
|
50924
51209
|
const data = input;
|
|
@@ -50928,373 +51213,7 @@ const generatedFocusOperations = [
|
|
|
50928
51213
|
client.workspaceIdNumber,
|
|
50929
51214
|
data.date_from,
|
|
50930
51215
|
data.date_to,
|
|
50931
|
-
|
|
50932
|
-
]));
|
|
50933
|
-
}
|
|
50934
|
-
},
|
|
50935
|
-
{
|
|
50936
|
-
id: "focus.time-blocks.archive",
|
|
50937
|
-
family: "focus",
|
|
50938
|
-
resource: "time-blocks",
|
|
50939
|
-
action: "archive",
|
|
50940
|
-
title: "Archive Time Blocks",
|
|
50941
|
-
description: "Archive Time Blocks.",
|
|
50942
|
-
safety: "update",
|
|
50943
|
-
destructive: false,
|
|
50944
|
-
cli: {
|
|
50945
|
-
group: ["time-blocks"],
|
|
50946
|
-
command: "archive",
|
|
50947
|
-
interactive: "default"
|
|
50948
|
-
},
|
|
50949
|
-
mcp: { entityTool: "time-blocks" },
|
|
50950
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
50951
|
-
task_id: /* @__PURE__ */ number$2(),
|
|
50952
|
-
time_block_id: /* @__PURE__ */ number$2()
|
|
50953
|
-
}),
|
|
50954
|
-
execute: (input, { client }) => {
|
|
50955
|
-
const data = input;
|
|
50956
|
-
return client.runGeneratedRequest("archiveTimeBlockWithOrg", () => callGeneratedRequest(archiveTimeBlockWithOrg, [
|
|
50957
|
-
client.httpClient,
|
|
50958
|
-
client.organizationId,
|
|
50959
|
-
client.workspaceIdNumber,
|
|
50960
|
-
data.task_id,
|
|
50961
|
-
data.time_block_id,
|
|
50962
|
-
void 0
|
|
50963
|
-
]));
|
|
50964
|
-
}
|
|
50965
|
-
},
|
|
50966
|
-
{
|
|
50967
|
-
id: "focus.time-blocks.bulk-create",
|
|
50968
|
-
family: "focus",
|
|
50969
|
-
resource: "time-blocks",
|
|
50970
|
-
action: "bulk-create",
|
|
50971
|
-
title: "Bulk Create Time Blocks",
|
|
50972
|
-
description: "Bulk Create Time Blocks.",
|
|
50973
|
-
safety: "create",
|
|
50974
|
-
destructive: false,
|
|
50975
|
-
cli: {
|
|
50976
|
-
group: ["time-blocks", "bulk"],
|
|
50977
|
-
command: "create",
|
|
50978
|
-
interactive: "default"
|
|
50979
|
-
},
|
|
50980
|
-
mcp: { entityTool: "time-blocks" },
|
|
50981
|
-
inputSchema: TimeBlockBulkCreatePayloadSchema,
|
|
50982
|
-
execute: (input, { client }) => {
|
|
50983
|
-
const data = input;
|
|
50984
|
-
return client.bulkCreateTimeBlocks(data);
|
|
50985
|
-
}
|
|
50986
|
-
},
|
|
50987
|
-
{
|
|
50988
|
-
id: "focus.time-blocks.bulk-delete",
|
|
50989
|
-
family: "focus",
|
|
50990
|
-
resource: "time-blocks",
|
|
50991
|
-
action: "bulk-delete",
|
|
50992
|
-
title: "Bulk Delete Time Blocks",
|
|
50993
|
-
description: "Bulk Delete Time Blocks.",
|
|
50994
|
-
safety: "delete",
|
|
50995
|
-
destructive: true,
|
|
50996
|
-
cli: {
|
|
50997
|
-
group: ["time-blocks", "bulk"],
|
|
50998
|
-
command: "delete",
|
|
50999
|
-
interactive: "default"
|
|
51000
|
-
},
|
|
51001
|
-
mcp: { entityTool: "time-blocks" },
|
|
51002
|
-
inputSchema: bulkIdsWithOutboundSchema,
|
|
51003
|
-
execute: (input, { client }) => {
|
|
51004
|
-
const data = input;
|
|
51005
|
-
return client.bulkDeleteTimeBlocks(data.ids, data.outbound_sync);
|
|
51006
|
-
}
|
|
51007
|
-
},
|
|
51008
|
-
{
|
|
51009
|
-
id: "focus.time-blocks.bulk-patch",
|
|
51010
|
-
family: "focus",
|
|
51011
|
-
resource: "time-blocks",
|
|
51012
|
-
action: "bulk-patch",
|
|
51013
|
-
title: "Bulk Patch Time Blocks",
|
|
51014
|
-
description: "Bulk Patch Time Blocks.",
|
|
51015
|
-
safety: "update",
|
|
51016
|
-
destructive: false,
|
|
51017
|
-
cli: {
|
|
51018
|
-
group: ["time-blocks", "bulk"],
|
|
51019
|
-
command: "patch",
|
|
51020
|
-
interactive: "default"
|
|
51021
|
-
},
|
|
51022
|
-
mcp: { entityTool: "time-blocks" },
|
|
51023
|
-
inputSchema: bulkTimeBlockPatchBodySchema,
|
|
51024
|
-
execute: (input, { client }) => {
|
|
51025
|
-
const data = input;
|
|
51026
|
-
return client.bulkPartialUpdateTimeBlocks(data);
|
|
51027
|
-
}
|
|
51028
|
-
},
|
|
51029
|
-
{
|
|
51030
|
-
id: "focus.time-blocks.create",
|
|
51031
|
-
family: "focus",
|
|
51032
|
-
resource: "time-blocks",
|
|
51033
|
-
action: "create",
|
|
51034
|
-
title: "Create Time Blocks",
|
|
51035
|
-
description: "Create Time Blocks.",
|
|
51036
|
-
safety: "create",
|
|
51037
|
-
destructive: false,
|
|
51038
|
-
cli: {
|
|
51039
|
-
group: ["time-blocks"],
|
|
51040
|
-
command: "create",
|
|
51041
|
-
interactive: "default"
|
|
51042
|
-
},
|
|
51043
|
-
mcp: { entityTool: "time-blocks" },
|
|
51044
|
-
inputSchema: timeBlockCreateSchema,
|
|
51045
|
-
execute: (input, { client }) => {
|
|
51046
|
-
const data = input;
|
|
51047
|
-
return client.createTimeBlock(data.task_id, data.payload);
|
|
51048
|
-
}
|
|
51049
|
-
},
|
|
51050
|
-
{
|
|
51051
|
-
id: "focus.time-blocks.delete",
|
|
51052
|
-
family: "focus",
|
|
51053
|
-
resource: "time-blocks",
|
|
51054
|
-
action: "delete",
|
|
51055
|
-
title: "Delete Time Blocks",
|
|
51056
|
-
description: "Delete Time Blocks.",
|
|
51057
|
-
safety: "delete",
|
|
51058
|
-
destructive: true,
|
|
51059
|
-
cli: {
|
|
51060
|
-
group: ["time-blocks"],
|
|
51061
|
-
command: "delete",
|
|
51062
|
-
interactive: "default"
|
|
51063
|
-
},
|
|
51064
|
-
mcp: { entityTool: "time-blocks" },
|
|
51065
|
-
inputSchema: timeBlockIdSchema,
|
|
51066
|
-
execute: (input, { client }) => {
|
|
51067
|
-
const data = input;
|
|
51068
|
-
return client.deleteTimeBlock(data.task_id, data.time_block_id);
|
|
51069
|
-
}
|
|
51070
|
-
},
|
|
51071
|
-
{
|
|
51072
|
-
id: "focus.time-blocks.get",
|
|
51073
|
-
family: "focus",
|
|
51074
|
-
resource: "time-blocks",
|
|
51075
|
-
action: "get",
|
|
51076
|
-
title: "Get Time Blocks",
|
|
51077
|
-
description: "Get Time Blocks.",
|
|
51078
|
-
safety: "read",
|
|
51079
|
-
destructive: false,
|
|
51080
|
-
cli: {
|
|
51081
|
-
group: ["time-blocks"],
|
|
51082
|
-
command: "get",
|
|
51083
|
-
interactive: "available"
|
|
51084
|
-
},
|
|
51085
|
-
mcp: { entityTool: "time-blocks" },
|
|
51086
|
-
inputSchema: timeBlockIdSchema,
|
|
51087
|
-
execute: (input, { client }) => {
|
|
51088
|
-
const data = input;
|
|
51089
|
-
return client.getTimeBlock(data.task_id, data.time_block_id);
|
|
51090
|
-
}
|
|
51091
|
-
},
|
|
51092
|
-
{
|
|
51093
|
-
id: "focus.time-blocks.get-range-stream",
|
|
51094
|
-
family: "focus",
|
|
51095
|
-
resource: "time-blocks",
|
|
51096
|
-
action: "get-range-stream",
|
|
51097
|
-
title: "Get Range Stream Time Blocks",
|
|
51098
|
-
description: "Get Range Stream Time Blocks.",
|
|
51099
|
-
safety: "read",
|
|
51100
|
-
destructive: false,
|
|
51101
|
-
cli: {
|
|
51102
|
-
group: ["time-blocks"],
|
|
51103
|
-
command: "get-range-stream",
|
|
51104
|
-
interactive: "hidden"
|
|
51105
|
-
},
|
|
51106
|
-
mcp: { entityTool: "time-blocks" },
|
|
51107
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
51108
|
-
archived: /* @__PURE__ */ unknown$1(),
|
|
51109
|
-
date_from: /* @__PURE__ */ unknown$1(),
|
|
51110
|
-
date_to: /* @__PURE__ */ unknown$1(),
|
|
51111
|
-
order_by: /* @__PURE__ */ unknown$1(),
|
|
51112
|
-
status_id: /* @__PURE__ */ number$2(),
|
|
51113
|
-
task_id: /* @__PURE__ */ number$2()
|
|
51114
|
-
}),
|
|
51115
|
-
execute: (input, { client }) => {
|
|
51116
|
-
const data = input;
|
|
51117
|
-
return client.runGeneratedRequest("getTimeBlocksRangeStreamWithOrg", () => callGeneratedRequest(getTimeBlocksRangeStreamWithOrg, [
|
|
51118
|
-
client.httpClient,
|
|
51119
|
-
client.organizationId,
|
|
51120
|
-
client.workspaceIdNumber,
|
|
51121
|
-
data,
|
|
51122
|
-
void 0
|
|
51123
|
-
]));
|
|
51124
|
-
}
|
|
51125
|
-
},
|
|
51126
|
-
{
|
|
51127
|
-
id: "focus.time-blocks.get-task-time-blocks",
|
|
51128
|
-
family: "focus",
|
|
51129
|
-
resource: "time-blocks",
|
|
51130
|
-
action: "get-task-time-blocks",
|
|
51131
|
-
title: "Get Task Time Blocks Time Blocks",
|
|
51132
|
-
description: "Get Task Time Blocks Time Blocks.",
|
|
51133
|
-
safety: "read",
|
|
51134
|
-
destructive: false,
|
|
51135
|
-
cli: {
|
|
51136
|
-
group: ["time-blocks"],
|
|
51137
|
-
command: "get-task-time-blocks",
|
|
51138
|
-
interactive: "hidden"
|
|
51139
|
-
},
|
|
51140
|
-
mcp: { entityTool: "time-blocks" },
|
|
51141
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
51142
|
-
archived: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51143
|
-
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51144
|
-
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51145
|
-
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51146
|
-
task_id: /* @__PURE__ */ number$2()
|
|
51147
|
-
}),
|
|
51148
|
-
execute: (input, { client }) => {
|
|
51149
|
-
const data = input;
|
|
51150
|
-
return client.runGeneratedRequest("getTaskTimeBlocksWithOrgClassic", () => callGeneratedRequest(getTaskTimeBlocksWithOrgClassic, [
|
|
51151
|
-
client.httpClient,
|
|
51152
|
-
client.organizationId,
|
|
51153
|
-
client.workspaceIdNumber,
|
|
51154
|
-
data.task_id,
|
|
51155
|
-
data,
|
|
51156
|
-
void 0
|
|
51157
|
-
]));
|
|
51158
|
-
}
|
|
51159
|
-
},
|
|
51160
|
-
{
|
|
51161
|
-
id: "focus.time-blocks.list",
|
|
51162
|
-
family: "focus",
|
|
51163
|
-
resource: "time-blocks",
|
|
51164
|
-
action: "list",
|
|
51165
|
-
title: "List Time Blocks",
|
|
51166
|
-
description: "List Time Blocks.",
|
|
51167
|
-
safety: "read",
|
|
51168
|
-
destructive: false,
|
|
51169
|
-
cli: {
|
|
51170
|
-
group: ["time-blocks"],
|
|
51171
|
-
command: "list",
|
|
51172
|
-
interactive: "available"
|
|
51173
|
-
},
|
|
51174
|
-
mcp: { entityTool: "time-blocks" },
|
|
51175
|
-
inputSchema: timeBlockListSchema,
|
|
51176
|
-
execute: (input, { client }) => {
|
|
51177
|
-
const data = input;
|
|
51178
|
-
return client.listTimeBlocks(data);
|
|
51179
|
-
}
|
|
51180
|
-
},
|
|
51181
|
-
{
|
|
51182
|
-
id: "focus.time-blocks.restore",
|
|
51183
|
-
family: "focus",
|
|
51184
|
-
resource: "time-blocks",
|
|
51185
|
-
action: "restore",
|
|
51186
|
-
title: "Restore Time Blocks",
|
|
51187
|
-
description: "Restore Time Blocks.",
|
|
51188
|
-
safety: "update",
|
|
51189
|
-
destructive: false,
|
|
51190
|
-
cli: {
|
|
51191
|
-
group: ["time-blocks"],
|
|
51192
|
-
command: "restore",
|
|
51193
|
-
interactive: "default"
|
|
51194
|
-
},
|
|
51195
|
-
mcp: { entityTool: "time-blocks" },
|
|
51196
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
51197
|
-
task_id: /* @__PURE__ */ number$2(),
|
|
51198
|
-
time_block_id: /* @__PURE__ */ number$2()
|
|
51199
|
-
}),
|
|
51200
|
-
execute: (input, { client }) => {
|
|
51201
|
-
const data = input;
|
|
51202
|
-
return client.runGeneratedRequest("restoreTimeBlockWithOrg", () => callGeneratedRequest(restoreTimeBlockWithOrg, [
|
|
51203
|
-
client.httpClient,
|
|
51204
|
-
client.organizationId,
|
|
51205
|
-
client.workspaceIdNumber,
|
|
51206
|
-
data.task_id,
|
|
51207
|
-
data.time_block_id,
|
|
51208
|
-
void 0
|
|
51209
|
-
]));
|
|
51210
|
-
}
|
|
51211
|
-
},
|
|
51212
|
-
{
|
|
51213
|
-
id: "focus.time-blocks.unarchive",
|
|
51214
|
-
family: "focus",
|
|
51215
|
-
resource: "time-blocks",
|
|
51216
|
-
action: "unarchive",
|
|
51217
|
-
title: "Unarchive Time Blocks",
|
|
51218
|
-
description: "Unarchive Time Blocks.",
|
|
51219
|
-
safety: "update",
|
|
51220
|
-
destructive: false,
|
|
51221
|
-
cli: {
|
|
51222
|
-
group: ["time-blocks"],
|
|
51223
|
-
command: "unarchive",
|
|
51224
|
-
interactive: "default"
|
|
51225
|
-
},
|
|
51226
|
-
mcp: { entityTool: "time-blocks" },
|
|
51227
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
51228
|
-
task_id: /* @__PURE__ */ number$2(),
|
|
51229
|
-
time_block_id: /* @__PURE__ */ number$2()
|
|
51230
|
-
}),
|
|
51231
|
-
execute: (input, { client }) => {
|
|
51232
|
-
const data = input;
|
|
51233
|
-
return client.runGeneratedRequest("unarchiveTimeBlockWithOrg", () => callGeneratedRequest(unarchiveTimeBlockWithOrg, [
|
|
51234
|
-
client.httpClient,
|
|
51235
|
-
client.organizationId,
|
|
51236
|
-
client.workspaceIdNumber,
|
|
51237
|
-
data.task_id,
|
|
51238
|
-
data.time_block_id,
|
|
51239
|
-
void 0
|
|
51240
|
-
]));
|
|
51241
|
-
}
|
|
51242
|
-
},
|
|
51243
|
-
{
|
|
51244
|
-
id: "focus.time-blocks.update",
|
|
51245
|
-
family: "focus",
|
|
51246
|
-
resource: "time-blocks",
|
|
51247
|
-
action: "update",
|
|
51248
|
-
title: "Update Time Blocks",
|
|
51249
|
-
description: "Update Time Blocks.",
|
|
51250
|
-
safety: "update",
|
|
51251
|
-
destructive: false,
|
|
51252
|
-
cli: {
|
|
51253
|
-
group: ["time-blocks"],
|
|
51254
|
-
command: "update",
|
|
51255
|
-
interactive: "default"
|
|
51256
|
-
},
|
|
51257
|
-
mcp: { entityTool: "time-blocks" },
|
|
51258
|
-
inputSchema: timeBlockUpdateSchema,
|
|
51259
|
-
execute: (input, { client }) => {
|
|
51260
|
-
const data = input;
|
|
51261
|
-
return client.updateTimeBlock(data.task_id, data.time_block_id, data.payload);
|
|
51262
|
-
}
|
|
51263
|
-
},
|
|
51264
|
-
{
|
|
51265
|
-
id: "focus.time-blocks.update-with-org",
|
|
51266
|
-
family: "focus",
|
|
51267
|
-
resource: "time-blocks",
|
|
51268
|
-
action: "update-with-org",
|
|
51269
|
-
title: "Update With Org Time Blocks",
|
|
51270
|
-
description: "Update With Org Time Blocks.",
|
|
51271
|
-
safety: "update",
|
|
51272
|
-
destructive: false,
|
|
51273
|
-
cli: {
|
|
51274
|
-
group: ["time-blocks"],
|
|
51275
|
-
command: "update-with-org",
|
|
51276
|
-
interactive: "default"
|
|
51277
|
-
},
|
|
51278
|
-
mcp: { entityTool: "time-blocks" },
|
|
51279
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
51280
|
-
payload: /* @__PURE__ */ looseObject({
|
|
51281
|
-
start: apiDateTimeString,
|
|
51282
|
-
completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
51283
|
-
duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51284
|
-
outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
51285
|
-
}),
|
|
51286
|
-
task_id: /* @__PURE__ */ number$2(),
|
|
51287
|
-
time_block_id: /* @__PURE__ */ number$2()
|
|
51288
|
-
}),
|
|
51289
|
-
execute: (input, { client }) => {
|
|
51290
|
-
const data = input;
|
|
51291
|
-
return client.runGeneratedRequest("updateTimeBlockWithOrg", () => callGeneratedRequest(updateTimeBlockWithOrg, [
|
|
51292
|
-
client.httpClient,
|
|
51293
|
-
client.organizationId,
|
|
51294
|
-
client.workspaceIdNumber,
|
|
51295
|
-
data.task_id,
|
|
51296
|
-
data.time_block_id,
|
|
51297
|
-
data.payload ?? data.data ?? data,
|
|
51216
|
+
data.skip_provider_refresh,
|
|
51298
51217
|
void 0
|
|
51299
51218
|
]));
|
|
51300
51219
|
}
|
|
@@ -51514,7 +51433,8 @@ const generatedFocusOperations = [
|
|
|
51514
51433
|
required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
|
|
51515
51434
|
"project",
|
|
51516
51435
|
"task",
|
|
51517
|
-
"description"
|
|
51436
|
+
"description",
|
|
51437
|
+
"tags"
|
|
51518
51438
|
]) })),
|
|
51519
51439
|
disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
51520
51440
|
}) }),
|
|
@@ -51544,6 +51464,7 @@ const generatedFocusOperations = [
|
|
|
51544
51464
|
},
|
|
51545
51465
|
mcp: { entityTool: "time-entries" },
|
|
51546
51466
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
51467
|
+
from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51547
51468
|
payload: /* @__PURE__ */ looseObject({
|
|
51548
51469
|
type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
|
|
51549
51470
|
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
@@ -51554,11 +51475,12 @@ const generatedFocusOperations = [
|
|
|
51554
51475
|
planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51555
51476
|
planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
51556
51477
|
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51478
|
+
repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
51557
51479
|
start: /* @__PURE__ */ optional$1(apiDateTimeString),
|
|
51558
|
-
time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51559
51480
|
tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
|
|
51560
51481
|
user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
51561
51482
|
}),
|
|
51483
|
+
return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
51562
51484
|
task_id: /* @__PURE__ */ number$2()
|
|
51563
51485
|
}),
|
|
51564
51486
|
execute: (input, { client }) => {
|
|
@@ -51569,6 +51491,8 @@ const generatedFocusOperations = [
|
|
|
51569
51491
|
client.workspaceIdNumber,
|
|
51570
51492
|
data.task_id,
|
|
51571
51493
|
data.payload ?? data.data ?? data,
|
|
51494
|
+
data.from_recurring_task_id,
|
|
51495
|
+
data.return_occurrence,
|
|
51572
51496
|
void 0
|
|
51573
51497
|
]));
|
|
51574
51498
|
}
|
|
@@ -51588,21 +51512,25 @@ const generatedFocusOperations = [
|
|
|
51588
51512
|
interactive: "default"
|
|
51589
51513
|
},
|
|
51590
51514
|
mcp: { entityTool: "time-entries" },
|
|
51591
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
51592
|
-
|
|
51593
|
-
|
|
51594
|
-
|
|
51595
|
-
|
|
51596
|
-
|
|
51597
|
-
|
|
51598
|
-
|
|
51599
|
-
|
|
51600
|
-
|
|
51601
|
-
|
|
51602
|
-
|
|
51603
|
-
|
|
51604
|
-
|
|
51605
|
-
|
|
51515
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
51516
|
+
from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51517
|
+
payload: /* @__PURE__ */ looseObject({
|
|
51518
|
+
type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
|
|
51519
|
+
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
51520
|
+
calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51521
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
51522
|
+
duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51523
|
+
planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
|
|
51524
|
+
planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51525
|
+
planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
51526
|
+
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51527
|
+
repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
51528
|
+
start: /* @__PURE__ */ optional$1(apiDateTimeString),
|
|
51529
|
+
tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
|
|
51530
|
+
user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
51531
|
+
}),
|
|
51532
|
+
return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
51533
|
+
}),
|
|
51606
51534
|
execute: (input, { client }) => {
|
|
51607
51535
|
const data = input;
|
|
51608
51536
|
return client.runGeneratedRequest("createTasklessTimeEntryWithOrg", () => callGeneratedRequest(createTasklessTimeEntryWithOrg, [
|
|
@@ -51610,6 +51538,8 @@ const generatedFocusOperations = [
|
|
|
51610
51538
|
client.organizationId,
|
|
51611
51539
|
client.workspaceIdNumber,
|
|
51612
51540
|
data.payload ?? data.data ?? data,
|
|
51541
|
+
data.from_recurring_task_id,
|
|
51542
|
+
data.return_occurrence,
|
|
51613
51543
|
void 0
|
|
51614
51544
|
]));
|
|
51615
51545
|
}
|
|
@@ -51629,7 +51559,11 @@ const generatedFocusOperations = [
|
|
|
51629
51559
|
interactive: "default"
|
|
51630
51560
|
},
|
|
51631
51561
|
mcp: { entityTool: "time-entries" },
|
|
51632
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
51562
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
51563
|
+
from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51564
|
+
return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
51565
|
+
time_entry_id: /* @__PURE__ */ number$2()
|
|
51566
|
+
}),
|
|
51633
51567
|
execute: (input, { client }) => {
|
|
51634
51568
|
const data = input;
|
|
51635
51569
|
return client.runGeneratedRequest("deleteTimeEntryWithOrg", () => callGeneratedRequest(deleteTimeEntryWithOrg, [
|
|
@@ -51637,6 +51571,8 @@ const generatedFocusOperations = [
|
|
|
51637
51571
|
client.organizationId,
|
|
51638
51572
|
client.workspaceIdNumber,
|
|
51639
51573
|
data.time_entry_id,
|
|
51574
|
+
data.from_recurring_task_id,
|
|
51575
|
+
data.return_occurrence,
|
|
51640
51576
|
void 0
|
|
51641
51577
|
]));
|
|
51642
51578
|
}
|
|
@@ -51717,6 +51653,7 @@ const generatedFocusOperations = [
|
|
|
51717
51653
|
expand_calendar_event: /* @__PURE__ */ unknown$1(),
|
|
51718
51654
|
include_taskless: /* @__PURE__ */ unknown$1(),
|
|
51719
51655
|
order_by: /* @__PURE__ */ unknown$1(),
|
|
51656
|
+
project_id: /* @__PURE__ */ number$2(),
|
|
51720
51657
|
status_id: /* @__PURE__ */ number$2(),
|
|
51721
51658
|
task_id: /* @__PURE__ */ number$2(),
|
|
51722
51659
|
type: /* @__PURE__ */ unknown$1()
|
|
@@ -51732,33 +51669,6 @@ const generatedFocusOperations = [
|
|
|
51732
51669
|
]));
|
|
51733
51670
|
}
|
|
51734
51671
|
},
|
|
51735
|
-
{
|
|
51736
|
-
id: "focus.time-entries.get-stream-time-entries-time-block-ids",
|
|
51737
|
-
family: "focus",
|
|
51738
|
-
resource: "time-entries",
|
|
51739
|
-
action: "get-stream-time-entries-time-block-ids",
|
|
51740
|
-
title: "Get Stream Time Entries Time Block Ids Time Entries",
|
|
51741
|
-
description: "Get Stream Time Entries Time Block Ids Time Entries.",
|
|
51742
|
-
safety: "read",
|
|
51743
|
-
destructive: false,
|
|
51744
|
-
cli: {
|
|
51745
|
-
group: ["time-entries"],
|
|
51746
|
-
command: "get-stream-time-entries-time-block-ids",
|
|
51747
|
-
interactive: "available"
|
|
51748
|
-
},
|
|
51749
|
-
mcp: { entityTool: "time-entries" },
|
|
51750
|
-
inputSchema: /* @__PURE__ */ looseObject({ time_block_id: /* @__PURE__ */ number$2() }),
|
|
51751
|
-
execute: (input, { client }) => {
|
|
51752
|
-
const data = input;
|
|
51753
|
-
return client.runGeneratedRequest("getStreamTimeEntriesTimeBlockIdsWithOrg", () => callGeneratedRequest(getStreamTimeEntriesTimeBlockIdsWithOrg, [
|
|
51754
|
-
client.httpClient,
|
|
51755
|
-
client.organizationId,
|
|
51756
|
-
client.workspaceIdNumber,
|
|
51757
|
-
data,
|
|
51758
|
-
void 0
|
|
51759
|
-
]));
|
|
51760
|
-
}
|
|
51761
|
-
},
|
|
51762
51672
|
{
|
|
51763
51673
|
id: "focus.time-entries.get-task-time-entries",
|
|
51764
51674
|
family: "focus",
|
|
@@ -51780,7 +51690,6 @@ const generatedFocusOperations = [
|
|
|
51780
51690
|
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51781
51691
|
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
51782
51692
|
task_id: /* @__PURE__ */ number$2(),
|
|
51783
|
-
time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51784
51693
|
type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
51785
51694
|
}),
|
|
51786
51695
|
execute: (input, { client }) => {
|
|
@@ -51893,12 +51802,14 @@ const generatedFocusOperations = [
|
|
|
51893
51802
|
},
|
|
51894
51803
|
mcp: { entityTool: "time-entries" },
|
|
51895
51804
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
51805
|
+
from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51896
51806
|
payload: /* @__PURE__ */ looseObject({
|
|
51897
51807
|
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
51898
51808
|
duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
51899
51809
|
reset_billable_to_default: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
51900
51810
|
type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]))
|
|
51901
51811
|
}),
|
|
51812
|
+
return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
51902
51813
|
time_entry_id: /* @__PURE__ */ number$2()
|
|
51903
51814
|
}),
|
|
51904
51815
|
execute: (input, { client }) => {
|
|
@@ -51909,6 +51820,8 @@ const generatedFocusOperations = [
|
|
|
51909
51820
|
client.workspaceIdNumber,
|
|
51910
51821
|
data.time_entry_id,
|
|
51911
51822
|
data.payload ?? data.data ?? data,
|
|
51823
|
+
data.from_recurring_task_id,
|
|
51824
|
+
data.return_occurrence,
|
|
51912
51825
|
void 0
|
|
51913
51826
|
]));
|
|
51914
51827
|
}
|
|
@@ -52166,6 +52079,7 @@ const generatedFocusOperations = [
|
|
|
52166
52079
|
},
|
|
52167
52080
|
mcp: { entityTool: "time-entries" },
|
|
52168
52081
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
52082
|
+
from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
52169
52083
|
payload: /* @__PURE__ */ looseObject({
|
|
52170
52084
|
type: /* @__PURE__ */ picklist$1(["activity", "break"]),
|
|
52171
52085
|
calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
@@ -52175,9 +52089,9 @@ const generatedFocusOperations = [
|
|
|
52175
52089
|
planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
52176
52090
|
planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
52177
52091
|
start: /* @__PURE__ */ optional$1(apiDateTimeString),
|
|
52178
|
-
time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
52179
52092
|
tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
|
|
52180
52093
|
}),
|
|
52094
|
+
return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
52181
52095
|
time_entry_id: /* @__PURE__ */ number$2()
|
|
52182
52096
|
}),
|
|
52183
52097
|
execute: (input, { client }) => {
|
|
@@ -52188,6 +52102,8 @@ const generatedFocusOperations = [
|
|
|
52188
52102
|
client.workspaceIdNumber,
|
|
52189
52103
|
data.time_entry_id,
|
|
52190
52104
|
data.payload ?? data.data ?? data,
|
|
52105
|
+
data.from_recurring_task_id,
|
|
52106
|
+
data.return_occurrence,
|
|
52191
52107
|
void 0
|
|
52192
52108
|
]));
|
|
52193
52109
|
}
|
|
@@ -52703,6 +52619,40 @@ const generatedFocusOperations = [
|
|
|
52703
52619
|
]));
|
|
52704
52620
|
}
|
|
52705
52621
|
},
|
|
52622
|
+
{
|
|
52623
|
+
id: "focus.timesheets.get-status-counts",
|
|
52624
|
+
family: "focus",
|
|
52625
|
+
resource: "timesheets",
|
|
52626
|
+
action: "get-status-counts",
|
|
52627
|
+
title: "Get Status Counts Timesheets",
|
|
52628
|
+
description: "Get Status Counts Timesheets.",
|
|
52629
|
+
safety: "read",
|
|
52630
|
+
destructive: false,
|
|
52631
|
+
cli: {
|
|
52632
|
+
group: ["timesheets"],
|
|
52633
|
+
command: "get-status-counts",
|
|
52634
|
+
interactive: "hidden"
|
|
52635
|
+
},
|
|
52636
|
+
mcp: { entityTool: "timesheets" },
|
|
52637
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
52638
|
+
approver_user_account_ids: /* @__PURE__ */ unknown$1(),
|
|
52639
|
+
date_from: /* @__PURE__ */ unknown$1(),
|
|
52640
|
+
date_to: /* @__PURE__ */ unknown$1(),
|
|
52641
|
+
setup_id: /* @__PURE__ */ number$2(),
|
|
52642
|
+
team_ids: /* @__PURE__ */ unknown$1(),
|
|
52643
|
+
user_account_ids: /* @__PURE__ */ unknown$1()
|
|
52644
|
+
}),
|
|
52645
|
+
execute: (input, { client }) => {
|
|
52646
|
+
const data = input;
|
|
52647
|
+
return client.runGeneratedRequest("getTimesheetStatusCounts", () => callGeneratedRequest(getTimesheetStatusCounts, [
|
|
52648
|
+
client.httpClient,
|
|
52649
|
+
client.organizationId,
|
|
52650
|
+
client.workspaceIdNumber,
|
|
52651
|
+
data,
|
|
52652
|
+
void 0
|
|
52653
|
+
]));
|
|
52654
|
+
}
|
|
52655
|
+
},
|
|
52706
52656
|
{
|
|
52707
52657
|
id: "focus.timesheets.remove-timesheet-flag",
|
|
52708
52658
|
family: "focus",
|
|
@@ -53252,6 +53202,33 @@ const generatedFocusOperations = [
|
|
|
53252
53202
|
]));
|
|
53253
53203
|
}
|
|
53254
53204
|
},
|
|
53205
|
+
{
|
|
53206
|
+
id: "focus.track-team-invites.post",
|
|
53207
|
+
family: "focus",
|
|
53208
|
+
resource: "track-team-invites",
|
|
53209
|
+
action: "post",
|
|
53210
|
+
title: "Post Track Team Invites",
|
|
53211
|
+
description: "Post Track Team Invites.",
|
|
53212
|
+
safety: "create",
|
|
53213
|
+
destructive: false,
|
|
53214
|
+
cli: {
|
|
53215
|
+
group: ["track-team-invites"],
|
|
53216
|
+
command: "post",
|
|
53217
|
+
interactive: "default"
|
|
53218
|
+
},
|
|
53219
|
+
mcp: { entityTool: "track-team-invites" },
|
|
53220
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ organization_user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
|
|
53221
|
+
execute: (input, { client }) => {
|
|
53222
|
+
const data = input;
|
|
53223
|
+
return client.runGeneratedRequest("postTrackTeamInvites", () => callGeneratedRequest(postTrackTeamInvites, [
|
|
53224
|
+
client.httpClient,
|
|
53225
|
+
client.organizationId,
|
|
53226
|
+
client.workspaceIdNumber,
|
|
53227
|
+
data.payload ?? data.data ?? data,
|
|
53228
|
+
void 0
|
|
53229
|
+
]));
|
|
53230
|
+
}
|
|
53231
|
+
},
|
|
53255
53232
|
{
|
|
53256
53233
|
id: "focus.users.list",
|
|
53257
53234
|
family: "focus",
|
|
@@ -53273,6 +53250,56 @@ const generatedFocusOperations = [
|
|
|
53273
53250
|
return client.listOrgUsers(data);
|
|
53274
53251
|
}
|
|
53275
53252
|
},
|
|
53253
|
+
{
|
|
53254
|
+
id: "focus.users.settings-email-unsubscribe",
|
|
53255
|
+
family: "focus",
|
|
53256
|
+
resource: "users",
|
|
53257
|
+
action: "settings-email-unsubscribe",
|
|
53258
|
+
title: "Settings Email Unsubscribe Users",
|
|
53259
|
+
description: "Settings Email Unsubscribe Users.",
|
|
53260
|
+
safety: "update",
|
|
53261
|
+
destructive: false,
|
|
53262
|
+
cli: {
|
|
53263
|
+
group: ["users", "settings"],
|
|
53264
|
+
command: "email-unsubscribe",
|
|
53265
|
+
interactive: "default"
|
|
53266
|
+
},
|
|
53267
|
+
mcp: { entityTool: "users" },
|
|
53268
|
+
inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
|
|
53269
|
+
execute: (input, { client }) => {
|
|
53270
|
+
const data = input;
|
|
53271
|
+
return client.runGeneratedRequest("emailUnsubscribe", () => callGeneratedRequest(emailUnsubscribe, [
|
|
53272
|
+
client.httpClient,
|
|
53273
|
+
data.token,
|
|
53274
|
+
void 0
|
|
53275
|
+
]));
|
|
53276
|
+
}
|
|
53277
|
+
},
|
|
53278
|
+
{
|
|
53279
|
+
id: "focus.users.settings-email-unsubscribe-page",
|
|
53280
|
+
family: "focus",
|
|
53281
|
+
resource: "users",
|
|
53282
|
+
action: "settings-email-unsubscribe-page",
|
|
53283
|
+
title: "Settings Email Unsubscribe Page Users",
|
|
53284
|
+
description: "Settings Email Unsubscribe Page Users.",
|
|
53285
|
+
safety: "read",
|
|
53286
|
+
destructive: false,
|
|
53287
|
+
cli: {
|
|
53288
|
+
group: ["users", "settings"],
|
|
53289
|
+
command: "email-unsubscribe-page",
|
|
53290
|
+
interactive: "available"
|
|
53291
|
+
},
|
|
53292
|
+
mcp: { entityTool: "users" },
|
|
53293
|
+
inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
|
|
53294
|
+
execute: (input, { client }) => {
|
|
53295
|
+
const data = input;
|
|
53296
|
+
return client.runGeneratedRequest("emailUnsubscribePage", () => callGeneratedRequest(emailUnsubscribePage, [
|
|
53297
|
+
client.httpClient,
|
|
53298
|
+
data.token,
|
|
53299
|
+
void 0
|
|
53300
|
+
]));
|
|
53301
|
+
}
|
|
53302
|
+
},
|
|
53276
53303
|
{
|
|
53277
53304
|
id: "focus.users.settings-list",
|
|
53278
53305
|
family: "focus",
|
|
@@ -53334,6 +53361,9 @@ const generatedFocusOperations = [
|
|
|
53334
53361
|
has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53335
53362
|
import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53336
53363
|
new_users_trial_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53364
|
+
notify_project_alerts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53365
|
+
notify_project_member_added: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53366
|
+
notify_task_assigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53337
53367
|
onboarding_checklist_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53338
53368
|
onboarding_flow_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
53339
53369
|
onboarding_multi_day_task_created: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
@@ -53785,7 +53815,6 @@ const focusOperationOverrides = {
|
|
|
53785
53815
|
...projectAttachmentOverrides,
|
|
53786
53816
|
...rateOverrides,
|
|
53787
53817
|
...readOnlyPostOverrides,
|
|
53788
|
-
...timeBlockOverrides,
|
|
53789
53818
|
...timeEntryOverrides,
|
|
53790
53819
|
...versionOverrides,
|
|
53791
53820
|
...statusOverrides,
|
|
@@ -53860,7 +53889,7 @@ Entity mutations and \`profile-remove\` issue a \`confirm_token\` on the first c
|
|
|
53860
53889
|
|
|
53861
53890
|
- Tasks are work items; projects group tasks.
|
|
53862
53891
|
- Task priority levels when setting priority: \`none\`, \`low\`, \`medium\`, \`high\`.
|
|
53863
|
-
- Time
|
|
53892
|
+
- Time entries are tracked time.
|
|
53864
53893
|
`;
|
|
53865
53894
|
if (options.authenticated) return `You are connected to the Toggl 2.0 workspace ${options.workspaceLabel ?? "your workspace"}.
|
|
53866
53895
|
|
|
@@ -54877,7 +54906,7 @@ function registerWorkspaceTools(server) {
|
|
|
54877
54906
|
//#region src/package-version.ts
|
|
54878
54907
|
function mcpPackageVersion() {
|
|
54879
54908
|
try {
|
|
54880
|
-
return "1.11.
|
|
54909
|
+
return "1.11.66";
|
|
54881
54910
|
} catch {
|
|
54882
54911
|
return "unknown";
|
|
54883
54912
|
}
|
|
@@ -55052,7 +55081,7 @@ import_main.default.config({
|
|
|
55052
55081
|
quiet: true,
|
|
55053
55082
|
ignore: ["MISSING_ENV_FILE"]
|
|
55054
55083
|
});
|
|
55055
|
-
const packageVersion = "1.11.
|
|
55084
|
+
const packageVersion = "1.11.66";
|
|
55056
55085
|
function resolvePublicUrls() {
|
|
55057
55086
|
return {
|
|
55058
55087
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -55117,4 +55146,4 @@ function bootstrapServer(options = {}) {
|
|
|
55117
55146
|
//#endregion
|
|
55118
55147
|
export { initProductAnalytics as a, shutdownProductAnalytics as c, getProductAnalyticsDistinctId as i, runMcpCli as n, redactUnsafeSentryMessages as o, captureToolInvocation as r, resolveProductAnalyticsDistinctId as s, bootstrapServer as t };
|
|
55119
55148
|
|
|
55120
|
-
//# sourceMappingURL=src-
|
|
55149
|
+
//# sourceMappingURL=src-fnqUMiy3.js.map
|