@togglhq/cli 1.13.64 → 1.13.65
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 +1 -1
- package/build/index.js +1 -1
- package/build/{program-otb5aYkq.js → program-iHWMX4qU.js} +246 -1
- package/build/program.js +1 -1
- package/package.json +1 -1
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-iHWMX4qU.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-iHWMX4qU.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -15239,6 +15239,29 @@ async function patchUserCustomFieldValues(httpClient, organization_id, workspace
|
|
|
15239
15239
|
}).json();
|
|
15240
15240
|
}
|
|
15241
15241
|
//#endregion
|
|
15242
|
+
//#region ../focus-queries/dist/customreports/requests.ts
|
|
15243
|
+
async function getCustomReports(httpClient, workspace_id, signal) {
|
|
15244
|
+
return await httpClient.get(`workspaces/${workspace_id}/custom-reports`, { signal }).json();
|
|
15245
|
+
}
|
|
15246
|
+
async function createACustomReport(httpClient, workspace_id, data, signal) {
|
|
15247
|
+
return await httpClient.post(`workspaces/${workspace_id}/custom-reports`, {
|
|
15248
|
+
signal,
|
|
15249
|
+
json: data
|
|
15250
|
+
}).json();
|
|
15251
|
+
}
|
|
15252
|
+
async function getACustomReport(httpClient, workspace_id, id, signal) {
|
|
15253
|
+
return await httpClient.get(`workspaces/${workspace_id}/custom-reports/${id}`, { signal }).json();
|
|
15254
|
+
}
|
|
15255
|
+
async function saveACustomReport(httpClient, workspace_id, id, data, signal) {
|
|
15256
|
+
return await httpClient.put(`workspaces/${workspace_id}/custom-reports/${id}`, {
|
|
15257
|
+
signal,
|
|
15258
|
+
json: data
|
|
15259
|
+
}).json();
|
|
15260
|
+
}
|
|
15261
|
+
async function deleteACustomReport(httpClient, workspace_id, id, signal) {
|
|
15262
|
+
return await httpClient.delete(`workspaces/${workspace_id}/custom-reports/${id}`, { signal }).json();
|
|
15263
|
+
}
|
|
15264
|
+
//#endregion
|
|
15242
15265
|
//#region ../focus-queries/dist/designations/requests.ts
|
|
15243
15266
|
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { designation_id, name, include_members, has_members, page, per_page, order_by } = {}, signal) {
|
|
15244
15267
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
@@ -17746,6 +17769,228 @@ const generatedFocusOperations = [
|
|
|
17746
17769
|
]));
|
|
17747
17770
|
}
|
|
17748
17771
|
},
|
|
17772
|
+
{
|
|
17773
|
+
id: "focus.customreports.create-acustom-report",
|
|
17774
|
+
family: "focus",
|
|
17775
|
+
resource: "customreports",
|
|
17776
|
+
action: "create-acustom-report",
|
|
17777
|
+
title: "Create Acustom Report Customreports",
|
|
17778
|
+
description: "Create Acustom Report Customreports.",
|
|
17779
|
+
safety: "create",
|
|
17780
|
+
destructive: false,
|
|
17781
|
+
cli: {
|
|
17782
|
+
group: ["customreports"],
|
|
17783
|
+
command: "create-acustom-report",
|
|
17784
|
+
interactive: "hidden"
|
|
17785
|
+
},
|
|
17786
|
+
mcp: { entityTool: "customreports" },
|
|
17787
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
17788
|
+
name: /* @__PURE__ */ string$1(),
|
|
17789
|
+
params: /* @__PURE__ */ looseObject({
|
|
17790
|
+
charts: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17791
|
+
id: /* @__PURE__ */ string$1(),
|
|
17792
|
+
layout: /* @__PURE__ */ looseObject({ width: /* @__PURE__ */ number$2() }),
|
|
17793
|
+
name: /* @__PURE__ */ string$1(),
|
|
17794
|
+
query: /* @__PURE__ */ looseObject({
|
|
17795
|
+
aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17796
|
+
function: /* @__PURE__ */ picklist$1(["sum"]),
|
|
17797
|
+
property: /* @__PURE__ */ picklist$1([
|
|
17798
|
+
"duration",
|
|
17799
|
+
"billable_duration",
|
|
17800
|
+
"non_billable_duration",
|
|
17801
|
+
"amount",
|
|
17802
|
+
"labor_cost",
|
|
17803
|
+
"profit",
|
|
17804
|
+
"billable_percentage"
|
|
17805
|
+
])
|
|
17806
|
+
})),
|
|
17807
|
+
groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ picklist$1([
|
|
17808
|
+
"project_id",
|
|
17809
|
+
"client_id",
|
|
17810
|
+
"user_account_id",
|
|
17811
|
+
"task_id",
|
|
17812
|
+
"tag_id",
|
|
17813
|
+
"time_entry_billable",
|
|
17814
|
+
"start_date",
|
|
17815
|
+
"year_week",
|
|
17816
|
+
"year_month"
|
|
17817
|
+
]) }))
|
|
17818
|
+
}),
|
|
17819
|
+
type: /* @__PURE__ */ picklist$1([
|
|
17820
|
+
"bar",
|
|
17821
|
+
"grouped_bar",
|
|
17822
|
+
"stacked_bar",
|
|
17823
|
+
"line",
|
|
17824
|
+
"multi_line",
|
|
17825
|
+
"donut",
|
|
17826
|
+
"table",
|
|
17827
|
+
"pivot_table"
|
|
17828
|
+
])
|
|
17829
|
+
})),
|
|
17830
|
+
period: /* @__PURE__ */ unknown$1(),
|
|
17831
|
+
flexqFilters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()))
|
|
17832
|
+
})
|
|
17833
|
+
}) }),
|
|
17834
|
+
execute: (input, { client }) => {
|
|
17835
|
+
const data = input;
|
|
17836
|
+
return client.runGeneratedRequest("createACustomReport", () => callGeneratedRequest(createACustomReport, [
|
|
17837
|
+
client.httpClient,
|
|
17838
|
+
client.workspaceIdNumber,
|
|
17839
|
+
data.payload ?? data.data ?? data,
|
|
17840
|
+
void 0
|
|
17841
|
+
]));
|
|
17842
|
+
}
|
|
17843
|
+
},
|
|
17844
|
+
{
|
|
17845
|
+
id: "focus.customreports.delete-acustom-report",
|
|
17846
|
+
family: "focus",
|
|
17847
|
+
resource: "customreports",
|
|
17848
|
+
action: "delete-acustom-report",
|
|
17849
|
+
title: "Delete Acustom Report Customreports",
|
|
17850
|
+
description: "Delete Acustom Report Customreports.",
|
|
17851
|
+
safety: "delete",
|
|
17852
|
+
destructive: true,
|
|
17853
|
+
cli: {
|
|
17854
|
+
group: ["customreports"],
|
|
17855
|
+
command: "delete-acustom-report",
|
|
17856
|
+
interactive: "default"
|
|
17857
|
+
},
|
|
17858
|
+
mcp: { entityTool: "customreports" },
|
|
17859
|
+
inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
|
|
17860
|
+
execute: (input, { client }) => {
|
|
17861
|
+
const data = input;
|
|
17862
|
+
return client.runGeneratedRequest("deleteACustomReport", () => callGeneratedRequest(deleteACustomReport, [
|
|
17863
|
+
client.httpClient,
|
|
17864
|
+
client.workspaceIdNumber,
|
|
17865
|
+
data.id,
|
|
17866
|
+
void 0
|
|
17867
|
+
]));
|
|
17868
|
+
}
|
|
17869
|
+
},
|
|
17870
|
+
{
|
|
17871
|
+
id: "focus.customreports.get-acustom-report",
|
|
17872
|
+
family: "focus",
|
|
17873
|
+
resource: "customreports",
|
|
17874
|
+
action: "get-acustom-report",
|
|
17875
|
+
title: "Get Acustom Report Customreports",
|
|
17876
|
+
description: "Get Acustom Report Customreports.",
|
|
17877
|
+
safety: "read",
|
|
17878
|
+
destructive: false,
|
|
17879
|
+
cli: {
|
|
17880
|
+
group: ["customreports"],
|
|
17881
|
+
command: "get-acustom-report",
|
|
17882
|
+
interactive: "available"
|
|
17883
|
+
},
|
|
17884
|
+
mcp: { entityTool: "customreports" },
|
|
17885
|
+
inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
|
|
17886
|
+
execute: (input, { client }) => {
|
|
17887
|
+
const data = input;
|
|
17888
|
+
return client.runGeneratedRequest("getACustomReport", () => callGeneratedRequest(getACustomReport, [
|
|
17889
|
+
client.httpClient,
|
|
17890
|
+
client.workspaceIdNumber,
|
|
17891
|
+
data.id,
|
|
17892
|
+
void 0
|
|
17893
|
+
]));
|
|
17894
|
+
}
|
|
17895
|
+
},
|
|
17896
|
+
{
|
|
17897
|
+
id: "focus.customreports.get-custom-reports",
|
|
17898
|
+
family: "focus",
|
|
17899
|
+
resource: "customreports",
|
|
17900
|
+
action: "get-custom-reports",
|
|
17901
|
+
title: "Get Custom Reports Customreports",
|
|
17902
|
+
description: "Get Custom Reports Customreports.",
|
|
17903
|
+
safety: "read",
|
|
17904
|
+
destructive: false,
|
|
17905
|
+
cli: {
|
|
17906
|
+
group: ["customreports"],
|
|
17907
|
+
command: "get-custom-reports",
|
|
17908
|
+
interactive: "hidden"
|
|
17909
|
+
},
|
|
17910
|
+
mcp: { entityTool: "customreports" },
|
|
17911
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
17912
|
+
execute: (_input, { client }) => client.runGeneratedRequest("getCustomReports", () => callGeneratedRequest(getCustomReports, [
|
|
17913
|
+
client.httpClient,
|
|
17914
|
+
client.workspaceIdNumber,
|
|
17915
|
+
void 0
|
|
17916
|
+
]))
|
|
17917
|
+
},
|
|
17918
|
+
{
|
|
17919
|
+
id: "focus.customreports.save-acustom-report",
|
|
17920
|
+
family: "focus",
|
|
17921
|
+
resource: "customreports",
|
|
17922
|
+
action: "save-acustom-report",
|
|
17923
|
+
title: "Save Acustom Report Customreports",
|
|
17924
|
+
description: "Save Acustom Report Customreports.",
|
|
17925
|
+
safety: "update",
|
|
17926
|
+
destructive: false,
|
|
17927
|
+
cli: {
|
|
17928
|
+
group: ["customreports"],
|
|
17929
|
+
command: "save-acustom-report",
|
|
17930
|
+
interactive: "hidden"
|
|
17931
|
+
},
|
|
17932
|
+
mcp: { entityTool: "customreports" },
|
|
17933
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
17934
|
+
id: /* @__PURE__ */ number$2(),
|
|
17935
|
+
payload: /* @__PURE__ */ looseObject({
|
|
17936
|
+
name: /* @__PURE__ */ string$1(),
|
|
17937
|
+
params: /* @__PURE__ */ looseObject({
|
|
17938
|
+
charts: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17939
|
+
id: /* @__PURE__ */ string$1(),
|
|
17940
|
+
layout: /* @__PURE__ */ looseObject({ width: /* @__PURE__ */ number$2() }),
|
|
17941
|
+
name: /* @__PURE__ */ string$1(),
|
|
17942
|
+
query: /* @__PURE__ */ looseObject({
|
|
17943
|
+
aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17944
|
+
function: /* @__PURE__ */ picklist$1(["sum"]),
|
|
17945
|
+
property: /* @__PURE__ */ picklist$1([
|
|
17946
|
+
"duration",
|
|
17947
|
+
"billable_duration",
|
|
17948
|
+
"non_billable_duration",
|
|
17949
|
+
"amount",
|
|
17950
|
+
"labor_cost",
|
|
17951
|
+
"profit",
|
|
17952
|
+
"billable_percentage"
|
|
17953
|
+
])
|
|
17954
|
+
})),
|
|
17955
|
+
groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ picklist$1([
|
|
17956
|
+
"project_id",
|
|
17957
|
+
"client_id",
|
|
17958
|
+
"user_account_id",
|
|
17959
|
+
"task_id",
|
|
17960
|
+
"tag_id",
|
|
17961
|
+
"time_entry_billable",
|
|
17962
|
+
"start_date",
|
|
17963
|
+
"year_week",
|
|
17964
|
+
"year_month"
|
|
17965
|
+
]) }))
|
|
17966
|
+
}),
|
|
17967
|
+
type: /* @__PURE__ */ picklist$1([
|
|
17968
|
+
"bar",
|
|
17969
|
+
"grouped_bar",
|
|
17970
|
+
"stacked_bar",
|
|
17971
|
+
"line",
|
|
17972
|
+
"multi_line",
|
|
17973
|
+
"donut",
|
|
17974
|
+
"table",
|
|
17975
|
+
"pivot_table"
|
|
17976
|
+
])
|
|
17977
|
+
})),
|
|
17978
|
+
period: /* @__PURE__ */ unknown$1(),
|
|
17979
|
+
flexqFilters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()))
|
|
17980
|
+
})
|
|
17981
|
+
})
|
|
17982
|
+
}),
|
|
17983
|
+
execute: (input, { client }) => {
|
|
17984
|
+
const data = input;
|
|
17985
|
+
return client.runGeneratedRequest("saveACustomReport", () => callGeneratedRequest(saveACustomReport, [
|
|
17986
|
+
client.httpClient,
|
|
17987
|
+
client.workspaceIdNumber,
|
|
17988
|
+
data.id,
|
|
17989
|
+
data.payload ?? data.data ?? data,
|
|
17990
|
+
void 0
|
|
17991
|
+
]));
|
|
17992
|
+
}
|
|
17993
|
+
},
|
|
17749
17994
|
{
|
|
17750
17995
|
id: "focus.designations.bulk-create-workspace",
|
|
17751
17996
|
family: "focus",
|
|
@@ -30304,4 +30549,4 @@ Common commands:
|
|
|
30304
30549
|
//#endregion
|
|
30305
30550
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
30306
30551
|
|
|
30307
|
-
//# sourceMappingURL=program-
|
|
30552
|
+
//# sourceMappingURL=program-iHWMX4qU.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-iHWMX4qU.js";
|
|
2
2
|
export { createProgram };
|