@togglhq/cli 1.13.170 → 1.13.172
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-BW0lsMpM.js → program-BFqUr3ZY.js} +969 -718
- package/build/program.js +1 -1
- package/package.json +2 -2
|
@@ -9785,13 +9785,13 @@ function toFormData(params) {
|
|
|
9785
9785
|
//#endregion
|
|
9786
9786
|
//#region ../focus-queries/dist/project-attachments/requests.ts
|
|
9787
9787
|
async function getProjectAttachments(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
9788
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments`, {
|
|
9788
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments`, {
|
|
9789
9789
|
signal,
|
|
9790
9790
|
searchParams: buildSearchParams$2({ order_by })
|
|
9791
|
-
}).json();
|
|
9791
|
+
})).json();
|
|
9792
9792
|
}
|
|
9793
9793
|
async function createProjectAttachment(httpClient, organization_id, workspace_id, project_id, display_order, file, name, signal) {
|
|
9794
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments`, {
|
|
9794
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments`, {
|
|
9795
9795
|
signal,
|
|
9796
9796
|
timeout: false,
|
|
9797
9797
|
body: toFormData({
|
|
@@ -9799,40 +9799,44 @@ async function createProjectAttachment(httpClient, organization_id, workspace_id
|
|
|
9799
9799
|
file,
|
|
9800
9800
|
name
|
|
9801
9801
|
})
|
|
9802
|
-
}).json();
|
|
9802
|
+
})).json();
|
|
9803
9803
|
}
|
|
9804
9804
|
async function bulkCreateProjectAttachments(httpClient, organization_id, workspace_id, project_id, files, display_orders, names, signal) {
|
|
9805
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments/bulk`, {
|
|
9805
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments/bulk`, {
|
|
9806
9806
|
signal,
|
|
9807
9807
|
body: toFormData({
|
|
9808
9808
|
files,
|
|
9809
9809
|
display_orders,
|
|
9810
9810
|
names
|
|
9811
9811
|
})
|
|
9812
|
-
}).json();
|
|
9812
|
+
})).json();
|
|
9813
9813
|
}
|
|
9814
9814
|
async function updateProjectAttachment(httpClient, organization_id, workspace_id, project_id, attachment_id, data, signal) {
|
|
9815
|
-
|
|
9815
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments/${attachment_id}`, {
|
|
9816
9816
|
signal,
|
|
9817
9817
|
json: data
|
|
9818
|
-
})
|
|
9818
|
+
});
|
|
9819
|
+
if ([204, 205].includes(response.status)) return null;
|
|
9820
|
+
return response.json();
|
|
9819
9821
|
}
|
|
9820
9822
|
async function deleteProjectAttachment(httpClient, organization_id, workspace_id, project_id, attachment_id, signal) {
|
|
9821
|
-
|
|
9823
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments/${attachment_id}`, { signal });
|
|
9824
|
+
if ([204, 205].includes(response.status)) return null;
|
|
9825
|
+
return response.json();
|
|
9822
9826
|
}
|
|
9823
9827
|
async function viewProjectAttachment(httpClient, organization_id, workspace_id, project_id, attachment_id, signal) {
|
|
9824
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments/${attachment_id}/view`, { signal }).blob();
|
|
9828
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/attachments/${attachment_id}/view`, { signal })).blob();
|
|
9825
9829
|
}
|
|
9826
9830
|
//#endregion
|
|
9827
9831
|
//#region ../focus-queries/dist/task-attachments/requests.ts
|
|
9828
9832
|
async function getTaskAttachments(httpClient, organization_id, workspace_id, task_id, { order_by } = {}, signal) {
|
|
9829
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments`, {
|
|
9833
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments`, {
|
|
9830
9834
|
signal,
|
|
9831
9835
|
searchParams: buildSearchParams$2({ order_by })
|
|
9832
|
-
}).json();
|
|
9836
|
+
})).json();
|
|
9833
9837
|
}
|
|
9834
9838
|
async function createTaskAttachment(httpClient, organization_id, workspace_id, task_id, display_order, file, name, signal) {
|
|
9835
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments`, {
|
|
9839
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments`, {
|
|
9836
9840
|
signal,
|
|
9837
9841
|
timeout: false,
|
|
9838
9842
|
body: toFormData({
|
|
@@ -9840,34 +9844,38 @@ async function createTaskAttachment(httpClient, organization_id, workspace_id, t
|
|
|
9840
9844
|
file,
|
|
9841
9845
|
name
|
|
9842
9846
|
})
|
|
9843
|
-
}).json();
|
|
9847
|
+
})).json();
|
|
9844
9848
|
}
|
|
9845
9849
|
async function bulkCreateTaskAttachments(httpClient, organization_id, workspace_id, task_id, files, display_orders, names, signal) {
|
|
9846
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments/bulk`, {
|
|
9850
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments/bulk`, {
|
|
9847
9851
|
signal,
|
|
9848
9852
|
body: toFormData({
|
|
9849
9853
|
files,
|
|
9850
9854
|
display_orders,
|
|
9851
9855
|
names
|
|
9852
9856
|
})
|
|
9853
|
-
}).json();
|
|
9857
|
+
})).json();
|
|
9854
9858
|
}
|
|
9855
9859
|
async function updateTaskAttachment(httpClient, organization_id, workspace_id, task_id, attachment_id, data, signal) {
|
|
9856
|
-
|
|
9860
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments/${attachment_id}`, {
|
|
9857
9861
|
signal,
|
|
9858
9862
|
json: data
|
|
9859
|
-
})
|
|
9863
|
+
});
|
|
9864
|
+
if ([204, 205].includes(response.status)) return null;
|
|
9865
|
+
return response.json();
|
|
9860
9866
|
}
|
|
9861
9867
|
async function deleteTaskAttachment(httpClient, organization_id, workspace_id, task_id, attachment_id, signal) {
|
|
9862
|
-
|
|
9868
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments/${attachment_id}`, { signal });
|
|
9869
|
+
if ([204, 205].includes(response.status)) return null;
|
|
9870
|
+
return response.json();
|
|
9863
9871
|
}
|
|
9864
9872
|
async function viewTaskAttachment(httpClient, organization_id, workspace_id, task_id, attachment_id, signal) {
|
|
9865
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments/${attachment_id}/view`, { signal }).blob();
|
|
9873
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/attachments/${attachment_id}/view`, { signal })).blob();
|
|
9866
9874
|
}
|
|
9867
9875
|
//#endregion
|
|
9868
9876
|
//#region ../focus-queries/dist/clients/requests.ts
|
|
9869
9877
|
async function getClientsClassic(httpClient, workspace_id, { page, per_page, order_by, name, active } = {}, signal) {
|
|
9870
|
-
return await httpClient.get(`workspaces/${workspace_id}/clients`, {
|
|
9878
|
+
return (await httpClient.get(`workspaces/${workspace_id}/clients`, {
|
|
9871
9879
|
signal,
|
|
9872
9880
|
searchParams: buildSearchParams$2({
|
|
9873
9881
|
page,
|
|
@@ -9876,81 +9884,91 @@ async function getClientsClassic(httpClient, workspace_id, { page, per_page, ord
|
|
|
9876
9884
|
name,
|
|
9877
9885
|
active
|
|
9878
9886
|
})
|
|
9879
|
-
}).json();
|
|
9887
|
+
})).json();
|
|
9880
9888
|
}
|
|
9881
9889
|
async function createClient(httpClient, workspace_id, data, signal) {
|
|
9882
|
-
return await httpClient.post(`workspaces/${workspace_id}/clients`, {
|
|
9890
|
+
return (await httpClient.post(`workspaces/${workspace_id}/clients`, {
|
|
9883
9891
|
signal,
|
|
9884
9892
|
json: data
|
|
9885
|
-
}).json();
|
|
9893
|
+
})).json();
|
|
9886
9894
|
}
|
|
9887
9895
|
async function getClient$1(httpClient, workspace_id, client_id, signal) {
|
|
9888
|
-
return await httpClient.get(`workspaces/${workspace_id}/clients/${client_id}`, { signal }).json();
|
|
9896
|
+
return (await httpClient.get(`workspaces/${workspace_id}/clients/${client_id}`, { signal })).json();
|
|
9889
9897
|
}
|
|
9890
9898
|
async function updateClient(httpClient, workspace_id, client_id, data, signal) {
|
|
9891
|
-
|
|
9899
|
+
const response = await httpClient.put(`workspaces/${workspace_id}/clients/${client_id}`, {
|
|
9892
9900
|
signal,
|
|
9893
9901
|
json: data
|
|
9894
|
-
})
|
|
9902
|
+
});
|
|
9903
|
+
if ([204, 205].includes(response.status)) return null;
|
|
9904
|
+
return response.json();
|
|
9895
9905
|
}
|
|
9896
9906
|
async function deleteClient(httpClient, workspace_id, client_id, signal) {
|
|
9897
|
-
|
|
9907
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/clients/${client_id}`, { signal });
|
|
9908
|
+
if ([204, 205].includes(response.status)) return null;
|
|
9909
|
+
return response.json();
|
|
9898
9910
|
}
|
|
9899
9911
|
async function archiveClient(httpClient, workspace_id, client_id, data, signal) {
|
|
9900
|
-
|
|
9912
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/clients/${client_id}/archive`, {
|
|
9901
9913
|
signal,
|
|
9902
9914
|
json: data
|
|
9903
|
-
})
|
|
9915
|
+
});
|
|
9916
|
+
if ([204, 205].includes(response.status)) return null;
|
|
9917
|
+
return response.json();
|
|
9904
9918
|
}
|
|
9905
9919
|
async function getClientArchivePreview(httpClient, workspace_id, client_id, signal) {
|
|
9906
|
-
return await httpClient.get(`workspaces/${workspace_id}/clients/${client_id}/archive-preview`, { signal }).json();
|
|
9920
|
+
return (await httpClient.get(`workspaces/${workspace_id}/clients/${client_id}/archive-preview`, { signal })).json();
|
|
9907
9921
|
}
|
|
9908
9922
|
async function restoreClient(httpClient, workspace_id, client_id, signal) {
|
|
9909
|
-
|
|
9923
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/clients/${client_id}/restore`, { signal });
|
|
9924
|
+
if ([204, 205].includes(response.status)) return null;
|
|
9925
|
+
return response.json();
|
|
9910
9926
|
}
|
|
9911
9927
|
async function unarchiveClient(httpClient, workspace_id, client_id, signal) {
|
|
9912
|
-
|
|
9928
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/clients/${client_id}/unarchive`, { signal });
|
|
9929
|
+
if ([204, 205].includes(response.status)) return null;
|
|
9930
|
+
return response.json();
|
|
9913
9931
|
}
|
|
9914
9932
|
//#endregion
|
|
9915
9933
|
//#region ../focus-queries/dist/organization/requests.ts
|
|
9916
9934
|
async function createOrganizationGroup(httpClient, organization_id, data, signal) {
|
|
9917
|
-
return await httpClient.post(`organizations/${organization_id}/groups`, {
|
|
9935
|
+
return (await httpClient.post(`organizations/${organization_id}/groups`, {
|
|
9918
9936
|
signal,
|
|
9919
9937
|
json: data
|
|
9920
|
-
}).json();
|
|
9938
|
+
})).json();
|
|
9921
9939
|
}
|
|
9922
9940
|
async function getMyGroups(httpClient, organization_id, signal) {
|
|
9923
|
-
return await httpClient.get(`organizations/${organization_id}/groups/me`, { signal }).json();
|
|
9941
|
+
return (await httpClient.get(`organizations/${organization_id}/groups/me`, { signal })).json();
|
|
9924
9942
|
}
|
|
9925
9943
|
async function updateOrganizationGroup(httpClient, organization_id, group_id, data, signal) {
|
|
9926
|
-
return await httpClient.put(`organizations/${organization_id}/groups/${group_id}`, {
|
|
9944
|
+
return (await httpClient.put(`organizations/${organization_id}/groups/${group_id}`, {
|
|
9927
9945
|
signal,
|
|
9928
9946
|
json: data
|
|
9929
|
-
}).json();
|
|
9947
|
+
})).json();
|
|
9930
9948
|
}
|
|
9931
9949
|
async function deleteOrganizationGroup(httpClient, organization_id, group_id, workspace_id, signal) {
|
|
9932
|
-
return await httpClient.delete(`organizations/${organization_id}/groups/${group_id}`, {
|
|
9950
|
+
return (await httpClient.delete(`organizations/${organization_id}/groups/${group_id}`, {
|
|
9933
9951
|
signal,
|
|
9934
9952
|
searchParams: buildSearchParams$2({ workspace_id })
|
|
9935
|
-
}).json();
|
|
9953
|
+
})).json();
|
|
9936
9954
|
}
|
|
9937
9955
|
async function updateOrganizationGroupUserRole(httpClient, organization_id, group_id, data, signal) {
|
|
9938
|
-
return await httpClient.put(`organizations/${organization_id}/groups/${group_id}/user_role`, {
|
|
9956
|
+
return (await httpClient.put(`organizations/${organization_id}/groups/${group_id}/user_role`, {
|
|
9939
9957
|
signal,
|
|
9940
9958
|
json: data
|
|
9941
|
-
}).json();
|
|
9959
|
+
})).json();
|
|
9942
9960
|
}
|
|
9943
9961
|
async function getOrganizationMemberTags(httpClient, organization_id, { workspace_id }, signal) {
|
|
9944
|
-
return await httpClient.get(`organizations/${organization_id}/member-tags`, {
|
|
9962
|
+
return (await httpClient.get(`organizations/${organization_id}/member-tags`, {
|
|
9945
9963
|
signal,
|
|
9946
9964
|
searchParams: buildSearchParams$2({ workspace_id })
|
|
9947
|
-
}).json();
|
|
9965
|
+
})).json();
|
|
9948
9966
|
}
|
|
9949
9967
|
async function getOrganizationRoles(httpClient, organization_id, signal) {
|
|
9950
|
-
return await httpClient.get(`organizations/${organization_id}/roles`, { signal }).json();
|
|
9968
|
+
return (await httpClient.get(`organizations/${organization_id}/roles`, { signal })).json();
|
|
9951
9969
|
}
|
|
9952
9970
|
async function getOrganizationTeamsClassic(httpClient, organization_id, { workspace_id, page, per_page, sort_dir, filter, query, organization_user_id, group_ids, active_members_only, has_designations }, signal) {
|
|
9953
|
-
return await httpClient.get(`organizations/${organization_id}/teams`, {
|
|
9971
|
+
return (await httpClient.get(`organizations/${organization_id}/teams`, {
|
|
9954
9972
|
signal,
|
|
9955
9973
|
searchParams: buildSearchParams$2({
|
|
9956
9974
|
workspace_id,
|
|
@@ -9964,7 +9982,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
|
|
|
9964
9982
|
active_members_only,
|
|
9965
9983
|
has_designations
|
|
9966
9984
|
})
|
|
9967
|
-
}).json();
|
|
9985
|
+
})).json();
|
|
9968
9986
|
}
|
|
9969
9987
|
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, include_designations, include_shared_report_receiver, has_designations } = {}, signal) {
|
|
9970
9988
|
const response = await httpClient.get(`organizations/${organization_id}/users`, {
|
|
@@ -9999,13 +10017,15 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
|
|
|
9999
10017
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
10000
10018
|
}
|
|
10001
10019
|
async function updateOrganizationUserActiveStatus(httpClient, organization_id, organization_user_id, status, signal) {
|
|
10002
|
-
|
|
10020
|
+
const response = await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal });
|
|
10021
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10022
|
+
return response.json();
|
|
10003
10023
|
}
|
|
10004
10024
|
async function createWorkspaceInvitations(httpClient, organization_id, workspace_id, data, signal) {
|
|
10005
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/invitations`, {
|
|
10025
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/invitations`, {
|
|
10006
10026
|
signal,
|
|
10007
10027
|
json: data
|
|
10008
|
-
}).json();
|
|
10028
|
+
})).json();
|
|
10009
10029
|
}
|
|
10010
10030
|
//#endregion
|
|
10011
10031
|
//#region ../focus-queries/out/utils/requests.js
|
|
@@ -10022,7 +10042,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
|
|
|
10022
10042
|
//#endregion
|
|
10023
10043
|
//#region ../focus-queries/dist/tags/requests.ts
|
|
10024
10044
|
async function getTagsClassic(httpClient, workspace_id, { name, page, per_page, order_by, tag_id, include_usage, include_archived, archived } = {}, signal) {
|
|
10025
|
-
return await httpClient.get(`workspaces/${workspace_id}/tags`, {
|
|
10045
|
+
return (await httpClient.get(`workspaces/${workspace_id}/tags`, {
|
|
10026
10046
|
signal,
|
|
10027
10047
|
searchParams: buildSearchParams$2({
|
|
10028
10048
|
name,
|
|
@@ -10034,84 +10054,102 @@ async function getTagsClassic(httpClient, workspace_id, { name, page, per_page,
|
|
|
10034
10054
|
include_archived,
|
|
10035
10055
|
archived
|
|
10036
10056
|
})
|
|
10037
|
-
}).json();
|
|
10057
|
+
})).json();
|
|
10038
10058
|
}
|
|
10039
10059
|
async function createTag(httpClient, workspace_id, data, signal) {
|
|
10040
|
-
return await httpClient.post(`workspaces/${workspace_id}/tags`, {
|
|
10060
|
+
return (await httpClient.post(`workspaces/${workspace_id}/tags`, {
|
|
10041
10061
|
signal,
|
|
10042
10062
|
json: data
|
|
10043
|
-
}).json();
|
|
10063
|
+
})).json();
|
|
10044
10064
|
}
|
|
10045
10065
|
async function bulkCreateTags(httpClient, workspace_id, data, signal) {
|
|
10046
|
-
return await httpClient.post(`workspaces/${workspace_id}/tags/bulk`, {
|
|
10066
|
+
return (await httpClient.post(`workspaces/${workspace_id}/tags/bulk`, {
|
|
10047
10067
|
signal,
|
|
10048
10068
|
json: data
|
|
10049
|
-
}).json();
|
|
10069
|
+
})).json();
|
|
10050
10070
|
}
|
|
10051
10071
|
async function bulkDeleteTags(httpClient, workspace_id, ids, signal) {
|
|
10052
|
-
|
|
10072
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/tags/bulk`, {
|
|
10053
10073
|
signal,
|
|
10054
10074
|
searchParams: buildSearchParams$2({ ids })
|
|
10055
|
-
})
|
|
10075
|
+
});
|
|
10076
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10077
|
+
return response.json();
|
|
10056
10078
|
}
|
|
10057
10079
|
async function bulkArchiveTags(httpClient, workspace_id, data, signal) {
|
|
10058
|
-
|
|
10080
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/tags/bulk/archive`, {
|
|
10059
10081
|
signal,
|
|
10060
10082
|
json: data
|
|
10061
|
-
})
|
|
10083
|
+
});
|
|
10084
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10085
|
+
return response.json();
|
|
10062
10086
|
}
|
|
10063
10087
|
async function bulkRestoreTags(httpClient, workspace_id, data, signal) {
|
|
10064
|
-
|
|
10088
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/tags/bulk/restore`, {
|
|
10065
10089
|
signal,
|
|
10066
10090
|
json: data
|
|
10067
|
-
})
|
|
10091
|
+
});
|
|
10092
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10093
|
+
return response.json();
|
|
10068
10094
|
}
|
|
10069
10095
|
async function bulkUnarchiveTags(httpClient, workspace_id, data, signal) {
|
|
10070
|
-
|
|
10096
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/tags/bulk/unarchive`, {
|
|
10071
10097
|
signal,
|
|
10072
10098
|
json: data
|
|
10073
|
-
})
|
|
10099
|
+
});
|
|
10100
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10101
|
+
return response.json();
|
|
10074
10102
|
}
|
|
10075
10103
|
async function mergeTags(httpClient, workspace_id, data, signal) {
|
|
10076
|
-
|
|
10104
|
+
const response = await httpClient.post(`workspaces/${workspace_id}/tags/merge`, {
|
|
10077
10105
|
signal,
|
|
10078
10106
|
json: data
|
|
10079
|
-
})
|
|
10107
|
+
});
|
|
10108
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10109
|
+
return response.json();
|
|
10080
10110
|
}
|
|
10081
10111
|
async function countTagTimeEntries(httpClient, workspace_id, { ids, match }, signal) {
|
|
10082
|
-
return await httpClient.get(`workspaces/${workspace_id}/tags/time-entries/count`, {
|
|
10112
|
+
return (await httpClient.get(`workspaces/${workspace_id}/tags/time-entries/count`, {
|
|
10083
10113
|
signal,
|
|
10084
10114
|
searchParams: buildSearchParams$2({
|
|
10085
10115
|
ids,
|
|
10086
10116
|
match
|
|
10087
10117
|
})
|
|
10088
|
-
}).json();
|
|
10118
|
+
})).json();
|
|
10089
10119
|
}
|
|
10090
10120
|
async function getTag(httpClient, workspace_id, tag_id, signal) {
|
|
10091
|
-
return await httpClient.get(`workspaces/${workspace_id}/tags/${tag_id}`, { signal }).json();
|
|
10121
|
+
return (await httpClient.get(`workspaces/${workspace_id}/tags/${tag_id}`, { signal })).json();
|
|
10092
10122
|
}
|
|
10093
10123
|
async function updateTag(httpClient, workspace_id, tag_id, data, signal) {
|
|
10094
|
-
return await httpClient.put(`workspaces/${workspace_id}/tags/${tag_id}`, {
|
|
10124
|
+
return (await httpClient.put(`workspaces/${workspace_id}/tags/${tag_id}`, {
|
|
10095
10125
|
signal,
|
|
10096
10126
|
json: data
|
|
10097
|
-
}).json();
|
|
10127
|
+
})).json();
|
|
10098
10128
|
}
|
|
10099
10129
|
async function deleteTag(httpClient, workspace_id, tag_id, signal) {
|
|
10100
|
-
|
|
10130
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/tags/${tag_id}`, { signal });
|
|
10131
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10132
|
+
return response.json();
|
|
10101
10133
|
}
|
|
10102
10134
|
async function archiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
10103
|
-
|
|
10135
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/tags/${tag_id}/archive`, { signal });
|
|
10136
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10137
|
+
return response.json();
|
|
10104
10138
|
}
|
|
10105
10139
|
async function restoreTag(httpClient, workspace_id, tag_id, signal) {
|
|
10106
|
-
|
|
10140
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/tags/${tag_id}/restore`, { signal });
|
|
10141
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10142
|
+
return response.json();
|
|
10107
10143
|
}
|
|
10108
10144
|
async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
10109
|
-
|
|
10145
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/tags/${tag_id}/unarchive`, { signal });
|
|
10146
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10147
|
+
return response.json();
|
|
10110
10148
|
}
|
|
10111
10149
|
//#endregion
|
|
10112
10150
|
//#region ../focus-queries/dist/projects/requests.ts
|
|
10113
10151
|
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, include_picker_parent_group_counts, include_picker_pinned_tasks, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, task_occurrence_window_date, task_occurrence_window_days, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_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) {
|
|
10114
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
10152
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
10115
10153
|
signal,
|
|
10116
10154
|
searchParams: buildSearchParams$2({
|
|
10117
10155
|
member_only,
|
|
@@ -10156,52 +10194,62 @@ async function getProjectsClassic(httpClient, organization_id, workspace_id, { m
|
|
|
10156
10194
|
date_overlap_end,
|
|
10157
10195
|
cf_filter
|
|
10158
10196
|
})
|
|
10159
|
-
}).json();
|
|
10197
|
+
})).json();
|
|
10160
10198
|
}
|
|
10161
10199
|
async function createProject(httpClient, organization_id, workspace_id, data, signal) {
|
|
10162
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
10200
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
10163
10201
|
signal,
|
|
10164
10202
|
json: data
|
|
10165
|
-
}).json();
|
|
10203
|
+
})).json();
|
|
10166
10204
|
}
|
|
10167
10205
|
async function bulkDeleteProjects(httpClient, organization_id, workspace_id, ids, signal) {
|
|
10168
|
-
|
|
10206
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/bulk`, {
|
|
10169
10207
|
signal,
|
|
10170
10208
|
searchParams: buildSearchParams$2({ ids })
|
|
10171
|
-
})
|
|
10209
|
+
});
|
|
10210
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10211
|
+
return response.json();
|
|
10172
10212
|
}
|
|
10173
10213
|
async function bulkPartialUpdateProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
10174
|
-
|
|
10214
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/bulk`, {
|
|
10175
10215
|
signal,
|
|
10176
10216
|
json: data
|
|
10177
|
-
})
|
|
10217
|
+
});
|
|
10218
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10219
|
+
return response.json();
|
|
10178
10220
|
}
|
|
10179
10221
|
async function bulkArchiveProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
10180
|
-
|
|
10222
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/bulk/archive`, {
|
|
10181
10223
|
signal,
|
|
10182
10224
|
json: data
|
|
10183
|
-
})
|
|
10225
|
+
});
|
|
10226
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10227
|
+
return response.json();
|
|
10184
10228
|
}
|
|
10185
10229
|
async function bulkRestoreProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
10186
|
-
|
|
10230
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/bulk/restore`, {
|
|
10187
10231
|
signal,
|
|
10188
10232
|
json: data
|
|
10189
|
-
})
|
|
10233
|
+
});
|
|
10234
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10235
|
+
return response.json();
|
|
10190
10236
|
}
|
|
10191
10237
|
async function bulkUnarchiveProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
10192
|
-
|
|
10238
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/bulk/unarchive`, {
|
|
10193
10239
|
signal,
|
|
10194
10240
|
json: data
|
|
10195
|
-
})
|
|
10241
|
+
});
|
|
10242
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10243
|
+
return response.json();
|
|
10196
10244
|
}
|
|
10197
10245
|
async function getBatchProjectsMembers(httpClient, organization_id, workspace_id, { ids }, signal) {
|
|
10198
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/members`, {
|
|
10246
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/members`, {
|
|
10199
10247
|
signal,
|
|
10200
10248
|
searchParams: buildSearchParams$2({ ids })
|
|
10201
|
-
}).json();
|
|
10249
|
+
})).json();
|
|
10202
10250
|
}
|
|
10203
10251
|
async function getProjectTemplatesClassic(httpClient, organization_id, workspace_id, { page, per_page, name, order_by, archived } = {}, signal) {
|
|
10204
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/templates`, {
|
|
10252
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/templates`, {
|
|
10205
10253
|
signal,
|
|
10206
10254
|
searchParams: buildSearchParams$2({
|
|
10207
10255
|
page,
|
|
@@ -10210,68 +10258,76 @@ async function getProjectTemplatesClassic(httpClient, organization_id, workspace
|
|
|
10210
10258
|
order_by,
|
|
10211
10259
|
archived
|
|
10212
10260
|
})
|
|
10213
|
-
}).json();
|
|
10261
|
+
})).json();
|
|
10214
10262
|
}
|
|
10215
10263
|
async function getProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
10216
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}`, { signal }).json();
|
|
10264
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}`, { signal })).json();
|
|
10217
10265
|
}
|
|
10218
10266
|
async function updateProject(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
10219
|
-
|
|
10267
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}`, {
|
|
10220
10268
|
signal,
|
|
10221
10269
|
json: data
|
|
10222
|
-
})
|
|
10270
|
+
});
|
|
10271
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10272
|
+
return response.json();
|
|
10223
10273
|
}
|
|
10224
10274
|
async function deleteProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
10225
|
-
|
|
10275
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}`, { signal });
|
|
10276
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10277
|
+
return response.json();
|
|
10226
10278
|
}
|
|
10227
10279
|
async function patchProject(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
10228
|
-
|
|
10280
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}`, {
|
|
10229
10281
|
signal,
|
|
10230
10282
|
json: data
|
|
10231
|
-
})
|
|
10283
|
+
});
|
|
10284
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10285
|
+
return response.json();
|
|
10232
10286
|
}
|
|
10233
10287
|
async function archiveProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
10234
|
-
|
|
10288
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/archive`, { signal });
|
|
10289
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10290
|
+
return response.json();
|
|
10235
10291
|
}
|
|
10236
10292
|
async function getProjectWithChildrenClassic(httpClient, organization_id, workspace_id, project_id, { page, per_page, order_by } = {}, signal) {
|
|
10237
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/children`, {
|
|
10293
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/children`, {
|
|
10238
10294
|
signal,
|
|
10239
10295
|
searchParams: buildSearchParams$2({
|
|
10240
10296
|
page,
|
|
10241
10297
|
per_page,
|
|
10242
10298
|
order_by
|
|
10243
10299
|
})
|
|
10244
|
-
}).json();
|
|
10300
|
+
})).json();
|
|
10245
10301
|
}
|
|
10246
10302
|
async function completeProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
10247
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/complete`, { signal }).json();
|
|
10303
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/complete`, { signal })).json();
|
|
10248
10304
|
}
|
|
10249
10305
|
async function createProjectFromTemplate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
10250
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/create-from-template`, {
|
|
10306
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/create-from-template`, {
|
|
10251
10307
|
signal,
|
|
10252
10308
|
json: data
|
|
10253
|
-
}).json();
|
|
10309
|
+
})).json();
|
|
10254
10310
|
}
|
|
10255
10311
|
async function createTemplateFromProject(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
10256
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/create-template`, {
|
|
10312
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/create-template`, {
|
|
10257
10313
|
signal,
|
|
10258
10314
|
json: data
|
|
10259
|
-
}).json();
|
|
10315
|
+
})).json();
|
|
10260
10316
|
}
|
|
10261
10317
|
async function duplicateProject(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
10262
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/duplicate`, {
|
|
10318
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/duplicate`, {
|
|
10263
10319
|
signal,
|
|
10264
10320
|
json: data
|
|
10265
|
-
}).json();
|
|
10321
|
+
})).json();
|
|
10266
10322
|
}
|
|
10267
10323
|
async function duplicateTemplate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
10268
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/duplicate-template`, {
|
|
10324
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/duplicate-template`, {
|
|
10269
10325
|
signal,
|
|
10270
10326
|
json: data
|
|
10271
|
-
}).json();
|
|
10327
|
+
})).json();
|
|
10272
10328
|
}
|
|
10273
10329
|
async function getRecurringProjectInstancesClassic(httpClient, organization_id, workspace_id, project_id, { page, per_page, order_by, start_date, end_date, include_rollover } = {}, signal) {
|
|
10274
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances`, {
|
|
10330
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances`, {
|
|
10275
10331
|
signal,
|
|
10276
10332
|
searchParams: buildSearchParams$2({
|
|
10277
10333
|
page,
|
|
@@ -10281,70 +10337,86 @@ async function getRecurringProjectInstancesClassic(httpClient, organization_id,
|
|
|
10281
10337
|
end_date,
|
|
10282
10338
|
include_rollover
|
|
10283
10339
|
})
|
|
10284
|
-
}).json();
|
|
10340
|
+
})).json();
|
|
10285
10341
|
}
|
|
10286
10342
|
async function getRecurringProjectInstance(httpClient, organization_id, workspace_id, project_id, date, signal) {
|
|
10287
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances/${date}`, { signal }).json();
|
|
10343
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances/${date}`, { signal })).json();
|
|
10288
10344
|
}
|
|
10289
10345
|
async function createRecurringProjectInstance(httpClient, organization_id, workspace_id, project_id, date, data, signal) {
|
|
10290
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances/${date}`, {
|
|
10346
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/instances/${date}`, {
|
|
10291
10347
|
signal,
|
|
10292
10348
|
json: data
|
|
10293
|
-
}).json();
|
|
10349
|
+
})).json();
|
|
10294
10350
|
}
|
|
10295
10351
|
async function makeProjectPublic(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
10296
|
-
|
|
10352
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/make-public`, { signal });
|
|
10353
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10354
|
+
return response.json();
|
|
10297
10355
|
}
|
|
10298
10356
|
async function getProjectsMembers(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
10299
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/members`, { signal }).json();
|
|
10357
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/members`, { signal })).json();
|
|
10300
10358
|
}
|
|
10301
10359
|
async function updateMemberRole(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
10302
|
-
|
|
10360
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/members`, {
|
|
10303
10361
|
signal,
|
|
10304
10362
|
json: data
|
|
10305
|
-
})
|
|
10363
|
+
});
|
|
10364
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10365
|
+
return response.json();
|
|
10306
10366
|
}
|
|
10307
10367
|
async function addProjectMembers(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
10308
|
-
|
|
10368
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/members`, {
|
|
10309
10369
|
signal,
|
|
10310
10370
|
json: data
|
|
10311
|
-
})
|
|
10371
|
+
});
|
|
10372
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10373
|
+
return response.json();
|
|
10312
10374
|
}
|
|
10313
10375
|
async function removeProjectMember(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
10314
|
-
|
|
10376
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/members`, {
|
|
10315
10377
|
signal,
|
|
10316
10378
|
json: data
|
|
10317
|
-
})
|
|
10379
|
+
});
|
|
10380
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10381
|
+
return response.json();
|
|
10318
10382
|
}
|
|
10319
10383
|
async function getProjectWithParentsClassic(httpClient, organization_id, workspace_id, project_id, { page, per_page, order_by } = {}, signal) {
|
|
10320
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/parents`, {
|
|
10384
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/parents`, {
|
|
10321
10385
|
signal,
|
|
10322
10386
|
searchParams: buildSearchParams$2({
|
|
10323
10387
|
page,
|
|
10324
10388
|
per_page,
|
|
10325
10389
|
order_by
|
|
10326
10390
|
})
|
|
10327
|
-
}).json();
|
|
10391
|
+
})).json();
|
|
10328
10392
|
}
|
|
10329
10393
|
async function pinProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
10330
|
-
|
|
10394
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/pinned`, { signal });
|
|
10395
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10396
|
+
return response.json();
|
|
10331
10397
|
}
|
|
10332
10398
|
async function unpinProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
10333
|
-
|
|
10399
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/pinned`, { signal });
|
|
10400
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10401
|
+
return response.json();
|
|
10334
10402
|
}
|
|
10335
10403
|
async function restoreProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
10336
|
-
|
|
10404
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/restore`, { signal });
|
|
10405
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10406
|
+
return response.json();
|
|
10337
10407
|
}
|
|
10338
10408
|
async function unarchiveProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
10339
|
-
|
|
10409
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/unarchive`, { signal });
|
|
10410
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10411
|
+
return response.json();
|
|
10340
10412
|
}
|
|
10341
10413
|
async function uncompleteProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
10342
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/uncomplete`, { signal }).json();
|
|
10414
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/uncomplete`, { signal })).json();
|
|
10343
10415
|
}
|
|
10344
10416
|
//#endregion
|
|
10345
10417
|
//#region ../focus-queries/dist/statuses/requests.ts
|
|
10346
10418
|
async function getStatusesClassic(httpClient, workspace_id, { name, type, page, per_page, order_by } = {}, signal) {
|
|
10347
|
-
return await httpClient.get(`workspaces/${workspace_id}/statuses`, {
|
|
10419
|
+
return (await httpClient.get(`workspaces/${workspace_id}/statuses`, {
|
|
10348
10420
|
signal,
|
|
10349
10421
|
searchParams: buildSearchParams$2({
|
|
10350
10422
|
name,
|
|
@@ -10353,33 +10425,37 @@ async function getStatusesClassic(httpClient, workspace_id, { name, type, page,
|
|
|
10353
10425
|
per_page,
|
|
10354
10426
|
order_by
|
|
10355
10427
|
})
|
|
10356
|
-
}).json();
|
|
10428
|
+
})).json();
|
|
10357
10429
|
}
|
|
10358
10430
|
async function createStatus(httpClient, workspace_id, data, signal) {
|
|
10359
|
-
return await httpClient.post(`workspaces/${workspace_id}/statuses`, {
|
|
10431
|
+
return (await httpClient.post(`workspaces/${workspace_id}/statuses`, {
|
|
10360
10432
|
signal,
|
|
10361
10433
|
json: data
|
|
10362
|
-
}).json();
|
|
10434
|
+
})).json();
|
|
10363
10435
|
}
|
|
10364
10436
|
async function getStatus$1(httpClient, workspace_id, status_id, signal) {
|
|
10365
|
-
return await httpClient.get(`workspaces/${workspace_id}/statuses/${status_id}`, { signal }).json();
|
|
10437
|
+
return (await httpClient.get(`workspaces/${workspace_id}/statuses/${status_id}`, { signal })).json();
|
|
10366
10438
|
}
|
|
10367
10439
|
async function updateStatus(httpClient, workspace_id, status_id, data, signal) {
|
|
10368
|
-
return await httpClient.put(`workspaces/${workspace_id}/statuses/${status_id}`, {
|
|
10440
|
+
return (await httpClient.put(`workspaces/${workspace_id}/statuses/${status_id}`, {
|
|
10369
10441
|
signal,
|
|
10370
10442
|
json: data
|
|
10371
|
-
}).json();
|
|
10443
|
+
})).json();
|
|
10372
10444
|
}
|
|
10373
10445
|
async function deleteStatus(httpClient, workspace_id, status_id, signal) {
|
|
10374
|
-
|
|
10446
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/statuses/${status_id}`, { signal });
|
|
10447
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10448
|
+
return response.json();
|
|
10375
10449
|
}
|
|
10376
10450
|
async function restoreStatuses(httpClient, workspace_id, status_id, signal) {
|
|
10377
|
-
|
|
10451
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/statuses/${status_id}/restore`, { signal });
|
|
10452
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10453
|
+
return response.json();
|
|
10378
10454
|
}
|
|
10379
10455
|
//#endregion
|
|
10380
10456
|
//#region ../focus-queries/dist/tasks/requests.ts
|
|
10381
10457
|
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, active_project, 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, occurrence_window_date, occurrence_window_days, 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, ids, client_id, include_rates, include_assignees, include_parent_matches, disable_aggregations, cf_filter } = {}, signal) {
|
|
10382
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
|
|
10458
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
|
|
10383
10459
|
signal,
|
|
10384
10460
|
searchParams: buildSearchParams$2({
|
|
10385
10461
|
page,
|
|
@@ -10430,71 +10506,81 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
|
|
|
10430
10506
|
disable_aggregations,
|
|
10431
10507
|
cf_filter
|
|
10432
10508
|
})
|
|
10433
|
-
}).json();
|
|
10509
|
+
})).json();
|
|
10434
10510
|
}
|
|
10435
10511
|
async function createTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
10436
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
|
|
10512
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
|
|
10437
10513
|
signal,
|
|
10438
10514
|
json: data
|
|
10439
|
-
}).json();
|
|
10515
|
+
})).json();
|
|
10440
10516
|
}
|
|
10441
10517
|
async function bulkCreateTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
10442
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk`, {
|
|
10518
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk`, {
|
|
10443
10519
|
signal,
|
|
10444
10520
|
json: data
|
|
10445
|
-
}).json();
|
|
10521
|
+
})).json();
|
|
10446
10522
|
}
|
|
10447
10523
|
async function bulkDeleteTask(httpClient, organization_id, workspace_id, ids, outbound_sync, move_time_to_task_id, signal) {
|
|
10448
|
-
|
|
10524
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk`, {
|
|
10449
10525
|
signal,
|
|
10450
10526
|
searchParams: buildSearchParams$2({
|
|
10451
10527
|
ids,
|
|
10452
10528
|
outbound_sync,
|
|
10453
10529
|
move_time_to_task_id
|
|
10454
10530
|
})
|
|
10455
|
-
})
|
|
10531
|
+
});
|
|
10532
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10533
|
+
return response.json();
|
|
10456
10534
|
}
|
|
10457
10535
|
async function bulkPatchTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
10458
|
-
|
|
10536
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk`, {
|
|
10459
10537
|
signal,
|
|
10460
10538
|
json: data
|
|
10461
|
-
})
|
|
10539
|
+
});
|
|
10540
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10541
|
+
return response.json();
|
|
10462
10542
|
}
|
|
10463
10543
|
async function bulkArchiveTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
10464
|
-
|
|
10544
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk/archive`, {
|
|
10465
10545
|
signal,
|
|
10466
10546
|
json: data
|
|
10467
|
-
})
|
|
10547
|
+
});
|
|
10548
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10549
|
+
return response.json();
|
|
10468
10550
|
}
|
|
10469
10551
|
async function bulkDuplicateTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
10470
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk/duplicate`, {
|
|
10552
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk/duplicate`, {
|
|
10471
10553
|
signal,
|
|
10472
10554
|
json: data
|
|
10473
|
-
}).json();
|
|
10555
|
+
})).json();
|
|
10474
10556
|
}
|
|
10475
10557
|
async function bulkRestoreTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
10476
|
-
|
|
10558
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk/restore`, {
|
|
10477
10559
|
signal,
|
|
10478
10560
|
json: data
|
|
10479
|
-
})
|
|
10561
|
+
});
|
|
10562
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10563
|
+
return response.json();
|
|
10480
10564
|
}
|
|
10481
10565
|
async function bulkUnarchiveTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
10482
|
-
|
|
10566
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/bulk/unarchive`, {
|
|
10483
10567
|
signal,
|
|
10484
10568
|
json: data
|
|
10485
|
-
})
|
|
10569
|
+
});
|
|
10570
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10571
|
+
return response.json();
|
|
10486
10572
|
}
|
|
10487
10573
|
async function getTaskByExternalId(httpClient, organization_id, workspace_id, { source, ext_id }, signal) {
|
|
10488
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/by-external-id`, {
|
|
10574
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/by-external-id`, {
|
|
10489
10575
|
signal,
|
|
10490
10576
|
searchParams: buildSearchParams$2({
|
|
10491
10577
|
source,
|
|
10492
10578
|
ext_id
|
|
10493
10579
|
})
|
|
10494
|
-
}).json();
|
|
10580
|
+
})).json();
|
|
10495
10581
|
}
|
|
10496
10582
|
async function getTasksCalendarEvents(httpClient, organization_id, workspace_id, { date_from, date_to, calendar_event_id, hidden } = {}, signal) {
|
|
10497
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
|
|
10583
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
|
|
10498
10584
|
signal,
|
|
10499
10585
|
searchParams: buildSearchParams$2({
|
|
10500
10586
|
date_from,
|
|
@@ -10502,29 +10588,29 @@ async function getTasksCalendarEvents(httpClient, organization_id, workspace_id,
|
|
|
10502
10588
|
calendar_event_id,
|
|
10503
10589
|
hidden
|
|
10504
10590
|
})
|
|
10505
|
-
}).json();
|
|
10591
|
+
})).json();
|
|
10506
10592
|
}
|
|
10507
10593
|
async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, skip_provider_refresh, signal) {
|
|
10508
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
|
|
10594
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
|
|
10509
10595
|
signal,
|
|
10510
10596
|
searchParams: buildSearchParams$2({
|
|
10511
10597
|
date_from,
|
|
10512
10598
|
date_to,
|
|
10513
10599
|
skip_provider_refresh
|
|
10514
10600
|
})
|
|
10515
|
-
}).json();
|
|
10601
|
+
})).json();
|
|
10516
10602
|
}
|
|
10517
10603
|
async function getTaskDeleteImpact(httpClient, organization_id, workspace_id, { ids, from_recurring_task_id }, signal) {
|
|
10518
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/delete-impact`, {
|
|
10604
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/delete-impact`, {
|
|
10519
10605
|
signal,
|
|
10520
10606
|
searchParams: buildSearchParams$2({
|
|
10521
10607
|
ids,
|
|
10522
10608
|
from_recurring_task_id
|
|
10523
10609
|
})
|
|
10524
|
-
}).json();
|
|
10610
|
+
})).json();
|
|
10525
10611
|
}
|
|
10526
10612
|
async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, unified_search, search, only_me, occurrence_window_date, occurrence_window_days, page, per_page } = {}, signal) {
|
|
10527
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
|
|
10613
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
|
|
10528
10614
|
signal,
|
|
10529
10615
|
searchParams: buildSearchParams$2({
|
|
10530
10616
|
project_id,
|
|
@@ -10539,10 +10625,10 @@ async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace
|
|
|
10539
10625
|
page,
|
|
10540
10626
|
per_page
|
|
10541
10627
|
})
|
|
10542
|
-
}).json();
|
|
10628
|
+
})).json();
|
|
10543
10629
|
}
|
|
10544
10630
|
async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned, unified_search, search, only_me, page, per_page } = {}, signal) {
|
|
10545
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
|
|
10631
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
|
|
10546
10632
|
signal,
|
|
10547
10633
|
searchParams: buildSearchParams$2({
|
|
10548
10634
|
project_id,
|
|
@@ -10554,10 +10640,10 @@ async function getPickerTaskChildrenClassic(httpClient, organization_id, workspa
|
|
|
10554
10640
|
page,
|
|
10555
10641
|
per_page
|
|
10556
10642
|
})
|
|
10557
|
-
}).json();
|
|
10643
|
+
})).json();
|
|
10558
10644
|
}
|
|
10559
10645
|
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) {
|
|
10560
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/recurring`, {
|
|
10646
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/recurring`, {
|
|
10561
10647
|
signal,
|
|
10562
10648
|
searchParams: buildSearchParams$2({
|
|
10563
10649
|
page,
|
|
@@ -10574,10 +10660,10 @@ async function getTasksRecurringInstancesClassic(httpClient, organization_id, wo
|
|
|
10574
10660
|
tag_id,
|
|
10575
10661
|
include_assignees
|
|
10576
10662
|
})
|
|
10577
|
-
}).json();
|
|
10663
|
+
})).json();
|
|
10578
10664
|
}
|
|
10579
10665
|
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, active_project, 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, occurrence_window_date, occurrence_window_days, 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, ids, client_id, include_assignees, cf_filter } = {}, signal) {
|
|
10580
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
|
|
10666
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
|
|
10581
10667
|
signal,
|
|
10582
10668
|
searchParams: buildSearchParams$2({
|
|
10583
10669
|
with_entries,
|
|
@@ -10624,22 +10710,24 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
|
|
|
10624
10710
|
include_assignees,
|
|
10625
10711
|
cf_filter
|
|
10626
10712
|
})
|
|
10627
|
-
}).json();
|
|
10713
|
+
})).json();
|
|
10628
10714
|
}
|
|
10629
10715
|
async function getTask(httpClient, organization_id, workspace_id, task_id, { include_assignees } = {}, signal) {
|
|
10630
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
10716
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
10631
10717
|
signal,
|
|
10632
10718
|
searchParams: buildSearchParams$2({ include_assignees })
|
|
10633
|
-
}).json();
|
|
10719
|
+
})).json();
|
|
10634
10720
|
}
|
|
10635
10721
|
async function updateTask(httpClient, organization_id, workspace_id, task_id, data, signal) {
|
|
10636
|
-
|
|
10722
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
10637
10723
|
signal,
|
|
10638
10724
|
json: data
|
|
10639
|
-
})
|
|
10725
|
+
});
|
|
10726
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10727
|
+
return response.json();
|
|
10640
10728
|
}
|
|
10641
10729
|
async function deleteTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, scope, outbound_sync, move_time_to_task_id, signal) {
|
|
10642
|
-
|
|
10730
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
10643
10731
|
signal,
|
|
10644
10732
|
searchParams: buildSearchParams$2({
|
|
10645
10733
|
from_recurring_task_id,
|
|
@@ -10647,29 +10735,35 @@ async function deleteTask(httpClient, organization_id, workspace_id, task_id, fr
|
|
|
10647
10735
|
outbound_sync,
|
|
10648
10736
|
move_time_to_task_id
|
|
10649
10737
|
})
|
|
10650
|
-
})
|
|
10738
|
+
});
|
|
10739
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10740
|
+
return response.json();
|
|
10651
10741
|
}
|
|
10652
10742
|
async function patchTask(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, scope, signal) {
|
|
10653
|
-
|
|
10743
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
|
|
10654
10744
|
signal,
|
|
10655
10745
|
json: data,
|
|
10656
10746
|
searchParams: buildSearchParams$2({
|
|
10657
10747
|
from_recurring_task_id,
|
|
10658
10748
|
scope
|
|
10659
10749
|
})
|
|
10660
|
-
})
|
|
10750
|
+
});
|
|
10751
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10752
|
+
return response.json();
|
|
10661
10753
|
}
|
|
10662
10754
|
async function archiveTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, scope, signal) {
|
|
10663
|
-
|
|
10755
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/archive`, {
|
|
10664
10756
|
signal,
|
|
10665
10757
|
searchParams: buildSearchParams$2({
|
|
10666
10758
|
from_recurring_task_id,
|
|
10667
10759
|
scope
|
|
10668
10760
|
})
|
|
10669
|
-
})
|
|
10761
|
+
});
|
|
10762
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10763
|
+
return response.json();
|
|
10670
10764
|
}
|
|
10671
10765
|
async function getTaskWithChildrenClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, status_id, archived, source, team_id, assignee_user_id, tag_id, include_assignees } = {}, signal) {
|
|
10672
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/children`, {
|
|
10766
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/children`, {
|
|
10673
10767
|
signal,
|
|
10674
10768
|
searchParams: buildSearchParams$2({
|
|
10675
10769
|
page,
|
|
@@ -10683,16 +10777,18 @@ async function getTaskWithChildrenClassic(httpClient, organization_id, workspace
|
|
|
10683
10777
|
tag_id,
|
|
10684
10778
|
include_assignees
|
|
10685
10779
|
})
|
|
10686
|
-
}).json();
|
|
10780
|
+
})).json();
|
|
10687
10781
|
}
|
|
10688
10782
|
async function createRecurringOccurrence(httpClient, organization_id, workspace_id, task_id, return_occurrence, signal) {
|
|
10689
|
-
|
|
10783
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/occurrences`, {
|
|
10690
10784
|
signal,
|
|
10691
10785
|
searchParams: buildSearchParams$2({ return_occurrence })
|
|
10692
|
-
})
|
|
10786
|
+
});
|
|
10787
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10788
|
+
return response.json();
|
|
10693
10789
|
}
|
|
10694
10790
|
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) {
|
|
10695
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/parents`, {
|
|
10791
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/parents`, {
|
|
10696
10792
|
signal,
|
|
10697
10793
|
searchParams: buildSearchParams$2({
|
|
10698
10794
|
page,
|
|
@@ -10706,33 +10802,41 @@ async function getTaskWithParentsClassic(httpClient, organization_id, workspace_
|
|
|
10706
10802
|
tag_id,
|
|
10707
10803
|
include_assignees
|
|
10708
10804
|
})
|
|
10709
|
-
}).json();
|
|
10805
|
+
})).json();
|
|
10710
10806
|
}
|
|
10711
10807
|
async function pinTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
10712
|
-
|
|
10808
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/pinned`, { signal });
|
|
10809
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10810
|
+
return response.json();
|
|
10713
10811
|
}
|
|
10714
10812
|
async function unpinTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
10715
|
-
|
|
10813
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/pinned`, { signal });
|
|
10814
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10815
|
+
return response.json();
|
|
10716
10816
|
}
|
|
10717
10817
|
async function restoreTask(httpClient, organization_id, workspace_id, task_id, scope, signal) {
|
|
10718
|
-
|
|
10818
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/restore`, {
|
|
10719
10819
|
signal,
|
|
10720
10820
|
searchParams: buildSearchParams$2({ scope })
|
|
10721
|
-
})
|
|
10821
|
+
});
|
|
10822
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10823
|
+
return response.json();
|
|
10722
10824
|
}
|
|
10723
10825
|
async function unarchiveTask(httpClient, organization_id, workspace_id, task_id, scope, signal) {
|
|
10724
|
-
|
|
10826
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/unarchive`, {
|
|
10725
10827
|
signal,
|
|
10726
10828
|
searchParams: buildSearchParams$2({ scope })
|
|
10727
|
-
})
|
|
10829
|
+
});
|
|
10830
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10831
|
+
return response.json();
|
|
10728
10832
|
}
|
|
10729
10833
|
//#endregion
|
|
10730
10834
|
//#region ../focus-queries/dist/time-entries/requests.ts
|
|
10731
10835
|
async function getOrganizationTimeEntryPresence(httpClient, organization_id, signal) {
|
|
10732
|
-
return await httpClient.get(`organizations/${organization_id}/time-entries/presence`, { signal }).json();
|
|
10836
|
+
return (await httpClient.get(`organizations/${organization_id}/time-entries/presence`, { signal })).json();
|
|
10733
10837
|
}
|
|
10734
10838
|
async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived, include_subtasks } = {}, signal) {
|
|
10735
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
|
|
10839
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
|
|
10736
10840
|
signal,
|
|
10737
10841
|
searchParams: buildSearchParams$2({
|
|
10738
10842
|
page,
|
|
@@ -10742,78 +10846,88 @@ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, wor
|
|
|
10742
10846
|
archived,
|
|
10743
10847
|
include_subtasks
|
|
10744
10848
|
})
|
|
10745
|
-
}).json();
|
|
10849
|
+
})).json();
|
|
10746
10850
|
}
|
|
10747
10851
|
async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, return_occurrence, signal) {
|
|
10748
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
|
|
10852
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
|
|
10749
10853
|
signal,
|
|
10750
10854
|
json: data,
|
|
10751
10855
|
searchParams: buildSearchParams$2({
|
|
10752
10856
|
from_recurring_task_id,
|
|
10753
10857
|
return_occurrence
|
|
10754
10858
|
})
|
|
10755
|
-
}).json();
|
|
10859
|
+
})).json();
|
|
10756
10860
|
}
|
|
10757
10861
|
async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, from_recurring_task_id, return_occurrence, signal) {
|
|
10758
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries`, {
|
|
10862
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries`, {
|
|
10759
10863
|
signal,
|
|
10760
10864
|
json: data,
|
|
10761
10865
|
searchParams: buildSearchParams$2({
|
|
10762
10866
|
from_recurring_task_id,
|
|
10763
10867
|
return_occurrence
|
|
10764
10868
|
})
|
|
10765
|
-
}).json();
|
|
10869
|
+
})).json();
|
|
10766
10870
|
}
|
|
10767
10871
|
async function getBatchTimeEntriesWithOrg(httpClient, organization_id, workspace_id, { ids }, signal) {
|
|
10768
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/batch`, {
|
|
10872
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/batch`, {
|
|
10769
10873
|
signal,
|
|
10770
10874
|
searchParams: buildSearchParams$2({ ids })
|
|
10771
|
-
}).json();
|
|
10875
|
+
})).json();
|
|
10772
10876
|
}
|
|
10773
10877
|
async function bulkCreateTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
10774
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk`, {
|
|
10878
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk`, {
|
|
10775
10879
|
signal,
|
|
10776
10880
|
json: data
|
|
10777
|
-
}).json();
|
|
10881
|
+
})).json();
|
|
10778
10882
|
}
|
|
10779
10883
|
async function bulkDeleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, ids, signal) {
|
|
10780
|
-
|
|
10884
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk`, {
|
|
10781
10885
|
signal,
|
|
10782
10886
|
searchParams: buildSearchParams$2({ ids })
|
|
10783
|
-
})
|
|
10887
|
+
});
|
|
10888
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10889
|
+
return response.json();
|
|
10784
10890
|
}
|
|
10785
10891
|
async function bulkPartialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
10786
|
-
|
|
10892
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk`, {
|
|
10787
10893
|
signal,
|
|
10788
10894
|
json: data
|
|
10789
|
-
})
|
|
10895
|
+
});
|
|
10896
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10897
|
+
return response.json();
|
|
10790
10898
|
}
|
|
10791
10899
|
async function bulkEditTimeEntriesWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
10792
|
-
|
|
10900
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk-edit`, {
|
|
10793
10901
|
signal,
|
|
10794
10902
|
json: data
|
|
10795
|
-
})
|
|
10903
|
+
});
|
|
10904
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10905
|
+
return response.json();
|
|
10796
10906
|
}
|
|
10797
10907
|
async function bulkRestoreTimeEntryWithOrg(httpClient, organization_id, workspace_id, ids, signal) {
|
|
10798
|
-
|
|
10908
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk/restore`, {
|
|
10799
10909
|
signal,
|
|
10800
10910
|
searchParams: buildSearchParams$2({ ids })
|
|
10801
|
-
})
|
|
10911
|
+
});
|
|
10912
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10913
|
+
return response.json();
|
|
10802
10914
|
}
|
|
10803
10915
|
async function setDayDurationWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
10804
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/day-duration`, {
|
|
10916
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/day-duration`, {
|
|
10805
10917
|
signal,
|
|
10806
10918
|
json: data
|
|
10807
|
-
}).json();
|
|
10919
|
+
})).json();
|
|
10808
10920
|
}
|
|
10809
10921
|
async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
10810
|
-
|
|
10922
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/day-duration/bulk`, {
|
|
10811
10923
|
signal,
|
|
10812
10924
|
json: data
|
|
10813
|
-
})
|
|
10925
|
+
});
|
|
10926
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10927
|
+
return response.json();
|
|
10814
10928
|
}
|
|
10815
10929
|
async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, project_id, type, order_by, archived, include_taskless, project_completed, project_draft, expand_calendar_event }, signal) {
|
|
10816
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
|
|
10930
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
|
|
10817
10931
|
signal,
|
|
10818
10932
|
searchParams: buildSearchParams$2({
|
|
10819
10933
|
date_from,
|
|
@@ -10829,83 +10943,97 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
|
|
|
10829
10943
|
project_draft,
|
|
10830
10944
|
expand_calendar_event
|
|
10831
10945
|
})
|
|
10832
|
-
}).json();
|
|
10946
|
+
})).json();
|
|
10833
10947
|
}
|
|
10834
10948
|
async function syncTimeEntry(httpClient, organization_id, workspace_id, client_uuid, data, signal) {
|
|
10835
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/sync/${client_uuid}`, {
|
|
10949
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/sync/${client_uuid}`, {
|
|
10836
10950
|
signal,
|
|
10837
10951
|
json: data
|
|
10838
|
-
}).json();
|
|
10952
|
+
})).json();
|
|
10839
10953
|
}
|
|
10840
10954
|
async function getTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
10841
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
|
|
10955
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal })).json();
|
|
10842
10956
|
}
|
|
10843
10957
|
async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
|
|
10844
|
-
|
|
10958
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
|
|
10845
10959
|
signal,
|
|
10846
10960
|
json: data,
|
|
10847
10961
|
searchParams: buildSearchParams$2({
|
|
10848
10962
|
from_recurring_task_id,
|
|
10849
10963
|
return_occurrence
|
|
10850
10964
|
})
|
|
10851
|
-
})
|
|
10965
|
+
});
|
|
10966
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10967
|
+
return response.json();
|
|
10852
10968
|
}
|
|
10853
10969
|
async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, from_recurring_task_id, return_occurrence, signal) {
|
|
10854
|
-
|
|
10970
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
|
|
10855
10971
|
signal,
|
|
10856
10972
|
searchParams: buildSearchParams$2({
|
|
10857
10973
|
from_recurring_task_id,
|
|
10858
10974
|
return_occurrence
|
|
10859
10975
|
})
|
|
10860
|
-
})
|
|
10976
|
+
});
|
|
10977
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10978
|
+
return response.json();
|
|
10861
10979
|
}
|
|
10862
10980
|
async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
|
|
10863
|
-
|
|
10981
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
|
|
10864
10982
|
signal,
|
|
10865
10983
|
json: data,
|
|
10866
10984
|
searchParams: buildSearchParams$2({
|
|
10867
10985
|
from_recurring_task_id,
|
|
10868
10986
|
return_occurrence
|
|
10869
10987
|
})
|
|
10870
|
-
})
|
|
10988
|
+
});
|
|
10989
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10990
|
+
return response.json();
|
|
10871
10991
|
}
|
|
10872
10992
|
async function archiveTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
10873
|
-
|
|
10993
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}/archive`, { signal });
|
|
10994
|
+
if ([204, 205].includes(response.status)) return null;
|
|
10995
|
+
return response.json();
|
|
10874
10996
|
}
|
|
10875
10997
|
async function logPlannedTimeWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
|
|
10876
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}/log`, {
|
|
10998
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}/log`, {
|
|
10877
10999
|
signal,
|
|
10878
11000
|
json: data
|
|
10879
|
-
}).json();
|
|
11001
|
+
})).json();
|
|
10880
11002
|
}
|
|
10881
11003
|
async function restoreTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
10882
|
-
|
|
11004
|
+
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}/restore`, { signal });
|
|
11005
|
+
if ([204, 205].includes(response.status)) return null;
|
|
11006
|
+
return response.json();
|
|
10883
11007
|
}
|
|
10884
11008
|
async function unarchiveTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
10885
|
-
|
|
11009
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}/unarchive`, { signal });
|
|
11010
|
+
if ([204, 205].includes(response.status)) return null;
|
|
11011
|
+
return response.json();
|
|
10886
11012
|
}
|
|
10887
11013
|
//#endregion
|
|
10888
11014
|
//#region ../focus-queries/dist/tracking/requests.ts
|
|
10889
11015
|
async function getTrackedTimeEntryWithOrg(httpClient, organization_id, workspace_id, signal) {
|
|
10890
|
-
|
|
11016
|
+
const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/current`, { signal });
|
|
11017
|
+
if ([204, 205].includes(response.status)) return null;
|
|
11018
|
+
return response.json();
|
|
10891
11019
|
}
|
|
10892
11020
|
async function startTrackingWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
10893
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/start`, {
|
|
11021
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/start`, {
|
|
10894
11022
|
signal,
|
|
10895
11023
|
json: data
|
|
10896
|
-
}).json();
|
|
11024
|
+
})).json();
|
|
10897
11025
|
}
|
|
10898
11026
|
async function startTrackingFromDescriptionWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
10899
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/start-from-description`, {
|
|
11027
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/start-from-description`, {
|
|
10900
11028
|
signal,
|
|
10901
11029
|
json: data
|
|
10902
|
-
}).json();
|
|
11030
|
+
})).json();
|
|
10903
11031
|
}
|
|
10904
11032
|
async function stopTrackingWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
10905
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/stop`, {
|
|
11033
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tracking/stop`, {
|
|
10906
11034
|
signal,
|
|
10907
11035
|
json: data
|
|
10908
|
-
}).json();
|
|
11036
|
+
})).json();
|
|
10909
11037
|
}
|
|
10910
11038
|
const GroupAssignmentRequestSchema = /* @__PURE__ */ object$2({
|
|
10911
11039
|
id: /* @__PURE__ */ number$2(),
|
|
@@ -10989,7 +11117,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10989
11117
|
]))
|
|
10990
11118
|
});
|
|
10991
11119
|
//#endregion
|
|
10992
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11120
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.311_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b06ba3fae51227d5c06def255e4b685f/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10993
11121
|
async function getInvitations(httpClient, signal) {
|
|
10994
11122
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10995
11123
|
}
|
|
@@ -11006,7 +11134,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
11006
11134
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
11007
11135
|
}
|
|
11008
11136
|
//#endregion
|
|
11009
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11137
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.311_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b06ba3fae51227d5c06def255e4b685f/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
11010
11138
|
function buildSearchParams(params, flattenArrays = false) {
|
|
11011
11139
|
const searchParams = new URLSearchParams();
|
|
11012
11140
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -11018,7 +11146,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
11018
11146
|
return searchParams;
|
|
11019
11147
|
}
|
|
11020
11148
|
//#endregion
|
|
11021
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11149
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.311_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b06ba3fae51227d5c06def255e4b685f/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
11022
11150
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
11023
11151
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
11024
11152
|
}
|
|
@@ -11033,7 +11161,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
11033
11161
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
11034
11162
|
}
|
|
11035
11163
|
//#endregion
|
|
11036
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11164
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.311_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b06ba3fae51227d5c06def255e4b685f/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
11037
11165
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
11038
11166
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
11039
11167
|
}
|
|
@@ -11053,7 +11181,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11053
11181
|
});
|
|
11054
11182
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11055
11183
|
//#endregion
|
|
11056
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11184
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.311_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b06ba3fae51227d5c06def255e4b685f/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
11057
11185
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
11058
11186
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
11059
11187
|
signal,
|
|
@@ -11064,12 +11192,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11064
11192
|
})).json();
|
|
11065
11193
|
}
|
|
11066
11194
|
//#endregion
|
|
11067
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11195
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.311_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b06ba3fae51227d5c06def255e4b685f/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11068
11196
|
async function getStatus(httpClient, signal) {
|
|
11069
11197
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11070
11198
|
}
|
|
11071
11199
|
//#endregion
|
|
11072
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11200
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.311_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b06ba3fae51227d5c06def255e4b685f/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11073
11201
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11074
11202
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11075
11203
|
signal,
|
|
@@ -11097,7 +11225,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11097
11225
|
return response.json();
|
|
11098
11226
|
}
|
|
11099
11227
|
//#endregion
|
|
11100
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11228
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.311_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b06ba3fae51227d5c06def255e4b685f/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11101
11229
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11102
11230
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11103
11231
|
}
|
|
@@ -11122,7 +11250,7 @@ async function deleteMyWorkingHours(httpClient, organization_id, data, signal) {
|
|
|
11122
11250
|
return response.json();
|
|
11123
11251
|
}
|
|
11124
11252
|
//#endregion
|
|
11125
|
-
//#region ../cli-core/build/focus-client-
|
|
11253
|
+
//#region ../cli-core/build/focus-client-VwA-5Lda.js
|
|
11126
11254
|
/** Request header the API reads to attribute traffic to MCP or CLI. */
|
|
11127
11255
|
const TOGGL_CLIENT_HEADER = "X-Toggl-Client";
|
|
11128
11256
|
/** Header the Focus API reads for analytics and presence `platform_origin`. */
|
|
@@ -11291,6 +11419,7 @@ async function downloadAttachment(ctx, scope, params) {
|
|
|
11291
11419
|
const TimeOffMeUpdateInputSchema$1 = /* @__PURE__ */ intersect([/* @__PURE__ */ object$2({ timeoff_id: /* @__PURE__ */ number$2() }), PublicMeEntryRequestSchema]);
|
|
11292
11420
|
const TaskPatchSchema = withCustomFieldValues(/* @__PURE__ */ partial(TaskPartialUpdatePayloadSchema));
|
|
11293
11421
|
const ProjectPatchSchema = withCustomFieldValues(/* @__PURE__ */ partial(ProjectPartialUpdatePayloadSchema));
|
|
11422
|
+
const NO_CONTENT_AS_NULL = { parseJson: (text) => text === "" ? null : JSON.parse(text) };
|
|
11294
11423
|
const BulkIdsSchema = /* @__PURE__ */ object$2({
|
|
11295
11424
|
ids: /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()), /* @__PURE__ */ minLength$1(1)),
|
|
11296
11425
|
outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
@@ -11383,7 +11512,7 @@ var FocusClient = class {
|
|
|
11383
11512
|
if (!request.headers.get("Content-Type")?.startsWith("multipart/form-data")) request.headers.set("Content-Type", "application/json");
|
|
11384
11513
|
applyTogglAttributionHeaders(request.headers, this.clientSurface);
|
|
11385
11514
|
}
|
|
11386
|
-
});
|
|
11515
|
+
}).extend(NO_CONTENT_AS_NULL);
|
|
11387
11516
|
const orgBase = accountsOrgApiBaseUrl(config.accountsApiUrl);
|
|
11388
11517
|
this.orgHttp = createHttpClient({
|
|
11389
11518
|
base: orgBase,
|
|
@@ -11394,7 +11523,7 @@ var FocusClient = class {
|
|
|
11394
11523
|
request.headers.set("Content-Type", "application/json");
|
|
11395
11524
|
applyTogglAttributionHeaders(request.headers, this.clientSurface);
|
|
11396
11525
|
}
|
|
11397
|
-
});
|
|
11526
|
+
}).extend(NO_CONTENT_AS_NULL);
|
|
11398
11527
|
this.timeOffMeHttp = createHttpClient({
|
|
11399
11528
|
base: orgBase,
|
|
11400
11529
|
maxRetries: 0,
|
|
@@ -11405,7 +11534,7 @@ var FocusClient = class {
|
|
|
11405
11534
|
request.headers.set("X-Toggl-Product", "focus");
|
|
11406
11535
|
applyTogglAttributionHeaders(request.headers, this.clientSurface);
|
|
11407
11536
|
}
|
|
11408
|
-
});
|
|
11537
|
+
}).extend(NO_CONTENT_AS_NULL);
|
|
11409
11538
|
this.sharedDataHttp = createHttpClient({
|
|
11410
11539
|
base: accountsSharedDataApiBaseUrl(config.accountsApiUrl),
|
|
11411
11540
|
maxRetries: 0,
|
|
@@ -11415,7 +11544,7 @@ var FocusClient = class {
|
|
|
11415
11544
|
request.headers.set("Content-Type", "application/json");
|
|
11416
11545
|
applyTogglAttributionHeaders(request.headers, this.clientSurface);
|
|
11417
11546
|
}
|
|
11418
|
-
});
|
|
11547
|
+
}).extend(NO_CONTENT_AS_NULL);
|
|
11419
11548
|
}
|
|
11420
11549
|
get httpClient() {
|
|
11421
11550
|
return this.http;
|
|
@@ -15213,124 +15342,130 @@ function formatValibotError(issues, maxLength = MAX_ERROR_LENGTH) {
|
|
|
15213
15342
|
//#endregion
|
|
15214
15343
|
//#region ../focus-queries/dist/ai/requests.ts
|
|
15215
15344
|
async function getAiConversations(httpClient, organization_id, workspace_id, { search, before, limit } = {}, signal) {
|
|
15216
|
-
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations`, {
|
|
15345
|
+
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations`, {
|
|
15217
15346
|
signal,
|
|
15218
15347
|
searchParams: buildSearchParams$2({
|
|
15219
15348
|
search,
|
|
15220
15349
|
before,
|
|
15221
15350
|
limit
|
|
15222
15351
|
})
|
|
15223
|
-
}).json();
|
|
15352
|
+
})).json();
|
|
15224
15353
|
}
|
|
15225
15354
|
async function uploadAiAttachment(httpClient, organization_id, workspace_id, conversation_id, file, signal) {
|
|
15226
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/attachments`, {
|
|
15355
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/attachments`, {
|
|
15227
15356
|
signal,
|
|
15228
15357
|
body: toFormData({ file })
|
|
15229
|
-
}).json();
|
|
15358
|
+
})).json();
|
|
15230
15359
|
}
|
|
15231
15360
|
async function removeAiAttachment(httpClient, organization_id, workspace_id, conversation_id, attachment_id, signal) {
|
|
15232
|
-
|
|
15361
|
+
const response = await httpClient.delete(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/attachments/${attachment_id}`, { signal });
|
|
15362
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15363
|
+
return response.json();
|
|
15233
15364
|
}
|
|
15234
15365
|
async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit } = {}, signal) {
|
|
15235
|
-
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
15366
|
+
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
15236
15367
|
signal,
|
|
15237
15368
|
searchParams: buildSearchParams$2({ limit })
|
|
15238
|
-
}).json();
|
|
15369
|
+
})).json();
|
|
15239
15370
|
}
|
|
15240
15371
|
async function sendAiMessage(httpClient, organization_id, workspace_id, conversation_id, data, signal) {
|
|
15241
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
15372
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
15242
15373
|
signal,
|
|
15243
15374
|
json: data
|
|
15244
|
-
}).json();
|
|
15375
|
+
})).json();
|
|
15245
15376
|
}
|
|
15246
15377
|
async function nextAiActions(httpClient, organization_id, workspace_id, conversation_id, message_id, signal) {
|
|
15247
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/next`, { signal }).json();
|
|
15378
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/next`, { signal })).json();
|
|
15248
15379
|
}
|
|
15249
15380
|
async function acceptAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
15250
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/accept`, { signal }).json();
|
|
15381
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/accept`, { signal })).json();
|
|
15251
15382
|
}
|
|
15252
15383
|
async function applyAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
15253
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, { signal }).json();
|
|
15384
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, { signal })).json();
|
|
15254
15385
|
}
|
|
15255
15386
|
async function discardAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
15256
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, { signal }).json();
|
|
15387
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, { signal })).json();
|
|
15257
15388
|
}
|
|
15258
15389
|
async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
15259
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, { signal }).json();
|
|
15390
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, { signal })).json();
|
|
15260
15391
|
}
|
|
15261
15392
|
async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
|
|
15262
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
|
|
15393
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
|
|
15263
15394
|
signal,
|
|
15264
15395
|
json: data
|
|
15265
|
-
}).json();
|
|
15396
|
+
})).json();
|
|
15266
15397
|
}
|
|
15267
15398
|
async function dayRebuildName(httpClient, organization_id, workspace_id, data, signal) {
|
|
15268
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/name`, {
|
|
15399
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/name`, {
|
|
15269
15400
|
signal,
|
|
15270
15401
|
json: data
|
|
15271
|
-
}).json();
|
|
15402
|
+
})).json();
|
|
15272
15403
|
}
|
|
15273
15404
|
async function dayRebuildProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
15274
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/projects`, {
|
|
15405
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/projects`, {
|
|
15275
15406
|
signal,
|
|
15276
15407
|
json: data
|
|
15277
|
-
}).json();
|
|
15408
|
+
})).json();
|
|
15278
15409
|
}
|
|
15279
15410
|
async function dayRebuildReadConnected(httpClient, organization_id, workspace_id, data, signal) {
|
|
15280
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/read-connected`, {
|
|
15411
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/read-connected`, {
|
|
15281
15412
|
signal,
|
|
15282
15413
|
json: data
|
|
15283
|
-
}).json();
|
|
15414
|
+
})).json();
|
|
15284
15415
|
}
|
|
15285
15416
|
async function searchAi(httpClient, organization_id, workspace_id, { q }, signal) {
|
|
15286
|
-
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
15417
|
+
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
15287
15418
|
signal,
|
|
15288
15419
|
searchParams: buildSearchParams$2({ q })
|
|
15289
|
-
}).json();
|
|
15420
|
+
})).json();
|
|
15290
15421
|
}
|
|
15291
15422
|
async function getAiSources(httpClient, organization_id, workspace_id, signal) {
|
|
15292
|
-
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources`, { signal }).json();
|
|
15423
|
+
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources`, { signal })).json();
|
|
15293
15424
|
}
|
|
15294
15425
|
async function disconnectAiSource(httpClient, organization_id, workspace_id, source_id, signal) {
|
|
15295
|
-
|
|
15426
|
+
const response = await httpClient.delete(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources/${source_id}`, { signal });
|
|
15427
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15428
|
+
return response.json();
|
|
15296
15429
|
}
|
|
15297
15430
|
async function finishAiSource(httpClient, organization_id, workspace_id, source_id, data, signal) {
|
|
15298
|
-
|
|
15431
|
+
const response = await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources/${source_id}/callback`, {
|
|
15299
15432
|
signal,
|
|
15300
15433
|
json: data
|
|
15301
|
-
})
|
|
15434
|
+
});
|
|
15435
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15436
|
+
return response.json();
|
|
15302
15437
|
}
|
|
15303
15438
|
async function connectAiSource(httpClient, organization_id, workspace_id, source_id, data, signal) {
|
|
15304
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources/${source_id}/connect`, {
|
|
15439
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources/${source_id}/connect`, {
|
|
15305
15440
|
signal,
|
|
15306
15441
|
json: data
|
|
15307
|
-
}).json();
|
|
15442
|
+
})).json();
|
|
15308
15443
|
}
|
|
15309
15444
|
async function runAiView(httpClient, organization_id, workspace_id, data, signal) {
|
|
15310
|
-
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
|
|
15445
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
|
|
15311
15446
|
signal,
|
|
15312
15447
|
json: data
|
|
15313
|
-
}).json();
|
|
15448
|
+
})).json();
|
|
15314
15449
|
}
|
|
15315
15450
|
//#endregion
|
|
15316
15451
|
//#region ../focus-queries/dist/archived-clients/requests.ts
|
|
15317
15452
|
async function getArchivedClientsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name } = {}, signal) {
|
|
15318
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients`, {
|
|
15453
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients`, {
|
|
15319
15454
|
signal,
|
|
15320
15455
|
searchParams: buildSearchParams$2({
|
|
15321
15456
|
page,
|
|
15322
15457
|
per_page,
|
|
15323
15458
|
name
|
|
15324
15459
|
})
|
|
15325
|
-
}).json();
|
|
15460
|
+
})).json();
|
|
15326
15461
|
}
|
|
15327
15462
|
async function getArchivedClient(httpClient, organization_id, workspace_id, client_id, signal) {
|
|
15328
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients/${client_id}`, { signal }).json();
|
|
15463
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients/${client_id}`, { signal })).json();
|
|
15329
15464
|
}
|
|
15330
15465
|
//#endregion
|
|
15331
15466
|
//#region ../focus-queries/dist/archived-projects/requests.ts
|
|
15332
15467
|
async function getArchivedProjectsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, client_id } = {}, signal) {
|
|
15333
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects`, {
|
|
15468
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects`, {
|
|
15334
15469
|
signal,
|
|
15335
15470
|
searchParams: buildSearchParams$2({
|
|
15336
15471
|
page,
|
|
@@ -15338,15 +15473,15 @@ async function getArchivedProjectsClassic(httpClient, organization_id, workspace
|
|
|
15338
15473
|
name,
|
|
15339
15474
|
client_id
|
|
15340
15475
|
})
|
|
15341
|
-
}).json();
|
|
15476
|
+
})).json();
|
|
15342
15477
|
}
|
|
15343
15478
|
async function getArchivedProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
15344
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects/${project_id}`, { signal }).json();
|
|
15479
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects/${project_id}`, { signal })).json();
|
|
15345
15480
|
}
|
|
15346
15481
|
//#endregion
|
|
15347
15482
|
//#region ../focus-queries/dist/archived-tasks/requests.ts
|
|
15348
15483
|
async function getArchivedTasksClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, project_id } = {}, signal) {
|
|
15349
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks`, {
|
|
15484
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks`, {
|
|
15350
15485
|
signal,
|
|
15351
15486
|
searchParams: buildSearchParams$2({
|
|
15352
15487
|
page,
|
|
@@ -15354,15 +15489,15 @@ async function getArchivedTasksClassic(httpClient, organization_id, workspace_id
|
|
|
15354
15489
|
name,
|
|
15355
15490
|
project_id
|
|
15356
15491
|
})
|
|
15357
|
-
}).json();
|
|
15492
|
+
})).json();
|
|
15358
15493
|
}
|
|
15359
15494
|
async function getArchivedTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
15360
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks/${task_id}`, { signal }).json();
|
|
15495
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks/${task_id}`, { signal })).json();
|
|
15361
15496
|
}
|
|
15362
15497
|
//#endregion
|
|
15363
15498
|
//#region ../focus-queries/dist/archived-time-entries/requests.ts
|
|
15364
15499
|
async function getArchivedTimeEntriesClassic(httpClient, organization_id, workspace_id, { date_from, date_to, page = 1, per_page, task_id, project_id }, signal) {
|
|
15365
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries`, {
|
|
15500
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries`, {
|
|
15366
15501
|
signal,
|
|
15367
15502
|
searchParams: buildSearchParams$2({
|
|
15368
15503
|
date_from,
|
|
@@ -15372,20 +15507,20 @@ async function getArchivedTimeEntriesClassic(httpClient, organization_id, worksp
|
|
|
15372
15507
|
task_id,
|
|
15373
15508
|
project_id
|
|
15374
15509
|
})
|
|
15375
|
-
}).json();
|
|
15510
|
+
})).json();
|
|
15376
15511
|
}
|
|
15377
15512
|
async function getArchivedTimeEntry(httpClient, organization_id, workspace_id, time_entry_id, signal) {
|
|
15378
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries/${time_entry_id}`, { signal }).json();
|
|
15513
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries/${time_entry_id}`, { signal })).json();
|
|
15379
15514
|
}
|
|
15380
15515
|
//#endregion
|
|
15381
15516
|
//#region ../focus-queries/dist/attachments/requests.ts
|
|
15382
15517
|
async function getWorkspaceAttachmentStorage(httpClient, organization_id, workspace_id, signal) {
|
|
15383
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/attachments/storage`, { signal }).json();
|
|
15518
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/attachments/storage`, { signal })).json();
|
|
15384
15519
|
}
|
|
15385
15520
|
//#endregion
|
|
15386
15521
|
//#region ../focus-queries/dist/audit-log/requests.ts
|
|
15387
15522
|
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) {
|
|
15388
|
-
return await httpClient.get(`organizations/${organization_id}/audit-log/${from}/${to}`, {
|
|
15523
|
+
return (await httpClient.get(`organizations/${organization_id}/audit-log/${from}/${to}`, {
|
|
15389
15524
|
signal,
|
|
15390
15525
|
searchParams: buildSearchParams$2({
|
|
15391
15526
|
workspace_id,
|
|
@@ -15399,10 +15534,10 @@ async function getOrganizationAuditLog(httpClient, organization_id, from, to, {
|
|
|
15399
15534
|
page_number,
|
|
15400
15535
|
export: export_
|
|
15401
15536
|
})
|
|
15402
|
-
}).json();
|
|
15537
|
+
})).json();
|
|
15403
15538
|
}
|
|
15404
15539
|
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) {
|
|
15405
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/audit-log/${from}/${to}`, {
|
|
15540
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/audit-log/${from}/${to}`, {
|
|
15406
15541
|
signal,
|
|
15407
15542
|
searchParams: buildSearchParams$2({
|
|
15408
15543
|
entity_type,
|
|
@@ -15415,21 +15550,21 @@ async function getAuditLog(httpClient, organization_id, workspace_id, from, to,
|
|
|
15415
15550
|
page_number,
|
|
15416
15551
|
export: export_
|
|
15417
15552
|
})
|
|
15418
|
-
}).json();
|
|
15553
|
+
})).json();
|
|
15419
15554
|
}
|
|
15420
15555
|
//#endregion
|
|
15421
15556
|
//#region ../focus-queries/dist/billable-rates/requests.ts
|
|
15422
15557
|
async function getProjectsBillableRates(httpClient, organization_id, workspace_id, { project_id, date }, signal) {
|
|
15423
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/rates`, {
|
|
15558
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/rates`, {
|
|
15424
15559
|
signal,
|
|
15425
15560
|
searchParams: buildSearchParams$2({
|
|
15426
15561
|
project_id,
|
|
15427
15562
|
date
|
|
15428
15563
|
})
|
|
15429
|
-
}).json();
|
|
15564
|
+
})).json();
|
|
15430
15565
|
}
|
|
15431
15566
|
async function getAllProjectUserBillableRates(httpClient, organization_id, workspace_id, { project_id, user_id, date, order_by } = {}, signal) {
|
|
15432
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/users/rates`, {
|
|
15567
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/users/rates`, {
|
|
15433
15568
|
signal,
|
|
15434
15569
|
searchParams: buildSearchParams$2({
|
|
15435
15570
|
project_id,
|
|
@@ -15437,144 +15572,162 @@ async function getAllProjectUserBillableRates(httpClient, organization_id, works
|
|
|
15437
15572
|
date,
|
|
15438
15573
|
order_by
|
|
15439
15574
|
})
|
|
15440
|
-
}).json();
|
|
15575
|
+
})).json();
|
|
15441
15576
|
}
|
|
15442
15577
|
async function getProjectBillableRates(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
15443
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates`, {
|
|
15578
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates`, {
|
|
15444
15579
|
signal,
|
|
15445
15580
|
searchParams: buildSearchParams$2({ order_by })
|
|
15446
|
-
}).json();
|
|
15581
|
+
})).json();
|
|
15447
15582
|
}
|
|
15448
15583
|
async function upsertProjectBillableRate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15449
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates`, {
|
|
15584
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates`, {
|
|
15450
15585
|
signal,
|
|
15451
15586
|
json: data
|
|
15452
|
-
}).json();
|
|
15587
|
+
})).json();
|
|
15453
15588
|
}
|
|
15454
15589
|
async function deleteProjectBillableRateRange(httpClient, organization_id, workspace_id, project_id, from, to, signal) {
|
|
15455
|
-
|
|
15590
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates`, {
|
|
15456
15591
|
signal,
|
|
15457
15592
|
searchParams: buildSearchParams$2({
|
|
15458
15593
|
from,
|
|
15459
15594
|
to
|
|
15460
15595
|
})
|
|
15461
|
-
})
|
|
15596
|
+
});
|
|
15597
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15598
|
+
return response.json();
|
|
15462
15599
|
}
|
|
15463
15600
|
async function checkProjectBillableRateConflicts(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15464
|
-
|
|
15601
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/rates/check`, {
|
|
15465
15602
|
signal,
|
|
15466
15603
|
json: data
|
|
15467
|
-
})
|
|
15604
|
+
});
|
|
15605
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15606
|
+
return response.json();
|
|
15468
15607
|
}
|
|
15469
15608
|
async function getProjectUserBillableRates(httpClient, organization_id, workspace_id, project_id, user_id, { order_by } = {}, signal) {
|
|
15470
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates`, {
|
|
15609
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates`, {
|
|
15471
15610
|
signal,
|
|
15472
15611
|
searchParams: buildSearchParams$2({ order_by })
|
|
15473
|
-
}).json();
|
|
15612
|
+
})).json();
|
|
15474
15613
|
}
|
|
15475
15614
|
async function upsertProjectUserBillableRate(httpClient, organization_id, workspace_id, project_id, user_id, data, signal) {
|
|
15476
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates`, {
|
|
15615
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates`, {
|
|
15477
15616
|
signal,
|
|
15478
15617
|
json: data
|
|
15479
|
-
}).json();
|
|
15618
|
+
})).json();
|
|
15480
15619
|
}
|
|
15481
15620
|
async function deleteProjectUserBillableRateRange(httpClient, organization_id, workspace_id, project_id, user_id, from, to, signal) {
|
|
15482
|
-
|
|
15621
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates`, {
|
|
15483
15622
|
signal,
|
|
15484
15623
|
searchParams: buildSearchParams$2({
|
|
15485
15624
|
from,
|
|
15486
15625
|
to
|
|
15487
15626
|
})
|
|
15488
|
-
})
|
|
15627
|
+
});
|
|
15628
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15629
|
+
return response.json();
|
|
15489
15630
|
}
|
|
15490
15631
|
async function checkProjectUserBillableRateConflicts(httpClient, organization_id, workspace_id, project_id, user_id, data, signal) {
|
|
15491
|
-
|
|
15632
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/projects/${project_id}/users/${user_id}/rates/check`, {
|
|
15492
15633
|
signal,
|
|
15493
15634
|
json: data
|
|
15494
|
-
})
|
|
15635
|
+
});
|
|
15636
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15637
|
+
return response.json();
|
|
15495
15638
|
}
|
|
15496
15639
|
async function deleteBillableRateById(httpClient, organization_id, workspace_id, rate_id, signal) {
|
|
15497
|
-
|
|
15640
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/rates/${rate_id}`, { signal });
|
|
15641
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15642
|
+
return response.json();
|
|
15498
15643
|
}
|
|
15499
15644
|
async function getAllWorkspaceUserBillableRates(httpClient, organization_id, workspace_id, { user_id, order_by } = {}, signal) {
|
|
15500
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates`, {
|
|
15645
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates`, {
|
|
15501
15646
|
signal,
|
|
15502
15647
|
searchParams: buildSearchParams$2({
|
|
15503
15648
|
user_id,
|
|
15504
15649
|
order_by
|
|
15505
15650
|
})
|
|
15506
|
-
}).json();
|
|
15651
|
+
})).json();
|
|
15507
15652
|
}
|
|
15508
15653
|
async function bulkUpsertWorkspaceUserBillableRate(httpClient, organization_id, workspace_id, data, signal) {
|
|
15509
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates/bulk`, {
|
|
15654
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates/bulk`, {
|
|
15510
15655
|
signal,
|
|
15511
15656
|
json: data
|
|
15512
|
-
}).json();
|
|
15657
|
+
})).json();
|
|
15513
15658
|
}
|
|
15514
15659
|
async function bulkCheckWorkspaceUserBillableRateConflicts(httpClient, organization_id, workspace_id, data, signal) {
|
|
15515
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates/check/bulk`, {
|
|
15660
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates/check/bulk`, {
|
|
15516
15661
|
signal,
|
|
15517
15662
|
json: data
|
|
15518
|
-
}).json();
|
|
15663
|
+
})).json();
|
|
15519
15664
|
}
|
|
15520
15665
|
async function getWorkspaceUserBillableRates(httpClient, organization_id, workspace_id, user_id, { order_by } = {}, signal) {
|
|
15521
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
|
|
15666
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
|
|
15522
15667
|
signal,
|
|
15523
15668
|
searchParams: buildSearchParams$2({ order_by })
|
|
15524
|
-
}).json();
|
|
15669
|
+
})).json();
|
|
15525
15670
|
}
|
|
15526
15671
|
async function upsertWorkspaceUserBillableRate(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
15527
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
|
|
15672
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
|
|
15528
15673
|
signal,
|
|
15529
15674
|
json: data
|
|
15530
|
-
}).json();
|
|
15675
|
+
})).json();
|
|
15531
15676
|
}
|
|
15532
15677
|
async function deleteWorkspaceUserBillableRateRange(httpClient, organization_id, workspace_id, user_id, from, to, signal) {
|
|
15533
|
-
|
|
15678
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
|
|
15534
15679
|
signal,
|
|
15535
15680
|
searchParams: buildSearchParams$2({
|
|
15536
15681
|
from,
|
|
15537
15682
|
to
|
|
15538
15683
|
})
|
|
15539
|
-
})
|
|
15684
|
+
});
|
|
15685
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15686
|
+
return response.json();
|
|
15540
15687
|
}
|
|
15541
15688
|
async function checkWorkspaceUserBillableRateConflicts(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
15542
|
-
|
|
15689
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates/check`, {
|
|
15543
15690
|
signal,
|
|
15544
15691
|
json: data
|
|
15545
|
-
})
|
|
15692
|
+
});
|
|
15693
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15694
|
+
return response.json();
|
|
15546
15695
|
}
|
|
15547
15696
|
async function getWorkspaceBillableRates(httpClient, organization_id, workspace_id, { order_by } = {}, signal) {
|
|
15548
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates`, {
|
|
15697
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates`, {
|
|
15549
15698
|
signal,
|
|
15550
15699
|
searchParams: buildSearchParams$2({ order_by })
|
|
15551
|
-
}).json();
|
|
15700
|
+
})).json();
|
|
15552
15701
|
}
|
|
15553
15702
|
async function upsertWorkspaceBillableRate(httpClient, organization_id, workspace_id, data, signal) {
|
|
15554
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates`, {
|
|
15703
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates`, {
|
|
15555
15704
|
signal,
|
|
15556
15705
|
json: data
|
|
15557
|
-
}).json();
|
|
15706
|
+
})).json();
|
|
15558
15707
|
}
|
|
15559
15708
|
async function deleteWorkspaceBillableRateRange(httpClient, organization_id, workspace_id, from, to, signal) {
|
|
15560
|
-
|
|
15709
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates`, {
|
|
15561
15710
|
signal,
|
|
15562
15711
|
searchParams: buildSearchParams$2({
|
|
15563
15712
|
from,
|
|
15564
15713
|
to
|
|
15565
15714
|
})
|
|
15566
|
-
})
|
|
15715
|
+
});
|
|
15716
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15717
|
+
return response.json();
|
|
15567
15718
|
}
|
|
15568
15719
|
async function checkWorkspaceBillableRateConflicts(httpClient, organization_id, workspace_id, data, signal) {
|
|
15569
|
-
|
|
15720
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/workspace/rates/check`, {
|
|
15570
15721
|
signal,
|
|
15571
15722
|
json: data
|
|
15572
|
-
})
|
|
15723
|
+
});
|
|
15724
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15725
|
+
return response.json();
|
|
15573
15726
|
}
|
|
15574
15727
|
//#endregion
|
|
15575
15728
|
//#region ../focus-queries/dist/capacities/requests.ts
|
|
15576
15729
|
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) {
|
|
15577
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
|
|
15730
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
|
|
15578
15731
|
signal,
|
|
15579
15732
|
searchParams: buildSearchParams$2({
|
|
15580
15733
|
start_date,
|
|
@@ -15587,26 +15740,26 @@ async function capacityGetComputations(httpClient, organization_id, workspace_id
|
|
|
15587
15740
|
include_drafts,
|
|
15588
15741
|
include_task_estimates
|
|
15589
15742
|
})
|
|
15590
|
-
}).json();
|
|
15743
|
+
})).json();
|
|
15591
15744
|
}
|
|
15592
15745
|
//#endregion
|
|
15593
15746
|
//#region ../focus-queries/dist/composite/requests.ts
|
|
15594
15747
|
async function compositeCreateProject(httpClient, organization_id, workspace_id, data, signal) {
|
|
15595
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/composite/projects`, {
|
|
15748
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/composite/projects`, {
|
|
15596
15749
|
signal,
|
|
15597
15750
|
json: data
|
|
15598
|
-
}).json();
|
|
15751
|
+
})).json();
|
|
15599
15752
|
}
|
|
15600
15753
|
async function compositeCreateTask(httpClient, organization_id, workspace_id, data, signal) {
|
|
15601
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/composite/tasks`, {
|
|
15754
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/composite/tasks`, {
|
|
15602
15755
|
signal,
|
|
15603
15756
|
json: data
|
|
15604
|
-
}).json();
|
|
15757
|
+
})).json();
|
|
15605
15758
|
}
|
|
15606
15759
|
//#endregion
|
|
15607
15760
|
//#region ../focus-queries/dist/custom-fields/requests.ts
|
|
15608
15761
|
async function getCustomFieldsClassic(httpClient, organization_id, workspace_id, { entity_type, page, per_page, order_by } = {}, signal) {
|
|
15609
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields`, {
|
|
15762
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields`, {
|
|
15610
15763
|
signal,
|
|
15611
15764
|
searchParams: buildSearchParams$2({
|
|
15612
15765
|
entity_type,
|
|
@@ -15614,43 +15767,47 @@ async function getCustomFieldsClassic(httpClient, organization_id, workspace_id,
|
|
|
15614
15767
|
per_page,
|
|
15615
15768
|
order_by
|
|
15616
15769
|
})
|
|
15617
|
-
}).json();
|
|
15770
|
+
})).json();
|
|
15618
15771
|
}
|
|
15619
15772
|
async function createCustomField(httpClient, organization_id, workspace_id, data, signal) {
|
|
15620
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields`, {
|
|
15773
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields`, {
|
|
15621
15774
|
signal,
|
|
15622
15775
|
json: data
|
|
15623
|
-
}).json();
|
|
15776
|
+
})).json();
|
|
15624
15777
|
}
|
|
15625
15778
|
async function updateCustomFieldsOrder(httpClient, organization_id, workspace_id, data, signal) {
|
|
15626
|
-
|
|
15779
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/order`, {
|
|
15627
15780
|
signal,
|
|
15628
15781
|
json: data
|
|
15629
|
-
})
|
|
15782
|
+
});
|
|
15783
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15784
|
+
return response.json();
|
|
15630
15785
|
}
|
|
15631
15786
|
async function getCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
15632
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
|
|
15787
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal })).json();
|
|
15633
15788
|
}
|
|
15634
15789
|
async function updateCustomField(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
|
|
15635
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, {
|
|
15790
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, {
|
|
15636
15791
|
signal,
|
|
15637
15792
|
json: data
|
|
15638
|
-
}).json();
|
|
15793
|
+
})).json();
|
|
15639
15794
|
}
|
|
15640
15795
|
async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
15641
|
-
|
|
15796
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal });
|
|
15797
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15798
|
+
return response.json();
|
|
15642
15799
|
}
|
|
15643
15800
|
async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
15644
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
|
|
15801
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal })).json();
|
|
15645
15802
|
}
|
|
15646
15803
|
async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
|
|
15647
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
|
|
15804
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
|
|
15648
15805
|
signal,
|
|
15649
15806
|
json: data
|
|
15650
|
-
}).json();
|
|
15807
|
+
})).json();
|
|
15651
15808
|
}
|
|
15652
15809
|
async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
|
|
15653
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
15810
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
15654
15811
|
signal,
|
|
15655
15812
|
searchParams: buildSearchParams$2({
|
|
15656
15813
|
name,
|
|
@@ -15658,62 +15815,68 @@ async function getCustomFieldOptionsClassic(httpClient, organization_id, workspa
|
|
|
15658
15815
|
per_page,
|
|
15659
15816
|
order_by
|
|
15660
15817
|
})
|
|
15661
|
-
}).json();
|
|
15818
|
+
})).json();
|
|
15662
15819
|
}
|
|
15663
15820
|
async function createCustomFieldOption(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
|
|
15664
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
15821
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
15665
15822
|
signal,
|
|
15666
15823
|
json: data
|
|
15667
|
-
}).json();
|
|
15824
|
+
})).json();
|
|
15668
15825
|
}
|
|
15669
15826
|
async function updateCustomFieldOptionsOrder(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
|
|
15670
|
-
|
|
15827
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options/order`, {
|
|
15671
15828
|
signal,
|
|
15672
15829
|
json: data
|
|
15673
|
-
})
|
|
15830
|
+
});
|
|
15831
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15832
|
+
return response.json();
|
|
15674
15833
|
}
|
|
15675
15834
|
async function updateCustomFieldOption(httpClient, organization_id, workspace_id, custom_field_id, option_id, data, signal) {
|
|
15676
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options/${option_id}`, {
|
|
15835
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options/${option_id}`, {
|
|
15677
15836
|
signal,
|
|
15678
15837
|
json: data
|
|
15679
|
-
}).json();
|
|
15838
|
+
})).json();
|
|
15680
15839
|
}
|
|
15681
15840
|
async function deleteCustomFieldOption(httpClient, organization_id, workspace_id, custom_field_id, option_id, signal) {
|
|
15682
|
-
|
|
15841
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options/${option_id}`, { signal });
|
|
15842
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15843
|
+
return response.json();
|
|
15683
15844
|
}
|
|
15684
15845
|
async function patchUserCustomFieldValues(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
15685
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/users/${user_id}/custom-field-values`, {
|
|
15846
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/users/${user_id}/custom-field-values`, {
|
|
15686
15847
|
signal,
|
|
15687
15848
|
json: data
|
|
15688
|
-
}).json();
|
|
15849
|
+
})).json();
|
|
15689
15850
|
}
|
|
15690
15851
|
//#endregion
|
|
15691
15852
|
//#region ../focus-queries/dist/customreports/requests.ts
|
|
15692
15853
|
async function getCustomReports(httpClient, workspace_id, signal) {
|
|
15693
|
-
return await httpClient.get(`workspaces/${workspace_id}/custom-reports`, { signal }).json();
|
|
15854
|
+
return (await httpClient.get(`workspaces/${workspace_id}/custom-reports`, { signal })).json();
|
|
15694
15855
|
}
|
|
15695
15856
|
async function createACustomReport(httpClient, workspace_id, data, signal) {
|
|
15696
|
-
return await httpClient.post(`workspaces/${workspace_id}/custom-reports`, {
|
|
15857
|
+
return (await httpClient.post(`workspaces/${workspace_id}/custom-reports`, {
|
|
15697
15858
|
signal,
|
|
15698
15859
|
json: data
|
|
15699
|
-
}).json();
|
|
15860
|
+
})).json();
|
|
15700
15861
|
}
|
|
15701
15862
|
async function getACustomReport(httpClient, workspace_id, id, signal) {
|
|
15702
|
-
return await httpClient.get(`workspaces/${workspace_id}/custom-reports/${id}`, { signal }).json();
|
|
15863
|
+
return (await httpClient.get(`workspaces/${workspace_id}/custom-reports/${id}`, { signal })).json();
|
|
15703
15864
|
}
|
|
15704
15865
|
async function saveACustomReport(httpClient, workspace_id, id, data, signal) {
|
|
15705
|
-
return await httpClient.put(`workspaces/${workspace_id}/custom-reports/${id}`, {
|
|
15866
|
+
return (await httpClient.put(`workspaces/${workspace_id}/custom-reports/${id}`, {
|
|
15706
15867
|
signal,
|
|
15707
15868
|
json: data
|
|
15708
|
-
}).json();
|
|
15869
|
+
})).json();
|
|
15709
15870
|
}
|
|
15710
15871
|
async function deleteACustomReport(httpClient, workspace_id, id, signal) {
|
|
15711
|
-
|
|
15872
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/custom-reports/${id}`, { signal });
|
|
15873
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15874
|
+
return response.json();
|
|
15712
15875
|
}
|
|
15713
15876
|
//#endregion
|
|
15714
15877
|
//#region ../focus-queries/dist/designations/requests.ts
|
|
15715
15878
|
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { designation_id, name, include_members, has_members, page, per_page, order_by } = {}, signal) {
|
|
15716
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
15879
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
15717
15880
|
signal,
|
|
15718
15881
|
searchParams: buildSearchParams$2({
|
|
15719
15882
|
designation_id,
|
|
@@ -15724,134 +15887,146 @@ async function getWorkspaceDesignationsClassic(httpClient, organization_id, work
|
|
|
15724
15887
|
per_page,
|
|
15725
15888
|
order_by
|
|
15726
15889
|
})
|
|
15727
|
-
}).json();
|
|
15890
|
+
})).json();
|
|
15728
15891
|
}
|
|
15729
15892
|
async function createWorkspaceDesignation(httpClient, organization_id, workspace_id, data, signal) {
|
|
15730
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
15893
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
15731
15894
|
signal,
|
|
15732
15895
|
json: data
|
|
15733
|
-
}).json();
|
|
15896
|
+
})).json();
|
|
15734
15897
|
}
|
|
15735
15898
|
async function bulkCreateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
|
|
15736
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
15899
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
15737
15900
|
signal,
|
|
15738
15901
|
json: data
|
|
15739
|
-
}).json();
|
|
15902
|
+
})).json();
|
|
15740
15903
|
}
|
|
15741
15904
|
async function bulkDeleteWorkspaceDesignations(httpClient, organization_id, workspace_id, ids, all_or_none, signal) {
|
|
15742
|
-
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
15905
|
+
return (await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
15743
15906
|
signal,
|
|
15744
15907
|
searchParams: buildSearchParams$2({
|
|
15745
15908
|
ids,
|
|
15746
15909
|
all_or_none
|
|
15747
15910
|
})
|
|
15748
|
-
}).json();
|
|
15911
|
+
})).json();
|
|
15749
15912
|
}
|
|
15750
15913
|
async function bulkUpdateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
|
|
15751
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
15914
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
15752
15915
|
signal,
|
|
15753
15916
|
json: data
|
|
15754
|
-
}).json();
|
|
15917
|
+
})).json();
|
|
15755
15918
|
}
|
|
15756
15919
|
async function updateWorkspaceDesignationMembers(httpClient, organization_id, workspace_id, data, signal) {
|
|
15757
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/members`, {
|
|
15920
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/members`, {
|
|
15758
15921
|
signal,
|
|
15759
15922
|
json: data
|
|
15760
|
-
}).json();
|
|
15923
|
+
})).json();
|
|
15761
15924
|
}
|
|
15762
15925
|
async function getProjectDesignations(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
15763
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
15926
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
15764
15927
|
signal,
|
|
15765
15928
|
searchParams: buildSearchParams$2({ order_by })
|
|
15766
|
-
}).json();
|
|
15929
|
+
})).json();
|
|
15767
15930
|
}
|
|
15768
15931
|
async function createProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15769
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
15932
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
15770
15933
|
signal,
|
|
15771
15934
|
json: data
|
|
15772
|
-
}).json();
|
|
15935
|
+
})).json();
|
|
15773
15936
|
}
|
|
15774
15937
|
async function deleteProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15775
|
-
|
|
15938
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
15776
15939
|
signal,
|
|
15777
15940
|
json: data
|
|
15778
|
-
})
|
|
15941
|
+
});
|
|
15942
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15943
|
+
return response.json();
|
|
15779
15944
|
}
|
|
15780
15945
|
async function updateProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15781
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
15946
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
15782
15947
|
signal,
|
|
15783
15948
|
json: data
|
|
15784
|
-
}).json();
|
|
15949
|
+
})).json();
|
|
15785
15950
|
}
|
|
15786
15951
|
async function getProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
15787
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, { signal }).json();
|
|
15952
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, { signal })).json();
|
|
15788
15953
|
}
|
|
15789
15954
|
async function createProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15790
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
15955
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
15791
15956
|
signal,
|
|
15792
15957
|
json: data
|
|
15793
|
-
}).json();
|
|
15958
|
+
})).json();
|
|
15794
15959
|
}
|
|
15795
15960
|
async function deleteProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15796
|
-
|
|
15961
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
15797
15962
|
signal,
|
|
15798
15963
|
json: data
|
|
15799
|
-
})
|
|
15964
|
+
});
|
|
15965
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15966
|
+
return response.json();
|
|
15800
15967
|
}
|
|
15801
15968
|
async function updateProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15802
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
15969
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
15803
15970
|
signal,
|
|
15804
15971
|
json: data
|
|
15805
|
-
}).json();
|
|
15972
|
+
})).json();
|
|
15806
15973
|
}
|
|
15807
15974
|
async function deleteWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, signal) {
|
|
15808
|
-
|
|
15975
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, { signal });
|
|
15976
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15977
|
+
return response.json();
|
|
15809
15978
|
}
|
|
15810
15979
|
async function updateWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, data, signal) {
|
|
15811
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, {
|
|
15980
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, {
|
|
15812
15981
|
signal,
|
|
15813
15982
|
json: data
|
|
15814
|
-
}).json();
|
|
15983
|
+
})).json();
|
|
15815
15984
|
}
|
|
15816
15985
|
//#endregion
|
|
15817
15986
|
//#region ../focus-queries/dist/goals/requests.ts
|
|
15818
15987
|
async function createGoal(httpClient, organization_id, workspace_id, data, signal) {
|
|
15819
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals`, {
|
|
15988
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals`, {
|
|
15820
15989
|
signal,
|
|
15821
15990
|
json: data
|
|
15822
|
-
}).json();
|
|
15991
|
+
})).json();
|
|
15823
15992
|
}
|
|
15824
15993
|
async function reorderGoals(httpClient, organization_id, workspace_id, data, signal) {
|
|
15825
|
-
|
|
15994
|
+
const response = await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/goals/positions`, {
|
|
15826
15995
|
signal,
|
|
15827
15996
|
json: data
|
|
15828
|
-
})
|
|
15997
|
+
});
|
|
15998
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15999
|
+
return response.json();
|
|
15829
16000
|
}
|
|
15830
16001
|
async function previewGoalTrackedTime(httpClient, organization_id, workspace_id, data, signal) {
|
|
15831
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals/preview`, {
|
|
16002
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals/preview`, {
|
|
15832
16003
|
signal,
|
|
15833
16004
|
json: data
|
|
15834
|
-
}).json();
|
|
16005
|
+
})).json();
|
|
15835
16006
|
}
|
|
15836
16007
|
async function getGoal(httpClient, organization_id, workspace_id, goal_id, signal) {
|
|
15837
|
-
|
|
16008
|
+
const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/goals/${goal_id}`, { signal });
|
|
16009
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16010
|
+
return response.json();
|
|
15838
16011
|
}
|
|
15839
16012
|
async function deleteGoal(httpClient, organization_id, workspace_id, goal_id, signal) {
|
|
15840
|
-
|
|
16013
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/goals/${goal_id}`, { signal });
|
|
16014
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16015
|
+
return response.json();
|
|
15841
16016
|
}
|
|
15842
16017
|
async function updateGoal(httpClient, organization_id, workspace_id, goal_id, data, signal) {
|
|
15843
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/goals/${goal_id}`, {
|
|
16018
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/goals/${goal_id}`, {
|
|
15844
16019
|
signal,
|
|
15845
16020
|
json: data
|
|
15846
|
-
}).json();
|
|
16021
|
+
})).json();
|
|
15847
16022
|
}
|
|
15848
16023
|
async function getGoals(httpClient, organization_id, workspace_id, signal) {
|
|
15849
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/users/me/goals`, { signal }).json();
|
|
16024
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/users/me/goals`, { signal })).json();
|
|
15850
16025
|
}
|
|
15851
16026
|
//#endregion
|
|
15852
16027
|
//#region ../focus-queries/dist/labor-costs/requests.ts
|
|
15853
16028
|
async function getAllProjectUserLaborCostRates(httpClient, organization_id, workspace_id, { project_id, user_id, date, order_by } = {}, signal) {
|
|
15854
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/users/rates`, {
|
|
16029
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/users/rates`, {
|
|
15855
16030
|
signal,
|
|
15856
16031
|
searchParams: buildSearchParams$2({
|
|
15857
16032
|
project_id,
|
|
@@ -15859,144 +16034,162 @@ async function getAllProjectUserLaborCostRates(httpClient, organization_id, work
|
|
|
15859
16034
|
date,
|
|
15860
16035
|
order_by
|
|
15861
16036
|
})
|
|
15862
|
-
}).json();
|
|
16037
|
+
})).json();
|
|
15863
16038
|
}
|
|
15864
16039
|
async function getProjectLaborCostRates(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
15865
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates`, {
|
|
16040
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates`, {
|
|
15866
16041
|
signal,
|
|
15867
16042
|
searchParams: buildSearchParams$2({ order_by })
|
|
15868
|
-
}).json();
|
|
16043
|
+
})).json();
|
|
15869
16044
|
}
|
|
15870
16045
|
async function upsertProjectLaborCostRate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15871
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates`, {
|
|
16046
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates`, {
|
|
15872
16047
|
signal,
|
|
15873
16048
|
json: data
|
|
15874
|
-
}).json();
|
|
16049
|
+
})).json();
|
|
15875
16050
|
}
|
|
15876
16051
|
async function deleteProjectLaborCostRateRange(httpClient, organization_id, workspace_id, project_id, from, to, signal) {
|
|
15877
|
-
|
|
16052
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates`, {
|
|
15878
16053
|
signal,
|
|
15879
16054
|
searchParams: buildSearchParams$2({
|
|
15880
16055
|
from,
|
|
15881
16056
|
to
|
|
15882
16057
|
})
|
|
15883
|
-
})
|
|
16058
|
+
});
|
|
16059
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16060
|
+
return response.json();
|
|
15884
16061
|
}
|
|
15885
16062
|
async function checkProjectLaborCostConflicts(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15886
|
-
|
|
16063
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/rates/check`, {
|
|
15887
16064
|
signal,
|
|
15888
16065
|
json: data
|
|
15889
|
-
})
|
|
16066
|
+
});
|
|
16067
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16068
|
+
return response.json();
|
|
15890
16069
|
}
|
|
15891
16070
|
async function getProjectUserLaborCostRates(httpClient, organization_id, workspace_id, project_id, user_id, { order_by } = {}, signal) {
|
|
15892
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates`, {
|
|
16071
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates`, {
|
|
15893
16072
|
signal,
|
|
15894
16073
|
searchParams: buildSearchParams$2({ order_by })
|
|
15895
|
-
}).json();
|
|
16074
|
+
})).json();
|
|
15896
16075
|
}
|
|
15897
16076
|
async function upsertProjectUserLaborCostRate(httpClient, organization_id, workspace_id, project_id, user_id, data, signal) {
|
|
15898
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates`, {
|
|
16077
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates`, {
|
|
15899
16078
|
signal,
|
|
15900
16079
|
json: data
|
|
15901
|
-
}).json();
|
|
16080
|
+
})).json();
|
|
15902
16081
|
}
|
|
15903
16082
|
async function deleteProjectUserLaborCostRateRange(httpClient, organization_id, workspace_id, project_id, user_id, from, to, signal) {
|
|
15904
|
-
|
|
16083
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates`, {
|
|
15905
16084
|
signal,
|
|
15906
16085
|
searchParams: buildSearchParams$2({
|
|
15907
16086
|
from,
|
|
15908
16087
|
to
|
|
15909
16088
|
})
|
|
15910
|
-
})
|
|
16089
|
+
});
|
|
16090
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16091
|
+
return response.json();
|
|
15911
16092
|
}
|
|
15912
16093
|
async function checkProjectUserLaborCostConflicts(httpClient, organization_id, workspace_id, project_id, user_id, data, signal) {
|
|
15913
|
-
|
|
16094
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/projects/${project_id}/users/${user_id}/rates/check`, {
|
|
15914
16095
|
signal,
|
|
15915
16096
|
json: data
|
|
15916
|
-
})
|
|
16097
|
+
});
|
|
16098
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16099
|
+
return response.json();
|
|
15917
16100
|
}
|
|
15918
16101
|
async function deleteLaborCostRateById(httpClient, organization_id, workspace_id, rate_id, signal) {
|
|
15919
|
-
|
|
16102
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/rates/${rate_id}`, { signal });
|
|
16103
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16104
|
+
return response.json();
|
|
15920
16105
|
}
|
|
15921
16106
|
async function getAllWorkspaceUserLaborCostRates(httpClient, organization_id, workspace_id, { user_id, order_by } = {}, signal) {
|
|
15922
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates`, {
|
|
16107
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates`, {
|
|
15923
16108
|
signal,
|
|
15924
16109
|
searchParams: buildSearchParams$2({
|
|
15925
16110
|
user_id,
|
|
15926
16111
|
order_by
|
|
15927
16112
|
})
|
|
15928
|
-
}).json();
|
|
16113
|
+
})).json();
|
|
15929
16114
|
}
|
|
15930
16115
|
async function bulkUpsertWorkspaceUserLaborCostRate(httpClient, organization_id, workspace_id, data, signal) {
|
|
15931
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates/bulk`, {
|
|
16116
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates/bulk`, {
|
|
15932
16117
|
signal,
|
|
15933
16118
|
json: data
|
|
15934
|
-
}).json();
|
|
16119
|
+
})).json();
|
|
15935
16120
|
}
|
|
15936
16121
|
async function bulkCheckWorkspaceUserLaborCostRateConflicts(httpClient, organization_id, workspace_id, data, signal) {
|
|
15937
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates/check/bulk`, {
|
|
16122
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates/check/bulk`, {
|
|
15938
16123
|
signal,
|
|
15939
16124
|
json: data
|
|
15940
|
-
}).json();
|
|
16125
|
+
})).json();
|
|
15941
16126
|
}
|
|
15942
16127
|
async function getWorkspaceUserLaborCostRates(httpClient, organization_id, workspace_id, user_id, { order_by } = {}, signal) {
|
|
15943
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
|
|
16128
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
|
|
15944
16129
|
signal,
|
|
15945
16130
|
searchParams: buildSearchParams$2({ order_by })
|
|
15946
|
-
}).json();
|
|
16131
|
+
})).json();
|
|
15947
16132
|
}
|
|
15948
16133
|
async function upsertWorkspaceUserLaborCostRate(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
15949
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
|
|
16134
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
|
|
15950
16135
|
signal,
|
|
15951
16136
|
json: data
|
|
15952
|
-
}).json();
|
|
16137
|
+
})).json();
|
|
15953
16138
|
}
|
|
15954
16139
|
async function deleteWorkspaceUserLaborCostRateRange(httpClient, organization_id, workspace_id, user_id, from, to, signal) {
|
|
15955
|
-
|
|
16140
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
|
|
15956
16141
|
signal,
|
|
15957
16142
|
searchParams: buildSearchParams$2({
|
|
15958
16143
|
from,
|
|
15959
16144
|
to
|
|
15960
16145
|
})
|
|
15961
|
-
})
|
|
16146
|
+
});
|
|
16147
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16148
|
+
return response.json();
|
|
15962
16149
|
}
|
|
15963
16150
|
async function checkWorkspaceUserLaborCostConflicts(httpClient, organization_id, workspace_id, user_id, data, signal) {
|
|
15964
|
-
|
|
16151
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates/check`, {
|
|
15965
16152
|
signal,
|
|
15966
16153
|
json: data
|
|
15967
|
-
})
|
|
16154
|
+
});
|
|
16155
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16156
|
+
return response.json();
|
|
15968
16157
|
}
|
|
15969
16158
|
async function getWorkspaceLaborCostRates(httpClient, organization_id, workspace_id, { order_by } = {}, signal) {
|
|
15970
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates`, {
|
|
16159
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates`, {
|
|
15971
16160
|
signal,
|
|
15972
16161
|
searchParams: buildSearchParams$2({ order_by })
|
|
15973
|
-
}).json();
|
|
16162
|
+
})).json();
|
|
15974
16163
|
}
|
|
15975
16164
|
async function upsertWorkspaceLaborCostRate(httpClient, organization_id, workspace_id, data, signal) {
|
|
15976
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates`, {
|
|
16165
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates`, {
|
|
15977
16166
|
signal,
|
|
15978
16167
|
json: data
|
|
15979
|
-
}).json();
|
|
16168
|
+
})).json();
|
|
15980
16169
|
}
|
|
15981
16170
|
async function deleteWorkspaceLaborCostRateRange(httpClient, organization_id, workspace_id, from, to, signal) {
|
|
15982
|
-
|
|
16171
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates`, {
|
|
15983
16172
|
signal,
|
|
15984
16173
|
searchParams: buildSearchParams$2({
|
|
15985
16174
|
from,
|
|
15986
16175
|
to
|
|
15987
16176
|
})
|
|
15988
|
-
})
|
|
16177
|
+
});
|
|
16178
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16179
|
+
return response.json();
|
|
15989
16180
|
}
|
|
15990
16181
|
async function checkWorkspaceLaborCostConflicts(httpClient, organization_id, workspace_id, data, signal) {
|
|
15991
|
-
|
|
16182
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/workspace/rates/check`, {
|
|
15992
16183
|
signal,
|
|
15993
16184
|
json: data
|
|
15994
|
-
})
|
|
16185
|
+
});
|
|
16186
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16187
|
+
return response.json();
|
|
15995
16188
|
}
|
|
15996
16189
|
//#endregion
|
|
15997
16190
|
//#region ../focus-queries/dist/milestones/requests.ts
|
|
15998
16191
|
async function getMilestonesClassic(httpClient, workspace_id, { page, per_page, order_by, due_date_from, due_date_to, project_id, team_id } = {}, signal) {
|
|
15999
|
-
return await httpClient.get(`workspaces/${workspace_id}/milestones`, {
|
|
16192
|
+
return (await httpClient.get(`workspaces/${workspace_id}/milestones`, {
|
|
16000
16193
|
signal,
|
|
16001
16194
|
searchParams: buildSearchParams$2({
|
|
16002
16195
|
page,
|
|
@@ -16007,16 +16200,16 @@ async function getMilestonesClassic(httpClient, workspace_id, { page, per_page,
|
|
|
16007
16200
|
project_id,
|
|
16008
16201
|
team_id
|
|
16009
16202
|
})
|
|
16010
|
-
}).json();
|
|
16203
|
+
})).json();
|
|
16011
16204
|
}
|
|
16012
16205
|
async function createMilestone(httpClient, workspace_id, data, signal) {
|
|
16013
|
-
return await httpClient.post(`workspaces/${workspace_id}/milestones`, {
|
|
16206
|
+
return (await httpClient.post(`workspaces/${workspace_id}/milestones`, {
|
|
16014
16207
|
signal,
|
|
16015
16208
|
json: data
|
|
16016
|
-
}).json();
|
|
16209
|
+
})).json();
|
|
16017
16210
|
}
|
|
16018
16211
|
async function getMilestonesStream(httpClient, workspace_id, { order_by, due_date_from, due_date_to, project_id, team_id } = {}, signal) {
|
|
16019
|
-
return await httpClient.get(`workspaces/${workspace_id}/milestones/stream`, {
|
|
16212
|
+
return (await httpClient.get(`workspaces/${workspace_id}/milestones/stream`, {
|
|
16020
16213
|
signal,
|
|
16021
16214
|
searchParams: buildSearchParams$2({
|
|
16022
16215
|
order_by,
|
|
@@ -16025,33 +16218,41 @@ async function getMilestonesStream(httpClient, workspace_id, { order_by, due_dat
|
|
|
16025
16218
|
project_id,
|
|
16026
16219
|
team_id
|
|
16027
16220
|
})
|
|
16028
|
-
}).json();
|
|
16221
|
+
})).json();
|
|
16029
16222
|
}
|
|
16030
16223
|
async function getMilestone(httpClient, workspace_id, milestone_id, signal) {
|
|
16031
|
-
return await httpClient.get(`workspaces/${workspace_id}/milestones/${milestone_id}`, { signal }).json();
|
|
16224
|
+
return (await httpClient.get(`workspaces/${workspace_id}/milestones/${milestone_id}`, { signal })).json();
|
|
16032
16225
|
}
|
|
16033
16226
|
async function updateMilestone(httpClient, workspace_id, milestone_id, data, signal) {
|
|
16034
|
-
|
|
16227
|
+
const response = await httpClient.put(`workspaces/${workspace_id}/milestones/${milestone_id}`, {
|
|
16035
16228
|
signal,
|
|
16036
16229
|
json: data
|
|
16037
|
-
})
|
|
16230
|
+
});
|
|
16231
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16232
|
+
return response.json();
|
|
16038
16233
|
}
|
|
16039
16234
|
async function deleteMilestone(httpClient, workspace_id, milestone_id, signal) {
|
|
16040
|
-
|
|
16235
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/milestones/${milestone_id}`, { signal });
|
|
16236
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16237
|
+
return response.json();
|
|
16041
16238
|
}
|
|
16042
16239
|
async function partialUpdateMilestone(httpClient, workspace_id, milestone_id, data, signal) {
|
|
16043
|
-
|
|
16240
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/milestones/${milestone_id}`, {
|
|
16044
16241
|
signal,
|
|
16045
16242
|
json: data
|
|
16046
|
-
})
|
|
16243
|
+
});
|
|
16244
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16245
|
+
return response.json();
|
|
16047
16246
|
}
|
|
16048
16247
|
async function restoreMilestone(httpClient, workspace_id, milestone_id, signal) {
|
|
16049
|
-
|
|
16248
|
+
const response = await httpClient.patch(`workspaces/${workspace_id}/milestones/${milestone_id}/restore`, { signal });
|
|
16249
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16250
|
+
return response.json();
|
|
16050
16251
|
}
|
|
16051
16252
|
//#endregion
|
|
16052
16253
|
//#region ../focus-queries/dist/project-groups/requests.ts
|
|
16053
16254
|
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, project_id, start_date, end_date, user_id, only_me, include_drafts, include_recurring_series, cf_filter } = {}, signal) {
|
|
16054
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
|
|
16255
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
|
|
16055
16256
|
signal,
|
|
16056
16257
|
searchParams: buildSearchParams$2({
|
|
16057
16258
|
page,
|
|
@@ -16078,76 +16279,78 @@ async function getProjectGroupsClassic(httpClient, organization_id, workspace_id
|
|
|
16078
16279
|
include_recurring_series,
|
|
16079
16280
|
cf_filter
|
|
16080
16281
|
})
|
|
16081
|
-
}).json();
|
|
16282
|
+
})).json();
|
|
16082
16283
|
}
|
|
16083
16284
|
//#endregion
|
|
16084
16285
|
//#region ../focus-queries/dist/project-margin-targets/requests.ts
|
|
16085
16286
|
async function getProjectMarginTargets(httpClient, organization_id, workspace_id, signal) {
|
|
16086
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets`, { signal }).json();
|
|
16287
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets`, { signal })).json();
|
|
16087
16288
|
}
|
|
16088
16289
|
async function getWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
|
|
16089
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
|
|
16290
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal })).json();
|
|
16090
16291
|
}
|
|
16091
16292
|
async function setWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, data, signal) {
|
|
16092
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, {
|
|
16293
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, {
|
|
16093
16294
|
signal,
|
|
16094
16295
|
json: data
|
|
16095
|
-
}).json();
|
|
16296
|
+
})).json();
|
|
16096
16297
|
}
|
|
16097
16298
|
async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
16098
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
|
|
16299
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal })).json();
|
|
16099
16300
|
}
|
|
16100
16301
|
async function setProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
16101
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, {
|
|
16302
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, {
|
|
16102
16303
|
signal,
|
|
16103
16304
|
json: data
|
|
16104
|
-
}).json();
|
|
16305
|
+
})).json();
|
|
16105
16306
|
}
|
|
16106
16307
|
async function clearProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
16107
|
-
|
|
16308
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal });
|
|
16309
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16310
|
+
return response.json();
|
|
16108
16311
|
}
|
|
16109
16312
|
//#endregion
|
|
16110
16313
|
//#region ../focus-queries/dist/public-holidays/requests.ts
|
|
16111
16314
|
async function getPublicHolidaysByUserIds(httpClient, organization_id, { user_id, start_date, end_date }, signal) {
|
|
16112
|
-
return await httpClient.get(`organizations/${organization_id}/public-holidays`, {
|
|
16315
|
+
return (await httpClient.get(`organizations/${organization_id}/public-holidays`, {
|
|
16113
16316
|
signal,
|
|
16114
16317
|
searchParams: buildSearchParams$2({
|
|
16115
16318
|
user_id,
|
|
16116
16319
|
start_date,
|
|
16117
16320
|
end_date
|
|
16118
16321
|
})
|
|
16119
|
-
}).json();
|
|
16322
|
+
})).json();
|
|
16120
16323
|
}
|
|
16121
16324
|
//#endregion
|
|
16122
16325
|
//#region ../focus-queries/dist/publicsharedreports/requests.ts
|
|
16123
16326
|
async function openPublicSharedReport(httpClient, token, signal) {
|
|
16124
|
-
return await httpClient.get(`shared/${token}`, { signal }).json();
|
|
16327
|
+
return (await httpClient.get(`shared/${token}`, { signal })).json();
|
|
16125
16328
|
}
|
|
16126
16329
|
async function profitabilityPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
|
|
16127
|
-
return await httpClient.post(`shared/${token}/profitability`, {
|
|
16330
|
+
return (await httpClient.post(`shared/${token}/profitability`, {
|
|
16128
16331
|
signal,
|
|
16129
16332
|
json: data,
|
|
16130
16333
|
searchParams: buildSearchParams$2({
|
|
16131
16334
|
response_format,
|
|
16132
16335
|
include_dicts
|
|
16133
16336
|
})
|
|
16134
|
-
}).json();
|
|
16337
|
+
})).json();
|
|
16135
16338
|
}
|
|
16136
16339
|
async function queryPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
|
|
16137
|
-
return await httpClient.post(`shared/${token}/query`, {
|
|
16340
|
+
return (await httpClient.post(`shared/${token}/query`, {
|
|
16138
16341
|
signal,
|
|
16139
16342
|
json: data,
|
|
16140
16343
|
searchParams: buildSearchParams$2({
|
|
16141
16344
|
response_format,
|
|
16142
16345
|
include_dicts
|
|
16143
16346
|
})
|
|
16144
|
-
}).json();
|
|
16347
|
+
})).json();
|
|
16145
16348
|
}
|
|
16146
16349
|
async function workloadPublicSharedReport(httpClient, token, data, signal) {
|
|
16147
|
-
return await httpClient.post(`shared/${token}/workload`, {
|
|
16350
|
+
return (await httpClient.post(`shared/${token}/workload`, {
|
|
16148
16351
|
signal,
|
|
16149
16352
|
json: data
|
|
16150
|
-
}).json();
|
|
16353
|
+
})).json();
|
|
16151
16354
|
}
|
|
16152
16355
|
//#endregion
|
|
16153
16356
|
//#region ../focus-queries/dist/rates/requests.ts
|
|
@@ -16164,59 +16367,73 @@ async function getProjectRatesSummary(httpClient, organization_id, workspace_id,
|
|
|
16164
16367
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
16165
16368
|
}
|
|
16166
16369
|
async function getProjectRates(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
16167
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates`, {
|
|
16370
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates`, {
|
|
16168
16371
|
signal,
|
|
16169
16372
|
searchParams: buildSearchParams$2({ order_by })
|
|
16170
|
-
}).json();
|
|
16373
|
+
})).json();
|
|
16171
16374
|
}
|
|
16172
16375
|
async function createProjectRate(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
16173
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates`, {
|
|
16376
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates`, {
|
|
16174
16377
|
signal,
|
|
16175
16378
|
json: data
|
|
16176
|
-
}).json();
|
|
16379
|
+
})).json();
|
|
16177
16380
|
}
|
|
16178
16381
|
async function deleteProjectRate(httpClient, organization_id, workspace_id, project_id, from, to, signal) {
|
|
16179
|
-
|
|
16382
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates`, {
|
|
16180
16383
|
signal,
|
|
16181
16384
|
searchParams: buildSearchParams$2({
|
|
16182
16385
|
from,
|
|
16183
16386
|
to
|
|
16184
16387
|
})
|
|
16185
|
-
})
|
|
16388
|
+
});
|
|
16389
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16390
|
+
return response.json();
|
|
16186
16391
|
}
|
|
16187
16392
|
async function getCurrentProjectRate(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
16188
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates/current`, { signal }).json();
|
|
16393
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/${project_id}/rates/current`, { signal })).json();
|
|
16189
16394
|
}
|
|
16190
16395
|
//#endregion
|
|
16191
16396
|
//#region ../focus-queries/dist/recurring-budget-suggestions/requests.ts
|
|
16192
16397
|
async function getRecurringProjectBudgetSuggestion(httpClient, organization_id, workspace_id, project_id, { target_period_start }, signal) {
|
|
16193
|
-
|
|
16398
|
+
const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/recurring-budget-suggestions/${project_id}`, {
|
|
16194
16399
|
signal,
|
|
16195
16400
|
searchParams: buildSearchParams$2({ target_period_start })
|
|
16196
|
-
})
|
|
16401
|
+
});
|
|
16402
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16403
|
+
return response.json();
|
|
16197
16404
|
}
|
|
16198
16405
|
async function acceptARecurringProjectBudgetSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
16199
|
-
|
|
16406
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/recurring-budget-suggestions/${project_id}/accept`, { signal });
|
|
16407
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16408
|
+
return response.json();
|
|
16200
16409
|
}
|
|
16201
16410
|
async function dismissARecurringProjectBudgetSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
16202
|
-
|
|
16411
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/recurring-budget-suggestions/${project_id}/dismiss`, { signal });
|
|
16412
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16413
|
+
return response.json();
|
|
16203
16414
|
}
|
|
16204
16415
|
async function getTemplateEstimateSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
16205
|
-
|
|
16416
|
+
const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/template-estimate-suggestions/${project_id}`, { signal });
|
|
16417
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16418
|
+
return response.json();
|
|
16206
16419
|
}
|
|
16207
16420
|
async function acceptATemplateEstimateSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
16208
|
-
|
|
16421
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/template-estimate-suggestions/${project_id}/accept`, { signal });
|
|
16422
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16423
|
+
return response.json();
|
|
16209
16424
|
}
|
|
16210
16425
|
async function dismissATemplateEstimateSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
16211
|
-
|
|
16426
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/template-estimate-suggestions/${project_id}/dismiss`, { signal });
|
|
16427
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16428
|
+
return response.json();
|
|
16212
16429
|
}
|
|
16213
16430
|
//#endregion
|
|
16214
16431
|
//#region ../focus-queries/dist/reports/requests.ts
|
|
16215
16432
|
async function getForecastAvailability(httpClient, workspace_id, signal) {
|
|
16216
|
-
return await httpClient.get(`reports/workspaces/${workspace_id}/forecast-availability`, { signal }).json();
|
|
16433
|
+
return (await httpClient.get(`reports/workspaces/${workspace_id}/forecast-availability`, { signal })).json();
|
|
16217
16434
|
}
|
|
16218
16435
|
async function getProfitabilityReport(httpClient, workspace_id, data, response_format, include_dicts, xTogglReportExport, signal) {
|
|
16219
|
-
return await httpClient.post(`reports/workspaces/${workspace_id}/profitability`, {
|
|
16436
|
+
return (await httpClient.post(`reports/workspaces/${workspace_id}/profitability`, {
|
|
16220
16437
|
signal,
|
|
16221
16438
|
json: data,
|
|
16222
16439
|
headers: { "X-Toggl-Report-Export": xTogglReportExport },
|
|
@@ -16224,10 +16441,10 @@ async function getProfitabilityReport(httpClient, workspace_id, data, response_f
|
|
|
16224
16441
|
response_format,
|
|
16225
16442
|
include_dicts
|
|
16226
16443
|
})
|
|
16227
|
-
}).json();
|
|
16444
|
+
})).json();
|
|
16228
16445
|
}
|
|
16229
16446
|
async function getFlexqData(httpClient, workspace_id, data, { response_format, include_dicts = false, xTogglReportExport } = {}, signal) {
|
|
16230
|
-
return await httpClient.post(`reports/workspaces/${workspace_id}/query`, {
|
|
16447
|
+
return (await httpClient.post(`reports/workspaces/${workspace_id}/query`, {
|
|
16231
16448
|
signal,
|
|
16232
16449
|
json: data,
|
|
16233
16450
|
headers: { "X-Toggl-Report-Export": xTogglReportExport },
|
|
@@ -16235,78 +16452,82 @@ async function getFlexqData(httpClient, workspace_id, data, { response_format, i
|
|
|
16235
16452
|
response_format,
|
|
16236
16453
|
include_dicts
|
|
16237
16454
|
})
|
|
16238
|
-
}).json();
|
|
16455
|
+
})).json();
|
|
16239
16456
|
}
|
|
16240
16457
|
async function getFlexqDictionary(httpClient, workspace_id, data, signal) {
|
|
16241
|
-
return await httpClient.post(`reports/workspaces/${workspace_id}/query/dictionary`, {
|
|
16458
|
+
return (await httpClient.post(`reports/workspaces/${workspace_id}/query/dictionary`, {
|
|
16242
16459
|
signal,
|
|
16243
16460
|
json: data
|
|
16244
|
-
}).json();
|
|
16461
|
+
})).json();
|
|
16245
16462
|
}
|
|
16246
16463
|
async function getTimeAccountingReport(httpClient, workspace_id, data, signal) {
|
|
16247
|
-
return await httpClient.post(`reports/workspaces/${workspace_id}/time-accounting`, {
|
|
16464
|
+
return (await httpClient.post(`reports/workspaces/${workspace_id}/time-accounting`, {
|
|
16248
16465
|
signal,
|
|
16249
16466
|
json: data
|
|
16250
|
-
}).json();
|
|
16467
|
+
})).json();
|
|
16251
16468
|
}
|
|
16252
16469
|
async function getWorkloadReport(httpClient, workspace_id, data, xTogglReportExport, signal) {
|
|
16253
|
-
return await httpClient.post(`reports/workspaces/${workspace_id}/workload`, {
|
|
16470
|
+
return (await httpClient.post(`reports/workspaces/${workspace_id}/workload`, {
|
|
16254
16471
|
signal,
|
|
16255
16472
|
json: data,
|
|
16256
16473
|
headers: { "X-Toggl-Report-Export": xTogglReportExport }
|
|
16257
|
-
}).json();
|
|
16474
|
+
})).json();
|
|
16258
16475
|
}
|
|
16259
16476
|
//#endregion
|
|
16260
16477
|
//#region ../focus-queries/dist/reportschedules/requests.ts
|
|
16261
16478
|
async function upsertSavedViewSchedule(httpClient, workspace_id, id, data, signal) {
|
|
16262
|
-
return await httpClient.put(`workspaces/${workspace_id}/saved-views/${id}/schedule`, {
|
|
16479
|
+
return (await httpClient.put(`workspaces/${workspace_id}/saved-views/${id}/schedule`, {
|
|
16263
16480
|
signal,
|
|
16264
16481
|
json: data
|
|
16265
|
-
}).json();
|
|
16482
|
+
})).json();
|
|
16266
16483
|
}
|
|
16267
16484
|
async function upsertSharedReportSchedule(httpClient, workspace_id, id, data, signal) {
|
|
16268
|
-
return await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/schedule`, {
|
|
16485
|
+
return (await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/schedule`, {
|
|
16269
16486
|
signal,
|
|
16270
16487
|
json: data
|
|
16271
|
-
}).json();
|
|
16488
|
+
})).json();
|
|
16272
16489
|
}
|
|
16273
16490
|
async function deleteSharedReportSchedule(httpClient, workspace_id, id, signal) {
|
|
16274
|
-
|
|
16491
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/schedule`, { signal });
|
|
16492
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16493
|
+
return response.json();
|
|
16275
16494
|
}
|
|
16276
16495
|
//#endregion
|
|
16277
16496
|
//#region ../focus-queries/dist/savedviews/requests.ts
|
|
16278
16497
|
async function getSavedViews(httpClient, workspace_id, { name, type, order_by } = {}, signal) {
|
|
16279
|
-
return await httpClient.get(`workspaces/${workspace_id}/saved-views`, {
|
|
16498
|
+
return (await httpClient.get(`workspaces/${workspace_id}/saved-views`, {
|
|
16280
16499
|
signal,
|
|
16281
16500
|
searchParams: buildSearchParams$2({
|
|
16282
16501
|
name,
|
|
16283
16502
|
type,
|
|
16284
16503
|
order_by
|
|
16285
16504
|
})
|
|
16286
|
-
}).json();
|
|
16505
|
+
})).json();
|
|
16287
16506
|
}
|
|
16288
16507
|
async function createANewSavedView(httpClient, workspace_id, data, signal) {
|
|
16289
|
-
return await httpClient.post(`workspaces/${workspace_id}/saved-views`, {
|
|
16508
|
+
return (await httpClient.post(`workspaces/${workspace_id}/saved-views`, {
|
|
16290
16509
|
signal,
|
|
16291
16510
|
json: data
|
|
16292
|
-
}).json();
|
|
16511
|
+
})).json();
|
|
16293
16512
|
}
|
|
16294
16513
|
async function getASavedView(httpClient, workspace_id, id, signal) {
|
|
16295
|
-
return await httpClient.get(`workspaces/${workspace_id}/saved-views/${id}`, { signal }).json();
|
|
16514
|
+
return (await httpClient.get(`workspaces/${workspace_id}/saved-views/${id}`, { signal })).json();
|
|
16296
16515
|
}
|
|
16297
16516
|
async function deleteASavedView(httpClient, workspace_id, id, signal) {
|
|
16298
|
-
|
|
16517
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/saved-views/${id}`, { signal });
|
|
16518
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16519
|
+
return response.json();
|
|
16299
16520
|
}
|
|
16300
16521
|
async function updateASavedView(httpClient, workspace_id, id, data, signal) {
|
|
16301
|
-
return await httpClient.patch(`workspaces/${workspace_id}/saved-views/${id}`, {
|
|
16522
|
+
return (await httpClient.patch(`workspaces/${workspace_id}/saved-views/${id}`, {
|
|
16302
16523
|
signal,
|
|
16303
16524
|
json: data
|
|
16304
|
-
}).json();
|
|
16525
|
+
})).json();
|
|
16305
16526
|
}
|
|
16306
16527
|
//#endregion
|
|
16307
16528
|
//#region ../focus-queries/dist/search/requests.ts
|
|
16308
16529
|
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, exclude_project_completed, group_by_tags, only_me, occurrence_window_date }, signal) {
|
|
16309
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
16530
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
16310
16531
|
signal,
|
|
16311
16532
|
searchParams: buildSearchParams$2({
|
|
16312
16533
|
keyword,
|
|
@@ -16323,143 +16544,153 @@ async function search(httpClient, organization_id, workspace_id, { keyword, per_
|
|
|
16323
16544
|
only_me,
|
|
16324
16545
|
occurrence_window_date
|
|
16325
16546
|
})
|
|
16326
|
-
}).json();
|
|
16547
|
+
})).json();
|
|
16327
16548
|
}
|
|
16328
16549
|
async function searchMentions(httpClient, organization_id, workspace_id, { keyword, per_group } = {}, signal) {
|
|
16329
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search/mentions`, {
|
|
16550
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search/mentions`, {
|
|
16330
16551
|
signal,
|
|
16331
16552
|
searchParams: buildSearchParams$2({
|
|
16332
16553
|
keyword,
|
|
16333
16554
|
per_group
|
|
16334
16555
|
})
|
|
16335
|
-
}).json();
|
|
16556
|
+
})).json();
|
|
16336
16557
|
}
|
|
16337
16558
|
//#endregion
|
|
16338
16559
|
//#region ../focus-queries/dist/sharedreports/requests.ts
|
|
16339
16560
|
async function getMemberOwnedSharedReports(httpClient, organization_id, user_id, signal) {
|
|
16340
|
-
return await httpClient.get(`organizations/${organization_id}/users/${user_id}/shared-reports`, { signal }).json();
|
|
16561
|
+
return (await httpClient.get(`organizations/${organization_id}/users/${user_id}/shared-reports`, { signal })).json();
|
|
16341
16562
|
}
|
|
16342
16563
|
async function takeOverMemberSharedReports(httpClient, organization_id, user_id, signal) {
|
|
16343
|
-
return await httpClient.post(`organizations/${organization_id}/users/${user_id}/shared-reports/take-over`, { signal }).json();
|
|
16564
|
+
return (await httpClient.post(`organizations/${organization_id}/users/${user_id}/shared-reports/take-over`, { signal })).json();
|
|
16344
16565
|
}
|
|
16345
16566
|
async function shareSavedView(httpClient, workspace_id, id, data, signal) {
|
|
16346
|
-
return await httpClient.post(`workspaces/${workspace_id}/saved-views/${id}/share`, {
|
|
16567
|
+
return (await httpClient.post(`workspaces/${workspace_id}/saved-views/${id}/share`, {
|
|
16347
16568
|
signal,
|
|
16348
16569
|
json: data
|
|
16349
|
-
}).json();
|
|
16570
|
+
})).json();
|
|
16350
16571
|
}
|
|
16351
16572
|
async function getSavedViewSharedReport(httpClient, workspace_id, id, signal) {
|
|
16352
|
-
return await httpClient.get(`workspaces/${workspace_id}/saved-views/${id}/shared-report`, { signal }).json();
|
|
16573
|
+
return (await httpClient.get(`workspaces/${workspace_id}/saved-views/${id}/shared-report`, { signal })).json();
|
|
16353
16574
|
}
|
|
16354
16575
|
async function shareSavedViewMany(httpClient, workspace_id, id, data, signal) {
|
|
16355
|
-
return await httpClient.post(`workspaces/${workspace_id}/saved-views/${id}/shares`, {
|
|
16576
|
+
return (await httpClient.post(`workspaces/${workspace_id}/saved-views/${id}/shares`, {
|
|
16356
16577
|
signal,
|
|
16357
16578
|
json: data
|
|
16358
|
-
}).json();
|
|
16579
|
+
})).json();
|
|
16359
16580
|
}
|
|
16360
16581
|
async function getSharedReportsSharedByMe(httpClient, workspace_id, signal) {
|
|
16361
|
-
return await httpClient.get(`workspaces/${workspace_id}/shared-reports/shared-by-me`, { signal }).json();
|
|
16582
|
+
return (await httpClient.get(`workspaces/${workspace_id}/shared-reports/shared-by-me`, { signal })).json();
|
|
16362
16583
|
}
|
|
16363
16584
|
async function getSharedReportsSharedWithMe(httpClient, workspace_id, signal) {
|
|
16364
|
-
return await httpClient.get(`workspaces/${workspace_id}/shared-reports/shared-with-me`, { signal }).json();
|
|
16585
|
+
return (await httpClient.get(`workspaces/${workspace_id}/shared-reports/shared-with-me`, { signal })).json();
|
|
16365
16586
|
}
|
|
16366
16587
|
async function getSharedReportForViewer(httpClient, workspace_id, id, signal) {
|
|
16367
|
-
return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
|
|
16588
|
+
return (await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}`, { signal })).json();
|
|
16368
16589
|
}
|
|
16369
16590
|
async function unshareSharedReport(httpClient, workspace_id, id, signal) {
|
|
16370
|
-
|
|
16591
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}`, { signal });
|
|
16592
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16593
|
+
return response.json();
|
|
16371
16594
|
}
|
|
16372
16595
|
async function getSharedReportDates(httpClient, workspace_id, id, signal) {
|
|
16373
|
-
return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}/dates`, { signal }).json();
|
|
16596
|
+
return (await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}/dates`, { signal })).json();
|
|
16374
16597
|
}
|
|
16375
16598
|
async function setSharedReportDatesLock(httpClient, workspace_id, id, data, signal) {
|
|
16376
|
-
return await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/dates`, {
|
|
16599
|
+
return (await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/dates`, {
|
|
16377
16600
|
signal,
|
|
16378
16601
|
json: data
|
|
16379
|
-
}).json();
|
|
16602
|
+
})).json();
|
|
16380
16603
|
}
|
|
16381
16604
|
async function addSharedReportGrants(httpClient, workspace_id, id, data, signal) {
|
|
16382
|
-
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/grants`, {
|
|
16605
|
+
return (await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/grants`, {
|
|
16383
16606
|
signal,
|
|
16384
16607
|
json: data
|
|
16385
|
-
}).json();
|
|
16608
|
+
})).json();
|
|
16386
16609
|
}
|
|
16387
16610
|
async function revokeSharedReportGrant(httpClient, workspace_id, id, grant_id, signal) {
|
|
16388
|
-
|
|
16611
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/grants/${grant_id}`, { signal });
|
|
16612
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16613
|
+
return response.json();
|
|
16389
16614
|
}
|
|
16390
16615
|
async function mintSharedReportLink(httpClient, workspace_id, id, data, signal) {
|
|
16391
|
-
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link`, {
|
|
16616
|
+
return (await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link`, {
|
|
16392
16617
|
signal,
|
|
16393
16618
|
json: data
|
|
16394
|
-
}).json();
|
|
16619
|
+
})).json();
|
|
16395
16620
|
}
|
|
16396
16621
|
async function revokeSharedReportLink(httpClient, workspace_id, id, signal) {
|
|
16397
|
-
|
|
16622
|
+
const response = await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/link`, { signal });
|
|
16623
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16624
|
+
return response.json();
|
|
16398
16625
|
}
|
|
16399
16626
|
async function rotateSharedReportLink(httpClient, workspace_id, id, data, signal) {
|
|
16400
|
-
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link/rotate`, {
|
|
16627
|
+
return (await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link/rotate`, {
|
|
16401
16628
|
signal,
|
|
16402
16629
|
json: data
|
|
16403
|
-
}).json();
|
|
16630
|
+
})).json();
|
|
16404
16631
|
}
|
|
16405
16632
|
//#endregion
|
|
16406
16633
|
//#region ../focus-queries/dist/subscriptions/requests.ts
|
|
16407
16634
|
async function getCurrentSubscription(httpClient, organization_id, signal) {
|
|
16408
|
-
return await httpClient.get(`organizations/${organization_id}/subscriptions/current`, { signal }).json();
|
|
16635
|
+
return (await httpClient.get(`organizations/${organization_id}/subscriptions/current`, { signal })).json();
|
|
16409
16636
|
}
|
|
16410
16637
|
async function getFeaturesUpsell(httpClient, organization_id, signal) {
|
|
16411
|
-
return await httpClient.get(`organizations/${organization_id}/subscriptions/features-upsell`, { signal }).json();
|
|
16638
|
+
return (await httpClient.get(`organizations/${organization_id}/subscriptions/features-upsell`, { signal })).json();
|
|
16412
16639
|
}
|
|
16413
16640
|
async function getSubscriptionPlans(httpClient, organization_id, signal) {
|
|
16414
|
-
return await httpClient.get(`organizations/${organization_id}/subscriptions/plans`, { signal }).json();
|
|
16641
|
+
return (await httpClient.get(`organizations/${organization_id}/subscriptions/plans`, { signal })).json();
|
|
16415
16642
|
}
|
|
16416
16643
|
async function getCurrentTrial(httpClient, organization_id, signal) {
|
|
16417
|
-
|
|
16644
|
+
const response = await httpClient.get(`organizations/${organization_id}/subscriptions/trials/current`, { signal });
|
|
16645
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16646
|
+
return response.json();
|
|
16418
16647
|
}
|
|
16419
16648
|
async function upsertForcedTrial(httpClient, organization_id, workspace_id, data, signal) {
|
|
16420
|
-
|
|
16649
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/subscriptions/upsert-forced-trial`, {
|
|
16421
16650
|
signal,
|
|
16422
16651
|
json: data
|
|
16423
|
-
})
|
|
16652
|
+
});
|
|
16653
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16654
|
+
return response.json();
|
|
16424
16655
|
}
|
|
16425
16656
|
//#endregion
|
|
16426
16657
|
//#region ../focus-queries/dist/task-constraints/requests.ts
|
|
16427
16658
|
async function getTaskConstraints(httpClient, workspace_id, signal) {
|
|
16428
|
-
return await httpClient.get(`workspaces/${workspace_id}/task-constraints`, { signal }).json();
|
|
16659
|
+
return (await httpClient.get(`workspaces/${workspace_id}/task-constraints`, { signal })).json();
|
|
16429
16660
|
}
|
|
16430
16661
|
async function upsertTaskConstraints(httpClient, workspace_id, data, signal) {
|
|
16431
|
-
return await httpClient.put(`workspaces/${workspace_id}/task-constraints`, {
|
|
16662
|
+
return (await httpClient.put(`workspaces/${workspace_id}/task-constraints`, {
|
|
16432
16663
|
signal,
|
|
16433
16664
|
json: data
|
|
16434
|
-
}).json();
|
|
16665
|
+
})).json();
|
|
16435
16666
|
}
|
|
16436
16667
|
//#endregion
|
|
16437
16668
|
//#region ../focus-queries/dist/task-estimate-allocations/requests.ts
|
|
16438
16669
|
async function getTaskEstimateAllocations(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
16439
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, { signal }).json();
|
|
16670
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, { signal })).json();
|
|
16440
16671
|
}
|
|
16441
16672
|
async function createTaskEstimateAllocations(httpClient, organization_id, workspace_id, task_id, data, signal) {
|
|
16442
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
16673
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
16443
16674
|
signal,
|
|
16444
16675
|
json: data
|
|
16445
|
-
}).json();
|
|
16676
|
+
})).json();
|
|
16446
16677
|
}
|
|
16447
16678
|
async function deleteTaskEstimateAllocations(httpClient, organization_id, workspace_id, task_id, id, signal) {
|
|
16448
|
-
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
16679
|
+
return (await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
16449
16680
|
signal,
|
|
16450
16681
|
searchParams: buildSearchParams$2({ id })
|
|
16451
|
-
}).json();
|
|
16682
|
+
})).json();
|
|
16452
16683
|
}
|
|
16453
16684
|
async function updateTaskEstimateAllocations(httpClient, organization_id, workspace_id, task_id, data, signal) {
|
|
16454
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
16685
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/allocations`, {
|
|
16455
16686
|
signal,
|
|
16456
16687
|
json: data
|
|
16457
|
-
}).json();
|
|
16688
|
+
})).json();
|
|
16458
16689
|
}
|
|
16459
16690
|
//#endregion
|
|
16460
16691
|
//#region ../focus-queries/dist/task-groups/requests.ts
|
|
16461
16692
|
async function getUserTaskGroupsByProject(httpClient, organization_id, workspace_id, { project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, xTimelineFetchTrigger }, signal) {
|
|
16462
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
|
|
16693
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
|
|
16463
16694
|
signal,
|
|
16464
16695
|
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
16465
16696
|
searchParams: buildSearchParams$2({
|
|
@@ -16492,10 +16723,10 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
|
|
|
16492
16723
|
cf_filter,
|
|
16493
16724
|
user_cf_filter
|
|
16494
16725
|
})
|
|
16495
|
-
}).json();
|
|
16726
|
+
})).json();
|
|
16496
16727
|
}
|
|
16497
16728
|
async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id, { team_id, project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, xTimelineFetchTrigger } = {}, signal) {
|
|
16498
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
|
|
16729
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
|
|
16499
16730
|
signal,
|
|
16500
16731
|
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
16501
16732
|
searchParams: buildSearchParams$2({
|
|
@@ -16528,10 +16759,10 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
|
|
|
16528
16759
|
cf_filter,
|
|
16529
16760
|
user_cf_filter
|
|
16530
16761
|
})
|
|
16531
|
-
}).json();
|
|
16762
|
+
})).json();
|
|
16532
16763
|
}
|
|
16533
16764
|
async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, group, { source, priority, status_id, project_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, page, per_page, order_by, xTimelineFetchTrigger } = {}, signal) {
|
|
16534
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
16765
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
16535
16766
|
signal,
|
|
16536
16767
|
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
16537
16768
|
searchParams: buildSearchParams$2({
|
|
@@ -16567,43 +16798,43 @@ async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, g
|
|
|
16567
16798
|
per_page,
|
|
16568
16799
|
order_by
|
|
16569
16800
|
})
|
|
16570
|
-
}).json();
|
|
16801
|
+
})).json();
|
|
16571
16802
|
}
|
|
16572
16803
|
async function updateTaskGroups(httpClient, organization_id, workspace_id, group, data, signal) {
|
|
16573
|
-
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
16804
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
16574
16805
|
signal,
|
|
16575
16806
|
json: data
|
|
16576
|
-
}).json();
|
|
16807
|
+
})).json();
|
|
16577
16808
|
}
|
|
16578
16809
|
//#endregion
|
|
16579
16810
|
//#region ../focus-queries/dist/task-suggestions/requests.ts
|
|
16580
16811
|
async function getProjectSuggestionForATask(httpClient, organization_id, workspace_id, data, signal) {
|
|
16581
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/task-suggestions`, {
|
|
16812
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/task-suggestions`, {
|
|
16582
16813
|
signal,
|
|
16583
16814
|
json: data
|
|
16584
|
-
}).json();
|
|
16815
|
+
})).json();
|
|
16585
16816
|
}
|
|
16586
16817
|
async function getProjectSuggestionsForMultipleTasks(httpClient, organization_id, workspace_id, data, signal) {
|
|
16587
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/task-suggestions/bulk`, {
|
|
16818
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/task-suggestions/bulk`, {
|
|
16588
16819
|
signal,
|
|
16589
16820
|
json: data
|
|
16590
|
-
}).json();
|
|
16821
|
+
})).json();
|
|
16591
16822
|
}
|
|
16592
16823
|
//#endregion
|
|
16593
16824
|
//#region ../focus-queries/dist/time-entry-constraints/requests.ts
|
|
16594
16825
|
async function getTimeEntryConstraints(httpClient, workspace_id, signal) {
|
|
16595
|
-
return await httpClient.get(`workspaces/${workspace_id}/time-entry-constraints`, { signal }).json();
|
|
16826
|
+
return (await httpClient.get(`workspaces/${workspace_id}/time-entry-constraints`, { signal })).json();
|
|
16596
16827
|
}
|
|
16597
16828
|
async function upsertTimeEntryConstraints(httpClient, workspace_id, data, signal) {
|
|
16598
|
-
return await httpClient.put(`workspaces/${workspace_id}/time-entry-constraints`, {
|
|
16829
|
+
return (await httpClient.put(`workspaces/${workspace_id}/time-entry-constraints`, {
|
|
16599
16830
|
signal,
|
|
16600
16831
|
json: data
|
|
16601
|
-
}).json();
|
|
16832
|
+
})).json();
|
|
16602
16833
|
}
|
|
16603
16834
|
//#endregion
|
|
16604
16835
|
//#region ../focus-queries/dist/time-entry-groups/requests.ts
|
|
16605
16836
|
async function getTimeEntryGroupsUsersClassic(httpClient, organization_id, workspace_id, { start_date, end_date, user_id, page, per_page, order_by }, signal) {
|
|
16606
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/groups/users`, {
|
|
16837
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/groups/users`, {
|
|
16607
16838
|
signal,
|
|
16608
16839
|
searchParams: buildSearchParams$2({
|
|
16609
16840
|
start_date,
|
|
@@ -16613,71 +16844,73 @@ async function getTimeEntryGroupsUsersClassic(httpClient, organization_id, works
|
|
|
16613
16844
|
per_page,
|
|
16614
16845
|
order_by
|
|
16615
16846
|
})
|
|
16616
|
-
}).json();
|
|
16847
|
+
})).json();
|
|
16617
16848
|
}
|
|
16618
16849
|
//#endregion
|
|
16619
16850
|
//#region ../focus-queries/dist/time-off/requests.ts
|
|
16620
16851
|
async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, start_date, end_date }, signal) {
|
|
16621
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff`, {
|
|
16852
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff`, {
|
|
16622
16853
|
signal,
|
|
16623
16854
|
searchParams: buildSearchParams$2({
|
|
16624
16855
|
user_id,
|
|
16625
16856
|
start_date,
|
|
16626
16857
|
end_date
|
|
16627
16858
|
})
|
|
16628
|
-
}).json();
|
|
16859
|
+
})).json();
|
|
16629
16860
|
}
|
|
16630
16861
|
async function getTimeoffBalances(httpClient, organization_id, { user_id, category_id, date } = {}, signal) {
|
|
16631
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/balances`, {
|
|
16862
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/balances`, {
|
|
16632
16863
|
signal,
|
|
16633
16864
|
searchParams: buildSearchParams$2({
|
|
16634
16865
|
user_id,
|
|
16635
16866
|
category_id,
|
|
16636
16867
|
date
|
|
16637
16868
|
})
|
|
16638
|
-
}).json();
|
|
16869
|
+
})).json();
|
|
16639
16870
|
}
|
|
16640
16871
|
async function createTimeoffBalanceAdjustment(httpClient, organization_id, data, signal) {
|
|
16641
|
-
return await httpClient.post(`organizations/${organization_id}/timeoff/balances`, {
|
|
16872
|
+
return (await httpClient.post(`organizations/${organization_id}/timeoff/balances`, {
|
|
16642
16873
|
signal,
|
|
16643
16874
|
json: data
|
|
16644
|
-
}).json();
|
|
16875
|
+
})).json();
|
|
16645
16876
|
}
|
|
16646
16877
|
async function importTimeoffBalances(httpClient, organization_id, data, signal) {
|
|
16647
|
-
return await httpClient.post(`organizations/${organization_id}/timeoff/balances/bulk`, {
|
|
16878
|
+
return (await httpClient.post(`organizations/${organization_id}/timeoff/balances/bulk`, {
|
|
16648
16879
|
signal,
|
|
16649
16880
|
json: data
|
|
16650
|
-
}).json();
|
|
16881
|
+
})).json();
|
|
16651
16882
|
}
|
|
16652
16883
|
async function getTimeoffCategories(httpClient, organization_id, signal) {
|
|
16653
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/categories`, { signal }).json();
|
|
16884
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/categories`, { signal })).json();
|
|
16654
16885
|
}
|
|
16655
16886
|
async function createTimeoffCategory(httpClient, organization_id, data, signal) {
|
|
16656
|
-
return await httpClient.post(`organizations/${organization_id}/timeoff/categories`, {
|
|
16887
|
+
return (await httpClient.post(`organizations/${organization_id}/timeoff/categories`, {
|
|
16657
16888
|
signal,
|
|
16658
16889
|
json: data
|
|
16659
|
-
}).json();
|
|
16890
|
+
})).json();
|
|
16660
16891
|
}
|
|
16661
16892
|
async function getTimeoffCategory(httpClient, organization_id, category_id, signal) {
|
|
16662
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/categories/${category_id}`, { signal }).json();
|
|
16893
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/categories/${category_id}`, { signal })).json();
|
|
16663
16894
|
}
|
|
16664
16895
|
async function updateTimeoffCategory(httpClient, organization_id, category_id, data, signal) {
|
|
16665
|
-
return await httpClient.put(`organizations/${organization_id}/timeoff/categories/${category_id}`, {
|
|
16896
|
+
return (await httpClient.put(`organizations/${organization_id}/timeoff/categories/${category_id}`, {
|
|
16666
16897
|
signal,
|
|
16667
16898
|
json: data
|
|
16668
|
-
}).json();
|
|
16899
|
+
})).json();
|
|
16669
16900
|
}
|
|
16670
16901
|
async function deleteTimeoffCategory(httpClient, organization_id, category_id, signal) {
|
|
16671
|
-
|
|
16902
|
+
const response = await httpClient.delete(`organizations/${organization_id}/timeoff/categories/${category_id}`, { signal });
|
|
16903
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16904
|
+
return response.json();
|
|
16672
16905
|
}
|
|
16673
16906
|
async function archiveTimeoffCategory(httpClient, organization_id, category_id, signal) {
|
|
16674
|
-
return await httpClient.post(`organizations/${organization_id}/timeoff/categories/${category_id}/archive`, { signal }).json();
|
|
16907
|
+
return (await httpClient.post(`organizations/${organization_id}/timeoff/categories/${category_id}/archive`, { signal })).json();
|
|
16675
16908
|
}
|
|
16676
16909
|
async function restoreTimeoffCategory(httpClient, organization_id, category_id, signal) {
|
|
16677
|
-
return await httpClient.post(`organizations/${organization_id}/timeoff/categories/${category_id}/restore`, { signal }).json();
|
|
16910
|
+
return (await httpClient.post(`organizations/${organization_id}/timeoff/categories/${category_id}/restore`, { signal })).json();
|
|
16678
16911
|
}
|
|
16679
16912
|
async function getTimeoffEntriesClassic(httpClient, organization_id, { user_id, team_id, category_id, status, from, to, page, rows } = {}, signal) {
|
|
16680
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/entries`, {
|
|
16913
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/entries`, {
|
|
16681
16914
|
signal,
|
|
16682
16915
|
searchParams: buildSearchParams$2({
|
|
16683
16916
|
user_id,
|
|
@@ -16689,25 +16922,25 @@ async function getTimeoffEntriesClassic(httpClient, organization_id, { user_id,
|
|
|
16689
16922
|
page,
|
|
16690
16923
|
rows
|
|
16691
16924
|
})
|
|
16692
|
-
}).json();
|
|
16925
|
+
})).json();
|
|
16693
16926
|
}
|
|
16694
16927
|
async function getTimeoffEntry(httpClient, organization_id, entry_id, signal) {
|
|
16695
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/entries/${entry_id}`, { signal }).json();
|
|
16928
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/entries/${entry_id}`, { signal })).json();
|
|
16696
16929
|
}
|
|
16697
16930
|
async function approveTimeoffEntry(httpClient, organization_id, entry_id, signal) {
|
|
16698
|
-
return await httpClient.put(`organizations/${organization_id}/timeoff/entries/${entry_id}/approve`, { signal }).json();
|
|
16931
|
+
return (await httpClient.put(`organizations/${organization_id}/timeoff/entries/${entry_id}/approve`, { signal })).json();
|
|
16699
16932
|
}
|
|
16700
16933
|
async function cancelTimeoffEntry(httpClient, organization_id, entry_id, signal) {
|
|
16701
|
-
return await httpClient.put(`organizations/${organization_id}/timeoff/entries/${entry_id}/cancel`, { signal }).json();
|
|
16934
|
+
return (await httpClient.put(`organizations/${organization_id}/timeoff/entries/${entry_id}/cancel`, { signal })).json();
|
|
16702
16935
|
}
|
|
16703
16936
|
async function rejectTimeoffEntry(httpClient, organization_id, entry_id, data, signal) {
|
|
16704
|
-
return await httpClient.put(`organizations/${organization_id}/timeoff/entries/${entry_id}/reject`, {
|
|
16937
|
+
return (await httpClient.put(`organizations/${organization_id}/timeoff/entries/${entry_id}/reject`, {
|
|
16705
16938
|
signal,
|
|
16706
16939
|
json: data
|
|
16707
|
-
}).json();
|
|
16940
|
+
})).json();
|
|
16708
16941
|
}
|
|
16709
16942
|
async function getTimeoffAbsenceReport(httpClient, organization_id, { start_date, end_date, user_id, team_id, category_id, include_pending }, signal) {
|
|
16710
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/reports/absence`, {
|
|
16943
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/reports/absence`, {
|
|
16711
16944
|
signal,
|
|
16712
16945
|
searchParams: buildSearchParams$2({
|
|
16713
16946
|
start_date,
|
|
@@ -16717,10 +16950,10 @@ async function getTimeoffAbsenceReport(httpClient, organization_id, { start_date
|
|
|
16717
16950
|
category_id,
|
|
16718
16951
|
include_pending
|
|
16719
16952
|
})
|
|
16720
|
-
}).json();
|
|
16953
|
+
})).json();
|
|
16721
16954
|
}
|
|
16722
16955
|
async function getTimeoffTimeline(httpClient, organization_id, { user_id, team_id, category_id, status, from, to } = {}, signal) {
|
|
16723
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/timeline`, {
|
|
16956
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/timeline`, {
|
|
16724
16957
|
signal,
|
|
16725
16958
|
searchParams: buildSearchParams$2({
|
|
16726
16959
|
user_id,
|
|
@@ -16730,46 +16963,48 @@ async function getTimeoffTimeline(httpClient, organization_id, { user_id, team_i
|
|
|
16730
16963
|
from,
|
|
16731
16964
|
to
|
|
16732
16965
|
})
|
|
16733
|
-
}).json();
|
|
16966
|
+
})).json();
|
|
16734
16967
|
}
|
|
16735
16968
|
async function getTimeoffForUser(httpClient, organization_id, user_id, { from, to }, signal) {
|
|
16736
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
16969
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
16737
16970
|
signal,
|
|
16738
16971
|
searchParams: buildSearchParams$2({
|
|
16739
16972
|
from,
|
|
16740
16973
|
to
|
|
16741
16974
|
})
|
|
16742
|
-
}).json();
|
|
16975
|
+
})).json();
|
|
16743
16976
|
}
|
|
16744
16977
|
async function updateTimeoffForUser(httpClient, organization_id, user_id, data, signal) {
|
|
16745
|
-
return await httpClient.put(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
16978
|
+
return (await httpClient.put(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
16746
16979
|
signal,
|
|
16747
16980
|
json: data
|
|
16748
|
-
}).json();
|
|
16981
|
+
})).json();
|
|
16749
16982
|
}
|
|
16750
16983
|
async function createTimeoffForUser(httpClient, organization_id, user_id, data, signal) {
|
|
16751
|
-
return await httpClient.post(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
16984
|
+
return (await httpClient.post(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
16752
16985
|
signal,
|
|
16753
16986
|
json: data
|
|
16754
|
-
}).json();
|
|
16987
|
+
})).json();
|
|
16755
16988
|
}
|
|
16756
16989
|
async function deleteTimeoffForUser(httpClient, organization_id, user_id, data, signal) {
|
|
16757
|
-
|
|
16990
|
+
const response = await httpClient.delete(`organizations/${organization_id}/timeoff/users/${user_id}`, {
|
|
16758
16991
|
signal,
|
|
16759
16992
|
json: data
|
|
16760
|
-
})
|
|
16993
|
+
});
|
|
16994
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16995
|
+
return response.json();
|
|
16761
16996
|
}
|
|
16762
16997
|
async function getTimeoffBalancesForUser(httpClient, organization_id, user_id, { category_id, date } = {}, signal) {
|
|
16763
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances`, {
|
|
16998
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances`, {
|
|
16764
16999
|
signal,
|
|
16765
17000
|
searchParams: buildSearchParams$2({
|
|
16766
17001
|
category_id,
|
|
16767
17002
|
date
|
|
16768
17003
|
})
|
|
16769
|
-
}).json();
|
|
17004
|
+
})).json();
|
|
16770
17005
|
}
|
|
16771
17006
|
async function getTimeoffBalanceChangesForUserClassic(httpClient, organization_id, user_id, { category_id, year, page, rows }, signal) {
|
|
16772
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances/changes`, {
|
|
17007
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances/changes`, {
|
|
16773
17008
|
signal,
|
|
16774
17009
|
searchParams: buildSearchParams$2({
|
|
16775
17010
|
category_id,
|
|
@@ -16777,84 +17012,94 @@ async function getTimeoffBalanceChangesForUserClassic(httpClient, organization_i
|
|
|
16777
17012
|
page,
|
|
16778
17013
|
rows
|
|
16779
17014
|
})
|
|
16780
|
-
}).json();
|
|
17015
|
+
})).json();
|
|
16781
17016
|
}
|
|
16782
17017
|
async function getTimeoffWhosOut(httpClient, organization_id, { start_date, end_date }, signal) {
|
|
16783
|
-
return await httpClient.get(`organizations/${organization_id}/timeoff/whos-out`, {
|
|
17018
|
+
return (await httpClient.get(`organizations/${organization_id}/timeoff/whos-out`, {
|
|
16784
17019
|
signal,
|
|
16785
17020
|
searchParams: buildSearchParams$2({
|
|
16786
17021
|
start_date,
|
|
16787
17022
|
end_date
|
|
16788
17023
|
})
|
|
16789
|
-
}).json();
|
|
17024
|
+
})).json();
|
|
16790
17025
|
}
|
|
16791
17026
|
//#endregion
|
|
16792
17027
|
//#region ../focus-queries/dist/timesheet-setups/requests.ts
|
|
16793
17028
|
async function getTimesheetSetups(httpClient, organization_id, workspace_id, { include_discontinued, user_account_id, approver_user_account_id } = {}, signal) {
|
|
16794
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
|
|
17029
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
|
|
16795
17030
|
signal,
|
|
16796
17031
|
searchParams: buildSearchParams$2({
|
|
16797
17032
|
include_discontinued,
|
|
16798
17033
|
user_account_id,
|
|
16799
17034
|
approver_user_account_id
|
|
16800
17035
|
})
|
|
16801
|
-
}).json();
|
|
17036
|
+
})).json();
|
|
16802
17037
|
}
|
|
16803
17038
|
async function createTimesheetSetup(httpClient, organization_id, workspace_id, data, signal) {
|
|
16804
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
|
|
17039
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
|
|
16805
17040
|
signal,
|
|
16806
17041
|
json: data
|
|
16807
|
-
}).json();
|
|
17042
|
+
})).json();
|
|
16808
17043
|
}
|
|
16809
17044
|
async function getTimesheetSetup(httpClient, organization_id, workspace_id, setup_id, signal) {
|
|
16810
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}`, { signal }).json();
|
|
17045
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}`, { signal })).json();
|
|
16811
17046
|
}
|
|
16812
17047
|
async function updateTimesheetSetup(httpClient, organization_id, workspace_id, setup_id, data, signal) {
|
|
16813
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}`, {
|
|
17048
|
+
return (await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}`, {
|
|
16814
17049
|
signal,
|
|
16815
17050
|
json: data
|
|
16816
|
-
}).json();
|
|
17051
|
+
})).json();
|
|
16817
17052
|
}
|
|
16818
17053
|
async function deleteTimesheetSetup(httpClient, organization_id, workspace_id, setup_id, signal) {
|
|
16819
|
-
|
|
17054
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}`, { signal });
|
|
17055
|
+
if ([204, 205].includes(response.status)) return null;
|
|
17056
|
+
return response.json();
|
|
16820
17057
|
}
|
|
16821
17058
|
async function getTimesheetSetupApprovers(httpClient, organization_id, workspace_id, setup_id, signal) {
|
|
16822
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/approvers`, { signal }).json();
|
|
17059
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/approvers`, { signal })).json();
|
|
16823
17060
|
}
|
|
16824
17061
|
async function discontinueTimesheetSetup(httpClient, organization_id, workspace_id, setup_id, data, signal) {
|
|
16825
|
-
|
|
17062
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/discontinue`, {
|
|
16826
17063
|
signal,
|
|
16827
17064
|
json: data
|
|
16828
|
-
})
|
|
17065
|
+
});
|
|
17066
|
+
if ([204, 205].includes(response.status)) return null;
|
|
17067
|
+
return response.json();
|
|
16829
17068
|
}
|
|
16830
17069
|
async function getTimesheetSetupMembers(httpClient, organization_id, workspace_id, setup_id, { include_discontinued } = {}, signal) {
|
|
16831
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members`, {
|
|
17070
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members`, {
|
|
16832
17071
|
signal,
|
|
16833
17072
|
searchParams: buildSearchParams$2({ include_discontinued })
|
|
16834
|
-
}).json();
|
|
17073
|
+
})).json();
|
|
16835
17074
|
}
|
|
16836
17075
|
async function addTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, data, signal) {
|
|
16837
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}`, {
|
|
17076
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}`, {
|
|
16838
17077
|
signal,
|
|
16839
17078
|
json: data
|
|
16840
|
-
}).json();
|
|
17079
|
+
})).json();
|
|
16841
17080
|
}
|
|
16842
17081
|
async function deleteTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
|
|
16843
|
-
|
|
17082
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}`, { signal });
|
|
17083
|
+
if ([204, 205].includes(response.status)) return null;
|
|
17084
|
+
return response.json();
|
|
16844
17085
|
}
|
|
16845
17086
|
async function discontinueTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, data, signal) {
|
|
16846
|
-
|
|
17087
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/discontinue`, {
|
|
16847
17088
|
signal,
|
|
16848
17089
|
json: data
|
|
16849
|
-
})
|
|
17090
|
+
});
|
|
17091
|
+
if ([204, 205].includes(response.status)) return null;
|
|
17092
|
+
return response.json();
|
|
16850
17093
|
}
|
|
16851
17094
|
async function reactivateTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
|
|
16852
|
-
|
|
17095
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/reactivate`, { signal });
|
|
17096
|
+
if ([204, 205].includes(response.status)) return null;
|
|
17097
|
+
return response.json();
|
|
16853
17098
|
}
|
|
16854
17099
|
//#endregion
|
|
16855
17100
|
//#region ../focus-queries/dist/timesheets/requests.ts
|
|
16856
17101
|
async function getTimesheetsClassic(httpClient, organization_id, workspace_id, { date_from, date_to, setup_id, user_account_ids, approver_user_account_ids, team_ids, current_layer_approver_user_account_id, statuses, member_status, page, per_page }, signal) {
|
|
16857
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets`, {
|
|
17102
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets`, {
|
|
16858
17103
|
signal,
|
|
16859
17104
|
searchParams: buildSearchParams$2({
|
|
16860
17105
|
date_from,
|
|
@@ -16869,37 +17114,37 @@ async function getTimesheetsClassic(httpClient, organization_id, workspace_id, {
|
|
|
16869
17114
|
page,
|
|
16870
17115
|
per_page
|
|
16871
17116
|
})
|
|
16872
|
-
}).json();
|
|
17117
|
+
})).json();
|
|
16873
17118
|
}
|
|
16874
17119
|
async function getTimesheetApprovers(httpClient, organization_id, workspace_id, signal) {
|
|
16875
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/approvers`, { signal }).json();
|
|
17120
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/approvers`, { signal })).json();
|
|
16876
17121
|
}
|
|
16877
17122
|
async function bulkApproveTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
16878
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/approve`, {
|
|
17123
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/approve`, {
|
|
16879
17124
|
signal,
|
|
16880
17125
|
json: data
|
|
16881
|
-
}).json();
|
|
17126
|
+
})).json();
|
|
16882
17127
|
}
|
|
16883
17128
|
async function bulkRequestChangesTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
16884
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/request-changes`, {
|
|
17129
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/request-changes`, {
|
|
16885
17130
|
signal,
|
|
16886
17131
|
json: data
|
|
16887
|
-
}).json();
|
|
17132
|
+
})).json();
|
|
16888
17133
|
}
|
|
16889
17134
|
async function bulkSubmitTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
16890
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/submit`, {
|
|
17135
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/submit`, {
|
|
16891
17136
|
signal,
|
|
16892
17137
|
json: data
|
|
16893
|
-
}).json();
|
|
17138
|
+
})).json();
|
|
16894
17139
|
}
|
|
16895
17140
|
async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
16896
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/withdraw`, {
|
|
17141
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/withdraw`, {
|
|
16897
17142
|
signal,
|
|
16898
17143
|
json: data
|
|
16899
|
-
}).json();
|
|
17144
|
+
})).json();
|
|
16900
17145
|
}
|
|
16901
17146
|
async function getTimesheetStatusCounts(httpClient, organization_id, workspace_id, { date_from, date_to, setup_id, user_account_ids, approver_user_account_ids, team_ids, member_status }, signal) {
|
|
16902
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/counts`, {
|
|
17147
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/counts`, {
|
|
16903
17148
|
signal,
|
|
16904
17149
|
searchParams: buildSearchParams$2({
|
|
16905
17150
|
date_from,
|
|
@@ -16910,167 +17155,171 @@ async function getTimesheetStatusCounts(httpClient, organization_id, workspace_i
|
|
|
16910
17155
|
team_ids,
|
|
16911
17156
|
member_status
|
|
16912
17157
|
})
|
|
16913
|
-
}).json();
|
|
17158
|
+
})).json();
|
|
16914
17159
|
}
|
|
16915
17160
|
async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
|
|
16916
|
-
|
|
17161
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal });
|
|
17162
|
+
if ([204, 205].includes(response.status)) return null;
|
|
17163
|
+
return response.json();
|
|
16917
17164
|
}
|
|
16918
17165
|
async function getTimesheetDetails(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
16919
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}`, { signal }).json();
|
|
17166
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}`, { signal })).json();
|
|
16920
17167
|
}
|
|
16921
17168
|
async function approveTimesheet(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
16922
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/approve`, { signal }).json();
|
|
17169
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/approve`, { signal })).json();
|
|
16923
17170
|
}
|
|
16924
17171
|
async function getTimesheetFlags(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
16925
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/flags`, { signal }).json();
|
|
17172
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/flags`, { signal })).json();
|
|
16926
17173
|
}
|
|
16927
17174
|
async function addTimesheetFlag(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, data, signal) {
|
|
16928
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/flags`, {
|
|
17175
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/flags`, {
|
|
16929
17176
|
signal,
|
|
16930
17177
|
json: data
|
|
16931
|
-
}).json();
|
|
17178
|
+
})).json();
|
|
16932
17179
|
}
|
|
16933
17180
|
async function getTimesheetHistory(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
16934
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/history`, { signal }).json();
|
|
17181
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/history`, { signal })).json();
|
|
16935
17182
|
}
|
|
16936
17183
|
async function getTimesheetHours(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
16937
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/hours`, { signal }).json();
|
|
17184
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/hours`, { signal })).json();
|
|
16938
17185
|
}
|
|
16939
17186
|
async function requestChangesTimesheet(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, data, signal) {
|
|
16940
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/request-changes`, {
|
|
17187
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/request-changes`, {
|
|
16941
17188
|
signal,
|
|
16942
17189
|
json: data
|
|
16943
|
-
}).json();
|
|
17190
|
+
})).json();
|
|
16944
17191
|
}
|
|
16945
17192
|
async function resubmitTimesheet(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, data, signal) {
|
|
16946
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/resubmit`, {
|
|
17193
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/resubmit`, {
|
|
16947
17194
|
signal,
|
|
16948
17195
|
json: data
|
|
16949
|
-
}).json();
|
|
17196
|
+
})).json();
|
|
16950
17197
|
}
|
|
16951
17198
|
async function submitTimesheet(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
16952
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/submit`, { signal }).json();
|
|
17199
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/submit`, { signal })).json();
|
|
16953
17200
|
}
|
|
16954
17201
|
async function withdrawTimesheet(httpClient, organization_id, workspace_id, setup_id, start_date, user_account_id, signal) {
|
|
16955
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/withdraw`, { signal }).json();
|
|
17202
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/withdraw`, { signal })).json();
|
|
16956
17203
|
}
|
|
16957
17204
|
//#endregion
|
|
16958
17205
|
//#region ../focus-queries/dist/track-team-invites/requests.ts
|
|
16959
17206
|
async function postTrackTeamInvites(httpClient, organization_id, workspace_id, data, signal) {
|
|
16960
|
-
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/track-team-invites`, {
|
|
17207
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/track-team-invites`, {
|
|
16961
17208
|
signal,
|
|
16962
17209
|
json: data
|
|
16963
|
-
}).json();
|
|
17210
|
+
})).json();
|
|
16964
17211
|
}
|
|
16965
17212
|
//#endregion
|
|
16966
17213
|
//#region ../focus-queries/dist/user-settings/requests.ts
|
|
16967
17214
|
async function emailUnsubscribePage(httpClient, token, signal) {
|
|
16968
|
-
return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
|
|
17215
|
+
return (await httpClient.get(`email/unsubscribe/${token}`, { signal })).json();
|
|
16969
17216
|
}
|
|
16970
17217
|
async function emailUnsubscribe(httpClient, token, signal) {
|
|
16971
|
-
return await httpClient.post(`email/unsubscribe/${token}`, { signal }).json();
|
|
17218
|
+
return (await httpClient.post(`email/unsubscribe/${token}`, { signal })).json();
|
|
16972
17219
|
}
|
|
16973
17220
|
async function getUserSettings(httpClient, signal) {
|
|
16974
|
-
return await httpClient.get(`users/me/settings`, { signal }).json();
|
|
17221
|
+
return (await httpClient.get(`users/me/settings`, { signal })).json();
|
|
16975
17222
|
}
|
|
16976
17223
|
async function partialUpdateUserSettings(httpClient, data, signal) {
|
|
16977
|
-
return await httpClient.patch(`users/me/settings`, {
|
|
17224
|
+
return (await httpClient.patch(`users/me/settings`, {
|
|
16978
17225
|
signal,
|
|
16979
17226
|
json: data
|
|
16980
|
-
}).json();
|
|
17227
|
+
})).json();
|
|
16981
17228
|
}
|
|
16982
17229
|
//#endregion
|
|
16983
17230
|
//#region ../focus-queries/dist/user-workspace-settings/requests.ts
|
|
16984
17231
|
async function getUserWorkspaceSettings(httpClient, workspace_id, signal) {
|
|
16985
|
-
return await httpClient.get(`workspaces/${workspace_id}/users/me/settings`, { signal }).json();
|
|
17232
|
+
return (await httpClient.get(`workspaces/${workspace_id}/users/me/settings`, { signal })).json();
|
|
16986
17233
|
}
|
|
16987
17234
|
async function partialUpdateUserWorkspaceSettings(httpClient, workspace_id, data, signal) {
|
|
16988
|
-
return await httpClient.patch(`workspaces/${workspace_id}/users/me/settings`, {
|
|
17235
|
+
return (await httpClient.patch(`workspaces/${workspace_id}/users/me/settings`, {
|
|
16989
17236
|
signal,
|
|
16990
17237
|
json: data
|
|
16991
|
-
}).json();
|
|
17238
|
+
})).json();
|
|
16992
17239
|
}
|
|
16993
17240
|
//#endregion
|
|
16994
17241
|
//#region ../focus-queries/dist/version/requests.ts
|
|
16995
17242
|
async function serviceVersion(httpClient, signal) {
|
|
16996
|
-
return await httpClient.get(`version`, { signal }).json();
|
|
17243
|
+
return (await httpClient.get(`version`, { signal })).json();
|
|
16997
17244
|
}
|
|
16998
17245
|
//#endregion
|
|
16999
17246
|
//#region ../focus-queries/dist/work-preparation/requests.ts
|
|
17000
17247
|
async function getWorkPreparationClassic(httpClient, organization_id, workspace_id, { page } = {}, signal) {
|
|
17001
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/work-preparation`, {
|
|
17248
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/work-preparation`, {
|
|
17002
17249
|
signal,
|
|
17003
17250
|
searchParams: buildSearchParams$2({ page })
|
|
17004
|
-
}).json();
|
|
17251
|
+
})).json();
|
|
17005
17252
|
}
|
|
17006
17253
|
//#endregion
|
|
17007
17254
|
//#region ../focus-queries/dist/working-hours/requests.ts
|
|
17008
17255
|
async function replaceWorkingHoursForUsers(httpClient, organization_id, data, signal) {
|
|
17009
|
-
return await httpClient.put(`organizations/${organization_id}/workinghours/users`, {
|
|
17256
|
+
return (await httpClient.put(`organizations/${organization_id}/workinghours/users`, {
|
|
17010
17257
|
signal,
|
|
17011
17258
|
json: data
|
|
17012
|
-
}).json();
|
|
17259
|
+
})).json();
|
|
17013
17260
|
}
|
|
17014
17261
|
async function getWorkingHoursForUser(httpClient, organization_id, user_id, signal) {
|
|
17015
|
-
return await httpClient.get(`organizations/${organization_id}/workinghours/users/${user_id}`, { signal }).json();
|
|
17262
|
+
return (await httpClient.get(`organizations/${organization_id}/workinghours/users/${user_id}`, { signal })).json();
|
|
17016
17263
|
}
|
|
17017
17264
|
async function updateWorkingHoursForUser(httpClient, organization_id, user_id, data, signal) {
|
|
17018
|
-
return await httpClient.put(`organizations/${organization_id}/workinghours/users/${user_id}`, {
|
|
17265
|
+
return (await httpClient.put(`organizations/${organization_id}/workinghours/users/${user_id}`, {
|
|
17019
17266
|
signal,
|
|
17020
17267
|
json: data
|
|
17021
|
-
}).json();
|
|
17268
|
+
})).json();
|
|
17022
17269
|
}
|
|
17023
17270
|
async function createWorkingHoursForUser(httpClient, organization_id, user_id, data, signal) {
|
|
17024
|
-
return await httpClient.post(`organizations/${organization_id}/workinghours/users/${user_id}`, {
|
|
17271
|
+
return (await httpClient.post(`organizations/${organization_id}/workinghours/users/${user_id}`, {
|
|
17025
17272
|
signal,
|
|
17026
17273
|
json: data
|
|
17027
|
-
}).json();
|
|
17274
|
+
})).json();
|
|
17028
17275
|
}
|
|
17029
17276
|
async function deleteWorkingHoursForUser(httpClient, organization_id, user_id, data, signal) {
|
|
17030
|
-
|
|
17277
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workinghours/users/${user_id}`, {
|
|
17031
17278
|
signal,
|
|
17032
17279
|
json: data
|
|
17033
|
-
})
|
|
17280
|
+
});
|
|
17281
|
+
if ([204, 205].includes(response.status)) return null;
|
|
17282
|
+
return response.json();
|
|
17034
17283
|
}
|
|
17035
17284
|
//#endregion
|
|
17036
17285
|
//#region ../focus-queries/dist/workspace/requests.ts
|
|
17037
17286
|
async function getWorkspaceContext(httpClient, workspace_id, signal) {
|
|
17038
|
-
return await httpClient.get(`workspaces/${workspace_id}/context`, { signal }).json();
|
|
17287
|
+
return (await httpClient.get(`workspaces/${workspace_id}/context`, { signal })).json();
|
|
17039
17288
|
}
|
|
17040
17289
|
//#endregion
|
|
17041
17290
|
//#region ../focus-queries/dist/workspace-settings/requests.ts
|
|
17042
17291
|
async function getWorkspaceCurrency(httpClient, workspace_id, signal) {
|
|
17043
|
-
return await httpClient.get(`workspaces/${workspace_id}/currency`, { signal }).json();
|
|
17292
|
+
return (await httpClient.get(`workspaces/${workspace_id}/currency`, { signal })).json();
|
|
17044
17293
|
}
|
|
17045
17294
|
async function updateWorkspaceCurrency(httpClient, workspace_id, data, signal) {
|
|
17046
|
-
return await httpClient.patch(`workspaces/${workspace_id}/currency`, {
|
|
17295
|
+
return (await httpClient.patch(`workspaces/${workspace_id}/currency`, {
|
|
17047
17296
|
signal,
|
|
17048
17297
|
json: data
|
|
17049
|
-
}).json();
|
|
17298
|
+
})).json();
|
|
17050
17299
|
}
|
|
17051
17300
|
async function getWorkspaceExportBranding(httpClient, workspace_id, signal) {
|
|
17052
|
-
return await httpClient.get(`workspaces/${workspace_id}/export-branding`, { signal }).json();
|
|
17301
|
+
return (await httpClient.get(`workspaces/${workspace_id}/export-branding`, { signal })).json();
|
|
17053
17302
|
}
|
|
17054
17303
|
async function getUserPermissions(httpClient, workspace_id, signal) {
|
|
17055
|
-
return await httpClient.get(`workspaces/${workspace_id}/permissions`, { signal }).json();
|
|
17304
|
+
return (await httpClient.get(`workspaces/${workspace_id}/permissions`, { signal })).json();
|
|
17056
17305
|
}
|
|
17057
17306
|
async function getWorkspaceSettings(httpClient, workspace_id, signal) {
|
|
17058
|
-
return await httpClient.get(`workspaces/${workspace_id}/settings`, { signal }).json();
|
|
17307
|
+
return (await httpClient.get(`workspaces/${workspace_id}/settings`, { signal })).json();
|
|
17059
17308
|
}
|
|
17060
17309
|
async function updateWorkspaceSettings(httpClient, workspace_id, data, signal) {
|
|
17061
|
-
return await httpClient.put(`workspaces/${workspace_id}/settings`, {
|
|
17310
|
+
return (await httpClient.put(`workspaces/${workspace_id}/settings`, {
|
|
17062
17311
|
signal,
|
|
17063
17312
|
json: data
|
|
17064
|
-
}).json();
|
|
17313
|
+
})).json();
|
|
17065
17314
|
}
|
|
17066
17315
|
async function getWorkspaceWatermark(httpClient, workspace_id, signal) {
|
|
17067
|
-
return await httpClient.get(`workspaces/${workspace_id}/watermark`, { signal }).json();
|
|
17316
|
+
return (await httpClient.get(`workspaces/${workspace_id}/watermark`, { signal })).json();
|
|
17068
17317
|
}
|
|
17069
17318
|
async function updateWorkspaceWatermark(httpClient, workspace_id, data, signal) {
|
|
17070
|
-
return await httpClient.patch(`workspaces/${workspace_id}/watermark`, {
|
|
17319
|
+
return (await httpClient.patch(`workspaces/${workspace_id}/watermark`, {
|
|
17071
17320
|
signal,
|
|
17072
17321
|
json: data
|
|
17073
|
-
}).json();
|
|
17322
|
+
})).json();
|
|
17074
17323
|
}
|
|
17075
17324
|
//#endregion
|
|
17076
17325
|
//#region ../operations/build/index.public.js
|
|
@@ -19183,6 +19432,7 @@ const generatedFocusOperations = [
|
|
|
19183
19432
|
})),
|
|
19184
19433
|
period: /* @__PURE__ */ unknown$1(),
|
|
19185
19434
|
flexqFilters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
|
|
19435
|
+
shared_report: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
19186
19436
|
summary: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
|
|
19187
19437
|
metrics: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
|
|
19188
19438
|
hidden: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
@@ -19337,6 +19587,7 @@ const generatedFocusOperations = [
|
|
|
19337
19587
|
})),
|
|
19338
19588
|
period: /* @__PURE__ */ unknown$1(),
|
|
19339
19589
|
flexqFilters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
|
|
19590
|
+
shared_report: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
19340
19591
|
summary: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
|
|
19341
19592
|
metrics: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
|
|
19342
19593
|
hidden: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
@@ -32242,4 +32493,4 @@ Common commands:
|
|
|
32242
32493
|
//#endregion
|
|
32243
32494
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
32244
32495
|
|
|
32245
|
-
//# sourceMappingURL=program-
|
|
32496
|
+
//# sourceMappingURL=program-BFqUr3ZY.js.map
|