@togglhq/cli 1.13.130 → 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 };
|
|
@@ -16651,6 +16651,12 @@ async function bulkRequestChangesTimesheets(httpClient, organization_id, workspa
|
|
|
16651
16651
|
json: data
|
|
16652
16652
|
}).json();
|
|
16653
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
|
+
}
|
|
16654
16660
|
async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
16655
16661
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/withdraw`, {
|
|
16656
16662
|
signal,
|
|
@@ -28672,6 +28678,37 @@ const generatedFocusOperations = [
|
|
|
28672
28678
|
]));
|
|
28673
28679
|
}
|
|
28674
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
|
+
},
|
|
28675
28712
|
{
|
|
28676
28713
|
id: "focus.timesheets.bulk-withdraw",
|
|
28677
28714
|
family: "focus",
|
|
@@ -31899,4 +31936,4 @@ Common commands:
|
|
|
31899
31936
|
//#endregion
|
|
31900
31937
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
31901
31938
|
|
|
31902
|
-
//# 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 };
|