@keystrokehq/nethunt_crm 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/delete-record.cjs +19 -0
- package/dist/actions/delete-record.cjs.map +1 -0
- package/dist/actions/delete-record.d.cts +9 -0
- package/dist/actions/delete-record.d.cts.map +1 -0
- package/dist/actions/delete-record.d.mts +9 -0
- package/dist/actions/delete-record.d.mts.map +1 -0
- package/dist/actions/delete-record.mjs +16 -0
- package/dist/actions/delete-record.mjs.map +1 -0
- package/dist/actions/find-records.cjs +28 -0
- package/dist/actions/find-records.cjs.map +1 -0
- package/dist/actions/find-records.d.cts +9 -0
- package/dist/actions/find-records.d.cts.map +1 -0
- package/dist/actions/find-records.d.mts +9 -0
- package/dist/actions/find-records.d.mts.map +1 -0
- package/dist/actions/find-records.mjs +27 -0
- package/dist/actions/find-records.mjs.map +1 -0
- package/dist/actions/get-new-call-logs.cjs +30 -0
- package/dist/actions/get-new-call-logs.cjs.map +1 -0
- package/dist/actions/get-new-call-logs.d.cts +9 -0
- package/dist/actions/get-new-call-logs.d.cts.map +1 -0
- package/dist/actions/get-new-call-logs.d.mts +9 -0
- package/dist/actions/get-new-call-logs.d.mts.map +1 -0
- package/dist/actions/get-new-call-logs.mjs +29 -0
- package/dist/actions/get-new-call-logs.mjs.map +1 -0
- package/dist/actions/get-new-comments.cjs +27 -0
- package/dist/actions/get-new-comments.cjs.map +1 -0
- package/dist/actions/get-new-comments.d.cts +9 -0
- package/dist/actions/get-new-comments.d.cts.map +1 -0
- package/dist/actions/get-new-comments.d.mts +9 -0
- package/dist/actions/get-new-comments.d.mts.map +1 -0
- package/dist/actions/get-new-comments.mjs +26 -0
- package/dist/actions/get-new-comments.mjs.map +1 -0
- package/dist/actions/get-new-gdrive-files.cjs +32 -0
- package/dist/actions/get-new-gdrive-files.cjs.map +1 -0
- package/dist/actions/get-new-gdrive-files.d.cts +9 -0
- package/dist/actions/get-new-gdrive-files.d.cts.map +1 -0
- package/dist/actions/get-new-gdrive-files.d.mts +9 -0
- package/dist/actions/get-new-gdrive-files.d.mts.map +1 -0
- package/dist/actions/get-new-gdrive-files.mjs +31 -0
- package/dist/actions/get-new-gdrive-files.mjs.map +1 -0
- package/dist/actions/get-new-records.cjs +26 -0
- package/dist/actions/get-new-records.cjs.map +1 -0
- package/dist/actions/get-new-records.d.cts +9 -0
- package/dist/actions/get-new-records.d.cts.map +1 -0
- package/dist/actions/get-new-records.d.mts +9 -0
- package/dist/actions/get-new-records.d.mts.map +1 -0
- package/dist/actions/get-new-records.mjs +25 -0
- package/dist/actions/get-new-records.mjs.map +1 -0
- package/dist/actions/get-record-changes.cjs +34 -0
- package/dist/actions/get-record-changes.cjs.map +1 -0
- package/dist/actions/get-record-changes.d.cts +9 -0
- package/dist/actions/get-record-changes.d.cts.map +1 -0
- package/dist/actions/get-record-changes.d.mts +9 -0
- package/dist/actions/get-record-changes.d.mts.map +1 -0
- package/dist/actions/get-record-changes.mjs +33 -0
- package/dist/actions/get-record-changes.mjs.map +1 -0
- package/dist/actions/get-updated-records.cjs +28 -0
- package/dist/actions/get-updated-records.cjs.map +1 -0
- package/dist/actions/get-updated-records.d.cts +9 -0
- package/dist/actions/get-updated-records.d.cts.map +1 -0
- package/dist/actions/get-updated-records.d.mts +9 -0
- package/dist/actions/get-updated-records.d.mts.map +1 -0
- package/dist/actions/get-updated-records.mjs +27 -0
- package/dist/actions/get-updated-records.mjs.map +1 -0
- package/dist/actions/index.cjs +25 -0
- package/dist/actions/index.d.cts +13 -0
- package/dist/actions/index.d.mts +13 -0
- package/dist/actions/index.mjs +13 -0
- package/dist/actions/list-folder-fields.cjs +16 -0
- package/dist/actions/list-folder-fields.cjs.map +1 -0
- package/dist/actions/list-folder-fields.d.cts +9 -0
- package/dist/actions/list-folder-fields.d.cts.map +1 -0
- package/dist/actions/list-folder-fields.d.mts +9 -0
- package/dist/actions/list-folder-fields.d.mts.map +1 -0
- package/dist/actions/list-folder-fields.mjs +13 -0
- package/dist/actions/list-folder-fields.mjs.map +1 -0
- package/dist/actions/list-readable-folders.cjs +20 -0
- package/dist/actions/list-readable-folders.cjs.map +1 -0
- package/dist/actions/list-readable-folders.d.cts +9 -0
- package/dist/actions/list-readable-folders.d.cts.map +1 -0
- package/dist/actions/list-readable-folders.d.mts +9 -0
- package/dist/actions/list-readable-folders.d.mts.map +1 -0
- package/dist/actions/list-readable-folders.mjs +19 -0
- package/dist/actions/list-readable-folders.mjs.map +1 -0
- package/dist/actions/list-writable-folders.cjs +20 -0
- package/dist/actions/list-writable-folders.cjs.map +1 -0
- package/dist/actions/list-writable-folders.d.cts +9 -0
- package/dist/actions/list-writable-folders.d.cts.map +1 -0
- package/dist/actions/list-writable-folders.d.mts +9 -0
- package/dist/actions/list-writable-folders.d.mts.map +1 -0
- package/dist/actions/list-writable-folders.mjs +19 -0
- package/dist/actions/list-writable-folders.mjs.map +1 -0
- package/dist/actions/test-auth.cjs +20 -0
- package/dist/actions/test-auth.cjs.map +1 -0
- package/dist/actions/test-auth.d.cts +9 -0
- package/dist/actions/test-auth.d.cts.map +1 -0
- package/dist/actions/test-auth.d.mts +9 -0
- package/dist/actions/test-auth.d.mts.map +1 -0
- package/dist/actions/test-auth.mjs +19 -0
- package/dist/actions/test-auth.mjs.map +1 -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 +30 -0
- package/dist/index.d.cts +15 -0
- package/dist/index.d.mts +15 -0
- package/dist/index.mjs +16 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/nethunt_crm
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `nethunt_crm`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 12
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { nethuntCrmDeleteRecord } from "@keystrokehq/nethunt_crm/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "nethunt_crm-agent",
|
|
15
|
+
tools: [nethuntCrmDeleteRecord],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.nethuntCrm.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeNethuntCrmTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["nethuntCrm","executeNethuntCrmTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { nethuntCrm } from \"./app\";\nimport { executeNethuntCrmTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return nethuntCrm.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNethuntCrmTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { nethuntCrm } from "./app.mjs";
|
|
2
|
+
import { executeNethuntCrmTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return nethuntCrm.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeNethuntCrmTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { nethuntCrm } from \"./app\";\nimport { executeNethuntCrmTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return nethuntCrm.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNethuntCrmTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-record.ts
|
|
4
|
+
const NethuntCrmDeleteRecordInput = zod.z.object({ record_id: zod.z.string().describe("The unique identifier of the record to delete") }).describe("Request model for deleting a NetHunt CRM record.");
|
|
5
|
+
const NethuntCrmDeleteRecordOutput = zod.z.object({
|
|
6
|
+
message: zod.z.string().describe("Status message about the deletion operation"),
|
|
7
|
+
success: zod.z.boolean().describe("Indicates whether the deletion was successful")
|
|
8
|
+
}).describe("Response model for delete record operation.");
|
|
9
|
+
const nethuntCrmDeleteRecord = require_action.action("NETHUNT_CRM_DELETE_RECORD", {
|
|
10
|
+
slug: "nethunt_crm-delete-record",
|
|
11
|
+
name: "Delete Record",
|
|
12
|
+
description: "Tool to delete a NetHunt CRM record by ID. Use when you need to permanently remove a record from the system.",
|
|
13
|
+
input: NethuntCrmDeleteRecordInput,
|
|
14
|
+
output: NethuntCrmDeleteRecordOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.nethuntCrmDeleteRecord = nethuntCrmDeleteRecord;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-record.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-record.cjs","names":["z","action"],"sources":["../../src/actions/delete-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NethuntCrmDeleteRecordInput: z.ZodTypeAny = z.object({\n record_id: z.string().describe(\"The unique identifier of the record to delete\"),\n}).describe(\"Request model for deleting a NetHunt CRM record.\");\nexport const NethuntCrmDeleteRecordOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Status message about the deletion operation\"),\n success: z.boolean().describe(\"Indicates whether the deletion was successful\"),\n}).describe(\"Response model for delete record operation.\");\n\nexport const nethuntCrmDeleteRecord = action(\"NETHUNT_CRM_DELETE_RECORD\", {\n slug: \"nethunt_crm-delete-record\",\n name: \"Delete Record\",\n description: \"Tool to delete a NetHunt CRM record by ID. Use when you need to permanently remove a record from the system.\",\n input: NethuntCrmDeleteRecordInput,\n output: NethuntCrmDeleteRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAChF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C;AAC/E,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,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/delete-record.d.ts
|
|
4
|
+
declare const NethuntCrmDeleteRecordInput: z.ZodTypeAny;
|
|
5
|
+
declare const NethuntCrmDeleteRecordOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nethuntCrmDeleteRecord: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nethuntCrmDeleteRecord };
|
|
9
|
+
//# sourceMappingURL=delete-record.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-record.d.cts","names":[],"sources":["../../src/actions/delete-record.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEmB;AAAA,cAClD,4BAAA,EAA8B,CAAA,CAAE,UAGa;AAAA,cAE7C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-record.d.ts
|
|
4
|
+
declare const NethuntCrmDeleteRecordInput: z.ZodTypeAny;
|
|
5
|
+
declare const NethuntCrmDeleteRecordOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nethuntCrmDeleteRecord: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nethuntCrmDeleteRecord };
|
|
9
|
+
//# sourceMappingURL=delete-record.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-record.d.mts","names":[],"sources":["../../src/actions/delete-record.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEmB;AAAA,cAClD,4BAAA,EAA8B,CAAA,CAAE,UAGa;AAAA,cAE7C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const nethuntCrmDeleteRecord = action("NETHUNT_CRM_DELETE_RECORD", {
|
|
4
|
+
slug: "nethunt_crm-delete-record",
|
|
5
|
+
name: "Delete Record",
|
|
6
|
+
description: "Tool to delete a NetHunt CRM record by ID. Use when you need to permanently remove a record from the system.",
|
|
7
|
+
input: z.object({ record_id: z.string().describe("The unique identifier of the record to delete") }).describe("Request model for deleting a NetHunt CRM record."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
message: z.string().describe("Status message about the deletion operation"),
|
|
10
|
+
success: z.boolean().describe("Indicates whether the deletion was successful")
|
|
11
|
+
}).describe("Response model for delete record operation.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { nethuntCrmDeleteRecord };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-record.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-record.mjs","names":[],"sources":["../../src/actions/delete-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NethuntCrmDeleteRecordInput: z.ZodTypeAny = z.object({\n record_id: z.string().describe(\"The unique identifier of the record to delete\"),\n}).describe(\"Request model for deleting a NetHunt CRM record.\");\nexport const NethuntCrmDeleteRecordOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Status message about the deletion operation\"),\n success: z.boolean().describe(\"Indicates whether the deletion was successful\"),\n}).describe(\"Response model for delete record operation.\");\n\nexport const nethuntCrmDeleteRecord = action(\"NETHUNT_CRM_DELETE_RECORD\", {\n slug: \"nethunt_crm-delete-record\",\n name: \"Delete Record\",\n description: \"Tool to delete a NetHunt CRM record by ID. Use when you need to permanently remove a record from the system.\",\n input: NethuntCrmDeleteRecordInput,\n output: NethuntCrmDeleteRecordOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuD,EAAE,OAAO,EAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAChF,CAAC,CAAC,CAAC,SAAS,kDAUH;CACP,QAVwD,EAAE,OAAO;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EAC1E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C;CAC/E,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/find-records.ts
|
|
4
|
+
const NethuntCrmFindRecordsInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Maximum number of records to return. Default: 1 if not specified.").optional(),
|
|
6
|
+
query: zod.z.string().describe("Search query to narrow records returned. Either recordId or query must be specified to perform the search.").optional(),
|
|
7
|
+
folder_id: zod.z.string().describe("Folder ID to find records in. This identifies the folder within NetHunt CRM where the search will be performed."),
|
|
8
|
+
record_id: zod.z.string().describe("Record ID if available. Either recordId or query must be specified to perform the search.").optional()
|
|
9
|
+
}).describe("Request parameters for finding records in NetHunt CRM.");
|
|
10
|
+
const NethuntCrmFindRecords_RecordSchema = zod.z.object({
|
|
11
|
+
id: zod.z.string().describe("For internal purposes only.").nullable().optional(),
|
|
12
|
+
fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Field names and values for the record.").nullable().optional(),
|
|
13
|
+
recordId: zod.z.string().describe("Record ID.").nullable().optional(),
|
|
14
|
+
createdAt: zod.z.string().describe("Time of record creation in ISO 8601 format.").nullable().optional(),
|
|
15
|
+
updatedAt: zod.z.string().describe("Time of last record update in ISO 8601 format.").nullable().optional()
|
|
16
|
+
}).describe("A single record from NetHunt CRM.");
|
|
17
|
+
const NethuntCrmFindRecordsOutput = zod.z.object({ records: zod.z.array(NethuntCrmFindRecords_RecordSchema).describe("List of records matching the search criteria.") }).describe("Response from NetHunt CRM after searching for records.");
|
|
18
|
+
const nethuntCrmFindRecords = require_action.action("NETHUNT_CRM_FIND_RECORDS", {
|
|
19
|
+
slug: "nethunt_crm-find-records",
|
|
20
|
+
name: "Find Records",
|
|
21
|
+
description: "Tool to find records by ID or text query in NetHunt CRM. Search for records within a folder using record ID or search query. Use when you need to locate specific records in a folder.",
|
|
22
|
+
input: NethuntCrmFindRecordsInput,
|
|
23
|
+
output: NethuntCrmFindRecordsOutput
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.nethuntCrmFindRecords = nethuntCrmFindRecords;
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=find-records.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-records.cjs","names":["z","action"],"sources":["../../src/actions/find-records.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NethuntCrmFindRecordsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of records to return. Default: 1 if not specified.\").optional(),\n query: z.string().describe(\"Search query to narrow records returned. Either recordId or query must be specified to perform the search.\").optional(),\n folder_id: z.string().describe(\"Folder ID to find records in. This identifies the folder within NetHunt CRM where the search will be performed.\"),\n record_id: z.string().describe(\"Record ID if available. Either recordId or query must be specified to perform the search.\").optional(),\n}).describe(\"Request parameters for finding records in NetHunt CRM.\");\nconst NethuntCrmFindRecords_RecordSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"For internal purposes only.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Field names and values for the record.\").nullable().optional(),\n recordId: z.string().describe(\"Record ID.\").nullable().optional(),\n createdAt: z.string().describe(\"Time of record creation in ISO 8601 format.\").nullable().optional(),\n updatedAt: z.string().describe(\"Time of last record update in ISO 8601 format.\").nullable().optional(),\n}).describe(\"A single record from NetHunt CRM.\");\nexport const NethuntCrmFindRecordsOutput: z.ZodTypeAny = z.object({\n records: z.array(NethuntCrmFindRecords_RecordSchema).describe(\"List of records matching the search criteria.\"),\n}).describe(\"Response from NetHunt CRM after searching for records.\");\n\nexport const nethuntCrmFindRecords = action(\"NETHUNT_CRM_FIND_RECORDS\", {\n slug: \"nethunt_crm-find-records\",\n name: \"Find Records\",\n description: \"Tool to find records by ID or text query in NetHunt CRM. Search for records within a folder using record ID or search query. Use when you need to locate specific records in a folder.\",\n input: NethuntCrmFindRecordsInput,\n output: NethuntCrmFindRecordsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC/G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAClJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;CAChJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,SAASA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,+CAA+C,EAC/G,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,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/find-records.d.ts
|
|
4
|
+
declare const NethuntCrmFindRecordsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NethuntCrmFindRecordsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nethuntCrmFindRecords: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nethuntCrmFindRecords };
|
|
9
|
+
//# sourceMappingURL=find-records.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-records.d.cts","names":[],"sources":["../../src/actions/find-records.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAK0B;AAAA,cAQxD,2BAAA,EAA6B,CAAA,CAAE,UAEyB;AAAA,cAExD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/find-records.d.ts
|
|
4
|
+
declare const NethuntCrmFindRecordsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NethuntCrmFindRecordsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nethuntCrmFindRecords: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nethuntCrmFindRecords };
|
|
9
|
+
//# sourceMappingURL=find-records.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-records.d.mts","names":[],"sources":["../../src/actions/find-records.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAK0B;AAAA,cAQxD,2BAAA,EAA6B,CAAA,CAAE,UAEyB;AAAA,cAExD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/find-records.ts
|
|
4
|
+
const NethuntCrmFindRecordsInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Maximum number of records to return. Default: 1 if not specified.").optional(),
|
|
6
|
+
query: z.string().describe("Search query to narrow records returned. Either recordId or query must be specified to perform the search.").optional(),
|
|
7
|
+
folder_id: z.string().describe("Folder ID to find records in. This identifies the folder within NetHunt CRM where the search will be performed."),
|
|
8
|
+
record_id: z.string().describe("Record ID if available. Either recordId or query must be specified to perform the search.").optional()
|
|
9
|
+
}).describe("Request parameters for finding records in NetHunt CRM.");
|
|
10
|
+
const NethuntCrmFindRecords_RecordSchema = z.object({
|
|
11
|
+
id: z.string().describe("For internal purposes only.").nullable().optional(),
|
|
12
|
+
fields: z.record(z.string(), z.unknown()).describe("Field names and values for the record.").nullable().optional(),
|
|
13
|
+
recordId: z.string().describe("Record ID.").nullable().optional(),
|
|
14
|
+
createdAt: z.string().describe("Time of record creation in ISO 8601 format.").nullable().optional(),
|
|
15
|
+
updatedAt: z.string().describe("Time of last record update in ISO 8601 format.").nullable().optional()
|
|
16
|
+
}).describe("A single record from NetHunt CRM.");
|
|
17
|
+
const nethuntCrmFindRecords = action("NETHUNT_CRM_FIND_RECORDS", {
|
|
18
|
+
slug: "nethunt_crm-find-records",
|
|
19
|
+
name: "Find Records",
|
|
20
|
+
description: "Tool to find records by ID or text query in NetHunt CRM. Search for records within a folder using record ID or search query. Use when you need to locate specific records in a folder.",
|
|
21
|
+
input: NethuntCrmFindRecordsInput,
|
|
22
|
+
output: z.object({ records: z.array(NethuntCrmFindRecords_RecordSchema).describe("List of records matching the search criteria.") }).describe("Response from NetHunt CRM after searching for records.")
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { nethuntCrmFindRecords };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=find-records.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-records.mjs","names":[],"sources":["../../src/actions/find-records.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NethuntCrmFindRecordsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of records to return. Default: 1 if not specified.\").optional(),\n query: z.string().describe(\"Search query to narrow records returned. Either recordId or query must be specified to perform the search.\").optional(),\n folder_id: z.string().describe(\"Folder ID to find records in. This identifies the folder within NetHunt CRM where the search will be performed.\"),\n record_id: z.string().describe(\"Record ID if available. Either recordId or query must be specified to perform the search.\").optional(),\n}).describe(\"Request parameters for finding records in NetHunt CRM.\");\nconst NethuntCrmFindRecords_RecordSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"For internal purposes only.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Field names and values for the record.\").nullable().optional(),\n recordId: z.string().describe(\"Record ID.\").nullable().optional(),\n createdAt: z.string().describe(\"Time of record creation in ISO 8601 format.\").nullable().optional(),\n updatedAt: z.string().describe(\"Time of last record update in ISO 8601 format.\").nullable().optional(),\n}).describe(\"A single record from NetHunt CRM.\");\nexport const NethuntCrmFindRecordsOutput: z.ZodTypeAny = z.object({\n records: z.array(NethuntCrmFindRecords_RecordSchema).describe(\"List of records matching the search criteria.\"),\n}).describe(\"Response from NetHunt CRM after searching for records.\");\n\nexport const nethuntCrmFindRecords = action(\"NETHUNT_CRM_FIND_RECORDS\", {\n slug: \"nethunt_crm-find-records\",\n name: \"Find Records\",\n description: \"Tool to find records by ID or text query in NetHunt CRM. Search for records within a folder using record ID or search query. Use when you need to locate specific records in a folder.\",\n input: NethuntCrmFindRecordsInput,\n output: NethuntCrmFindRecordsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC/G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAClJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;CAChJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAK/C,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,SAAS,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,+CAA+C,EAC/G,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-new-call-logs.ts
|
|
4
|
+
const NethuntCrmGetNewCallLogsInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Maximum number of call logs to return. Default: No limit").optional(),
|
|
6
|
+
since: zod.z.string().describe("Only call logs created after this time are returned. Default: 24 hours before time of request").optional(),
|
|
7
|
+
folderId: zod.z.string().describe("Folder ID to find new call logs in")
|
|
8
|
+
}).describe("Request model for getting new call logs.");
|
|
9
|
+
const NethuntCrmGetNewCallLogs_CallLogSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("For internal use only").nullable().optional(),
|
|
11
|
+
text: zod.z.string().describe("Comment text").nullable().optional(),
|
|
12
|
+
time: zod.z.string().describe("Time when logged call started").nullable().optional(),
|
|
13
|
+
endTime: zod.z.string().describe("Time when logged call ended").nullable().optional(),
|
|
14
|
+
duration: zod.z.number().describe("Call duration").nullable().optional(),
|
|
15
|
+
recordId: zod.z.string().describe("Record ID").nullable().optional(),
|
|
16
|
+
callLogId: zod.z.string().describe("Call log ID").nullable().optional(),
|
|
17
|
+
createdAt: zod.z.string().describe("Time when call log is created").nullable().optional()
|
|
18
|
+
}).describe("Call log information.");
|
|
19
|
+
const NethuntCrmGetNewCallLogsOutput = zod.z.object({ call_logs: zod.z.array(NethuntCrmGetNewCallLogs_CallLogSchema).describe("List of call logs").nullable().optional() }).describe("Response model for getting new call logs.");
|
|
20
|
+
const nethuntCrmGetNewCallLogs = require_action.action("NETHUNT_CRM_GET_NEW_CALL_LOGS", {
|
|
21
|
+
slug: "nethunt_crm-get-new-call-logs",
|
|
22
|
+
name: "Get New Call Logs",
|
|
23
|
+
description: "Find recently created call logs in NetHunt CRM. Returns call logs created after a specified time. Use when you need to retrieve new call activity from a specific folder.",
|
|
24
|
+
input: NethuntCrmGetNewCallLogsInput,
|
|
25
|
+
output: NethuntCrmGetNewCallLogsOutput
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.nethuntCrmGetNewCallLogs = nethuntCrmGetNewCallLogs;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=get-new-call-logs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-new-call-logs.cjs","names":["z","action"],"sources":["../../src/actions/get-new-call-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NethuntCrmGetNewCallLogsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of call logs to return. Default: No limit\").optional(),\n since: z.string().describe(\"Only call logs created after this time are returned. Default: 24 hours before time of request\").optional(),\n folderId: z.string().describe(\"Folder ID to find new call logs in\"),\n}).describe(\"Request model for getting new call logs.\");\nconst NethuntCrmGetNewCallLogs_CallLogSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"For internal use only\").nullable().optional(),\n text: z.string().describe(\"Comment text\").nullable().optional(),\n time: z.string().describe(\"Time when logged call started\").nullable().optional(),\n endTime: z.string().describe(\"Time when logged call ended\").nullable().optional(),\n duration: z.number().describe(\"Call duration\").nullable().optional(),\n recordId: z.string().describe(\"Record ID\").nullable().optional(),\n callLogId: z.string().describe(\"Call log ID\").nullable().optional(),\n createdAt: z.string().describe(\"Time when call log is created\").nullable().optional(),\n}).describe(\"Call log information.\");\nexport const NethuntCrmGetNewCallLogsOutput: z.ZodTypeAny = z.object({\n call_logs: z.array(NethuntCrmGetNewCallLogs_CallLogSchema).describe(\"List of call logs\").nullable().optional(),\n}).describe(\"Response model for getting new call logs.\");\n\nexport const nethuntCrmGetNewCallLogs = action(\"NETHUNT_CRM_GET_NEW_CALL_LOGS\", {\n slug: \"nethunt_crm-get-new-call-logs\",\n name: \"Get New Call Logs\",\n description: \"Find recently created call logs in NetHunt CRM. Returns call logs created after a specified time. Use when you need to retrieve new call activity from a specific folder.\",\n input: NethuntCrmGetNewCallLogsInput,\n output: NethuntCrmGetNewCallLogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACrI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;AACpE,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,uBAAuB;AACnC,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,WAAWA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,2BAA2BC,eAAAA,OAAO,iCAAiC;CAC9E,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-new-call-logs.d.ts
|
|
4
|
+
declare const NethuntCrmGetNewCallLogsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NethuntCrmGetNewCallLogsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nethuntCrmGetNewCallLogs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nethuntCrmGetNewCallLogs };
|
|
9
|
+
//# sourceMappingURL=get-new-call-logs.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-new-call-logs.d.cts","names":[],"sources":["../../src/actions/get-new-call-logs.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAIS;AAAA,cAW1C,8BAAA,EAAgC,CAAA,CAAE,UAES;AAAA,cAE3C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-new-call-logs.d.ts
|
|
4
|
+
declare const NethuntCrmGetNewCallLogsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NethuntCrmGetNewCallLogsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nethuntCrmGetNewCallLogs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nethuntCrmGetNewCallLogs };
|
|
9
|
+
//# sourceMappingURL=get-new-call-logs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-new-call-logs.d.mts","names":[],"sources":["../../src/actions/get-new-call-logs.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAIS;AAAA,cAW1C,8BAAA,EAAgC,CAAA,CAAE,UAES;AAAA,cAE3C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-new-call-logs.ts
|
|
4
|
+
const NethuntCrmGetNewCallLogsInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Maximum number of call logs to return. Default: No limit").optional(),
|
|
6
|
+
since: z.string().describe("Only call logs created after this time are returned. Default: 24 hours before time of request").optional(),
|
|
7
|
+
folderId: z.string().describe("Folder ID to find new call logs in")
|
|
8
|
+
}).describe("Request model for getting new call logs.");
|
|
9
|
+
const NethuntCrmGetNewCallLogs_CallLogSchema = z.object({
|
|
10
|
+
id: z.string().describe("For internal use only").nullable().optional(),
|
|
11
|
+
text: z.string().describe("Comment text").nullable().optional(),
|
|
12
|
+
time: z.string().describe("Time when logged call started").nullable().optional(),
|
|
13
|
+
endTime: z.string().describe("Time when logged call ended").nullable().optional(),
|
|
14
|
+
duration: z.number().describe("Call duration").nullable().optional(),
|
|
15
|
+
recordId: z.string().describe("Record ID").nullable().optional(),
|
|
16
|
+
callLogId: z.string().describe("Call log ID").nullable().optional(),
|
|
17
|
+
createdAt: z.string().describe("Time when call log is created").nullable().optional()
|
|
18
|
+
}).describe("Call log information.");
|
|
19
|
+
const nethuntCrmGetNewCallLogs = action("NETHUNT_CRM_GET_NEW_CALL_LOGS", {
|
|
20
|
+
slug: "nethunt_crm-get-new-call-logs",
|
|
21
|
+
name: "Get New Call Logs",
|
|
22
|
+
description: "Find recently created call logs in NetHunt CRM. Returns call logs created after a specified time. Use when you need to retrieve new call activity from a specific folder.",
|
|
23
|
+
input: NethuntCrmGetNewCallLogsInput,
|
|
24
|
+
output: z.object({ call_logs: z.array(NethuntCrmGetNewCallLogs_CallLogSchema).describe("List of call logs").nullable().optional() }).describe("Response model for getting new call logs.")
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { nethuntCrmGetNewCallLogs };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=get-new-call-logs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-new-call-logs.mjs","names":[],"sources":["../../src/actions/get-new-call-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NethuntCrmGetNewCallLogsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of call logs to return. Default: No limit\").optional(),\n since: z.string().describe(\"Only call logs created after this time are returned. Default: 24 hours before time of request\").optional(),\n folderId: z.string().describe(\"Folder ID to find new call logs in\"),\n}).describe(\"Request model for getting new call logs.\");\nconst NethuntCrmGetNewCallLogs_CallLogSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"For internal use only\").nullable().optional(),\n text: z.string().describe(\"Comment text\").nullable().optional(),\n time: z.string().describe(\"Time when logged call started\").nullable().optional(),\n endTime: z.string().describe(\"Time when logged call ended\").nullable().optional(),\n duration: z.number().describe(\"Call duration\").nullable().optional(),\n recordId: z.string().describe(\"Record ID\").nullable().optional(),\n callLogId: z.string().describe(\"Call log ID\").nullable().optional(),\n createdAt: z.string().describe(\"Time when call log is created\").nullable().optional(),\n}).describe(\"Call log information.\");\nexport const NethuntCrmGetNewCallLogsOutput: z.ZodTypeAny = z.object({\n call_logs: z.array(NethuntCrmGetNewCallLogs_CallLogSchema).describe(\"List of call logs\").nullable().optional(),\n}).describe(\"Response model for getting new call logs.\");\n\nexport const nethuntCrmGetNewCallLogs = action(\"NETHUNT_CRM_GET_NEW_CALL_LOGS\", {\n slug: \"nethunt_crm-get-new-call-logs\",\n name: \"Get New Call Logs\",\n description: \"Find recently created call logs in NetHunt CRM. Returns call logs created after a specified time. Use when you need to retrieve new call activity from a specific folder.\",\n input: NethuntCrmGetNewCallLogsInput,\n output: NethuntCrmGetNewCallLogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACrI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;AACpE,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,yCAAuD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,uBAAuB;AAKnC,MAAa,2BAA2B,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0D,EAAE,OAAO,EACnE,WAAW,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-new-comments.ts
|
|
4
|
+
const NethuntCrmGetNewCommentsInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Maximum number of record comments to return. Default: No limit").optional(),
|
|
6
|
+
since: zod.z.string().describe("Only record comments created after this time are returned. Default: 24 hours before time of request. Use ISO 8601 format (e.g., '2024-01-15T10:30:00Z')").optional(),
|
|
7
|
+
folderId: zod.z.string().describe("Folder ID to find new record comments in")
|
|
8
|
+
}).describe("Request model for fetching new record comments from a NetHunt CRM folder.");
|
|
9
|
+
const NethuntCrmGetNewComments_CommentItemSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("For internal purposes only"),
|
|
11
|
+
text: zod.z.string().describe("Comment text"),
|
|
12
|
+
recordId: zod.z.string().describe("Record ID"),
|
|
13
|
+
commentId: zod.z.string().describe("Comment ID"),
|
|
14
|
+
createdAt: zod.z.string().describe("Time of comment creation in ISO 8601 format")
|
|
15
|
+
}).describe("Record comment object with ID, text, and metadata.");
|
|
16
|
+
const NethuntCrmGetNewCommentsOutput = zod.z.object({ comments: zod.z.array(NethuntCrmGetNewComments_CommentItemSchema).describe("List of record comments created after the specified time").nullable().optional() }).describe("Response model containing list of new record comments.");
|
|
17
|
+
const nethuntCrmGetNewComments = require_action.action("NETHUNT_CRM_GET_NEW_COMMENTS", {
|
|
18
|
+
slug: "nethunt_crm-get-new-comments",
|
|
19
|
+
name: "Get New Comments",
|
|
20
|
+
description: "Tool to find recently created record comments in a NetHunt CRM folder. Returns comments created after a specified time (defaults to last 24 hours).",
|
|
21
|
+
input: NethuntCrmGetNewCommentsInput,
|
|
22
|
+
output: NethuntCrmGetNewCommentsOutput
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.nethuntCrmGetNewComments = nethuntCrmGetNewComments;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=get-new-comments.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-new-comments.cjs","names":["z","action"],"sources":["../../src/actions/get-new-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NethuntCrmGetNewCommentsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of record comments to return. Default: No limit\").optional(),\n since: z.string().describe(\"Only record comments created after this time are returned. Default: 24 hours before time of request. Use ISO 8601 format (e.g., '2024-01-15T10:30:00Z')\").optional(),\n folderId: z.string().describe(\"Folder ID to find new record comments in\"),\n}).describe(\"Request model for fetching new record comments from a NetHunt CRM folder.\");\nconst NethuntCrmGetNewComments_CommentItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"For internal purposes only\"),\n text: z.string().describe(\"Comment text\"),\n recordId: z.string().describe(\"Record ID\"),\n commentId: z.string().describe(\"Comment ID\"),\n createdAt: z.string().describe(\"Time of comment creation in ISO 8601 format\"),\n}).describe(\"Record comment object with ID, text, and metadata.\");\nexport const NethuntCrmGetNewCommentsOutput: z.ZodTypeAny = z.object({\n comments: z.array(NethuntCrmGetNewComments_CommentItemSchema).describe(\"List of record comments created after the specified time\").nullable().optional(),\n}).describe(\"Response model containing list of new record comments.\");\n\nexport const nethuntCrmGetNewComments = action(\"NETHUNT_CRM_GET_NEW_COMMENTS\", {\n slug: \"nethunt_crm-get-new-comments\",\n name: \"Get New Comments\",\n description: \"Tool to find recently created record comments in a NetHunt CRM folder. Returns comments created after a specified time (defaults to last 24 hours).\",\n input: NethuntCrmGetNewCommentsInput,\n output: NethuntCrmGetNewCommentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CAC/L,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;CACzC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CAC3C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAC9E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,UAAUA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzJ,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,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-new-comments.d.ts
|
|
4
|
+
declare const NethuntCrmGetNewCommentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NethuntCrmGetNewCommentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nethuntCrmGetNewComments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nethuntCrmGetNewComments };
|
|
9
|
+
//# sourceMappingURL=get-new-comments.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-new-comments.d.cts","names":[],"sources":["../../src/actions/get-new-comments.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAI0C;AAAA,cAQ3E,8BAAA,EAAgC,CAAA,CAAE,UAEsB;AAAA,cAExD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-new-comments.d.ts
|
|
4
|
+
declare const NethuntCrmGetNewCommentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NethuntCrmGetNewCommentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nethuntCrmGetNewComments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nethuntCrmGetNewComments };
|
|
9
|
+
//# sourceMappingURL=get-new-comments.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-new-comments.d.mts","names":[],"sources":["../../src/actions/get-new-comments.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAI0C;AAAA,cAQ3E,8BAAA,EAAgC,CAAA,CAAE,UAEsB;AAAA,cAExD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-new-comments.ts
|
|
4
|
+
const NethuntCrmGetNewCommentsInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Maximum number of record comments to return. Default: No limit").optional(),
|
|
6
|
+
since: z.string().describe("Only record comments created after this time are returned. Default: 24 hours before time of request. Use ISO 8601 format (e.g., '2024-01-15T10:30:00Z')").optional(),
|
|
7
|
+
folderId: z.string().describe("Folder ID to find new record comments in")
|
|
8
|
+
}).describe("Request model for fetching new record comments from a NetHunt CRM folder.");
|
|
9
|
+
const NethuntCrmGetNewComments_CommentItemSchema = z.object({
|
|
10
|
+
id: z.string().describe("For internal purposes only"),
|
|
11
|
+
text: z.string().describe("Comment text"),
|
|
12
|
+
recordId: z.string().describe("Record ID"),
|
|
13
|
+
commentId: z.string().describe("Comment ID"),
|
|
14
|
+
createdAt: z.string().describe("Time of comment creation in ISO 8601 format")
|
|
15
|
+
}).describe("Record comment object with ID, text, and metadata.");
|
|
16
|
+
const nethuntCrmGetNewComments = action("NETHUNT_CRM_GET_NEW_COMMENTS", {
|
|
17
|
+
slug: "nethunt_crm-get-new-comments",
|
|
18
|
+
name: "Get New Comments",
|
|
19
|
+
description: "Tool to find recently created record comments in a NetHunt CRM folder. Returns comments created after a specified time (defaults to last 24 hours).",
|
|
20
|
+
input: NethuntCrmGetNewCommentsInput,
|
|
21
|
+
output: z.object({ comments: z.array(NethuntCrmGetNewComments_CommentItemSchema).describe("List of record comments created after the specified time").nullable().optional() }).describe("Response model containing list of new record comments.")
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { nethuntCrmGetNewComments };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=get-new-comments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-new-comments.mjs","names":[],"sources":["../../src/actions/get-new-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NethuntCrmGetNewCommentsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of record comments to return. Default: No limit\").optional(),\n since: z.string().describe(\"Only record comments created after this time are returned. Default: 24 hours before time of request. Use ISO 8601 format (e.g., '2024-01-15T10:30:00Z')\").optional(),\n folderId: z.string().describe(\"Folder ID to find new record comments in\"),\n}).describe(\"Request model for fetching new record comments from a NetHunt CRM folder.\");\nconst NethuntCrmGetNewComments_CommentItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"For internal purposes only\"),\n text: z.string().describe(\"Comment text\"),\n recordId: z.string().describe(\"Record ID\"),\n commentId: z.string().describe(\"Comment ID\"),\n createdAt: z.string().describe(\"Time of comment creation in ISO 8601 format\"),\n}).describe(\"Record comment object with ID, text, and metadata.\");\nexport const NethuntCrmGetNewCommentsOutput: z.ZodTypeAny = z.object({\n comments: z.array(NethuntCrmGetNewComments_CommentItemSchema).describe(\"List of record comments created after the specified time\").nullable().optional(),\n}).describe(\"Response model containing list of new record comments.\");\n\nexport const nethuntCrmGetNewComments = action(\"NETHUNT_CRM_GET_NEW_COMMENTS\", {\n slug: \"nethunt_crm-get-new-comments\",\n name: \"Get New Comments\",\n description: \"Tool to find recently created record comments in a NetHunt CRM folder. Returns comments created after a specified time (defaults to last 24 hours).\",\n input: NethuntCrmGetNewCommentsInput,\n output: NethuntCrmGetNewCommentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;CAC/L,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;CACzC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CAC3C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAC9E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAKhE,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0D,EAAE,OAAO,EACnE,UAAU,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzJ,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-new-gdrive-files.ts
|
|
4
|
+
const NethuntCrmGetNewGdriveFilesInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Maximum number of Google Drive files to return. Default: No limit. Use this to control pagination and response size.").optional(),
|
|
6
|
+
since: zod.z.string().describe("Only Google Drive files created after this time are returned. Expected format: ISO 8601 date-time string. Default: 24 hours before time of request.").optional(),
|
|
7
|
+
folderId: zod.z.string().describe("Folder ID to find new Google Drive files in. This is the NetHunt CRM folder identifier where files are tracked.")
|
|
8
|
+
}).describe("Request model for getting new Google Drive files.");
|
|
9
|
+
const NethuntCrmGetNewGdriveFiles_GdriveFileItemSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("For internal use only. Internal identifier for the file record.").nullable().optional(),
|
|
11
|
+
url: zod.z.string().describe("URL to view the file in Google Drive. Direct link to access the file.").nullable().optional(),
|
|
12
|
+
name: zod.z.string().describe("File name as stored in Google Drive.").nullable().optional(),
|
|
13
|
+
fileId: zod.z.string().describe("File ID in the NetHunt CRM system.").nullable().optional(),
|
|
14
|
+
iconUrl: zod.z.string().describe("File icon URL pointing to the visual representation of the file type.").nullable().optional(),
|
|
15
|
+
folderId: zod.z.string().describe("Folder ID where the file is located.").nullable().optional(),
|
|
16
|
+
mimeType: zod.z.string().describe("File MIME type indicating the file format (e.g., 'application/pdf', 'image/jpeg').").nullable().optional(),
|
|
17
|
+
recordId: zod.z.string().describe("Record ID that the file is linked to in NetHunt CRM.").nullable().optional(),
|
|
18
|
+
createdAt: zod.z.string().describe("Time Google Drive file was created. ISO 8601 date-time format.").nullable().optional(),
|
|
19
|
+
googleDriveFileId: zod.z.string().describe("File ID in Google Drive. Use this to access the file directly in Google Drive.").nullable().optional()
|
|
20
|
+
}).describe("Model for a single Google Drive file item.");
|
|
21
|
+
const NethuntCrmGetNewGdriveFilesOutput = zod.z.object({ files: zod.z.array(NethuntCrmGetNewGdriveFiles_GdriveFileItemSchema).describe("Array of Google Drive file objects created after the specified time. Each object contains file metadata and links to both NetHunt CRM records and Google Drive.") }).describe("Response model for getting new Google Drive files.");
|
|
22
|
+
const nethuntCrmGetNewGdriveFiles = require_action.action("NETHUNT_CRM_GET_NEW_GDRIVE_FILES", {
|
|
23
|
+
slug: "nethunt_crm-get-new-gdrive-files",
|
|
24
|
+
name: "Get New Google Drive Files",
|
|
25
|
+
description: "Tool to find recently created Google Drive files linked to NetHunt CRM records. Use when you need to retrieve files created after a specific time in a NetHunt folder. Returns file metadata including Google Drive links, MIME types, and associated record IDs. Useful for tracking new document uploads and file attachments.",
|
|
26
|
+
input: NethuntCrmGetNewGdriveFilesInput,
|
|
27
|
+
output: NethuntCrmGetNewGdriveFilesOutput
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.nethuntCrmGetNewGdriveFiles = nethuntCrmGetNewGdriveFiles;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=get-new-gdrive-files.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-new-gdrive-files.cjs","names":["z","action"],"sources":["../../src/actions/get-new-gdrive-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NethuntCrmGetNewGdriveFilesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of Google Drive files to return. Default: No limit. Use this to control pagination and response size.\").optional(),\n since: z.string().describe(\"Only Google Drive files created after this time are returned. Expected format: ISO 8601 date-time string. Default: 24 hours before time of request.\").optional(),\n folderId: z.string().describe(\"Folder ID to find new Google Drive files in. This is the NetHunt CRM folder identifier where files are tracked.\"),\n}).describe(\"Request model for getting new Google Drive files.\");\nconst NethuntCrmGetNewGdriveFiles_GdriveFileItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"For internal use only. Internal identifier for the file record.\").nullable().optional(),\n url: z.string().describe(\"URL to view the file in Google Drive. Direct link to access the file.\").nullable().optional(),\n name: z.string().describe(\"File name as stored in Google Drive.\").nullable().optional(),\n fileId: z.string().describe(\"File ID in the NetHunt CRM system.\").nullable().optional(),\n iconUrl: z.string().describe(\"File icon URL pointing to the visual representation of the file type.\").nullable().optional(),\n folderId: z.string().describe(\"Folder ID where the file is located.\").nullable().optional(),\n mimeType: z.string().describe(\"File MIME type indicating the file format (e.g., 'application/pdf', 'image/jpeg').\").nullable().optional(),\n recordId: z.string().describe(\"Record ID that the file is linked to in NetHunt CRM.\").nullable().optional(),\n createdAt: z.string().describe(\"Time Google Drive file was created. ISO 8601 date-time format.\").nullable().optional(),\n googleDriveFileId: z.string().describe(\"File ID in Google Drive. Use this to access the file directly in Google Drive.\").nullable().optional(),\n}).describe(\"Model for a single Google Drive file item.\");\nexport const NethuntCrmGetNewGdriveFilesOutput: z.ZodTypeAny = z.object({\n files: z.array(NethuntCrmGetNewGdriveFiles_GdriveFileItemSchema).describe(\"Array of Google Drive file objects created after the specified time. Each object contains file metadata and links to both NetHunt CRM records and Google Drive.\"),\n}).describe(\"Response model for getting new Google Drive files.\");\n\nexport const nethuntCrmGetNewGdriveFiles = action(\"NETHUNT_CRM_GET_NEW_GDRIVE_FILES\", {\n slug: \"nethunt_crm-get-new-gdrive-files\",\n name: \"Get New Google Drive Files\",\n description: \"Tool to find recently created Google Drive files linked to NetHunt CRM records. Use when you need to retrieve files created after a specific time in a NetHunt folder. Returns file metadata including Google Drive links, MIME types, and associated record IDs. Useful for tracking new document uploads and file attachments.\",\n input: NethuntCrmGetNewGdriveFilesInput,\n output: NethuntCrmGetNewGdriveFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAClK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CAC3L,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;AACjJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,OAAOA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,iKAAiK,EAC7O,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,8BAA8BC,eAAAA,OAAO,oCAAoC;CACpF,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-new-gdrive-files.d.ts
|
|
4
|
+
declare const NethuntCrmGetNewGdriveFilesInput: z.ZodTypeAny;
|
|
5
|
+
declare const NethuntCrmGetNewGdriveFilesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nethuntCrmGetNewGdriveFiles: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nethuntCrmGetNewGdriveFiles };
|
|
9
|
+
//# sourceMappingURL=get-new-gdrive-files.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-new-gdrive-files.d.cts","names":[],"sources":["../../src/actions/get-new-gdrive-files.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAIe;AAAA,cAanD,iCAAA,EAAmC,CAAA,CAAE,UAEe;AAAA,cAEpD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-new-gdrive-files.d.ts
|
|
4
|
+
declare const NethuntCrmGetNewGdriveFilesInput: z.ZodTypeAny;
|
|
5
|
+
declare const NethuntCrmGetNewGdriveFilesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nethuntCrmGetNewGdriveFiles: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nethuntCrmGetNewGdriveFiles };
|
|
9
|
+
//# sourceMappingURL=get-new-gdrive-files.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-new-gdrive-files.d.mts","names":[],"sources":["../../src/actions/get-new-gdrive-files.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAIe;AAAA,cAanD,iCAAA,EAAmC,CAAA,CAAE,UAEe;AAAA,cAEpD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-new-gdrive-files.ts
|
|
4
|
+
const NethuntCrmGetNewGdriveFilesInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Maximum number of Google Drive files to return. Default: No limit. Use this to control pagination and response size.").optional(),
|
|
6
|
+
since: z.string().describe("Only Google Drive files created after this time are returned. Expected format: ISO 8601 date-time string. Default: 24 hours before time of request.").optional(),
|
|
7
|
+
folderId: z.string().describe("Folder ID to find new Google Drive files in. This is the NetHunt CRM folder identifier where files are tracked.")
|
|
8
|
+
}).describe("Request model for getting new Google Drive files.");
|
|
9
|
+
const NethuntCrmGetNewGdriveFiles_GdriveFileItemSchema = z.object({
|
|
10
|
+
id: z.string().describe("For internal use only. Internal identifier for the file record.").nullable().optional(),
|
|
11
|
+
url: z.string().describe("URL to view the file in Google Drive. Direct link to access the file.").nullable().optional(),
|
|
12
|
+
name: z.string().describe("File name as stored in Google Drive.").nullable().optional(),
|
|
13
|
+
fileId: z.string().describe("File ID in the NetHunt CRM system.").nullable().optional(),
|
|
14
|
+
iconUrl: z.string().describe("File icon URL pointing to the visual representation of the file type.").nullable().optional(),
|
|
15
|
+
folderId: z.string().describe("Folder ID where the file is located.").nullable().optional(),
|
|
16
|
+
mimeType: z.string().describe("File MIME type indicating the file format (e.g., 'application/pdf', 'image/jpeg').").nullable().optional(),
|
|
17
|
+
recordId: z.string().describe("Record ID that the file is linked to in NetHunt CRM.").nullable().optional(),
|
|
18
|
+
createdAt: z.string().describe("Time Google Drive file was created. ISO 8601 date-time format.").nullable().optional(),
|
|
19
|
+
googleDriveFileId: z.string().describe("File ID in Google Drive. Use this to access the file directly in Google Drive.").nullable().optional()
|
|
20
|
+
}).describe("Model for a single Google Drive file item.");
|
|
21
|
+
const nethuntCrmGetNewGdriveFiles = action("NETHUNT_CRM_GET_NEW_GDRIVE_FILES", {
|
|
22
|
+
slug: "nethunt_crm-get-new-gdrive-files",
|
|
23
|
+
name: "Get New Google Drive Files",
|
|
24
|
+
description: "Tool to find recently created Google Drive files linked to NetHunt CRM records. Use when you need to retrieve files created after a specific time in a NetHunt folder. Returns file metadata including Google Drive links, MIME types, and associated record IDs. Useful for tracking new document uploads and file attachments.",
|
|
25
|
+
input: NethuntCrmGetNewGdriveFilesInput,
|
|
26
|
+
output: z.object({ files: z.array(NethuntCrmGetNewGdriveFiles_GdriveFileItemSchema).describe("Array of Google Drive file objects created after the specified time. Each object contains file metadata and links to both NetHunt CRM records and Google Drive.") }).describe("Response model for getting new Google Drive files.")
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { nethuntCrmGetNewGdriveFiles };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=get-new-gdrive-files.mjs.map
|