@togglhq/cli 1.13.129 → 1.13.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-
|
|
2
|
+
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-BvY1-jbN.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-BvY1-jbN.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -7195,6 +7195,7 @@ const TaskMetadataSchema = /* @__PURE__ */ object({
|
|
|
7195
7195
|
all_day: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7196
7196
|
calendar_event_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
7197
7197
|
calendar_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
7198
|
+
event_classification: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("EventClassification is the calendar provider's own classification of the event behind this task, normalised by the calendar service — see calmodels.EventClassification for the values. Absent when the provider reported no classification."))),
|
|
7198
7199
|
extension_source: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Browser-extension provenance: the source/config that produced the task and the page URL it was tracked from. Written by the extension's start-from-description flow; ExtensionURL is queryable via FindByURL."))),
|
|
7199
7200
|
extension_url: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
7200
7201
|
external_id: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
@@ -7717,6 +7718,7 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
|
|
|
7717
7718
|
recurring: /* @__PURE__ */ boolean(),
|
|
7718
7719
|
background_color: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
7719
7720
|
end_time: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
7721
|
+
event_classification: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("EventClassification is the provider's own classification of the event, normalised by the calendar service — see calmodels.EventClassification for the values. \"unknown\" when the provider reported none. omitempty keeps it out of the spec's `required` set: a client that predates the field must not have to know it."))),
|
|
7720
7722
|
foreground_color: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
7721
7723
|
meeting_link: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
7722
7724
|
response_status: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ picklist([
|
|
@@ -16649,6 +16651,12 @@ async function bulkRequestChangesTimesheets(httpClient, organization_id, workspa
|
|
|
16649
16651
|
json: data
|
|
16650
16652
|
}).json();
|
|
16651
16653
|
}
|
|
16654
|
+
async function bulkSubmitTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
16655
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/submit`, {
|
|
16656
|
+
signal,
|
|
16657
|
+
json: data
|
|
16658
|
+
}).json();
|
|
16659
|
+
}
|
|
16652
16660
|
async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
16653
16661
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/withdraw`, {
|
|
16654
16662
|
signal,
|
|
@@ -28670,6 +28678,37 @@ const generatedFocusOperations = [
|
|
|
28670
28678
|
]));
|
|
28671
28679
|
}
|
|
28672
28680
|
},
|
|
28681
|
+
{
|
|
28682
|
+
id: "focus.timesheets.bulk-submit",
|
|
28683
|
+
family: "focus",
|
|
28684
|
+
resource: "timesheets",
|
|
28685
|
+
action: "bulk-submit",
|
|
28686
|
+
title: "Bulk Submit Timesheets",
|
|
28687
|
+
description: "Bulk Submit Timesheets.",
|
|
28688
|
+
safety: "update",
|
|
28689
|
+
destructive: false,
|
|
28690
|
+
cli: {
|
|
28691
|
+
group: ["timesheets", "bulk"],
|
|
28692
|
+
command: "submit",
|
|
28693
|
+
interactive: "default"
|
|
28694
|
+
},
|
|
28695
|
+
mcp: { entityTool: "timesheets" },
|
|
28696
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ keys: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
28697
|
+
setup_id: /* @__PURE__ */ number$2(),
|
|
28698
|
+
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
28699
|
+
user_account_id: /* @__PURE__ */ number$2()
|
|
28700
|
+
})) }) }),
|
|
28701
|
+
execute: (input, { client }) => {
|
|
28702
|
+
const data = input;
|
|
28703
|
+
return client.runGeneratedRequest("bulkSubmitTimesheets", () => callGeneratedRequest(bulkSubmitTimesheets, [
|
|
28704
|
+
client.httpClient,
|
|
28705
|
+
client.organizationId,
|
|
28706
|
+
client.workspaceIdNumber,
|
|
28707
|
+
data.payload ?? data.data ?? data,
|
|
28708
|
+
void 0
|
|
28709
|
+
]));
|
|
28710
|
+
}
|
|
28711
|
+
},
|
|
28673
28712
|
{
|
|
28674
28713
|
id: "focus.timesheets.bulk-withdraw",
|
|
28675
28714
|
family: "focus",
|
|
@@ -31897,4 +31936,4 @@ Common commands:
|
|
|
31897
31936
|
//#endregion
|
|
31898
31937
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
31899
31938
|
|
|
31900
|
-
//# sourceMappingURL=program-
|
|
31939
|
+
//# sourceMappingURL=program-BvY1-jbN.js.map
|
package/build/program.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-BvY1-jbN.js";
|
|
2
2
|
export { createProgram };
|