@keystrokehq/onedesk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-worklog.cjs +38 -0
- package/dist/actions/create-worklog.cjs.map +1 -0
- package/dist/actions/create-worklog.d.cts +9 -0
- package/dist/actions/create-worklog.d.cts.map +1 -0
- package/dist/actions/create-worklog.d.mts +9 -0
- package/dist/actions/create-worklog.d.mts.map +1 -0
- package/dist/actions/create-worklog.mjs +37 -0
- package/dist/actions/create-worklog.mjs.map +1 -0
- package/dist/actions/delete-attachment.cjs +20 -0
- package/dist/actions/delete-attachment.cjs.map +1 -0
- package/dist/actions/delete-attachment.d.cts +9 -0
- package/dist/actions/delete-attachment.d.cts.map +1 -0
- package/dist/actions/delete-attachment.d.mts +9 -0
- package/dist/actions/delete-attachment.d.mts.map +1 -0
- package/dist/actions/delete-attachment.mjs +17 -0
- package/dist/actions/delete-attachment.mjs.map +1 -0
- package/dist/actions/delete-comment.cjs +21 -0
- package/dist/actions/delete-comment.cjs.map +1 -0
- package/dist/actions/delete-comment.d.cts +9 -0
- package/dist/actions/delete-comment.d.cts.map +1 -0
- package/dist/actions/delete-comment.d.mts +9 -0
- package/dist/actions/delete-comment.d.mts.map +1 -0
- package/dist/actions/delete-comment.mjs +18 -0
- package/dist/actions/delete-comment.mjs.map +1 -0
- package/dist/actions/delete-customer.cjs +16 -0
- package/dist/actions/delete-customer.cjs.map +1 -0
- package/dist/actions/delete-customer.d.cts +9 -0
- package/dist/actions/delete-customer.d.cts.map +1 -0
- package/dist/actions/delete-customer.d.mts +9 -0
- package/dist/actions/delete-customer.d.mts.map +1 -0
- package/dist/actions/delete-customer.mjs +13 -0
- package/dist/actions/delete-customer.mjs.map +1 -0
- package/dist/actions/delete-message.cjs +19 -0
- package/dist/actions/delete-message.cjs.map +1 -0
- package/dist/actions/delete-message.d.cts +9 -0
- package/dist/actions/delete-message.d.cts.map +1 -0
- package/dist/actions/delete-message.d.mts +9 -0
- package/dist/actions/delete-message.d.mts.map +1 -0
- package/dist/actions/delete-message.mjs +16 -0
- package/dist/actions/delete-message.mjs.map +1 -0
- package/dist/actions/delete-project.cjs +19 -0
- package/dist/actions/delete-project.cjs.map +1 -0
- package/dist/actions/delete-project.d.cts +9 -0
- package/dist/actions/delete-project.d.cts.map +1 -0
- package/dist/actions/delete-project.d.mts +9 -0
- package/dist/actions/delete-project.d.mts.map +1 -0
- package/dist/actions/delete-project.mjs +16 -0
- package/dist/actions/delete-project.mjs.map +1 -0
- package/dist/actions/delete-requirement.cjs +16 -0
- package/dist/actions/delete-requirement.cjs.map +1 -0
- package/dist/actions/delete-requirement.d.cts +9 -0
- package/dist/actions/delete-requirement.d.cts.map +1 -0
- package/dist/actions/delete-requirement.d.mts +9 -0
- package/dist/actions/delete-requirement.d.mts.map +1 -0
- package/dist/actions/delete-requirement.mjs +13 -0
- package/dist/actions/delete-requirement.mjs.map +1 -0
- package/dist/actions/delete-task.cjs +19 -0
- package/dist/actions/delete-task.cjs.map +1 -0
- package/dist/actions/delete-task.d.cts +9 -0
- package/dist/actions/delete-task.d.cts.map +1 -0
- package/dist/actions/delete-task.d.mts +9 -0
- package/dist/actions/delete-task.d.mts.map +1 -0
- package/dist/actions/delete-task.mjs +16 -0
- package/dist/actions/delete-task.mjs.map +1 -0
- package/dist/actions/delete-ticket.cjs +21 -0
- package/dist/actions/delete-ticket.cjs.map +1 -0
- package/dist/actions/delete-ticket.d.cts +9 -0
- package/dist/actions/delete-ticket.d.cts.map +1 -0
- package/dist/actions/delete-ticket.d.mts +9 -0
- package/dist/actions/delete-ticket.d.mts.map +1 -0
- package/dist/actions/delete-ticket.mjs +18 -0
- package/dist/actions/delete-ticket.mjs.map +1 -0
- package/dist/actions/delete-timesheet.cjs +19 -0
- package/dist/actions/delete-timesheet.cjs.map +1 -0
- package/dist/actions/delete-timesheet.d.cts +9 -0
- package/dist/actions/delete-timesheet.d.cts.map +1 -0
- package/dist/actions/delete-timesheet.d.mts +9 -0
- package/dist/actions/delete-timesheet.d.mts.map +1 -0
- package/dist/actions/delete-timesheet.mjs +16 -0
- package/dist/actions/delete-timesheet.mjs.map +1 -0
- package/dist/actions/delete-user.cjs +20 -0
- package/dist/actions/delete-user.cjs.map +1 -0
- package/dist/actions/delete-user.d.cts +9 -0
- package/dist/actions/delete-user.d.cts.map +1 -0
- package/dist/actions/delete-user.d.mts +9 -0
- package/dist/actions/delete-user.d.mts.map +1 -0
- package/dist/actions/delete-user.mjs +17 -0
- package/dist/actions/delete-user.mjs.map +1 -0
- package/dist/actions/get-attachments.cjs +30 -0
- package/dist/actions/get-attachments.cjs.map +1 -0
- package/dist/actions/get-attachments.d.cts +9 -0
- package/dist/actions/get-attachments.d.cts.map +1 -0
- package/dist/actions/get-attachments.d.mts +9 -0
- package/dist/actions/get-attachments.d.mts.map +1 -0
- package/dist/actions/get-attachments.mjs +29 -0
- package/dist/actions/get-attachments.mjs.map +1 -0
- package/dist/actions/get-comment-details.cjs +23 -0
- package/dist/actions/get-comment-details.cjs.map +1 -0
- package/dist/actions/get-comment-details.d.cts +9 -0
- package/dist/actions/get-comment-details.d.cts.map +1 -0
- package/dist/actions/get-comment-details.d.mts +9 -0
- package/dist/actions/get-comment-details.d.mts.map +1 -0
- package/dist/actions/get-comment-details.mjs +20 -0
- package/dist/actions/get-comment-details.mjs.map +1 -0
- package/dist/actions/get-comments.cjs +24 -0
- package/dist/actions/get-comments.cjs.map +1 -0
- package/dist/actions/get-comments.d.cts +9 -0
- package/dist/actions/get-comments.d.cts.map +1 -0
- package/dist/actions/get-comments.d.mts +9 -0
- package/dist/actions/get-comments.d.mts.map +1 -0
- package/dist/actions/get-comments.mjs +23 -0
- package/dist/actions/get-comments.mjs.map +1 -0
- package/dist/actions/get-feedback-details.cjs +36 -0
- package/dist/actions/get-feedback-details.cjs.map +1 -0
- package/dist/actions/get-feedback-details.d.cts +9 -0
- package/dist/actions/get-feedback-details.d.cts.map +1 -0
- package/dist/actions/get-feedback-details.d.mts +9 -0
- package/dist/actions/get-feedback-details.d.mts.map +1 -0
- package/dist/actions/get-feedback-details.mjs +33 -0
- package/dist/actions/get-feedback-details.mjs.map +1 -0
- package/dist/actions/get-feedback.cjs +38 -0
- package/dist/actions/get-feedback.cjs.map +1 -0
- package/dist/actions/get-feedback.d.cts +9 -0
- package/dist/actions/get-feedback.d.cts.map +1 -0
- package/dist/actions/get-feedback.d.mts +9 -0
- package/dist/actions/get-feedback.d.mts.map +1 -0
- package/dist/actions/get-feedback.mjs +37 -0
- package/dist/actions/get-feedback.mjs.map +1 -0
- package/dist/actions/get-issue-details.cjs +28 -0
- package/dist/actions/get-issue-details.cjs.map +1 -0
- package/dist/actions/get-issue-details.d.cts +9 -0
- package/dist/actions/get-issue-details.d.cts.map +1 -0
- package/dist/actions/get-issue-details.d.mts +9 -0
- package/dist/actions/get-issue-details.d.mts.map +1 -0
- package/dist/actions/get-issue-details.mjs +25 -0
- package/dist/actions/get-issue-details.mjs.map +1 -0
- package/dist/actions/get-issues.cjs +29 -0
- package/dist/actions/get-issues.cjs.map +1 -0
- package/dist/actions/get-issues.d.cts +9 -0
- package/dist/actions/get-issues.d.cts.map +1 -0
- package/dist/actions/get-issues.d.mts +9 -0
- package/dist/actions/get-issues.d.mts.map +1 -0
- package/dist/actions/get-issues.mjs +28 -0
- package/dist/actions/get-issues.mjs.map +1 -0
- package/dist/actions/get-messages.cjs +39 -0
- package/dist/actions/get-messages.cjs.map +1 -0
- package/dist/actions/get-messages.d.cts +9 -0
- package/dist/actions/get-messages.d.cts.map +1 -0
- package/dist/actions/get-messages.d.mts +9 -0
- package/dist/actions/get-messages.d.mts.map +1 -0
- package/dist/actions/get-messages.mjs +38 -0
- package/dist/actions/get-messages.mjs.map +1 -0
- package/dist/actions/get-requirements.cjs +29 -0
- package/dist/actions/get-requirements.cjs.map +1 -0
- package/dist/actions/get-requirements.d.cts +9 -0
- package/dist/actions/get-requirements.d.cts.map +1 -0
- package/dist/actions/get-requirements.d.mts +9 -0
- package/dist/actions/get-requirements.d.mts.map +1 -0
- package/dist/actions/get-requirements.mjs +28 -0
- package/dist/actions/get-requirements.mjs.map +1 -0
- package/dist/actions/get-task-details.cjs +28 -0
- package/dist/actions/get-task-details.cjs.map +1 -0
- package/dist/actions/get-task-details.d.cts +9 -0
- package/dist/actions/get-task-details.d.cts.map +1 -0
- package/dist/actions/get-task-details.d.mts +9 -0
- package/dist/actions/get-task-details.d.mts.map +1 -0
- package/dist/actions/get-task-details.mjs +25 -0
- package/dist/actions/get-task-details.mjs.map +1 -0
- package/dist/actions/get-tickets.cjs +42 -0
- package/dist/actions/get-tickets.cjs.map +1 -0
- package/dist/actions/get-tickets.d.cts +9 -0
- package/dist/actions/get-tickets.d.cts.map +1 -0
- package/dist/actions/get-tickets.d.mts +9 -0
- package/dist/actions/get-tickets.d.mts.map +1 -0
- package/dist/actions/get-tickets.mjs +41 -0
- package/dist/actions/get-tickets.mjs.map +1 -0
- package/dist/actions/get-timesheet-details.cjs +29 -0
- package/dist/actions/get-timesheet-details.cjs.map +1 -0
- package/dist/actions/get-timesheet-details.d.cts +9 -0
- package/dist/actions/get-timesheet-details.d.cts.map +1 -0
- package/dist/actions/get-timesheet-details.d.mts +9 -0
- package/dist/actions/get-timesheet-details.d.mts.map +1 -0
- package/dist/actions/get-timesheet-details.mjs +26 -0
- package/dist/actions/get-timesheet-details.mjs.map +1 -0
- package/dist/actions/get-worklogs.cjs +39 -0
- package/dist/actions/get-worklogs.cjs.map +1 -0
- package/dist/actions/get-worklogs.d.cts +9 -0
- package/dist/actions/get-worklogs.d.cts.map +1 -0
- package/dist/actions/get-worklogs.d.mts +9 -0
- package/dist/actions/get-worklogs.d.mts.map +1 -0
- package/dist/actions/get-worklogs.mjs +38 -0
- package/dist/actions/get-worklogs.mjs.map +1 -0
- package/dist/actions/index.cjs +49 -0
- package/dist/actions/index.d.cts +25 -0
- package/dist/actions/index.d.mts +25 -0
- package/dist/actions/index.mjs +25 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +54 -0
- package/dist/index.d.cts +27 -0
- package/dist/index.d.mts +27 -0
- package/dist/index.mjs +28 -0
- package/package.json +49 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tickets.d.mts","names":[],"sources":["../../src/actions/get-tickets.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAIoT;AAAA,cAmB9U,uBAAA,EAAyB,CAAA,CAAE,UAIsC;AAAA,cAEjE,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-tickets.ts
|
|
4
|
+
const OnedeskGetTicketsInput = z.object({
|
|
5
|
+
end_id: z.number().int().default(50).describe("Ending item ID for the range to query (inclusive, must be >= start_id)").optional(),
|
|
6
|
+
start_id: z.number().int().default(1).describe("Starting item ID for the range to query (inclusive, must be >= 1)").optional(),
|
|
7
|
+
max_tickets: z.number().int().default(20).describe("Maximum number of tickets to return (1-100)").optional()
|
|
8
|
+
}).describe("Request model for retrieving tickets from OneDesk.\n\nNOTE: The OneDesk Public API does not provide a direct endpoint to list all tickets.\nThis action works around this limitation by querying a range of item IDs and filtering\nfor items with type='Ticket'. This approach retrieves tickets that exist within the\nspecified ID range.");
|
|
9
|
+
const OnedeskGetTickets_TicketSchema = z.object({
|
|
10
|
+
id: z.number().int().describe("Unique internal identifier of the ticket"),
|
|
11
|
+
name: z.string().describe("Name/title of the ticket"),
|
|
12
|
+
type: z.string().describe("Item type (should be 'Ticket' for ticket items)"),
|
|
13
|
+
edited: z.string().describe("ISO 8601 timestamp when the ticket was last edited"),
|
|
14
|
+
status: z.string().describe("Current lifecycle status (e.g., 'Open', 'Pending agent', 'Closed')"),
|
|
15
|
+
created: z.string().describe("ISO 8601 timestamp when the ticket was created"),
|
|
16
|
+
priority: z.number().int().describe("Priority level as integer (higher = more urgent, e.g., 80, 100)"),
|
|
17
|
+
project_id: z.string().describe("External UUID of the project").nullable().optional(),
|
|
18
|
+
author_name: z.string().describe("Display name of the ticket author").nullable().optional(),
|
|
19
|
+
description: z.string().describe("Detailed HTML description of the ticket").nullable().optional(),
|
|
20
|
+
external_id: z.string().describe("External UUID identifier for the ticket"),
|
|
21
|
+
author_email: z.string().describe("Email of the ticket author").nullable().optional(),
|
|
22
|
+
project_name: z.string().describe("Name of the project the ticket belongs to").nullable().optional(),
|
|
23
|
+
status_state: z.string().describe("Status state category ('not started', 'in progress', 'completed')").nullable().optional(),
|
|
24
|
+
work_item_url: z.string().describe("Direct URL to view the ticket in OneDesk web application").nullable().optional(),
|
|
25
|
+
assignee_names: z.array(z.string()).describe("List of display names of users assigned to the ticket").nullable().optional()
|
|
26
|
+
}).describe("Representation of a OneDesk ticket with comprehensive details.");
|
|
27
|
+
const onedeskGetTickets = action("ONEDESK_GET_TICKETS", {
|
|
28
|
+
slug: "onedesk-get-tickets",
|
|
29
|
+
name: "Get Tickets",
|
|
30
|
+
description: "Retrieve tickets from OneDesk by querying a range of item IDs. **API LIMITATION WORKAROUND**: The OneDesk Public API does not provide a direct endpoint to list all tickets. This action works around this by: 1. Querying individual items by ID within the specified range (start_id to end_id) 2. Filtering results to return only items with type='Ticket' 3. Limiting results to the max_tickets parameter **How it works**: - The action queries items sequentially from start_id to end_id - Only items with type='Ticket' are included in the results - Stops after collecting max_tickets tickets or reaching end_id - Non-existent IDs and non-ticket items (tasks, folders, etc.) are skipped **Best practices**: - Use smaller ranges (e.g., 1-50) for faster responses - Adjust start_id based on your known ticket ID ranges - Use max_tickets to limit the number of results The OneDesk Public API endpoint used: GET /rest/public/items/id/{id}",
|
|
31
|
+
input: OnedeskGetTicketsInput,
|
|
32
|
+
output: z.object({
|
|
33
|
+
tickets: z.array(OnedeskGetTickets_TicketSchema).describe("List of tickets retrieved from the specified ID range"),
|
|
34
|
+
range_queried: z.string().describe("The ID range that was queried (format: 'start_id-end_id')"),
|
|
35
|
+
total_returned: z.number().int().describe("Total number of tickets returned in this response")
|
|
36
|
+
}).describe("Response model containing a list of tickets and query metadata.")
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { onedeskGetTickets };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=get-tickets.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tickets.mjs","names":[],"sources":["../../src/actions/get-tickets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetTicketsInput: z.ZodTypeAny = z.object({\n end_id: z.number().int().default(50).describe(\"Ending item ID for the range to query (inclusive, must be >= start_id)\").optional(),\n start_id: z.number().int().default(1).describe(\"Starting item ID for the range to query (inclusive, must be >= 1)\").optional(),\n max_tickets: z.number().int().default(20).describe(\"Maximum number of tickets to return (1-100)\").optional(),\n}).describe(\"Request model for retrieving tickets from OneDesk.\\n\\nNOTE: The OneDesk Public API does not provide a direct endpoint to list all tickets.\\nThis action works around this limitation by querying a range of item IDs and filtering\\nfor items with type='Ticket'. This approach retrieves tickets that exist within the\\nspecified ID range.\");\nconst OnedeskGetTickets_TicketSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique internal identifier of the ticket\"),\n name: z.string().describe(\"Name/title of the ticket\"),\n type: z.string().describe(\"Item type (should be 'Ticket' for ticket items)\"),\n edited: z.string().describe(\"ISO 8601 timestamp when the ticket was last edited\"),\n status: z.string().describe(\"Current lifecycle status (e.g., 'Open', 'Pending agent', 'Closed')\"),\n created: z.string().describe(\"ISO 8601 timestamp when the ticket was created\"),\n priority: z.number().int().describe(\"Priority level as integer (higher = more urgent, e.g., 80, 100)\"),\n project_id: z.string().describe(\"External UUID of the project\").nullable().optional(),\n author_name: z.string().describe(\"Display name of the ticket author\").nullable().optional(),\n description: z.string().describe(\"Detailed HTML description of the ticket\").nullable().optional(),\n external_id: z.string().describe(\"External UUID identifier for the ticket\"),\n author_email: z.string().describe(\"Email of the ticket author\").nullable().optional(),\n project_name: z.string().describe(\"Name of the project the ticket belongs to\").nullable().optional(),\n status_state: z.string().describe(\"Status state category ('not started', 'in progress', 'completed')\").nullable().optional(),\n work_item_url: z.string().describe(\"Direct URL to view the ticket in OneDesk web application\").nullable().optional(),\n assignee_names: z.array(z.string()).describe(\"List of display names of users assigned to the ticket\").nullable().optional(),\n}).describe(\"Representation of a OneDesk ticket with comprehensive details.\");\nexport const OnedeskGetTicketsOutput: z.ZodTypeAny = z.object({\n tickets: z.array(OnedeskGetTickets_TicketSchema).describe(\"List of tickets retrieved from the specified ID range\"),\n range_queried: z.string().describe(\"The ID range that was queried (format: 'start_id-end_id')\"),\n total_returned: z.number().int().describe(\"Total number of tickets returned in this response\"),\n}).describe(\"Response model containing a list of tickets and query metadata.\");\n\nexport const onedeskGetTickets = action(\"ONEDESK_GET_TICKETS\", {\n slug: \"onedesk-get-tickets\",\n name: \"Get Tickets\",\n description: \"Retrieve tickets from OneDesk by querying a range of item IDs. **API LIMITATION WORKAROUND**: The OneDesk Public API does not provide a direct endpoint to list all tickets. This action works around this by: 1. Querying individual items by ID within the specified range (start_id to end_id) 2. Filtering results to return only items with type='Ticket' 3. Limiting results to the max_tickets parameter **How it works**: - The action queries items sequentially from start_id to end_id - Only items with type='Ticket' are included in the results - Stops after collecting max_tickets tickets or reaching end_id - Non-existent IDs and non-ticket items (tasks, folders, etc.) are skipped **Best practices**: - Use smaller ranges (e.g., 1-50) for faster responses - Adjust start_id based on your known ticket ID ranges - Use max_tickets to limit the number of results The OneDesk Public API endpoint used: GET /rest/public/items/id/{id}\",\n input: OnedeskGetTicketsInput,\n output: OnedeskGetTicketsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACjI,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC7H,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,8UAA8U;AAC1V,MAAM,iCAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAChG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,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js");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-timesheet-details.ts
|
|
4
|
+
const OnedeskGetTimesheetDetailsInput = zod.z.object({ timesheet_id: zod.z.number().int().describe("Unique identifier of the timesheet to retrieve") }).describe("Request model for retrieving details of a specific timesheet in OneDesk.");
|
|
5
|
+
const OnedeskGetTimesheetDetailsOutput = zod.z.object({
|
|
6
|
+
id: zod.z.union([zod.z.number().int(), zod.z.string()]),
|
|
7
|
+
date: zod.z.string().describe("Date of the timesheet entry in ISO 8601 format, e.g., '2023-10-12'").nullable().optional(),
|
|
8
|
+
links: zod.z.object({}).describe("Links to related resources").nullable().optional(),
|
|
9
|
+
notes: zod.z.string().describe("Notes or description for this entry").nullable().optional(),
|
|
10
|
+
task_id: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
|
|
11
|
+
user_id: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
|
|
12
|
+
billable: zod.z.boolean().describe("Whether this timesheet entry is billable").nullable().optional(),
|
|
13
|
+
duration: zod.z.number().describe("Duration in hours logged for the timesheet entry").nullable().optional(),
|
|
14
|
+
ticket_id: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
|
|
15
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the timesheet was created").nullable().optional(),
|
|
16
|
+
project_id: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
|
|
17
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the timesheet was last updated").nullable().optional()
|
|
18
|
+
}).describe("Response model for timesheet details retrieved from OneDesk.\nBe permissive to accommodate different OneDesk deployments.");
|
|
19
|
+
const onedeskGetTimesheetDetails = require_action.action("ONEDESK_GET_TIMESHEET_DETAILS", {
|
|
20
|
+
slug: "onedesk-get-timesheet-details",
|
|
21
|
+
name: "Get Timesheet Details",
|
|
22
|
+
description: "Tool to retrieve details of a specific timesheet entry. Use when you have the `timesheet_id` and need full metadata (user, project, hours, dates). Tries multiple endpoint/header variants and gracefully falls back in restricted environments.",
|
|
23
|
+
input: OnedeskGetTimesheetDetailsInput,
|
|
24
|
+
output: OnedeskGetTimesheetDetailsOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.onedeskGetTimesheetDetails = onedeskGetTimesheetDetails;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=get-timesheet-details.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-timesheet-details.cjs","names":["z","action"],"sources":["../../src/actions/get-timesheet-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetTimesheetDetailsInput: z.ZodTypeAny = z.object({\n timesheet_id: z.number().int().describe(\"Unique identifier of the timesheet to retrieve\"),\n}).describe(\"Request model for retrieving details of a specific timesheet in OneDesk.\");\nexport const OnedeskGetTimesheetDetailsOutput: z.ZodTypeAny = z.object({\n id: z.union([z.number().int(), z.string()]),\n date: z.string().describe(\"Date of the timesheet entry in ISO 8601 format, e.g., '2023-10-12'\").nullable().optional(),\n links: z.object({}).describe(\"Links to related resources\").nullable().optional(),\n notes: z.string().describe(\"Notes or description for this entry\").nullable().optional(),\n task_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n user_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n billable: z.boolean().describe(\"Whether this timesheet entry is billable\").nullable().optional(),\n duration: z.number().describe(\"Duration in hours logged for the timesheet entry\").nullable().optional(),\n ticket_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the timesheet was created\").nullable().optional(),\n project_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the timesheet was last updated\").nullable().optional(),\n}).describe(\"Response model for timesheet details retrieved from OneDesk.\\nBe permissive to accommodate different OneDesk deployments.\");\n\nexport const onedeskGetTimesheetDetails = action(\"ONEDESK_GET_TIMESHEET_DETAILS\", {\n slug: \"onedesk-get-timesheet-details\",\n name: \"Get Timesheet Details\",\n description: \"Tool to retrieve details of a specific timesheet entry. Use when you have the `timesheet_id` and need full metadata (user, project, hours, dates). Tries multiple endpoint/header variants and gracefully falls back in restricted environments.\",\n input: OnedeskGetTimesheetDetailsInput,\n output: OnedeskGetTimesheetDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAC1F,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,SAASA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,2HAA2H;AAEvI,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-timesheet-details.d.ts
|
|
4
|
+
declare const OnedeskGetTimesheetDetailsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetTimesheetDetailsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetTimesheetDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetTimesheetDetails };
|
|
9
|
+
//# sourceMappingURL=get-timesheet-details.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-timesheet-details.d.cts","names":[],"sources":["../../src/actions/get-timesheet-details.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAEuC;AAAA,cAC1E,gCAAA,EAAkC,CAAA,CAAE,UAauF;AAAA,cAE3H,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-timesheet-details.d.ts
|
|
4
|
+
declare const OnedeskGetTimesheetDetailsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetTimesheetDetailsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetTimesheetDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetTimesheetDetails };
|
|
9
|
+
//# sourceMappingURL=get-timesheet-details.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-timesheet-details.d.mts","names":[],"sources":["../../src/actions/get-timesheet-details.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAEuC;AAAA,cAC1E,gCAAA,EAAkC,CAAA,CAAE,UAauF;AAAA,cAE3H,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const onedeskGetTimesheetDetails = action("ONEDESK_GET_TIMESHEET_DETAILS", {
|
|
4
|
+
slug: "onedesk-get-timesheet-details",
|
|
5
|
+
name: "Get Timesheet Details",
|
|
6
|
+
description: "Tool to retrieve details of a specific timesheet entry. Use when you have the `timesheet_id` and need full metadata (user, project, hours, dates). Tries multiple endpoint/header variants and gracefully falls back in restricted environments.",
|
|
7
|
+
input: z.object({ timesheet_id: z.number().int().describe("Unique identifier of the timesheet to retrieve") }).describe("Request model for retrieving details of a specific timesheet in OneDesk."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
id: z.union([z.number().int(), z.string()]),
|
|
10
|
+
date: z.string().describe("Date of the timesheet entry in ISO 8601 format, e.g., '2023-10-12'").nullable().optional(),
|
|
11
|
+
links: z.object({}).describe("Links to related resources").nullable().optional(),
|
|
12
|
+
notes: z.string().describe("Notes or description for this entry").nullable().optional(),
|
|
13
|
+
task_id: z.union([z.number().int(), z.string()]).nullable().optional(),
|
|
14
|
+
user_id: z.union([z.number().int(), z.string()]).nullable().optional(),
|
|
15
|
+
billable: z.boolean().describe("Whether this timesheet entry is billable").nullable().optional(),
|
|
16
|
+
duration: z.number().describe("Duration in hours logged for the timesheet entry").nullable().optional(),
|
|
17
|
+
ticket_id: z.union([z.number().int(), z.string()]).nullable().optional(),
|
|
18
|
+
created_at: z.string().describe("ISO 8601 timestamp when the timesheet was created").nullable().optional(),
|
|
19
|
+
project_id: z.union([z.number().int(), z.string()]).nullable().optional(),
|
|
20
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the timesheet was last updated").nullable().optional()
|
|
21
|
+
}).describe("Response model for timesheet details retrieved from OneDesk.\nBe permissive to accommodate different OneDesk deployments.")
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { onedeskGetTimesheetDetails };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=get-timesheet-details.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-timesheet-details.mjs","names":[],"sources":["../../src/actions/get-timesheet-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetTimesheetDetailsInput: z.ZodTypeAny = z.object({\n timesheet_id: z.number().int().describe(\"Unique identifier of the timesheet to retrieve\"),\n}).describe(\"Request model for retrieving details of a specific timesheet in OneDesk.\");\nexport const OnedeskGetTimesheetDetailsOutput: z.ZodTypeAny = z.object({\n id: z.union([z.number().int(), z.string()]),\n date: z.string().describe(\"Date of the timesheet entry in ISO 8601 format, e.g., '2023-10-12'\").nullable().optional(),\n links: z.object({}).describe(\"Links to related resources\").nullable().optional(),\n notes: z.string().describe(\"Notes or description for this entry\").nullable().optional(),\n task_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n user_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n billable: z.boolean().describe(\"Whether this timesheet entry is billable\").nullable().optional(),\n duration: z.number().describe(\"Duration in hours logged for the timesheet entry\").nullable().optional(),\n ticket_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the timesheet was created\").nullable().optional(),\n project_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the timesheet was last updated\").nullable().optional(),\n}).describe(\"Response model for timesheet details retrieved from OneDesk.\\nBe permissive to accommodate different OneDesk deployments.\");\n\nexport const onedeskGetTimesheetDetails = action(\"ONEDESK_GET_TIMESHEET_DETAILS\", {\n slug: \"onedesk-get-timesheet-details\",\n name: \"Get Timesheet Details\",\n description: \"Tool to retrieve details of a specific timesheet entry. Use when you have the `timesheet_id` and need full metadata (user, project, hours, dates). Tries multiple endpoint/header variants and gracefully falls back in restricted environments.\",\n input: OnedeskGetTimesheetDetailsInput,\n output: OnedeskGetTimesheetDetailsOutput,\n});\n"],"mappings":";;AAsBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtB2D,EAAE,OAAO,EACpE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAC1F,CAAC,CAAC,CAAC,SAAS,0EAoBH;CACP,QApB4D,EAAE,OAAO;EACrE,I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AC,SAAS,2HAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-worklogs.ts
|
|
4
|
+
const OnedeskGetWorklogsInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().default(100).describe("Maximum number of worklogs to return. Defaults to 100, maximum 1000.").optional(),
|
|
6
|
+
offset: zod.z.number().int().default(0).describe("Number of worklogs to skip for pagination. Defaults to 0.").optional(),
|
|
7
|
+
to_date: zod.z.string().describe("Filter worklogs up to this date (ISO 8601 format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). If not provided, no end date filter is applied.").optional(),
|
|
8
|
+
user_id: zod.z.string().describe("Filter worklogs by specific user ID. If not provided, returns worklogs for all users.").optional(),
|
|
9
|
+
from_date: zod.z.string().describe("Filter worklogs from this date onwards (ISO 8601 format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). If not provided, no start date filter is applied.").optional(),
|
|
10
|
+
object_id: zod.z.string().describe("Filter worklogs by specific object ID (e.g., ticket, task, or project ID). If not provided, returns all worklogs.").optional()
|
|
11
|
+
}).describe("Request model for retrieving worklogs from OneDesk.");
|
|
12
|
+
const OnedeskGetWorklogs_WorklogSchema = zod.z.object({
|
|
13
|
+
id: zod.z.union([zod.z.string(), zod.z.number().int()]),
|
|
14
|
+
date: zod.z.string().describe("Date and time of the worklog entry (ISO 8601)").nullable().optional(),
|
|
15
|
+
notes: zod.z.string().describe("Notes for the work performed").nullable().optional(),
|
|
16
|
+
user_id: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
|
|
17
|
+
billable: zod.z.boolean().describe("Whether the work is billable").nullable().optional(),
|
|
18
|
+
duration: zod.z.number().describe("Duration in hours, non-negative").nullable().optional(),
|
|
19
|
+
object_id: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
|
|
20
|
+
created_at: zod.z.string().describe("Timestamp when the worklog was created").nullable().optional(),
|
|
21
|
+
updated_at: zod.z.string().describe("Timestamp when the worklog was last updated").nullable().optional(),
|
|
22
|
+
object_type: zod.z.string().describe("Type of object the worklog is associated with").nullable().optional()
|
|
23
|
+
}).describe("Model representing a OneDesk worklog entry.");
|
|
24
|
+
const OnedeskGetWorklogsOutput = zod.z.object({
|
|
25
|
+
total: zod.z.number().int().describe("Total number of worklogs available (if provided by API)").nullable().optional(),
|
|
26
|
+
has_more: zod.z.boolean().describe("Whether more worklogs are available for pagination (if provided by API)").nullable().optional(),
|
|
27
|
+
worklogs: zod.z.array(OnedeskGetWorklogs_WorklogSchema).describe("List of worklog entries retrieved from OneDesk")
|
|
28
|
+
}).describe("Response model for retrieving worklogs.");
|
|
29
|
+
const onedeskGetWorklogs = require_action.action("ONEDESK_GET_WORKLOGS", {
|
|
30
|
+
slug: "onedesk-get-worklogs",
|
|
31
|
+
name: "Get Worklogs",
|
|
32
|
+
description: "Retrieve a list of worklogs from OneDesk with optional filtering and pagination. This action attempts to list worklogs by trying multiple candidate endpoints and parameter formats. Note: The OneDesk Public API has limited endpoint support. If no worklogs endpoint is available, this action will return an empty list. Consider using the OneDesk web interface or private API endpoints for full worklog access. Use this action to: - List all worklogs in your OneDesk organization - Filter worklogs by object (ticket/task/project), user, or date range - Paginate through large worklog lists using limit and offset parameters",
|
|
33
|
+
input: OnedeskGetWorklogsInput,
|
|
34
|
+
output: OnedeskGetWorklogsOutput
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
exports.onedeskGetWorklogs = onedeskGetWorklogs;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=get-worklogs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-worklogs.cjs","names":["z","action"],"sources":["../../src/actions/get-worklogs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetWorklogsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of worklogs to return. Defaults to 100, maximum 1000.\").optional(),\n offset: z.number().int().default(0).describe(\"Number of worklogs to skip for pagination. Defaults to 0.\").optional(),\n to_date: z.string().describe(\"Filter worklogs up to this date (ISO 8601 format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). If not provided, no end date filter is applied.\").optional(),\n user_id: z.string().describe(\"Filter worklogs by specific user ID. If not provided, returns worklogs for all users.\").optional(),\n from_date: z.string().describe(\"Filter worklogs from this date onwards (ISO 8601 format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). If not provided, no start date filter is applied.\").optional(),\n object_id: z.string().describe(\"Filter worklogs by specific object ID (e.g., ticket, task, or project ID). If not provided, returns all worklogs.\").optional(),\n}).describe(\"Request model for retrieving worklogs from OneDesk.\");\nconst OnedeskGetWorklogs_WorklogSchema: z.ZodTypeAny = z.object({\n id: z.union([z.string(), z.number().int()]),\n date: z.string().describe(\"Date and time of the worklog entry (ISO 8601)\").nullable().optional(),\n notes: z.string().describe(\"Notes for the work performed\").nullable().optional(),\n user_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n billable: z.boolean().describe(\"Whether the work is billable\").nullable().optional(),\n duration: z.number().describe(\"Duration in hours, non-negative\").nullable().optional(),\n object_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the worklog was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the worklog was last updated\").nullable().optional(),\n object_type: z.string().describe(\"Type of object the worklog is associated with\").nullable().optional(),\n}).describe(\"Model representing a OneDesk worklog entry.\");\nexport const OnedeskGetWorklogsOutput: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Total number of worklogs available (if provided by API)\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether more worklogs are available for pagination (if provided by API)\").nullable().optional(),\n worklogs: z.array(OnedeskGetWorklogs_WorklogSchema).describe(\"List of worklog entries retrieved from OneDesk\"),\n}).describe(\"Response model for retrieving worklogs.\");\n\nexport const onedeskGetWorklogs = action(\"ONEDESK_GET_WORKLOGS\", {\n slug: \"onedesk-get-worklogs\",\n name: \"Get Worklogs\",\n description: \"Retrieve a list of worklogs from OneDesk with optional filtering and pagination. This action attempts to list worklogs by trying multiple candidate endpoints and parameter formats. Note: The OneDesk Public API has limited endpoint support. If no worklogs endpoint is available, this action will return an empty list. Consider using the OneDesk web interface or private API endpoints for full worklog access. Use this action to: - List all worklogs in your OneDesk organization - Filter worklogs by object (ticket/task/project), user, or date range - Paginate through large worklog lists using limit and offset parameters\",\n input: OnedeskGetWorklogsInput,\n output: OnedeskGetWorklogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC/H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CAChL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC/H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CAC3L,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;AAC/J,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC1C,MAAMA,IAAAA,EAAE,OAAO,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H,UAAUA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,gDAAgD;AAC/G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-worklogs.d.ts
|
|
4
|
+
declare const OnedeskGetWorklogsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetWorklogsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetWorklogs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetWorklogs };
|
|
9
|
+
//# sourceMappingURL=get-worklogs.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-worklogs.d.cts","names":[],"sources":["../../src/actions/get-worklogs.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAO0B;AAAA,cAarD,wBAAA,EAA0B,CAAA,CAAE,UAIa;AAAA,cAEzC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-worklogs.d.ts
|
|
4
|
+
declare const OnedeskGetWorklogsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnedeskGetWorklogsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onedeskGetWorklogs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onedeskGetWorklogs };
|
|
9
|
+
//# sourceMappingURL=get-worklogs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-worklogs.d.mts","names":[],"sources":["../../src/actions/get-worklogs.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAO0B;AAAA,cAarD,wBAAA,EAA0B,CAAA,CAAE,UAIa;AAAA,cAEzC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-worklogs.ts
|
|
4
|
+
const OnedeskGetWorklogsInput = z.object({
|
|
5
|
+
limit: z.number().int().default(100).describe("Maximum number of worklogs to return. Defaults to 100, maximum 1000.").optional(),
|
|
6
|
+
offset: z.number().int().default(0).describe("Number of worklogs to skip for pagination. Defaults to 0.").optional(),
|
|
7
|
+
to_date: z.string().describe("Filter worklogs up to this date (ISO 8601 format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). If not provided, no end date filter is applied.").optional(),
|
|
8
|
+
user_id: z.string().describe("Filter worklogs by specific user ID. If not provided, returns worklogs for all users.").optional(),
|
|
9
|
+
from_date: z.string().describe("Filter worklogs from this date onwards (ISO 8601 format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). If not provided, no start date filter is applied.").optional(),
|
|
10
|
+
object_id: z.string().describe("Filter worklogs by specific object ID (e.g., ticket, task, or project ID). If not provided, returns all worklogs.").optional()
|
|
11
|
+
}).describe("Request model for retrieving worklogs from OneDesk.");
|
|
12
|
+
const OnedeskGetWorklogs_WorklogSchema = z.object({
|
|
13
|
+
id: z.union([z.string(), z.number().int()]),
|
|
14
|
+
date: z.string().describe("Date and time of the worklog entry (ISO 8601)").nullable().optional(),
|
|
15
|
+
notes: z.string().describe("Notes for the work performed").nullable().optional(),
|
|
16
|
+
user_id: z.union([z.number().int(), z.string()]).nullable().optional(),
|
|
17
|
+
billable: z.boolean().describe("Whether the work is billable").nullable().optional(),
|
|
18
|
+
duration: z.number().describe("Duration in hours, non-negative").nullable().optional(),
|
|
19
|
+
object_id: z.union([z.number().int(), z.string()]).nullable().optional(),
|
|
20
|
+
created_at: z.string().describe("Timestamp when the worklog was created").nullable().optional(),
|
|
21
|
+
updated_at: z.string().describe("Timestamp when the worklog was last updated").nullable().optional(),
|
|
22
|
+
object_type: z.string().describe("Type of object the worklog is associated with").nullable().optional()
|
|
23
|
+
}).describe("Model representing a OneDesk worklog entry.");
|
|
24
|
+
const onedeskGetWorklogs = action("ONEDESK_GET_WORKLOGS", {
|
|
25
|
+
slug: "onedesk-get-worklogs",
|
|
26
|
+
name: "Get Worklogs",
|
|
27
|
+
description: "Retrieve a list of worklogs from OneDesk with optional filtering and pagination. This action attempts to list worklogs by trying multiple candidate endpoints and parameter formats. Note: The OneDesk Public API has limited endpoint support. If no worklogs endpoint is available, this action will return an empty list. Consider using the OneDesk web interface or private API endpoints for full worklog access. Use this action to: - List all worklogs in your OneDesk organization - Filter worklogs by object (ticket/task/project), user, or date range - Paginate through large worklog lists using limit and offset parameters",
|
|
28
|
+
input: OnedeskGetWorklogsInput,
|
|
29
|
+
output: z.object({
|
|
30
|
+
total: z.number().int().describe("Total number of worklogs available (if provided by API)").nullable().optional(),
|
|
31
|
+
has_more: z.boolean().describe("Whether more worklogs are available for pagination (if provided by API)").nullable().optional(),
|
|
32
|
+
worklogs: z.array(OnedeskGetWorklogs_WorklogSchema).describe("List of worklog entries retrieved from OneDesk")
|
|
33
|
+
}).describe("Response model for retrieving worklogs.")
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { onedeskGetWorklogs };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=get-worklogs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-worklogs.mjs","names":[],"sources":["../../src/actions/get-worklogs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnedeskGetWorklogsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of worklogs to return. Defaults to 100, maximum 1000.\").optional(),\n offset: z.number().int().default(0).describe(\"Number of worklogs to skip for pagination. Defaults to 0.\").optional(),\n to_date: z.string().describe(\"Filter worklogs up to this date (ISO 8601 format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). If not provided, no end date filter is applied.\").optional(),\n user_id: z.string().describe(\"Filter worklogs by specific user ID. If not provided, returns worklogs for all users.\").optional(),\n from_date: z.string().describe(\"Filter worklogs from this date onwards (ISO 8601 format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). If not provided, no start date filter is applied.\").optional(),\n object_id: z.string().describe(\"Filter worklogs by specific object ID (e.g., ticket, task, or project ID). If not provided, returns all worklogs.\").optional(),\n}).describe(\"Request model for retrieving worklogs from OneDesk.\");\nconst OnedeskGetWorklogs_WorklogSchema: z.ZodTypeAny = z.object({\n id: z.union([z.string(), z.number().int()]),\n date: z.string().describe(\"Date and time of the worklog entry (ISO 8601)\").nullable().optional(),\n notes: z.string().describe(\"Notes for the work performed\").nullable().optional(),\n user_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n billable: z.boolean().describe(\"Whether the work is billable\").nullable().optional(),\n duration: z.number().describe(\"Duration in hours, non-negative\").nullable().optional(),\n object_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the worklog was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the worklog was last updated\").nullable().optional(),\n object_type: z.string().describe(\"Type of object the worklog is associated with\").nullable().optional(),\n}).describe(\"Model representing a OneDesk worklog entry.\");\nexport const OnedeskGetWorklogsOutput: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Total number of worklogs available (if provided by API)\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether more worklogs are available for pagination (if provided by API)\").nullable().optional(),\n worklogs: z.array(OnedeskGetWorklogs_WorklogSchema).describe(\"List of worklog entries retrieved from OneDesk\"),\n}).describe(\"Response model for retrieving worklogs.\");\n\nexport const onedeskGetWorklogs = action(\"ONEDESK_GET_WORKLOGS\", {\n slug: \"onedesk-get-worklogs\",\n name: \"Get Worklogs\",\n description: \"Retrieve a list of worklogs from OneDesk with optional filtering and pagination. This action attempts to list worklogs by trying multiple candidate endpoints and parameter formats. Note: The OneDesk Public API has limited endpoint support. If no worklogs endpoint is available, this action will return an empty list. Consider using the OneDesk web interface or private API endpoints for full worklog access. Use this action to: - List all worklogs in your OneDesk organization - Filter worklogs by object (ticket/task/project), user, or date range - Paginate through large worklog lists using limit and offset parameters\",\n input: OnedeskGetWorklogsInput,\n output: OnedeskGetWorklogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC/H,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CAChL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC/H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CAC3L,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;AAC/J,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,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EAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,UAAU,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,gDAAgD;CAC/G,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_create_worklog = require("./create-worklog.cjs");
|
|
3
|
+
const require_delete_attachment = require("./delete-attachment.cjs");
|
|
4
|
+
const require_delete_comment = require("./delete-comment.cjs");
|
|
5
|
+
const require_delete_customer = require("./delete-customer.cjs");
|
|
6
|
+
const require_delete_message = require("./delete-message.cjs");
|
|
7
|
+
const require_delete_project = require("./delete-project.cjs");
|
|
8
|
+
const require_delete_requirement = require("./delete-requirement.cjs");
|
|
9
|
+
const require_delete_task = require("./delete-task.cjs");
|
|
10
|
+
const require_delete_ticket = require("./delete-ticket.cjs");
|
|
11
|
+
const require_delete_timesheet = require("./delete-timesheet.cjs");
|
|
12
|
+
const require_delete_user = require("./delete-user.cjs");
|
|
13
|
+
const require_get_attachments = require("./get-attachments.cjs");
|
|
14
|
+
const require_get_comment_details = require("./get-comment-details.cjs");
|
|
15
|
+
const require_get_comments = require("./get-comments.cjs");
|
|
16
|
+
const require_get_feedback = require("./get-feedback.cjs");
|
|
17
|
+
const require_get_feedback_details = require("./get-feedback-details.cjs");
|
|
18
|
+
const require_get_issue_details = require("./get-issue-details.cjs");
|
|
19
|
+
const require_get_issues = require("./get-issues.cjs");
|
|
20
|
+
const require_get_messages = require("./get-messages.cjs");
|
|
21
|
+
const require_get_requirements = require("./get-requirements.cjs");
|
|
22
|
+
const require_get_task_details = require("./get-task-details.cjs");
|
|
23
|
+
const require_get_tickets = require("./get-tickets.cjs");
|
|
24
|
+
const require_get_timesheet_details = require("./get-timesheet-details.cjs");
|
|
25
|
+
const require_get_worklogs = require("./get-worklogs.cjs");
|
|
26
|
+
exports.onedeskCreateWorklog = require_create_worklog.onedeskCreateWorklog;
|
|
27
|
+
exports.onedeskDeleteAttachment = require_delete_attachment.onedeskDeleteAttachment;
|
|
28
|
+
exports.onedeskDeleteComment = require_delete_comment.onedeskDeleteComment;
|
|
29
|
+
exports.onedeskDeleteCustomer = require_delete_customer.onedeskDeleteCustomer;
|
|
30
|
+
exports.onedeskDeleteMessage = require_delete_message.onedeskDeleteMessage;
|
|
31
|
+
exports.onedeskDeleteProject = require_delete_project.onedeskDeleteProject;
|
|
32
|
+
exports.onedeskDeleteRequirement = require_delete_requirement.onedeskDeleteRequirement;
|
|
33
|
+
exports.onedeskDeleteTask = require_delete_task.onedeskDeleteTask;
|
|
34
|
+
exports.onedeskDeleteTicket = require_delete_ticket.onedeskDeleteTicket;
|
|
35
|
+
exports.onedeskDeleteTimesheet = require_delete_timesheet.onedeskDeleteTimesheet;
|
|
36
|
+
exports.onedeskDeleteUser = require_delete_user.onedeskDeleteUser;
|
|
37
|
+
exports.onedeskGetAttachments = require_get_attachments.onedeskGetAttachments;
|
|
38
|
+
exports.onedeskGetCommentDetails = require_get_comment_details.onedeskGetCommentDetails;
|
|
39
|
+
exports.onedeskGetComments = require_get_comments.onedeskGetComments;
|
|
40
|
+
exports.onedeskGetFeedback = require_get_feedback.onedeskGetFeedback;
|
|
41
|
+
exports.onedeskGetFeedbackDetails = require_get_feedback_details.onedeskGetFeedbackDetails;
|
|
42
|
+
exports.onedeskGetIssueDetails = require_get_issue_details.onedeskGetIssueDetails;
|
|
43
|
+
exports.onedeskGetIssues = require_get_issues.onedeskGetIssues;
|
|
44
|
+
exports.onedeskGetMessages = require_get_messages.onedeskGetMessages;
|
|
45
|
+
exports.onedeskGetRequirements = require_get_requirements.onedeskGetRequirements;
|
|
46
|
+
exports.onedeskGetTaskDetails = require_get_task_details.onedeskGetTaskDetails;
|
|
47
|
+
exports.onedeskGetTickets = require_get_tickets.onedeskGetTickets;
|
|
48
|
+
exports.onedeskGetTimesheetDetails = require_get_timesheet_details.onedeskGetTimesheetDetails;
|
|
49
|
+
exports.onedeskGetWorklogs = require_get_worklogs.onedeskGetWorklogs;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { onedeskCreateWorklog } from "./create-worklog.cjs";
|
|
2
|
+
import { onedeskDeleteAttachment } from "./delete-attachment.cjs";
|
|
3
|
+
import { onedeskDeleteComment } from "./delete-comment.cjs";
|
|
4
|
+
import { onedeskDeleteCustomer } from "./delete-customer.cjs";
|
|
5
|
+
import { onedeskDeleteMessage } from "./delete-message.cjs";
|
|
6
|
+
import { onedeskDeleteProject } from "./delete-project.cjs";
|
|
7
|
+
import { onedeskDeleteRequirement } from "./delete-requirement.cjs";
|
|
8
|
+
import { onedeskDeleteTask } from "./delete-task.cjs";
|
|
9
|
+
import { onedeskDeleteTicket } from "./delete-ticket.cjs";
|
|
10
|
+
import { onedeskDeleteTimesheet } from "./delete-timesheet.cjs";
|
|
11
|
+
import { onedeskDeleteUser } from "./delete-user.cjs";
|
|
12
|
+
import { onedeskGetAttachments } from "./get-attachments.cjs";
|
|
13
|
+
import { onedeskGetCommentDetails } from "./get-comment-details.cjs";
|
|
14
|
+
import { onedeskGetComments } from "./get-comments.cjs";
|
|
15
|
+
import { onedeskGetFeedback } from "./get-feedback.cjs";
|
|
16
|
+
import { onedeskGetFeedbackDetails } from "./get-feedback-details.cjs";
|
|
17
|
+
import { onedeskGetIssueDetails } from "./get-issue-details.cjs";
|
|
18
|
+
import { onedeskGetIssues } from "./get-issues.cjs";
|
|
19
|
+
import { onedeskGetMessages } from "./get-messages.cjs";
|
|
20
|
+
import { onedeskGetRequirements } from "./get-requirements.cjs";
|
|
21
|
+
import { onedeskGetTaskDetails } from "./get-task-details.cjs";
|
|
22
|
+
import { onedeskGetTickets } from "./get-tickets.cjs";
|
|
23
|
+
import { onedeskGetTimesheetDetails } from "./get-timesheet-details.cjs";
|
|
24
|
+
import { onedeskGetWorklogs } from "./get-worklogs.cjs";
|
|
25
|
+
export { onedeskCreateWorklog, onedeskDeleteAttachment, onedeskDeleteComment, onedeskDeleteCustomer, onedeskDeleteMessage, onedeskDeleteProject, onedeskDeleteRequirement, onedeskDeleteTask, onedeskDeleteTicket, onedeskDeleteTimesheet, onedeskDeleteUser, onedeskGetAttachments, onedeskGetCommentDetails, onedeskGetComments, onedeskGetFeedback, onedeskGetFeedbackDetails, onedeskGetIssueDetails, onedeskGetIssues, onedeskGetMessages, onedeskGetRequirements, onedeskGetTaskDetails, onedeskGetTickets, onedeskGetTimesheetDetails, onedeskGetWorklogs };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { onedeskCreateWorklog } from "./create-worklog.mjs";
|
|
2
|
+
import { onedeskDeleteAttachment } from "./delete-attachment.mjs";
|
|
3
|
+
import { onedeskDeleteComment } from "./delete-comment.mjs";
|
|
4
|
+
import { onedeskDeleteCustomer } from "./delete-customer.mjs";
|
|
5
|
+
import { onedeskDeleteMessage } from "./delete-message.mjs";
|
|
6
|
+
import { onedeskDeleteProject } from "./delete-project.mjs";
|
|
7
|
+
import { onedeskDeleteRequirement } from "./delete-requirement.mjs";
|
|
8
|
+
import { onedeskDeleteTask } from "./delete-task.mjs";
|
|
9
|
+
import { onedeskDeleteTicket } from "./delete-ticket.mjs";
|
|
10
|
+
import { onedeskDeleteTimesheet } from "./delete-timesheet.mjs";
|
|
11
|
+
import { onedeskDeleteUser } from "./delete-user.mjs";
|
|
12
|
+
import { onedeskGetAttachments } from "./get-attachments.mjs";
|
|
13
|
+
import { onedeskGetCommentDetails } from "./get-comment-details.mjs";
|
|
14
|
+
import { onedeskGetComments } from "./get-comments.mjs";
|
|
15
|
+
import { onedeskGetFeedback } from "./get-feedback.mjs";
|
|
16
|
+
import { onedeskGetFeedbackDetails } from "./get-feedback-details.mjs";
|
|
17
|
+
import { onedeskGetIssueDetails } from "./get-issue-details.mjs";
|
|
18
|
+
import { onedeskGetIssues } from "./get-issues.mjs";
|
|
19
|
+
import { onedeskGetMessages } from "./get-messages.mjs";
|
|
20
|
+
import { onedeskGetRequirements } from "./get-requirements.mjs";
|
|
21
|
+
import { onedeskGetTaskDetails } from "./get-task-details.mjs";
|
|
22
|
+
import { onedeskGetTickets } from "./get-tickets.mjs";
|
|
23
|
+
import { onedeskGetTimesheetDetails } from "./get-timesheet-details.mjs";
|
|
24
|
+
import { onedeskGetWorklogs } from "./get-worklogs.mjs";
|
|
25
|
+
export { onedeskCreateWorklog, onedeskDeleteAttachment, onedeskDeleteComment, onedeskDeleteCustomer, onedeskDeleteMessage, onedeskDeleteProject, onedeskDeleteRequirement, onedeskDeleteTask, onedeskDeleteTicket, onedeskDeleteTimesheet, onedeskDeleteUser, onedeskGetAttachments, onedeskGetCommentDetails, onedeskGetComments, onedeskGetFeedback, onedeskGetFeedbackDetails, onedeskGetIssueDetails, onedeskGetIssues, onedeskGetMessages, onedeskGetRequirements, onedeskGetTaskDetails, onedeskGetTickets, onedeskGetTimesheetDetails, onedeskGetWorklogs };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { onedeskCreateWorklog } from "./create-worklog.mjs";
|
|
2
|
+
import { onedeskDeleteAttachment } from "./delete-attachment.mjs";
|
|
3
|
+
import { onedeskDeleteComment } from "./delete-comment.mjs";
|
|
4
|
+
import { onedeskDeleteCustomer } from "./delete-customer.mjs";
|
|
5
|
+
import { onedeskDeleteMessage } from "./delete-message.mjs";
|
|
6
|
+
import { onedeskDeleteProject } from "./delete-project.mjs";
|
|
7
|
+
import { onedeskDeleteRequirement } from "./delete-requirement.mjs";
|
|
8
|
+
import { onedeskDeleteTask } from "./delete-task.mjs";
|
|
9
|
+
import { onedeskDeleteTicket } from "./delete-ticket.mjs";
|
|
10
|
+
import { onedeskDeleteTimesheet } from "./delete-timesheet.mjs";
|
|
11
|
+
import { onedeskDeleteUser } from "./delete-user.mjs";
|
|
12
|
+
import { onedeskGetAttachments } from "./get-attachments.mjs";
|
|
13
|
+
import { onedeskGetCommentDetails } from "./get-comment-details.mjs";
|
|
14
|
+
import { onedeskGetComments } from "./get-comments.mjs";
|
|
15
|
+
import { onedeskGetFeedback } from "./get-feedback.mjs";
|
|
16
|
+
import { onedeskGetFeedbackDetails } from "./get-feedback-details.mjs";
|
|
17
|
+
import { onedeskGetIssueDetails } from "./get-issue-details.mjs";
|
|
18
|
+
import { onedeskGetIssues } from "./get-issues.mjs";
|
|
19
|
+
import { onedeskGetMessages } from "./get-messages.mjs";
|
|
20
|
+
import { onedeskGetRequirements } from "./get-requirements.mjs";
|
|
21
|
+
import { onedeskGetTaskDetails } from "./get-task-details.mjs";
|
|
22
|
+
import { onedeskGetTickets } from "./get-tickets.mjs";
|
|
23
|
+
import { onedeskGetTimesheetDetails } from "./get-timesheet-details.mjs";
|
|
24
|
+
import { onedeskGetWorklogs } from "./get-worklogs.mjs";
|
|
25
|
+
export { onedeskCreateWorklog, onedeskDeleteAttachment, onedeskDeleteComment, onedeskDeleteCustomer, onedeskDeleteMessage, onedeskDeleteProject, onedeskDeleteRequirement, onedeskDeleteTask, onedeskDeleteTicket, onedeskDeleteTimesheet, onedeskDeleteUser, onedeskGetAttachments, onedeskGetCommentDetails, onedeskGetComments, onedeskGetFeedback, onedeskGetFeedbackDetails, onedeskGetIssueDetails, onedeskGetIssues, onedeskGetMessages, onedeskGetRequirements, onedeskGetTaskDetails, onedeskGetTickets, onedeskGetTimesheetDetails, onedeskGetWorklogs };
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const onedesk = defineApp({\n slug: \"onedesk\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,WAAA,uCAAA,CAAA,CAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const onedesk = defineApp({\n slug: \"onedesk\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const onedeskCatalog = {
|
|
4
|
+
"slug": "onedesk",
|
|
5
|
+
"name": "Onedesk",
|
|
6
|
+
"description": "OneDesk is an all-in-one platform combining help desk and project management functionalities, enabling teams to manage customer support and project tasks seamlessly.",
|
|
7
|
+
"category": "Customer Support",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/onedesk",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.onedeskCatalog = onedeskCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const onedeskCatalog = {\n \"slug\": \"onedesk\",\n \"name\": \"Onedesk\",\n \"description\": \"OneDesk is an all-in-one platform combining help desk and project management functionalities, enabling teams to manage customer support and project tasks seamlessly.\",\n \"category\": \"Customer Support\",\n \"logo\": \"https://logos.composio.dev/api/onedesk\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const onedeskCatalog: {
|
|
4
|
+
readonly slug: "onedesk";
|
|
5
|
+
readonly name: "Onedesk";
|
|
6
|
+
readonly description: "OneDesk is an all-in-one platform combining help desk and project management functionalities, enabling teams to manage customer support and project tasks seamlessly.";
|
|
7
|
+
readonly category: "Customer Support";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/onedesk";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { onedeskCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const onedeskCatalog: {
|
|
4
|
+
readonly slug: "onedesk";
|
|
5
|
+
readonly name: "Onedesk";
|
|
6
|
+
readonly description: "OneDesk is an all-in-one platform combining help desk and project management functionalities, enabling teams to manage customer support and project tasks seamlessly.";
|
|
7
|
+
readonly category: "Customer Support";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/onedesk";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { onedeskCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const onedeskCatalog = {
|
|
4
|
+
"slug": "onedesk",
|
|
5
|
+
"name": "Onedesk",
|
|
6
|
+
"description": "OneDesk is an all-in-one platform combining help desk and project management functionalities, enabling teams to manage customer support and project tasks seamlessly.",
|
|
7
|
+
"category": "Customer Support",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/onedesk",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { onedeskCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const onedeskCatalog = {\n \"slug\": \"onedesk\",\n \"name\": \"Onedesk\",\n \"description\": \"OneDesk is an all-in-one platform combining help desk and project management functionalities, enabling teams to manage customer support and project tasks seamlessly.\",\n \"category\": \"Customer Support\",\n \"logo\": \"https://logos.composio.dev/api/onedesk\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "onedesk";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeOnedeskTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeOnedeskTool = executeOnedeskTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|